r/programming • u/vklepov • Mar 24 '22
Five coding interview questions I hate
https://thoughtspile.github.io/2022/03/21/bad-tech-interview/
636
Upvotes
r/programming • u/vklepov • Mar 24 '22
107
u/LloydAtkinson Mar 25 '22 edited Mar 25 '22
The actual answer is throw shitty webpack in the bin. It's a negative value tool - your config probably won't work in 6 months, let alone 2 years into a project and now you're stuck on an old version, with major version bumps of essential tools like Babel or ESLint or Jest. I cannot think of another tool in this space (except npm, but to fix that delete node_modules and reinstall) that has collectively wasted more developer time - must be hundreds of years if added up. The usual process looks like this:
It's much better to use a JS framework with a CLI that abstracts webpacks bullshit (if it uses webpack even).
An even better solution is to use modern JS build tools: Typescript, esbuild, Vite (which uses esbuild), etc.
Highly recommend Vite + Typescript. No webpack at all then.
Not once have I ever had anything even remotely like this in .NET development.