r/programming • • Sep 25 '20

Modern JavaScript Explained For Dinosaurs

https://medium.com/the-node-js-collection/modern-javascript-explained-for-dinosaurs-f695e9747b70
749 Upvotes

167 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Sep 25 '20

[deleted]

59

u/AnOnlineHandle Sep 25 '20 edited Sep 25 '20

I dunno, as somebody on the web since the start, who thought it was evolving nicely for a long time, webpages lately just suck to use. To the point I increasingly avoid using the web because it's such an active pain trying to deal with.

New reddit on a mobile browser is one of the worst UI experiences I can recall experiencing since the 80s. Constant multiple clicks just to reveal one comment, let alone more clicks and page loads to see full comment chains, constant spam to try to get you to install their app which I don't want near my phone if it was made by the same people as made new reddit, which is saying something when you make one of the more active reddit users of the past decade not want to install the official app.

I think javascript's capacity in the browser is really awesome, to be clear, I just don't like how developers are doing things, and seem to have gone backwards on a lot of UI discoveries. It's not limited to the web either, every version of windows since XP has seemed intent on cancelling out all the benefits of larger resolutions by making all the default tools take up more of the screen real estate. Windows image viewer since windows 7 takes up like 30% of the vertical screen space just for 3 buttons to go back, forward, or full screen. Steam just ditched horizontal game icons this year for vertical icons, despite that being the limited space on the screen, and not adding any more information since the horizontal text is still the same size, and you just end up with a bunch more vertical space per icon. Worse, 20 years of backlogged purchased items didn't get new icons, but the new developers thought it was apparently fine just to make an ugly mess of everything.

TL;DR - There really needs to be a revolution of thinking about UIs as being as unobtrusive as possible again, never having 2 clicks or taps for what can be done with 1, and a return to optimization of not loading unnecessary assets, because even with all the increased processing power, things aren't getting faster, and are often even slower in other ways. This is a big problem on the modern web, but elsewhere too. I'd hoped that the success of Minecraft and iPhones would make people see that simpler is better, even enough to pave over a bunch of other issues.

29

u/DualWieldMage Sep 25 '20

One modern UI element that seriously grinds my gears is the [ON|OFF] button replacing checkboxes. It's not clear which color depicts either state and depending on color choice may have problems with color-blinded people. Also while "on" and "off" are rather universal terms, sometimes it's still required to localize these labels, requiring extra effort.

Yet the good old checkbox:

State is recognizable☑
Requires localization☐
Requires color vision☐
Works without CSS or JS☑

0

u/[deleted] Sep 25 '20

[deleted]

2

u/nirreskeya Sep 25 '20

Preach! Is there a support group for us?

4

u/G_Morgan Sep 25 '20

The only reason they put those big switches in is to imply instant saving as well. You can do that with a check box.

1

u/VincentxH Sep 25 '20

Hahaha, this! I consistently hope that grey means "no" or "of" but it could be either.

1

u/cheertina Sep 25 '20

One modern UI element that seriously grinds my gears is the [ON|OFF] button replacing checkboxes.

Holy shit, yes. Double negative points to iOS where there is sometimes several seconds of lag between tapping the button and seeing it change.

17

u/[deleted] Sep 25 '20 edited Sep 25 '20

To be fair, there is at least some logic to Steam's decision -- devs can re-use their box art for all 3 platforms now.

My main complaint with the new Steam UI is how it is running in an embedded Chromium. Compared to the previous interface, it's way slower and basically worse in every way.

2

u/AnOnlineHandle Sep 25 '20

The weird thing is though they still have horizontal tiles for everything going by the wishlist and play stats, but not vertical tiles for many past sold products.

45

u/[deleted] Sep 25 '20

Mobile experience sucking is intentional, they want you to use the app because you can't install adblock in it.

10

u/Mister_Deadman Sep 25 '20

I never thought about that, now it makes sense

13

u/Gropah Sep 25 '20

Thank god for DNS based adblockers like adguard and pihole.

3

u/agumonkey Sep 25 '20

so progress is now called html3

2

u/chucker23n Sep 25 '20

Kind of a weird loophole that, between Content Blockers and Intelligent Tracking Protection, the privacy of web apps on iOS can be better than in apps from the App Store…

3

u/gremy0 Sep 25 '20

My piHole says otherwise

1

u/[deleted] Sep 25 '20

[removed] — view removed comment

1

u/[deleted] Sep 29 '20

I know, but most people don't. They don't need 100% conversion.

→ More replies (18)

24

u/BruhWhySoSerious Sep 25 '20

Respectfully, bullshit. If you work in an org who takes security seriously, then js/npm still has massive problems. It's a giant coupled mess that takes a senior level dev to to their hair out rewriting webpack because dependencies are just tossed around in js. Shit like single function one liners that support 4 out of 5 frameworks. And yes it does happen everywhere but it's not nearly as coupled or often.

6

u/chucker23n Sep 25 '20 edited Sep 25 '20

it isn't as bad anymore

It's still pretty bad.

For one, I still can't create an ASP.NET Core project in the latest VS 2019, add TypeScript files, require some modules, and have things just work™. It doesn't come with reasonable defaults at all. Instead, it has me pick from five different module systems, plus "None". If the .NET ecosystem were remotely like that, it'd be laughed out of any enterprise.

And second, the rate of deprecation (implicit or otherwise) in the JS ecosystem is just absurd. You simply cannot explain to a client that, oh, bee tee dubs, that system we built for you just three years ago, for six figures? It's already obsolete and we need to rebuild it for another five figures. It may be fine for a hotshot 22-yo hackathon attendee, though.

0

u/[deleted] Sep 25 '20

[deleted]

1

u/zephyy Sep 25 '20

this meme is outdated. sure there's new frameworks being created but how many actually end up being used?

front end frameworks? angular is a decade old. react is 7 years old. vue is 6 years old. the only new thing on the scene that has gained any momentum is svelte but react still dominates everything.

6

u/dnew Sep 25 '20

angular is a decade old

Which version of Angular? ;-)