by askyourmother · 10y ago · 0 comments
Can't believe this comment made it to the top.
This may be hard to understand if you are still in love with Javascript.
Looking back, I view this as a pro. You get to work on more projects that way. I spent five years working with an "ideal" manager that trusted coders to make the deadlines. When I look back on that, while it was the only time I've ever gotten to code things to "perfection", it was also a big black hole of working on a single project for way longer than it really needed.
Of course there's a limit beyond which the lack of polish and finish makes everyone less happy.
Very insightful. Wondering why it is not discussed more often with so many snake oilers selling their silver bullets.
Most business training still seems to rely on parables and cool stories, larded with huge doses of Standard Business Vocabulary to make it convincing (win, compete, achieve, aspire, excel, lead, inspire, and on and on.)
If people really knew what they were doing there would be a lot less noise and a lot more quiet wise action.
Why? Social and political problems are really hard to solve. If you can use technology to sidestep them, that's exactly the right way to do it.
Say there's 20 pounds of work for 10 pounds of (recently downsized) people across multiple departments. The way you'd like to see technology work is turn 20 pound of work into 10 or less pounds of work for the entire company. The way technology is actually used in the real corporate world is your boss has you automate procedures and policies such that you push work out of your department and onto even more overloaded competing departments. That's how the strongest competitors are determined for promotion and bonus.
To some extent its a startup vs old company problem. Trust me, if technology could be applied to solve the whole company wide problem, grandpa would have already done it with punchcards decades ago, the only innovation that happens in old companies is pushing work and blame onto other departments. Hey, I have a number that proves we're now better, and that's all that matters.
The other way it works is as a weapon / scapegoat. They don't wanna work with us and I don't want to force them, or can't make them. But I can tell my programmer to change the bounds checking on that input field and they'll be forced to cooperate or shut down. If it works and they cooperate with us, I'll take the credit, if it fails, I'll blame and fire the programmer. Or if you don't want them to work with us (as in dump work on us) the programmer can sabotage their system, and again you can guess the different pathways for reward and punishment.
As an example where my optimism is warranted: broken builds. You can either make it a `people problem' and tell people to be super careful; or you go for the technical solution and automate the whole thing, so that only commits that build and pass tests get merged into master.
Of course, there's no office politics in my example; so this was easy.
The humble spreadsheet liberated white collar workers to do automate simple (and not so simple) calculation tasks themselves. No begging the computer folks necessary any more, who can hold your department `hostage' at will.
You can bet that from the point of view of spreadsheet adopters, they sidestepped a whole host of political problems.
If you sidestep the problems entirely, sure, but I think that's the minority of cases where a genuinely hard social/political problem exists, a technical approach attempted, and the outcomes measured. We can all readily recall Uber as an example in the positive direction. What we are worse at is seeing or recalling the hundreds of times humans struggled with a technical solution that hacked away at the visible leaves while the root remained unaddressed.
Until recently it was quite the absolute worst experience of software ever for me and I used DOS and Windows 1.0.
Every time I realized I had to use npm I would be filled with deep dread and the knowledge that I was about to have my time burned in a bonfire of errors, confusion and complexity.
Someone needs to make a sincere apology for npm.
Why has it not bothered me lately? Either it has been improved or I am using it differently somehow.
Try Haskell or an ML. Heck, even C# isn't that bad these days.
JavaScript's just a minefield of pitfalls. To be fair, it was designed in 10 days, and progress on it has been slow to say the least. (Hence the silly crap like having a "left-pad" thing as a 3rd party "module" instead of part of a proper stdlib.)
Other stuff like using "function" as the lambda identifier just make me shake my head. Or not having integers. Just poor decisions all around.
Generally, unless you're doing systems or realtime programming, or you are writing a serious fast path for a lot of data, the only reason you'd need more than the very basic features present in every programming language is that you're trying to do something more complicated than you should be.
Many programmers seem willing to take on almost any amount of complexity in their toolchain if it will allow them to express an idea in a slightly more concise way. I would prefer to stay much closer to the basics and just take the time to make really beautiful and powerful functions, rather than rely on a rickety stack of concepts that, if not confusing to me, will be confusing to many of the people who end up interacting with my code.
== vs ===
No integers.
Assignment is declaration.
Prototypes.
Curly brackets & semicolons.
Semicolon insertion.
It may be flexible (in the sense that an Alfa Romeo driven into a telephone pole at 120 mph is flexible), but it sure as heck ain't effective. JavaScript is the great shame of the computing industry: that it exists, and that it is used, and that it is used in more than just the browser, is an indictment of our entire profession.
JavaScript: take off and nuke it from orbit. It's the only way to be sure.
JavaScript: you'll envy the dead.
JavaScript: a mistake, carried out past the point of absurdity.
My problem with people who say such things is that they almost always have been saying the same thing for many years, while the language itself did several 180° turns and backflips.
"Classes are stupid, we don't need them!" "Look, we have fake classes in ES6!" "Asynchronous code is awesome!" "Asynchronous code is horrible!" "Prototype mutation is awesome and powerful!" "Everything should be functional and immutable!"
If someone considers the current direction of JavaScript good, then they should have considered several previous directions absolutely idiotic. If, however, they are simply oblivious to the incessant flip-flopping of the "mainstream" JavaScript, their opinion about quality of any language is worth very little.
https://www.jwz.org/blog/2010/10/every-day-i-learn-something...
Flexibility is good for frameworks, not for languages.
I read once a list of good and bad adjectives applied to paintings by Chinese painter Shi Tao. In the same vein here is my list for our topic.
Good computer languages are:
- Expressive, readable, memorisable, deterministic, stiff, simple, obvious, clear, concise, precise, sharp, smooth, pedestrian, regular, parsable.
Bad computer languages are:
- Obscure, arduous, terse, stark, viscous, flexible, lumpy, bumpy, redundant, verbose, restrictive, poetic, foolish, extravagant, awkward.
(This is not to be take too seriously, but just this: all built-in "flexibility" in languages leads to nightmares)
Serving pages rendered with node via webserver (nginx, apache) is not the most pleasant experience compared to e.g. python + wsgi
npm packages are not packages. It is simply a dependency definition + repository. Pull in package from npm and it is nowhere near usable until you figure out where it actually puts the files you care. You only know it's somewhere in `node_pacakges/`. Compare to e.g. gulp or python pip. You just pull in a package and it's usable.
Not usable for what? All you need to do is `npm install package` then in your project `const package = require('package')` and it's usable. Also, it's `node_modules`, and gulp itself is a task runner for... Node, so I don't understand your point there.
so you regret writing anything modern for the web?