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
View all comments
Show parent comment
8
u/terrkerr Jul 18 '16
Is it? Big businesses tend to be the ones with the money to get support for things. Linux is alive and well because of corporate sponsers and contributions. IBM alone has put more than a billion in to Linux. Java is one of the biggest languages in the world, and it's because of Oracle. C got as big as it did because corporate UNIX systems took over the world for a while, and that's why eventually Linux was able to secure all its funding to be the FOSS UNIX. (Incidentally one of the BSDs might have taken that position instead, seeing as it was a more mature system at the time, if not for the fact SCO was having a legal shitfit with them leaving their future uncertain.)
Some of the biggest movements even in the open-source world come back to direct corporate backing, or at least influence.
Some of the most successful projects in the FOSS space still employ a 'benevolent dictator for life' to be the ultimate arbitrator of what is and isn't happening with the project because it brings a huge amount of stability in with the right dictator.
And that can be exactly the problem often. It turns out writing a stable, extensible, modular and as-simple-as-possible system is really, really hard. Most people write something that makes big sacrifices in at least one of these areas, if not more, and for anything that needs long-term support you end up needed an overcomplex mess to deal with the fact that the base is broken, but you can't go back and fix it now.
Consider the simple, easy, but definitely not 'pure' solution of AJAX polling or form submission: HTTP was originally made assuming all full transactions looked like client makes request -> server gets request and returns response. As soon as people wanted to break that paradigm and introduce dynamic updating of the page a user is on an issue came up: HTTP doesn't do that, but HTTP is all we have to work with.
Solution? Mimic a hypothetical HTTP version that supports two-way communication by having a hidden HTTP request fire in the background and receive in the JS, extract the desired information, and inject it into the DOM on the current page.
It works, sure, but it has obvious issues and, although per se a simple thing, the combination of HTTP 1.1 + AJAX and all the other hacks like it to 'extend' HTTP 1.1 in unofficial ways is far more complex than the plain HTTP/2 standard.
Laziness meant people made hacks that eventually some folk had to come back and try to clean up in a way that broke previous unofficial solutions.
If there was a big push to just make the protocol what people wanted instead of growing extensions off of it like a tumour it would have been easier in the long run, but in the short term it meant telling your boss you can't do what they want yet.]
CSS variables are up for codification and standardization now despite the long-standing existence of CSS preprocessors. Why? Because everybody fucking about with third-party tools to do CSS makes far less sense than just integrating the desired tooling in... but people also wanted the easy solution now, so we have LESS and SASS and whatever.
JS is a great example of this problem: JS lacked many things people wanted it to have when they went to use it outside of its traditional, simplistic in-browser use. JS also got popular really quickly. The result? A million third party libraries, frameworks and tools that have made a mess. Also a lot of people coming in to make real standards a bit too late to prevent the nuisance of the mess.
It's just one of those things that happens. Understandably nobody wants to wait on a real standardization procedure to get one thing working, so they just make one little hack or stopgap or one little tool and before you know it you have a mess.