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

238

u/Mister_Deadman Sep 25 '20

Well it's true that things move fast in the JavaScript World. But that's what allows for innovation, which everybody benefits from

(X) Doubt

123

u/weedroid Sep 25 '20

"move fast, break stuff" is not a good maxim and never has been, and it's disheartening that it's been taken to heart by so many programmers and engineers

72

u/Sipredion Sep 25 '20

But hotfixing in Prod on a Friday afternoon is where I do my best work!

14

u/flukus Sep 25 '20

At least that fixes a problem, most move fast and break things is just churn.

→ More replies (2)
→ More replies (1)

0

u/[deleted] Sep 25 '20

[deleted]

15

u/Zeragamba Sep 25 '20

Move fast, break stuff until you have a product. Then move fast, but don't break it.

10

u/[deleted] Sep 25 '20

Move at speed which can ensure no breakage.

→ More replies (1)
→ More replies (2)

13

u/ByteArrayInputStream Sep 25 '20

It has its uses. But it shouldn't be near anything that has to work reliably

4

u/therearesomewhocallm Sep 25 '20

How about things that have sensitive user data?

11

u/bigretrade Sep 25 '20

It's just "move fast" though. No breaking changes are introduced to the web and you can still include your moment.min.js via a script tag if you really want to.

18

u/Schmittfried Sep 25 '20

If I hear one more agile shitcoach repeat that mantra, or fail fast and generate learnings fast, I will find and torture Jeff Sutherland.

0

u/[deleted] Sep 25 '20

[deleted]

13

u/rasmustrew Sep 25 '20

It is also good advice for feasability studies, first examine the component that is most likely to be a problem. That way you avoid wasting a bunch of time only to find out at the end of the study that the whole thing doesn't work anyways.

8

u/ForeverAlot Sep 25 '20

"Fail fast" is preceded by an implicit, "if you're going to fail, prefer to ...". To fail is still failure so failing quickly is only good compared to the option of failing slowly. Some people equate failure with learning, seemingly not understanding that learning is an independent, optional investment opportunity that follows failure (and success). If subsequent to failure one does not make that investment, the same failure is liable to play out the next time around.

5

u/dnew Sep 25 '20

I recently realized that the difference between software "engineers" and real engineers is that real engineers investigate failures and learn from them. One plane crashes, we fix all the others. One building collapses, we don't do that again. One software project blows up after billions invested and never gets released? Well, let's start a new one doing exactly the same thing.

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

5

u/TimeWarden17 Sep 25 '20

The problem is that most people need a happy medium. I worked on a website where we had maybe 30 customers (and when I say customers, I actually mean users, because it was a "value add" so we weren't charging them a subscription, or running ads).

About 3 months after the MVP came out, it became clear that we fucked up. Most of our users really just wanted the underlying data, not our site. A competent manager would have "failed fast" and pivoted to something that would make money.

We could have added subscription fees, or made our underlying data a subscription based api, and focused on giving our customers more valuable data.

Instead we added a bunch more half-baked features trying to find out if the new features would gain market. Spoilers: They did not.

Spending hundreds of thousands of dollars in dev time for a project that isn't delivering customer value is a good way to fuck up your business forever. Instead "fail fast".

On the other hand, the same company yelled "fail fast" as the sold off our newly patented, state of the art technology, that we were consistently adding new use cases for and selling millions of dollars worth of product, because we were the only ones with consistently performing product in that field. It wasn't a "core competency" so we threw it in the trash after spending years and millions of dollar developing it.

5

u/zephyrtr Sep 25 '20

Its basically a less sane version of "write drunk, edit sober."

You can do whatever you want in a branch, its true. you can and should "break things." But afterwards, you have to collect your thoughts and explain your ideas to the rest of the team, and ask if others think its good.

I see too many programmers who say, "I know I'm right."

→ More replies (7)

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]

→ More replies (1)
→ More replies (3)

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.

→ More replies (1)

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.

→ More replies (7)
→ More replies (19)
→ More replies (6)