r/programming • • Jul 18 '16

Web programming is getting unnecessarily complicated

http://en.arguman.org/web-programming-is-getting-unnecessarily-complicated
324 Upvotes

258 comments sorted by

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.

31

u/pjmlp Jul 18 '16

Me too, I went back to Windows desktop and native mobile development, couldn't be happier vs the time I was doing web development.

18

u/MacASM Jul 19 '16

Same here. Web Development became so exausting then boring... couldn't be happier than on Desktop development.

12

u/namekuseijin Jul 19 '16

"this thread brought to you by microsoft"

13

u/doom_Oo7 Jul 19 '16

doing desktop development on linux here, quite happy

7

u/ffthrowaway619 Jul 19 '16

How the hell do you guys get jobs doing desktop development. I literally never see them.

4

u/xeio87 Jul 19 '16

Legacy, man.

Though it's possibly worth noting that corporate has a "roadmap" item to push all our clients to the web interface version (we have both deskop and web)... at least until the clients hear about it. ;)

→ More replies (1)

0

u/[deleted] Jul 19 '16

[deleted] — view deleted comment

0

u/[deleted] Jul 19 '16

[deleted] — view deleted comment

5

u/ryeguy Jul 19 '16

surely not all web devs write "glue code"

Isn't modern webdev all about gluing together libraries, frameworks, and forms in different combinations?

→ More replies (7)
→ More replies (1)

10

u/bhauth Jul 19 '16

I also like desktop stuff much better than web stuff.

The odd thing is, some web applications actually work better than their desktop equivalents. For example, I refuse to have the piece of shit called "Skype" on my computer, but I do use the Skype web app sometimes. It somehow loads faster than the desktop program, it somehow uses less resources, and you can actually close it.

Skype is something of an exception on desktops, but on mobile devices, websites are fairly often better than the corresponding apps.

¯\(°_o)/¯

4

u/atheken Jul 19 '16

I'm not sure I would say "better", just that many mobile apps are unnecessary, as their website counterparts do the job.

6

u/phpdevster Jul 19 '16

The UI complexity is probably not that bad, but I can't even imagine how nuts the server-side domain is - storing and processing all of those tax rules? Simply even knowing which tax rules to apply to which returns? Holy hell...

That said, beyond that processing, the actual architecture I would imagine is quite straight forward: send some cleanly defined JSON to the front-end, and then the front-end can be relatively dumb and just plug-n-play the data into templates. Some UI state needs to be managed, but that's not that hard to do.

Of course, if they're using a framework like Angular or React, you can't just ignore the complexity of those frameworks, since they'd have be supplying that functionality themselves. Front-end really does depend heavily on frameworks in order to build maintainable apps. You can get away without a framework on the server-side of things for a lot of languages, since all you really need is an HTTP library and a library for whatever flavor of SQL/NoSQL you use.

9

u/[deleted] Jul 18 '16

Yeah it is a little bit janky sometimes but that TurboTax works, year after year with ever changing complex tax rules, and large scale all hitting them at a certain time of year, is amazing.

2

u/tophatstuff Jul 19 '16

Interestingly a UK equivalent for small companies, Basic PAYE Tools, provided by the government for up to ten employees for free, is a (on Linux at least) a Desktop Qt/HTML/Django/SQLite application. And it's not terrible.

0

u/[deleted] Jul 19 '16

[deleted] — view deleted comment

0

u/[deleted] Jul 19 '16

[deleted] — view deleted comment

21

u/crixusin Jul 19 '16

The ideal situation for them would be that everyone filed an accurate, machine-verified tax return.

Actually, the IRS wanted to get rid of filing your taxes. They hold all the information that makes that possible.

Intuit paid a lot of money to make sure that didn't happen.

1

u/[deleted] Jul 25 '16

I don't get it. We have to do income tax returns in Canada too. Even the socially democratic wundercountries in Europe require their residents to submit income tax returns, although they're usually nice enough to offer cross-platform e-filing solutions, like in the Netherlands or Sweden

1

u/mangodrunk Aug 04 '16

First I heard of this, so looked it up:

They haven't stopped; in 2014, Day reported that Intuit was involved with an astroturfing effort meant to manufacture the appearance of grassroots opposition to automatic filing. Intuit spent $13 million lobbying Congress from 2011 to 2015, with 41 lobbying reports relating to taxes in 2015 alone. Most of the reports reference lobbying to "enhance voluntary compliance" — a euphemism for opposing automatic filing.

http://www.vox.com/2016/4/13/11417676/elizabeth-warren-tax-return-free-filing

That really sucks. I actually don't think their software is all that. Though in the past, I did like how it all just worked or pulled in numbers from before. But there's definitely issues with it that haven't been worked out, like transitioning to certain pages.

2

u/crixusin Aug 04 '16

I actually don't think their software is all that.

I was never impressed with their software.

Until last year. They have a very well done web application.

That being said, its unnecessary for it to even exist at this point. That's the real shame.

-8

u/[deleted] Jul 19 '16

Why is development in quotes? Do you think web development is not real development?

5

u/[deleted] Jul 19 '16

of course it is, its just such a broad term for describing web programming so I felt compelled. No offense meant.

1

u/bautin Jul 19 '16

Yeah, I was talking to someone who said she didn't "get" my job. And it really came down to the fact that I don't have "a" job. I effectively have a series of jobs.

→ More replies (3)

0

u/[deleted] Jul 19 '16

[deleted] — view deleted comment

3

u/[deleted] Jul 19 '16

This thread has a strong anti-web-anything circlejerk going on. I don't even do web development and I got downvoted just for sayingthat web developers are as much 'developers' as software developers are.

1

u/[deleted] Jul 19 '16

Yeah I totally get that. From that standpoint it is really exciting to be on the cutting edge. I guess it also depends what industry you are working in, some are more strict about what outside libs you can or cannot use.

22

u/MisterSnuggles Jul 19 '16

"getting"?

Hasn't it gotten unnecessarily complicated already?

23

u/Davehig Jul 19 '16

That's what happens when you take a document retrieval system designed with no security in mind, and try to use it as an all-purpose application delivery system that we're now using to run our entire civilisation and economy.

This stuff is hard to make and it only works because of a bunch of clever hacks.

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.

14

u/MindStalker Jul 19 '16

I think there is a general rule that as development time and resources are a constant. When the web was new someone would spend a large amount of time hand programming a simple website. With new tools we can spend that time making complex sites. Many modern sites would have been desktop software back in the day, with similar development time to modern web versions.

0

u/[deleted] Jul 19 '16

[deleted] — view deleted comment

5

u/dsk Jul 19 '16

And many of them should still be desktop software.

The product we sell to hospitals is a web-based application (hosted on-site) - it would have been easier to write it as a native app, but hospitals wouldn't want it. If they can help it they don't want the bother of deploying and managing it on hospital workstations.

So there are some real benefits to having a web application instead of desktop applications.

→ More replies (3)
→ More replies (9)

25

u/phpdevster Jul 19 '16

It has gotten much harder to learn though. "Back in the day", you just needed to know some limited HTML, CSS, and maybe some JS.

Today you need to know CSS preprocessors, a much more robust HTML spec, how to build responsive sites, build process tools like gulp/grunt/webpack/browserify (all of which in their own right are quite complicated to setup, configure, and use).

Once you understand these technologies, they can empower you to build and manage complex sites quite quickly and efficiently, but the learning curve has gone bonkers.

5

u/Davehig Jul 19 '16

But now, due to legacy support being a requirement, we can't extend those technologies so new frameworks have appeared.

That's not true. We've completely stopped careing about IE9 Soon IE11 will drop off the support spectrum too. Plus those things are always being extended with Javascript ES2015 and ES2016.

The reason frameworks pop up is because if you build anything of any complexity you're going to need some way to organise your code in a sensible way, so you'd end up building your own framework anyway and probably end up releasing it for others to use.

6

u/Berberberber Jul 19 '16

We've completely stopped careing about IE9

Hahahaha

Soon IE11 will drop off the support spectrum too.

Stop, you're killing me!

Seriously, I think every third major project I do still has to support IE 8, because there's always one person that needs it to access some other proprietary legacy intranet application, and that person is too slow to understand the concept of having multiple browsers on their machine.

3

u/Davehig Jul 19 '16

At work last time we checked I think 3% of our traffic was on IE11, and IE9 wasn't being used at all.

Sure it sucks to have to support old versions of IE because the CEO's mother uses it and he wants the site to work for her, but by most measures for a regular public-facing website, anything earlier than IE11 can get stuffed.

5

u/[deleted] Jul 19 '16

Web programming hasn't gotten more harder just more voluminous.

I'd argue that some of the web standards (HTML, CSS, JS, HTTP) have grown a lot in terms of functionality, which you of course don't necessarily have to use... but people like using new shinies, which leads to more complex HTML, JS and CSS appearing in production systems.

I would also attribute part of the rise in complexity to the fact that we use browsers for a lot more varied tasks today as opposed to when browsers were in their infancy in the 90's. Back then, the vision (as far as I can guess, I was not even ten years old when I started using the internet in the latter half of the 90's) for the heavy lifting to be done by desktop applications. Not a bad idea, for a world of one or two dominant operating systems, but quite a bit more difficult in today's fragmented consumer tech landscape.

Thirdly, there's also the fact that the development ecosystem around web programming has experienced changes comparable to the changes in China post-Deng Xiaoping reforms or the Meiji-Taisho-Showa era industrialization of Japan. (for those missing the historical references: what I mean is it has changed a lot)

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.

42

u/jesusalready Jul 18 '16

Last I was heavily involved in front-end development was ~2008/2009. Then it was straight JS with some jQuery help.

A project pulled me back into the front end late 2014 and hasn't let up.

Node. Gulp. Bower. Less. Angular. WTF is going on.

I joked that JS devs wanted more money and job security by creating all these different tools. Pretty much was told I was not wrong. Half these things feel like black boxes with poor documentation so that when something really goes wrong it can take several days to fix the problem, especially if it's affecting our build, etc.

6

u/everywhere_anyhow Jul 19 '16

Half these things feel like black boxes with poor documentation so that when something really goes wrong it can take several days to fix the problem, especially if it's affecting our build, etc.

I don't understand at all how you can say these things, as those projects are open source (the opposite of a black box) and have excellent documentation.

It seems your complaint might be with open source itself, where the warranty indeed is, "if the code breaks, you get both pieces". It can take days to fix problems in the build, that's true -- but you're not comparing this against your alternative, where the answer in some cases is either the same, or that you wouldn't take days to fix the build because some functionality you wanted was never possible in the first place.

10

u/hungry_for_laughter Jul 19 '16

I joked that JS devs wanted more money and job security by creating all these different tools.

See, I don't get this, because those things are all standard features of desktop or mobile development too. Web development isn't unique in having these things, it's just that they were added in later as the web went from a document system to an interactive application system. It's like saying "Desktop development is so crazy -- OpenJDK, Maven, Swing, XAML, Mono, WTF is going on? CPython and PyPy and pip, why's Python so unnecessarily complicated?"

3

u/jesusalready Jul 19 '16

Hence the joke (I agree not a very good one). So much had changed in ~6 years with how the front end was deployed as part of web application with all of these new tools, frameworks, etc. competing for attention. Some of the tools still seem immature to me (especially the build ones - I hate grunt), but I have enjoyed using quite a few frameworks and LESS / SASS is what I never new I always wanted for CSS.

0

u/[deleted] Jul 18 '16

[deleted] — view deleted comment

5

u/jesusalready Jul 19 '16

What happened to our front end team is that they found some node plugin that they just had to use. What it ended up doing once they added it to grunt was that it took our build from ~90 seconds to 4 hours and in the case of Jenkins, killed it altogether. They had a blessing from up on high so we had to get it to work.

Turns out the poorly written grunt plugin was scouring the entire HD twice each build because of a badly written wildcard somewhere deep in the source. We refused to fix it. Turned out they really didn't need it that badly after all.

4

u/[deleted] Jul 19 '16

The nice thing anyways is you can safely ignore a lot of it. There's a strong push towards just using as much vanilla Javascript as you can.

Node -- well if you're going to use it for server side code... please don't. Unless it's something so small it doesn't matter. If you're going to use it for running stuff like NPM or other task running stuff, at least that way it's only hurting you and not anyone else. It is nice if you're going to use something like browserify or webpack.

Gulp -- don't see the point at all. I use VSCode a lot nowadays and it's task runner works fine if I ever have anything more complicated to do than just compile typescript, which I don't.

Bower -- I also don't see the point in massive dependency chains just for a fucking website/web app.

Less -- And I'm fine with writing plain old CSS (although if you're maintaining huge projects, there's something to be said for having variables in CSS). Although I would like to say I really like Jade for HTML templating.

Angular -- I guess this is a stand in for all the client side JS frameworks. I agree they are pretty overwhelming, but for many tasks they're kind of overkill. Angular especially is the kind of thing that forces you to do everything else the 'Angular way' to make anything work, and it's annoying as fuck. Not easy to drop into an existing project. React is slightly better if you like loading 150kb of JS with your page.

When I do have to do web stuff, I've gotten down to a very simple set up now. I've been using Flask as a server side framework, and then everything is pretty vanilla from there on out except for TypeScript. I've messed with, from that point on, the ability to add in React if I need some seriously strong JS client side stuff done, but I think you often don't, and like I mentioned, Jade for HTML templating sometimes can go nice with the Jinja2 engine for Flask.

Even JQuery there isn't much reason to include nowadays if you're going to write plain JS/TS. I've never had a serious issue with DOM manipulation in modern JS.

Even though I defended web developers somewhere else in this thread and got shit on for it, and I would defend it as just as 'valid' as what any other developers do, the thing to remember is a lot of that community has been fueled by people that didn't really know what they're doing, and the obsession with buzzwords (especially the ones the JS community loves to integrate from the Ruby community... which has all the same problems) and the complex tooling kind of reflects that.

2

u/FarkCookies Jul 19 '16

How is it principally different from desktop programming? Same ingredients: server, build scripts, package management, app styling, UI frameworks.

8

u/StrangeWill Jul 19 '16

Node. Gulp. Bower. Less. Angular. WTF is going on.

You're completely free to not use any of those tools. Problem is the only approach to fixing the needs that these tools fix without them is to go back to the drawing board on how websites work.

HTML sucks, browsers suck, client side scripting sucks, but it sucks significantly less than it used to with large code bases thanks to these tools.

15

u/vytah Jul 19 '16

You're completely free to not use any of those tools.

If I could rewrite the entire project from scratch, that is. I'm describing what I encountered when I joined the project, not what I picked.

4

u/TarMil Jul 19 '16

You're completely free to not use any of those tools.

I wish. But many libraries I need rely on them.

1

u/cockmongler Jul 19 '16

You're completely free to not use any of those tools.

You mean run ublock to disable unnecessary JS?

0

u/[deleted] Jul 19 '16

[deleted] — view deleted comment

7

u/[deleted] Jul 19 '16

It sucks indeed. Because SGML was the worst possible option back then. Failed to separate presentation from the structure from the very beginning.

0

u/[deleted] Jul 19 '16

[deleted] — view deleted comment

8

u/kenfox Jul 19 '16

JSON is also a tree.

→ More replies (2)

3

u/[deleted] Jul 19 '16

It is only marginally "nice" now and only after decades of evolution. With all the redundant complexity generated in process. All of this because of the initial ill choice.

1

u/[deleted] Jul 19 '16

Some of them are worth using and some are not. It's just hard to know because there is a lot of competition. But competition is good in the long run

1

u/Funktapus Jul 19 '16

I think it's one of these situations(relevant obligatory xkcd).

They are supposed to simplify front end development... but the result is terrifying.

→ More replies (16)

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.

10

u/solatic Jul 19 '16

what's the alternative

Java was released in 1996 with the goal of write once, run anywhere. One codebase whose compiled code runs on any platform without change. Apart from the bastard child of JEE, that has largely succeeded, and I can run a compiled .jar executable anywhere I have Java installed - desktop, server, Windows/Mac/Linux, different processor architectures... anywhere but mobile, because Apple and Google both told Sun and then Oracle to fuck off.

Qt was released in 1998 with the goal of write once, compile different binaries for each and any target environment, run anywhere with these different binaries. Again, it largely succeeded - Windows/Mac/Linux, different processor architectures, etc... there's kind of support for Android/iOS/Windows Mobile, but as anyone will tell you, the lack of official blessing from Apple or Google will make your life difficult.

The truth of the matter is that Apple and Google profit off this proprietary crap and that's the real reason nothing changes.

7

u/x2040 Jul 19 '16

I think the future involves what Google is doing, with native apps that download partially when someone clicks a URL.

2

u/hippydipster Jul 19 '16

Are they building in the feature that it always dies before the download finishes?

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!

0

u/MikhailEdoshin Jul 19 '16

huge unreadable javaScript file

... and undebuggable :) I personally dropped webpack and babel with their nice .jsx syntax for React and write plain JavaScript. It's both faster (save the file and reload the page) and I can see real line numbers if there's an error.

It turned out to be quite good even though React calls are now more verbose. Syntactic sugar is overrated :)

12

u/IbnZaydun Jul 19 '16

Or you could have your build tool generate a map for your compiled JS and have both a nice compressed artifact, debugging and JSX.

→ More replies (1)

6

u/useablelobster Jul 19 '16

If you are using a build process you can normally generate map files, which allow debugging of the pre-processed files.

Compiling typescript to es6, and then transpiling it to es5, while debugging the typescript files is a thing. The debugging isn't perfect though, chrome gets confused with captured this references in arrow functions, but it's still very useful.

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.

34

u/forreddits Jul 19 '16

A small nitpick, Kotlin and Scala compile to JVM bytecode not Java.

18

u/Nilidah Jul 19 '16

^ thats an important differentiation to make.

7

u/_zenith Jul 19 '16

Exactly! Sharing a VM via bytecode is a very different thing indeed to sharing a VM via source transpilation!

If it WERE via bytecode, you be able to have PureScript calling TypeScript and vice versa and the like. That's one of the core advantages to sharing a VM - if you don't like the language, or its ill-suited to the problem domain, no problems.

Not so for transpilation - you are limited by the host language. Sure, you can transform some non-language-native constructs, but that can be pretty tricky to do compared to just emitting the right bytecodes (and usually a lot slower and jankier too)

4

u/joshlemer Jul 19 '16

As well Scala has a growing compile-to-JavaScript community, Scala.js

1

u/alexshatberg Jul 19 '16

Nothing will surprise me after asm.js.

1

u/Voxel_Brony Jul 20 '16

And Kotlin is designed to do so

12

u/mabnx Jul 18 '16 edited Jul 18 '16

Well... Initial releases:

JavaScriptReact 3 years ago
JavaSpring 13 years ago
→ More replies (2)

4

u/MrOnodera Jul 19 '16

And when you work as a fullstack developer, with AngularJS and JEE, you get the best/worst of both worlds. Life is good. But being fair, it's up to the developer (and managers/clients) how complicated things get. Same thing can happen in different stacks. You are not forced to keep up with every new technology that comes around.

1

u/kingdaro Jul 19 '16

Vue.js is pretty great. It's pretty similar to Angular, except really lightweight and a thousand times easier to pick up and get into.

1

u/camelCaseCondition Jul 20 '16

I use Ractive.js, which I think has the exact same mission (be like Angular, but modular and lightweight). I recall seeing Vue.js pop up quite a while after, but I haven't tried it, so I don't know how I feel about it in comparison to Ractive.

-2

u/stfm Jul 18 '16

We use angular and Java at our work. Java does the API's

0

u/[deleted] Jul 18 '16

[deleted] — view deleted comment

8

u/[deleted] Jul 18 '16

It's not but whenever anybody talks about React in this context they're talking about the React stack and it's easier to just refer to the stack as a framework.

→ More replies (7)

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.

3

u/cockmongler Jul 19 '16

Well, until the dev environment goes down 3 times a day due to stochastic package deployment.

1

u/[deleted] Jul 19 '16

That problem can be ameliorated by using low discrepancy packages

1

u/cockmongler Jul 19 '16

So no Node then.

4

u/eluusive Jul 18 '16

I don't know why you're being down voted. You're absolutely correct.

2

u/qervem Jul 19 '16

Can confirm, am one of those.

1

u/[deleted] Nov 25 '16

frontend hipsters

Haha, perfectly describes the front end shopify interns at my university.

More power to them, maybe im just dumb but flip flopping between all these different poorly document and poorly explained frameworks is a nightmare for me. Being able to do that is a whole marketable skill by itself.

0

u/[deleted] Jul 19 '16

[deleted] — view deleted comment

2

u/eluusive Jul 19 '16

I had a similar experience to you with ASP.NET WebForms. I had to work within that beast for 2 years before I convinced management to let me rip it out. Our velocity went through the roof afterwards. Frameworks can be potentially very useful if their abstractions don't get too specific -- but people always want to add in every bell and whistle -- whistles and bells they only use once in their app and don't need abstracted in some terribly generic way.

0

u/[deleted] Jul 19 '16

[deleted] — view deleted comment

1

u/EmperorOfCanada Jul 20 '16

Most CFOs that I talk to ( and I talk to a lot) are sick of paying out for endless projects that never deliver. Usually with one of two patterns: a great bunch of guys who get in way over their heads, or scumbags who just charge too much for too little.

Only once in a while does a CFO tell me, we write reasonable cheques and get reasonable software

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.

  • It's important to choose a platform, stack, and language that is popular for support, labor availability, and stability.
  • JavaScript, as a language, has so many issues.
  • JavaScript tooling may have as many issues as the language.
  • We can't get away from JavaScript.
  • JavaScript is slow on mobile.
  • JavaScript can do darn near anything you can imagine.
  • Downloading a boatload of JavaScript, parsing it, and then executing it is slow on desktop and even slower on mobile.
  • Java is the most popular language in the world, it's well designed, but its' future is in doubt because Oracle is being ridiculous.
  • PHP seems to be the language serving > 90% of the domains on the web but, everyone slams on it and it seems to be in decline. To be fair, most of the issues from the past are fixed and some minor ones left will be fixed soon. But this does not make up for the industry moving away or avoiding it. I realize the statements in this bullet item seem paradoxical. To be honest, I don't understand the apparent contradictions myself.
  • Neither PHP or Java can be used in the browser because neither of them are JavaScript.
  • JavaScript on the server (Node.js) seems to be in decline or at least plateaued. This makes me sad.
  • We need to be able to test our code, but testing JavaScript across all of the browsers is a monumental headache and possibly not fully practical.
  • Having tests for browser side code and server side code in different language seems daunting and not terribly practical.
  • Having validations on the client side and then duplicated validations, in a different language on the server, seems like an utter disaster of a situation.
  • RoR, Python, Clojure, and friends are not a candidate due to reasons.

22

u/yogthos Jul 18 '16

RoR, Python, Clojure, and friends are not a candidate due to reasons.

I think that once language gains enough critical mass, then it's completely irrelevant whether there's another languages that's more widely used or not. The concerns with using a niche stack are usually the following:

  • is the language stable/fast
  • does the language have a community around it that will provide support, fix bugs, add features
  • are there libraries to do the things I need to do
  • are documentation and community support available
  • is it possible to train new hires to work with the language

If I have a satisfactory answer for each of these categories, then I think the stack is perfectly viable.

My team has been using Clojure on the backend for about 6 years now, and we started using ClojureScript on the front-end last year. We found that Clojure/Script stack has a good story in each of the categories.

While it might remain a niche stack, it's certainly a very competent niche stack that saves us time and money across the board. So, the choice between waiting for the Js stack to become sane and using something that currently works well is really not a hard one in my opinion.

52

u/Timbrelaine Jul 18 '16

The solution is to wait for WebAssembly, and try not to develop a drinking problem in the meantime.

26

u/hotel2oscar Jul 18 '16

cracks open a can of beer

oh wait... don't develop a drinking problem...

fuck it

drinks

8

u/crabmanwakawaka Jul 18 '16

this is probably the best advice i've seen

3

u/propelol Jul 19 '16

So you write your code in one language, then compile it to WebAssembly and JavaScript, then you need to check if the browser supports WebAssembly, and if it doesn't you have to serve the javascript version. This is going to be the case for the 5-10 years after WebAssembly gets released, which is going to take some years to come out.

1

u/Timbrelaine Jul 19 '16

...this is the exact situation my previous comment addressed.

13

u/TheOtherHobbes Jul 18 '16

The problem is the web was never designed as a standard. It sort of grew randomly, with input from all kinds of people pulling it in all kinds of directions for all kinds of reasons.

Now it's a jack of no trades. Page layout is still ugly and messy, text support mostly works if you don't mind converting font files, markup can't decide if it's a half-finished object-oriented relic or a premonition from an alternative reality where the semantic web really happened, CSS rendering is ugly and messy, animation is kind of random (CSS? js? a framework? a different framework)... and then there's the explosion of opinionated frameworks which try to fix all of the above, but mostly just make things worse because they add another layer of inconsistency and confusion.

Also, node.

And a good handful of culty little cleverlangs that get a lot more PR than use. (Clojure - you.)

Someone should just tear it all up and start again. Make it a VM with one standard media library, define the VM so it can interpret all kinds of languages instead of just one, and leave it to ferment. Make web pages code instead of markup+whatever_the_hell_CSS_is.

Will this happen? Not on the flat web.

But my guess is the web will go VR/AR in a year or three and we'll see it happen because of that - evolving in parallel to the flat web, which will go the way of plaintext after a decade or two.

3

u/dv_ Jul 19 '16

Oh absolutely. It is for example evident when you compare the ugly HTML/CSS/JS mess with something like Qt5's QML, which can achieve the same UI with much smaller and far more readable code.

18

u/mrjking Jul 18 '16

JavaScript on the server (Node.js) seems to be in decline or at least plateaued. This makes me sad.

https://www.google.com/trends/explore#q=nodejs

Seems to be doing just fine.

Having validations on the client side and then duplicated validations, in a different language on the server, seems like an utter disaster of a situation.

There will always be a difference in validation between front end and back end. Your back end will hit the database and check if a user is already registered, front end can't do that. It's easier to skip most but the simplest front end checks, and just rely on the backend to do it. All front end validation can be bypassed if somebody really wants to. But I do agree, creating rules and having them in one place is the easiest to maintain.

0

u/[deleted] Jul 18 '16

[deleted] — view deleted comment

10

u/[deleted] Jul 18 '16

If the bad rap is deserved, it should not be repaired.

2

u/[deleted] Jul 18 '16

To be fair, ES6 is really nice to use. My problem is with Node, not JavaScript. Single-threaded event based programming is bonkers, especially in today's concurrent world.

0

u/[deleted] Jul 19 '16

[deleted] — view deleted comment

2

u/[deleted] Jul 19 '16

The same could be said about C++11 and C++14, but they greatly improved the programming experience of C++.

→ More replies (2)
→ More replies (8)

15

u/tdammers Jul 18 '16

What you describe has been dubbed "The JavaScript Problem". In a nutshell:

  • JavaScript is not great
  • JavaScript is inevitable in the browser, and it's not going anywhere
  • The alternatives are all just as bad

Other than that:

Java is the most popular language in the world, it's well designed, but its' future is in doubt because Oracle is being ridiculous.

Java's design is not very good at all. It's popular due to momentum, a brilliant runtime (the JVM, unlike Java itself, is an engineering masterpiece), and by virtue of the cross-platform alternatives with similar momentum being a lot worse - PHP is just fucked up through-and-through, using it for anything worth anything is kind of reckless; C++ is fine in principle, but waaaaaay too complex a beast to use for anything that doesn't require the level of control it gives you which is practically everything; C# is too tied into the Microsoft ecosystem.

PHP seems to be the language serving > 90% of the domains on the web but, everyone slams on it and it seems to be in decline. To be fair, most of the issues from the past are fixed and some minor ones left will be fixed soon. But this does not make up for the industry moving away or avoiding it. I realize the statements in this bullet item seem paradoxical. To be honest, I don't understand the apparent contradictions myself.

No; the core problem with PHP is still alive and kicking, and it's not going to be fixed anytime soon. Individual symptoms have been ironed out, but that's just it - PHP only ever patches up symptoms. It's not a contradiction; PHP is and has always been the budget option, and has been coasting on being the only option that didn't cost an arm and a leg in the 1990s.

Neither PHP or Java can be used in the browser because neither of them are JavaScript.

PHP is not better than JavaScript by any metric, and being designed as a DSL for a particular server-side web page scripting paradigm, it is positively unsuitable for other domains (not in the "it can't be done" sense, but in the "why on Earth would you even try" sense).

Java can be compiled to JavaScript, as can a dozen or so other general-purpose languages. The question is whether Java's strengths are worth much for browser scripting, and whether its highly opinionated paradigm is a good fit - my hunch is that the answers are "not a lot" and "not very".

JavaScript on the server (Node.js) seems to be in decline or at least plateaued. This makes me sad.

Frankly, I'm surprised it got this far. JavaScript is a nice little language, and far exceeded the original expectations, but it has a few flaws that are crucial for server-side programming, especially when more stuff is at stake than a garage startup and some venture capital. Node.js has its place, but I believe it is now close to saturating its niche.

Having tests for browser side code and server side code in different language seems daunting and not terribly practical.

Having validations on the client side and then duplicated validations, in a different language on the server, seems like an utter disaster of a situation.

There's a bit of a bias in these statements, namely the implicit assumption that you develop the client and the server in a tightly coupled tandem setup; for a small, fast-moving startup type project, this is probably a good idea, because everyone is going to be doing everything anyway, and reducing the minimum required skill set (and thus head count and bus factor risk) to get the thing off the ground is very valuable; unsurprisingly, this is the kind of project for which Node is immensely popular, and it does quite well in this role. But as soon as things stabilize a bit, and you need to scale your operation to more people than what's practical as one development team (I'd say 3 programmers plus up to 3 non-programming roles is about the limit), you're going to need well-defined interfaces and decoupled sub-projects anyway; at that point, the benefit of being able to reuse code between client and server becomes marginal, and the benefit of using the most suitable technology for either part becomes more important.

4

u/jocull Jul 19 '16

What do you think Node's critical flaws are on the server? Why do you think large corporations such as WalMart are using it to survive Black Friday loads? https://mobile.twitter.com/eranhammer/status/406300408647139328

Asking because I am genuinely curious, not trolling :)

4

u/sandaz13 Jul 19 '16

I interviewed a Wal-Mart dev for a job a few years ago, and we talked about that a bit. His response was that Wal-Mart adopting Node was for infrastructure reduction (read: cheaper), pure and simple. Without maintaining/ managing threads, you can handle way more requests per server, which means less servers needed for peak volume.

1

u/[deleted] Jul 19 '16

What was the alternative to Node.JS in his eyes?

2

u/sandaz13 Jul 19 '16

We were just chatting over lunch, so didn't get into a ton of detail, but I believe that part of their stack was on Java before moving it to Node.js. Based on a preso they gave at a conference last year, sounds like they still have a pretty decent amount of java and other standard enterprise stuff. I'm sure there's places it shines, but I'd be nervous doing any significant financial transactions on node.js, especially regulated ones.

→ More replies (1)

1

u/tdammers Jul 19 '16

Threading model (great until you hit the cases where it's inappropriate; luckily, those are rare) and the callback paradigm (no, promises are not awesome, they're barely enough to avoid goong crazy entirely) would be my top candidates. Lack of a type system is another, but TypeScript looks like a reasonable mitigation approach.

1

u/jocull Jul 20 '16

Many transpilers have or are adding async/await which I'm hoping will deal with some of the promise craziness that can ensue when you have to flip your problems upside down. TypeScript 2.1 will have these and will be able to target ES3+ with them I believe

4

u/dv_ Jul 19 '16

C++ is fine in principle, but waaaaaay too complex a beast to use for anything that doesn't require the level of control it gives you which is practically everything

You do not have to use all of C++. Pick a subset and stick to it. Especially with C++14 and the upcoming C++17, that subset can be quite succinct and functional (or at least functional-ish). Plus, RAII is such an amazing killer feature, no wonder Rust picked it as one of its fundamentals.

10

u/tdammers Jul 19 '16

The problem is that not everyone picks the same subset, so unless you only ever work on your own stuff, you need at least superficial knowledge of all of it. This is especially problematic with an ecosystem like web dev, that is extremely diverse already and lacks unifying principles.

That's not to say it's a bad language overall; it's not. Just not a great candidate for the web.

2

u/dv_ Jul 19 '16

Meh, in my experience, it is not so bad with regards to libraries. For example, a library might be written with templates and generic programming, but that doesn't mean you need to write your stuff this way as well (in fact, writing an application with generic programming is kind of pointless). It all boils down to the API. With a somewhat solid documentation, this becomes a minor issue.

The bigger problem is the new programmer who joins your team, who most likely knows/uses a different subset than what is applied to the project. But: that's what coding guidelines are there for.

1

u/tdammers Jul 19 '16

The latter is what I was thinking of. Working in just one team on just one project for most of your career is not the norm.

2

u/inu-no-policemen Jul 18 '16

The alternatives are all just as bad

TypeScript and Dart work just fine.

3

u/tdammers Jul 19 '16

They do, but they have other downsides. TypeScript looks like it could be the thing though.

3

u/holloway Jul 19 '16

TypeScript and ES6/ES2015 are good choices

Dart is dead in the water

1

u/myringotomy Jul 19 '16

Well we could go to applets again. Javafx isn't too bad, certainly much better than the steaming pile of shit that HTML, CSS, JS, <insert weird framework here>, gulp, node, babel, and whatever else there is.

1

u/tdammers Jul 19 '16

Point in case: framework and build system nonsense are self-inflicted.

The problem with applets is support; JS and the HTML5 stack come with every vanilla mainstream browser, applets require plugins that may or may not be available for a given platform.

Technical merits are just one of many factors, and not a super important one at that.

1

u/myringotomy Jul 20 '16

I thought all browsers supported applets.

11

u/[deleted] Jul 18 '16 edited Jul 18 '16

but its' future is in doubt because Oracle is being ridiculous

You're exaggerating. There's zero chance that Java is going anywhere anytime soon. The only thing negatively affected by Oracle has been Java EE development and they've already reconsidered and will be presenting their proposals for the next version of Java EE at JavaOne in September.

Oracle could probably drop Java EE entirely and it wouldn't have a huge impact on the popularity of Java. Especially since the previous versions have numerous open source implementations and there are plenty of popular alternatives.

7

u/Timbrelaine Jul 18 '16 edited Jul 19 '16

I don't know why you're getting downvoted. There are people still making a good living writing Cobol and Fortran, and companies haven't become any more eager to port their code (and devs) to new languages since. This seems pretty uncontroversial.

4

u/sandaz13 Jul 19 '16

Agreed, Java will be gone 40 years after COBOL is gone. If you think there aren't still production business applications written in Assembler, you're kidding yourself.

5

u/joonazan Jul 18 '16

It's important to choose a platform, stack, and language that is popular for support, labor availability, and stability.

I disagree. There are very high quality libraries with relatively few users, but not for JS. I'd suspect the lack of a solid standard library. It causes even the most respected libraries to have horrible dependencies.

9

u/[deleted] Jul 18 '16
  • We can get away from javascript
  • All turing complete languages can do anything
  • Reasons can be fixed

10

u/minno Jul 18 '16

All hail webassembly!

5

u/stesch Jul 18 '16

AFAIK you can't access the DOM from WebAsm.

4

u/minno Jul 18 '16

I'm pretty sure they're planning it, it's just not in the current test implementations.

5

u/_zenith Jul 18 '16

Yep. It would be utter madness to try and introduce a JS replacement that couldn't access the DOM

6

u/[deleted] Jul 18 '16

WebAssembly's own FAQ states that they're not trying to replace Javascript:

WebAssembly is designed to be a complement to, not replacement of, JavaScript.

That seems like a mistake to me. I'm worried if or when it eventually starts replacing JS that it won't have been designed for it (like accessing the DOM, for example) and we'll wind up with another mess.

4

u/_zenith Jul 19 '16

Yep fully agreed. It feels a bit like they said that so JS proponents don't fight it tooth and nail. It possibly felt like a pragmatic choice at the time of their writing it.

I fully expect that they will transition away from this... Or WebAssembly will die (because why even bother then)

2

u/[deleted] Jul 18 '16 edited Jul 18 '16

hopefully, hopefully. one day I want to write browser code in something OCamly edit: yes I know you can do this now with Fable, etc among other things. sort of.

1

u/tdammers Jul 18 '16

FWIW, there's a few Haskell-y languages that are pretty close to being realistic candidates: PureScript, Elm (although that one has a bit of a kindergarten feel to it), and Haskell itself (through GHCJS)...

5

u/tdammers Jul 18 '16

All turing complete languages can do anything

By that logic, we should all be coding in Brainfuck or INTERCAL. Programming language choice has never really been about Turing Completeness, because it's actually quite difficult to design a language that is accidentally Turing incomplete - it is a lot more common to design a language that should be Turing incomplete and have it come out Turing complete by accident: CSS3, most modern SQL flavors, C++ templates, and PostScript, are famous examples.

1

u/[deleted] Jul 19 '16

that's the joke, but in reverse.

2

u/[deleted] Jul 19 '16

Alternative idea, a big name browser like Chrome picks a better candidate for browser-language similar to JS, like say, Lua (please god make it so) and much joy would be had.

Although I would love web assembly, it's taking so fucking long.

3

u/[deleted] Jul 19 '16

oh man lua would be pretty nice. even javascripters would like it.

6

u/nevvermind1 Jul 18 '16

If you interpret that node.js plateau as a sign of maturity, it's not that bad. Actually, it's desirable. You're actually wishing for that kind of plateau for JS, too, so don't be sad.

As a PHP coder, I think PHP is far from declining, but the opposite. I can't convince you of it, because I can't be considered objective due to my career "choice" (PHP dev), but I really do think PHP 7's new type strictness will make it even more popular than it already is. I think. I hope. Maybe.

2

u/billdroman Jul 18 '16

Take search trends with a grain of salt, but PHP's a) declining and b) still much more popular than NodeJS: https://www.google.com/trends/explore#q=nodejs%2Cphp

0

u/[deleted] Jul 19 '16

PHP seems to be the language serving > 90% of the domains on the web but, everyone slams on it

Popularity doesn't really say anything about quality in this space, see Javascript. Pretty unusable without, at the bare minimum, something to allow modules a la typescript, webpack, or browserify.

Don't get me wrong, I love javascript, but it is missing at least that vital component.

But yeah, PHP is popular, woohoo. I'd still rather shoot myself than have to work with it every day.

-10

u/[deleted] Jul 18 '16

JavaScript, as a language, has so many issues.

Then use a linter.

JavaScript tooling may have as many issues as the language.

Its worse actually. People suffering from impostor syndrome often try to hide behind this madness.

Downloading a boatload of JavaScript, parsing it, and then executing it is slow on desktop and even slower on mobile.

Again, this is often tooling failure. More specifically you are probably speaking to NPM dependency hell madness. If so, this is a huge failure of JavaScript as a technology.

Java is the most popular language in the world, it's well designed, but its' future is in doubt because Oracle is being ridiculous.

This is really hard to measure. It appears that JavaScript is probably more popular due to volume of code published, supported, commented upon, and transferred online. However, in the US, there are 7 - 11 times as many Java jobs as there are JavaScript jobs. Many companies find it is easier to have their Java developers write the web code directly or through some large abstraction.

16

u/Astrognome Jul 18 '16

Then use a linter.

That's trying to solve a language problem with more tooling, which is kind of the whole reason JS sucks.

1

u/[deleted] Jul 18 '16

Yes and no. If used correctly, and if strict enough, and if the code sample sucks enough the linter could serve as an unintended training tool on how to be write in this language. It is how I got more proficient in the language, and of course lots of practice.

Honestly, the biggest flaw in this language is trying to be everything for everybody. People who complain about this language focus all their energy on a few sloppy issues that are there for convenience all the while doing sloppy things of their own out of convenience.

The single biggest technical fault in the language is inheritance. It is optional in this language and the language is more expressive without it. The single most common gotcha for experienced developers entering this language is confusing inheritance for scope, which in JavaScript are completely separate and unrelated qualities.

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.

1

u/BezierPatch Jul 19 '16

For instance nobody argues that X is better than jquery much these days.

Huh? People yell that jquery should be dead all the time, that you should be using native js and a handful of plugins instead.

1

u/EmperorOfCanada Jul 20 '16

I won't disagree with you. I don't overly rely on Jq but do use it. There are just a few places where it make things cleaner.

I loved the vanilla.js joke.

What many people miss is that HTML5, SVG, the canvas, mouseover, etc. all are parts of a framework. The best extra bits extend and enhance that framework, not try to replace it while sitting on top of it.

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 is getting unnecessarily complicated

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!

0

u/[deleted] Jul 19 '16

[deleted] — view deleted comment

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.

7

u/[deleted] Jul 18 '16

Indeed, I have found most of the 'architect astronauts' orbit around the overengineering of web applications, most frequently the UI layer.

2

u/[deleted] Jul 19 '16

For some stupid reason, all this web stuff attracts almost exclusively people who find perverted pleasure in overengineering.

I think a part of the reason for this massive amount of different approaches and solutions to problems might be the fact that everything on the web is basically inherently open source. Which encourages people to properly open source their side projects. Which in turn encourages people to do more open source side projects, because it's said to look good on resumes etc.

The result is that a lot of people are scrambling around trying to find things to do that they could share.

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.

4

u/FireCrack Jul 18 '16

I feel exactly the same way. I think there is a comedy sketch about this where someone puts a lot of work into something but the other person just obsesses over some tangential detail.

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.

11

u/the_sound_of_bread Jul 18 '16

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.

Javascript was not a part of my CS degree while Java and C were. I don't know anyone with a CS degree that was taught JS as part of their curriculum. So my assumption based on anecdotes is that it's not usual.

However, I have met plenty of people with BIS / MIS /Some business degree that did learn JS at university. These are the people that get the most excited about the monster frameworks and all things JS.

I like JS, it has its uses and limitations. I think the problem is that for a lot of people JS is all there is to software development and that is all that they ever want it to be.

1

u/Asyx Jul 19 '16

I learnt JS in a web engineering class but everything else used Java or C if necessary as well as C++ and C# to have a look at the major C dialect (so that you know what else is out there).

1

u/TheWix Jul 19 '16

However, I have met plenty of people with BIS / MIS /Some business degree that did learn JS at university. These are the people that get the most excited about the monster frameworks and all things JS.

Were they taught the way most of us learn to program with C/C++/Java/whatever. I found that when I left university was that I learned how to think like a programmer regardless of the language. What I didn't learn was maintainability, good architecture, or really what developing for the web is like. A lot of issues with Javascript aren't necessarily with the language (though the lack of type checking sucks, it's that JS doesn't have a very robust framework behind it so you need to find 3rd party ones to fill that gap, and you are shoehorning apps onto a document reader.

→ More replies (18)

3

u/kt24601 Jul 18 '16

these problems are they same today as they were about 15 years ago.

This is true and depressing. I expect WebAssembly to cause another level of churn.

2

u/[deleted] Jul 18 '16

Very good point.

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.

2

u/IbnZaydun Jul 19 '16

This has nothing to do with web programming or how it's getting complicated. You used a couple libraries that turned out to be glitchy and you ended-up deciding to roll your own solution. Happens all the time everywhere.

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:

  • 80s: The server must do everything! (terminals with large mainframes)
  • 90s & 00s: The client must do everything! (rise of the browsers and desktop OSes)
  • 10s: The server must do everything (cloud based computing)

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.

7

u/tdammers Jul 18 '16

Read up on intrinsic vs. accidental complexity.

8

u/terrkerr Jul 18 '16

but software is pretty democratic, no?

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.

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.

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.

4

u/CptAJ Jul 18 '16

Not necessarily, I think. A lot of people develop for fun or because they feel differently about the decisions made in the existing technologies. This definitely doesn't fit with the "As little work as necessary" argument. I think the argument could be made that javascript has a proliferation problem with many technologies doing the same.

Of course, you don't have to use them. But in today's marketplace, there is a lot of pressure to diversify given that each employer probably wants a different technology.

2

u/[deleted] Jul 18 '16

Doesn't the complexity, by its very existence, point to the necessary-ness of it?

No. Complexity can be redundant.

software is pretty democratic, no?

No. Most of the software is many orders of magnitude more complex and twisted than it should be. And in web it is even worse than everywhere else.

sometimes "over engineer" in software

Not "sometimes", but in 99.999% of the cases.

-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.

1

u/[deleted] Jul 19 '16

[removed] — view removed comment

2

u/brennanfee Jul 19 '16

Nobody ever got into management

I hear that's bad for your health. ;-)

something shiny and appealing they'll quit and move onto the next job

Ah, hit and run coders. I have had to clean up after a lot of those.

-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.

2

u/[deleted] Jul 18 '16

All of the arguments are submitted by different people. And the originator of the question is highly unlikely to be affiliated with the developers of that site.

3

u/Purple_Haze Jul 18 '16

So the argument is guaranteed by design to be incoherent? I am glad I did not waste time on it.

2

u/[deleted] Jul 18 '16

Exactly, it is just some stupid way of structuring comment threads.

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.

template "BorderLayout.html"

loadView "customerHeader.html" into "North";
loadView "customerDetails.html" into "Centre";

loadModel "/rest/customer/"+param.customer+"/name" into "North"
loadModel "/rest/customer/"+param.customer into "Centre"

waitForEvent;

if Event = "EditCustomer" then forwardTo "editCustomer.bas";
if Event = "ShowOrders" then 
	loadView  "orders.html" into "Overlay"
	loadModel "/rest/customer/orders" into "Overlay"
	waitForEvent;
	clearView Overlay;
	endif;

end;