Front-End Developer Handbook 2017
I did LAMP+HTML+JS+CSS stuff back in the day, but most of my work and hobbies over the past six years has not involved front-end.  I only recently got back into the scene.  I've dabbled with React and crew in quite a few hobby projects now and, at this point, I just find the whole modern front-end development stack completely wacky.I always liked Javascript as a language, but like everyone else had the scars to show for its thorny bits.  Looking at the modern stack from afar left me fantasizing about all the painful points in Javascript being fixed.  ES20XX, Babel, webpack, npm.  Wow!To be honest, a lot of the modern stack _is_ nice.  But for every step forward these tools take, they take two steps back.We have a nice package manager, npm, yay, but what happens when I `npm install -S bootstrap`?  Nothing.  Oh sure, it installs it, but how do I _use_ it?  It's tossed in node_modules, where there's no sane way to reference it.  I ran into this problem immediately, on my very first hobby project.  It's now two years later, 2017, and it's still a problem that requires googling around, sifting through old answers, and finding the hack that I find least painful.Breaking up libraries into manageable sub-packages.  Sounds great.  It's fundamental to strong development.  But usually you have a master application/library that references all the pieces, if the pieces were meant to be part of a coherent whole.  But front-end devs?  shrugs You just have to include everything by hand.  Has seriously no one looked at their package.json in a simple TODO app and said "Something is wrong here"?  How is a 20-30 line list of dependencies normal for the most basic of applications?  It isn't.  It's isn't maintainable.  No one is going to remember all the packages they need to include each time they start a new project.  They're doing what I'm doing; copy paste from the last project, like some holy script scrawled by ancient masters from long ago.Fancy new JS language features are nice.  `for of`, `for in`, filter, map, etc.  But seriously I can't use ``?  I have to use binding magic, special function definitions, etc?  Because _nobody_ has to register event handlers, right?  Geez.  And why did they spec a standard for classes, finally, but not static methods and types!?  That had to come in another version later, leaving yet another legacy of out-dated documentation?Webpack, like everything else, is an improvement by the numbers.  Writing modular javascript and getting it packed into a bundle is nice.  Almost like a real programming language!  But why do I have to write a cryptic webpack.config.js for every project?  Why do I have to install Babel and webpack separately?  Why do I need to install 3 other babel related packages?  Why do I need a .babelrc?  It's just insane.  There should just be one tool, one command.  "modernjs build".  Done.  Break that one tool into sub-libraries/sub-tools underneath, I don't care, but when I'm building fancy Uber-for-breastmilk Web 2.0 SPA, I'd rather focus on UX than spending my evening configuring compilers to what should be their defaults.The most frustrating thing, and a common theme, is the amount of times I need to Google things while developing with the modern stack.  "Oh, ummm ... how do I export/import?"  "How did I configure webpack last time?"  "Errr ... how do you include a bootstrap theme?"  "Was it `in` or `of` to iterate over values...?"  "How do you filter in place?  Oh, you can't ... okay..."  A lot of that sounds like basic stuff, like "How do I export/import", but ya know what?  The way it's implemented in modern JS is just not intuitive.  Call me dumb if you want, but I've dealt with a _lot_ of languages in my time, and JS is the one where I cannot possibly remember the exact magical incantations for specific kinds of exporting and importing.  And really, that's how everything is.  It's just cryptic and non-intuitive.  The underlying concepts of any of these major tools or systems is sound.  The implementations are gibberish.As much as I'd like to say "sorry for the rant", I'm not.  Something is horribly wrong with developer culture if this abomination is what we've created.  There's no excuse for it.  I've heard people argue that all of this is just a result of front-end being in-between stages of its life, and that things will eventually settle down and be stable and usable in a few years.  But you know what?  Rust, a completely new and modern programming language, went from nothing to a thriving ecosystem in just a matter of years.  It was driven by Mozilla, hardly the largest company.  Meanwhile MASSIVE companies like Facebook, Google, Amazon, etc have given us the "modern front-end".  There's no excuse for the ecosystem to be in this state."But you don't have to use all those libraries and tools!"  Of course not.  I could just LAMP+HTML+JS+CSS it up like the good ole days.  It worked then, it works now.  But it frustrates me that there exists tools that _should_ be better.  npm _should_ make life easier.  ES2017 _should_ make Javascript a better language.  I tried out these tools for a reason.  Old school development was painful.  Javascript with modules and packages, reactive UI, state management, etc.  It's all awesome!  I'm not messing about with the tools for no reason.Imagine if I sold you an automated potato peeler.  "It'll peel the potatoes for you in seconds!"  And it does!  But turns out you spend more time cleaning it than you spent just peeling potatoes the old fashioned way.  That's what the modern front-end tools are like.  They take the painful parts of old-school front-end and make them easier, but they add tons of busy-work elsewhere that ends up making things a net negative.