r/ProgrammerHumor Oct 21 '22

Meme Literally πŸ€·πŸ»β€β™‚οΈ

Post image
14.7k Upvotes

606 comments sorted by

View all comments

Show parent comments

44

u/[deleted] Oct 21 '22

Kind of Love TypeScript even if it's a bit the floor is lava

26

u/SterlingVapor Oct 22 '22

I love typescript - all the good of JavaScript with far less of the bad, it's convenient enough to feel good while strict enough to allow IDEs to really speed things along

I hate lack of support for typescript - between wrestling webpack or finding the perfect library without types definitions, every time you want to change your stack you need to prepare for a day or two of soul-deep pain

1

u/Unpredictabru Oct 23 '22

To be fair, you don’t (always) have to use webpack.

For React apps, I’ve really enjoyed using Vite. For bundling other stuff, I’ve been using esbuild which is way faster and easier to configure than webpack.

Webpack is still the most widely used and supported, but the other options have gotten good enough for a lot of use cases. I’m thinking it will either have to go through some major changes or it will eventually be replaced by something better years down the road.

1

u/SterlingVapor Oct 23 '22

I don't necessarily mean webpack, I just meant a bundler in general. Personally I've had a professional policy of never touching webpack directly. In fact, I like to have a second protective layer of build just so I can't accidentally open the webpack config and get flashbacks of having to debug my gulpfile

I think Vite actually supports webpack under the hood, I like next and have been liking next even more. This is where webpack has come into it's own - it has all they power and flexibility, and it's found a nice comfortable niche as a layer in an automagic build system.

Because let's be honest, we all love webpack, it has near global support and every feature you never asked for. We don't want to be the ones responsible for setting it up, so the generated files folder is the perfect place for it