r/programming • u/joanmiro • Jul 18 '16
Web programming is getting unnecessarily complicated
http://en.arguman.org/web-programming-is-getting-unnecessarily-complicated
324
Upvotes
r/programming • u/joanmiro • Jul 18 '16
111
u/[deleted] Jul 18 '16
I have been out of the web 'development' world for about 5 years, but still programming with fundamentals like TCP/UDP communication (between software and hardware) and developing API's. It has been relaxing to not have to worry about keeping up with the latest and greatest web trends. When I moved primarily to desktop applications it allowed me to have less anxiety about staying fresh and allowed me to dive deeper into programming techniques and best practices. I do hope the water calms a bit in the near future because the web capabilities seem to be growing and every time I look at new websites and applications I am blown away by the complexity. For example TurboTax's web application for the past few years has been my favorite application to use. They have it down very smooth, and I cannot imagine the complexity behind the scenes.
22
u/MisterSnuggles Jul 19 '16
"getting"?
Hasn't it gotten unnecessarily complicated already?
37
u/pwnedary Jul 18 '16
I feel like when the HTML, CSS and Javascript technologies first appeared they were fresh. But now, due to legacy support being a requirement, we can't extend those technologies so new frameworks have appeared. If you only learn the relevant parts and one new framework things could actually go smoother. Web programming hasn't gotten more harder just more voluminous.
85
u/vytah Jul 18 '16
I 've been recently dragged back into frontend development, with my latest experiences having been raw HTML+CSS+JQuery.
Node. Gulp. Bower. Less. Angular. WTF is going on.
I have managed to get around enough to get the work done, and I do understand why this kind of technologies has emerged, but I'm still not liking it. It all feels, to quote an old /g/ meme, held together by bubblegum and feces.
25
u/[deleted] Jul 18 '16
This is what you get when your users expect their email clients, office suites and games to run fully inside their browsers. The browser has always been a horrible platform for this stuff and we got to this point by piling hacks on top of hacks to make it work somehow, and the vendors responded by adding more bloat just to make more things possible. And then more frameworks kept coming along to cover some of this mess, and the next ones will cover the mess created by the previous ones, and so on.
But the real question is what's the alternative. Maybe in the future desktop OSs will morph towards the model of mobile and all that functionality will end up inside app stores, letting the browser go back to its original purpose of rendering documents. It probably won't happen, but this is what I tell myself sometimes. Maybe, just maybe, someday we will be laughing about this clusterfuck web development has become.
20
u/Sutty100 Jul 18 '16
We started a new front end project for the first time in a while and as a back end dev I was amazed at the complexity that is now involved! Going from a fairly simple backbone.js app that had a simple ant script to do a bit of minification and bundling into a single file, we now have: React.js, Redux, a package.json file that has a massive list of dependencies and I don't think anybody can tell me what they all do, Express Node server for local dev environment, a chronically slow webpack/Babel build process that creates this huge unreadable javaScript file, Npm that seemingly fails to install all node modules correctly for some people unless they have the exact version of node and luck on there side!
Seriously...when did the front end devs make life so much harder on themselves! Urgh installing a new Websphere App server seems simpler than this!
26
u/[deleted] Jul 18 '16
It's not really that bad
JavaScript vs Java:
The 2 main framework choices to pick from when coming to JS are Angular and React. In the Java World you have JEE and Spring.
There are also smaller frameworks in both ecosystems. In JS theres metero, ember and a couple others. In Java theres Play, Vaadin, Spark and a couple others as well.
Build tools: Modern JS development requires a build tool and a transpiler/compiler. The JS community has settled on webpack as it's build tool and Babel as it's compiler/transpiler. In the Java community there's Maven and Gradle for build tools and obviously the Java compiler.
TypeScirpt is a language that compiles to JS. Kotlin and Scala are languages that compile to Java.
8
u/kirbyfan64sos Jul 18 '16
http://www.commitstrip.com/en/2016/05/10/a-moment-of-nostalgia/
43
u/karma_vacuum123 Jul 18 '16
Only if you look at the tip of the iceberg that peaks above the water which represents the frontend hipsters. The mass of development lurks beneath where people are using PHP, jquery, MySQL and other boring tech. This is probably 95% of the actual market. These people may go their whole career without knowing what React is.
6
u/Veedrac Jul 19 '16
Can someone explain where all these super-complex web apps are? It's not like everyone's building the next Google Maps or Drive.
43
u/freebit Jul 18 '16 edited Jul 18 '16
Many (all?) of the OP's arguments he presents are correct. We seem to be in a really difficult place right now in web development. We seem to have so many competing and orthogonal factors. Here is a brain dump of many issues that weigh heavily on me personally. I have utterly failed at coming up with a solution that feels satisfying to me.
5
u/salgat Jul 18 '16
I do agree that front-end development with the countless target platforms makes for some very difficult to design uniformity. However, on the backend, things are so much easier now. The tooling is very powerful, very easy to get started with, and debugging is so much more powerful now. I think things are heading in a great direction and I'm so glad I'm developing now and not 20 years ago.
5
u/parlezmoose Jul 19 '16
I now read all of these posts in Jerry Seinfeld's voice:
What is the deal with web development??
4
u/EmperorOfCanada Jul 19 '16
I have a simple way of doing it.
Generally if there is a huge argument among which is the "best" framework, just stay away from all of them in that argument.
For instance nobody argues that X is better than jquery much these days. Thus jquery is nice, boring and stable. Perfect. There are other similar web bits.
But if you try and question someone as to how their particular framework isn't very scalable, robust, bug free, or even applicable to your problem they will scream that you suck and aren't a very good programmer. They will argue that doing it some other way is pretty much like trying to use an umbrella as a parachute.
And the reality is that if you are doing some restaurant website or some such then pretty much any of them are going to be fine.
But if you are trying to do something innovative and new, then most of the frameworks are going to slow you down at first while you learn them, then they are going to rapidly get you to 90% done, and then you are going to hit a wall, a solid wall where you are fighting with a combination of your framework and how you have used it to implement your solution.
Or you could go somewhat old school, picking up the best of breed stuff for this bit and that, and while it will be a slow process the whole way along you will end up with a fairly simple maintainable, fast, and easy to understand solution that does exactly what you wanted it to, the way you wanted it to.
This last bit is very different than what you will end up with if you use some of today's darlings, you will end up with a compromise between what you wanted, and what the framework intended for you do to.
7
u/Alucard256 Jul 18 '16
I got there as early as the mid-90's (Cold Fusion or CGI? Just try to do with with Javascript or write a whole Java applet? Flash maybe? What's this new CSS thing?). LOL
Anyway, I've always tried to approach it like a contractor walking into a huge supply warehouse. They have every possible tool for doing any possible task and all the raw materials the contractor could ever want (wood, steel, tubing, concrete, fencing, etc.). The trick is to determine your goal first and then pick the tools that are needed for the job and leave the rest where they are.
7
u/danogburn Jul 19 '16
Web programming has been trash from the beginning. The problem has been jury-rigging technology designed for static content into a shitty excuse for a VM and you complacent fucks who are just fine with it or dont know any better.
"Yeah, the web has its warts but it's nothing that cant be fixed with more layers of javascript!"
"The web is already in place. We can't just throw it all away."
"Look Ma, I can finally do on the web what's been done on the desktop for 30 something years!"
Death to the unholy html/css/javascript trinity!
17
u/[deleted] Jul 18 '16
"Getting"? Just "getting"? It was unnecessarily complicated and twisted even before Mosaic.
For some stupid reason, all this web stuff attracts almost exclusively people who find perverted pleasure in overengineering.
9
u/droogans Jul 18 '16
Anyone try navigating the user interface with a keyboard on a PC? What a great way to handle tree-based comment responses.
I'm more caught up in the website itself to really get into the nitty gritty of the subject at hand. I suppose in any case the reason they have such a nice interface is because the devs decided to write unnecessarily complicated javascript. In some cases, it's not a bad thing that there's some complicated javascript in the world.
21
u/[deleted] Jul 18 '16
This is becoming a decades old problem. It is as much a behavior problem as a technology problem. The problem goes something like Java and C are taught in school under the classification "computer science", so therefore they are science with accreditation. Standard web technologies do not have any formal accreditation, so therefore they are not science.
While that reason sounds absurd in both an extreme and primitive way it remains completely accurate in the real world. The only people (generally) who really take the standard web technologies seriously as a genuine technology that can stand on its own are: academics, hobbyists, and user agent vendors. For everybody else these technologies are inferior things that prop up HTML, which is a marketing only platform, while the real code is the monolithic Java or C application.
All the web technology problems today stem from these behaviors. For instance, web technology companies tend to hire people to write JavaScript with a different lower paid label, such as UI developer, which internally is not a real computer science quality. The expectations are lower and lower quality applicants are generally considered for those roles.
I have been working in the web space for 19 years, and these problems are they same today as they were about 15 years ago. The biggest change in this time is that companies are no longer hiring a teenager to write their client-side code. Instead they are re-purposing existing developers, without training, to write these technologies as though they are still writing Java. This is fine until it isn't at which point they blame the technologies. The immaturity and cause are the same. All that has changed is the intention. Instead of a teenager trying to make pretty and interactive things on a screen you have somebody older working to business requirements with equal disregard to tech debt and failure.
At some point people are no longer going to be able to hide behind institutionalism and continue to blame the technologies for not being Java. Pretending monstrous JavaScript frameworks will solve these problems only lasts until tech debt exceeds available effort.
2
u/womplord1 Jul 19 '16
I don't think so, it's not really that complicated to develop web applications, the technology just changes so you have to learn new things. The actual act of developing the web application is simpler than ever, assuming you are developing the same thing with new vs old technology
2
u/panorambo Jul 19 '16
With the amount of polyfilling and even then corner cases and taking care of behavior that is not specified by any standard (what is a computed height of a DOM element during height transition?), I can honestly subscribe to the argument.
CSS, even though bringing to the table some things useful to website authors and designers, like cascading and declarative programming, has some fundamental flaws that, in my humble opinion, will never settle the argument for good. There will always be the same game of adding features and playing catch up between browser makers. You know it has failed when the complexity gap isn't shortening. Five years ago we were complaining of broken box model (remember how IE stubbornly included padding in element dimension?). Today we are complaining of insufficient flex-box support. Tomorrow we will be complaining of broken blend modes and animation keyframe interpolation not being up to par. The takeaway here is that we should simplify the platform (think RISC instead of CISC) and instead "outsource" the complexity and library programming to the kind of people who bring us things like Boostrap, Angular, JQuery etc. With a simple platform, everyones hands will be untied.
CSS isn't broken, I repeat, but it needs a major revision, and I don't mean like CSS4 -- we need to rethink some things that are attached to its bone today. And I don't mean syntax.
2
u/MobilePenor Jul 19 '16
It's complicated only if you want/have to follow the trends.
In the last years a lot of trendy technologies were not worth the time. Not only that, but often the best way to do things is frowned upon by other programmers. You need to develop an instinct that will tell you what is worth pursuing and what it not, otherwise you will stress yourself without reason and waste a lot of time doing things that could be done more easily and better with simpler technology.
And if your instinct is in doubt, ignore advice and technologies that can't prove themselves. I will point my finger towards Laravel, but you can do the same with many other technologies. Not long ago was searching for popular sites made with Laravel and there were none. Only sites made by laravel fans for other laravel fans, basically tech demos. I mean, if you have an amazing piece of technologies let me see the great things that have been done with it, don't take me for a fool. And if it is a new technology and great products aren't out yet, put some good and realistic and working use case, instead of trying of convince me with the usual variant of "Fast, lightweight, opinionated, unopinionated, minimalist web framework".
Webdev was much more painful years ago, when you had to fight browsers and their weird interpretation of things that should've already been standard (I'm looking at you internet explorer). It was painful when there were no good cms/frameworks and a lack of documentation.
You or your boss are the cause of your pain.
2
u/Creath Jul 20 '16
Off topic, but WOW I've never seen this website before. I might be in love. Bookmarked, thanks!
2
u/deus_lemmus Jul 18 '16
Getting? Its been that way for decades now. .
2
u/crusoe Jul 19 '16
Fuck gulp. Overcomplicated build tool.
2
u/CanYouDigItHombre Jul 19 '16 edited Jul 19 '16
I fucking hate web programming. jQuery I'm alright with. I wanted to do a little swipe and used jquery UI draggable. The damn thing would not let me move up and down on the page when I asked it to only swipe on the x-axis
But before that I thought swiping would be like moustdown and mousemove events. It turns out its completely different and trying two different libs (hammer and IDR what) DID NOT WORK for me. Fuck.
I ended up learning how to do touch events and it was actually fairly simple. I got swipe working in <20mins (I spent maybe 15 on hammer and didn't get it working + another 10 on something else). Then I implemented my own draggable code on it and did it in about 7mins. Looking up how to fix draggable UI took more than that.
I tried finding code to crop an image. I found an example which was ok. Turns out the latest github sorce was broken and I didn't realize it for over an hour. Then using the example code and everything working fine I noticed pinching didn't work because the source code had no thought to it and was terribly implemented (eventime the event hit increase or decrease the zoom. Doesn't matter how little or much the pinch was). FUCK
With the knowledge of touch I picked up that day I implemented pinching in about 10mins. Seriously fuck web development for one project I wrote my own code because 3 libs were glitchy as fuck
If people used their code on at least one complex site which isn't meant to be an example libs would be a lot better. I thought it was a joke that I couldn't scroll up and down when I was using a swipe lib. Same for image cropping that 'supports touch gestures' that is completely unusable when doing touch gestures. Finally the UI draggable and the code I wrote for touch didn't want to work with eachother and my JS and DOM event knowledge wasn't strong enough to figure out what the problem is. I wasn't sure how to overload or add events. It was WAY easier to implement my own and it looks exactly how I want UI draggable to work.
1
u/cowinabadplace Jul 19 '16
Has anyone used CLJS where they would have previously used JS in a simple web site? I'm imagining sites that aren't single page apps but with CLJS instead. I enjoyed trying out Om, but I'm wondering if I can do the simple stuff too, and easily.
1
u/dlyund Jul 19 '16
Programming in general us getting unnecessarily complicated. Web programming had always been unnecessarily complicated. The whole situation is just getting worse and arguably heading towards breaking point. We can only hope. Maybe this will have a positive effect in the long run
1
u/DJDavio Jul 19 '16
Sometimes I giggle about the wavelike movement of computing, it goes like this:
Nowadays it's a bit of a hybrid where companies like Twitter do some stuff (even GUI stuff) on the server and some on the client.
1
u/namekuseijin Jul 19 '16
it's called the javanization of the web. Piles and piles of redundant, schizophrenic layers over the simple html and http protocol. And then having to cope with a disparity of different browsers which hate each other...
1
u/teiman Jul 19 '16
You don't have to use all the available tools in the toolset. These tools exist because yes, the web still suck. These tools aleviate the problem of the web sucking, but they create another problem: too many tools. Anyway we hare better than we where before, with the difference is that a single person can't know all about the web. A single person can't be the postmaster, the db guru, the html guru, the css guru, the javascript guru, the apache guru, the ... so we need different people. Just that. We have grown to a better enviroment, but is now too big for a single person to know everything.
1
u/Chief_Mother_Fucker Jul 19 '16
what irritates me is that most current frameworks have plenty of dependencies. You have to install a package.json that includes so many dependencies. what happened to just having one library
1
u/tad_in_berlin Aug 01 '23
If you stumbled upon this ancient post like I just did: Here's an archived copy of the linked website: https://web.archive.org/web/20160721094959/http://en.arguman.org/web-programming-is-getting-unnecessarily-complicated
-5
u/timmyak Jul 18 '16
Most of the issues listed with JS are just the same kinda gotchas you'd see in other languages. within a few month you automatically avoid them; I can't even remember the last time I hit any of those.
The web has developed quite nicely with JS, companies have built amazing things with JS, let's stop shitting on it like the world is on fire!
ES6 and 7 are showing great progress...
0
u/prettycode Jul 18 '16 edited Jul 18 '16
Doesn't the complexity, by its very existence, point to the necessary-ness of it? Obviously not everything that is complicated in this world is complicated out of necessity (e.g. those in power can enforce arbitrary complexity), but software is pretty democratic, no? While people do sometimes "over engineer" in software, my experience has been even more people prefer to do as little work as possible to fulfill a requirement or solve a problem.
-1
u/[deleted] Jul 19 '16
This
-1
u/brennanfee Jul 19 '16
Well, maybe the way you do it. If something you built is "unnecessarily complicated" you have only yourself to blame.
-5
u/Purple_Haze Jul 18 '16
The irony is staggering.
He built a website so overwhelmingly complicated that it is impossible to simply read his blog post. In order to complain about the complexity of web programming.
I won't address any of his points because I am unwilling to make the effort to find them in that dog's breakfast. But I suggest that if that site is demonstration of his skills, the problem is not programming it is him.
0
u/tonywestonuk Jul 19 '16
I want to be able to make SPI's, which can be developed with easy imaginary code, like below.
I am fed up with writing event handlers / functions / closures / etc etc etc. Make it like this... Please.