Hacker News new | ask | show | jobs
by l30n4da5 1464 days ago
> Even the source of node it’s just a bunch of function from pre-ES4

Old code does not mean bad code. Seems like a silly thing to look at, honestly.

A bunch of java was written pre-java8, does that make it all bad? No, no it doesnt.

2 comments

New language features are for new code.
agreed. but old code really doesnt need to be rewritten unless there are bugs.
Or there are optimization opportunities, but new language features are rarely for that, it's usually for developer comfort.
In most scenarios, new ways of writing the same code is a waste of time. I actively discourage use of things like type inference in newer Java versions as it goes against the purity of the original vision of the language. It's a detriment to mental agility, and it also makes scores of incredibly useful, deep books and learning resources outdated and useless.
How exactly does incessantly repeating yourself, in situations where the compiler is already perfectly aware what you're supposed to say, a "detriment to mental agility"?

And how does it make books and learning resources outdated and useless? Old code still works exactly the same as it always did.

being overly dogmatic when it comes to writing code is not a good thing, imo.