r/programminghorror • • Jun 12 '25 • This 1

Javascript Javascript is filled with horror

Post image
2.4k Upvotes

337 comments sorted by

View all comments

Show parent comment

15

u/misterguyyy Jun 12 '25

It does get kind of annoying with events, elements, and 3rd party libraries with lackluster typing. Especially the last one.

All in all it’s a win though.

3

u/FleMo93 Jun 12 '25

Using less 3rd party frameworks? Keeps updating manageable, decrease bundle size and the app is more manageable.   Most of the time when you think about adding a 3rd party framework look into their code. Mostly they are also bloated with stuff you don’t need and can just read and copy the parts you require.

0

u/[deleted] Jun 16 '25

[removed] — view removed comment

1

u/FleMo93 Jun 16 '25

This does not fix the updating problem. If you want to develop your application for a long time. In my current company I took over a large codebase no one liked to work on. One reason was that huge amount of crappy dependencies installed. We were not able to update anything because some dependency does not match a newer version of another one and is not maintained anymore. Now teach your boss why you need to spend a week on replacing that stuff.

3

u/LaughingDash Jun 12 '25 edited Jun 12 '25

Events and elements can be easily typed if you know what you're doing. Libraries without types drive me absolutely nuts though.

1

u/Vinccool96 Jun 13 '25

Thank goodness for the @types/ community

1

u/Keve1227 Jun 14 '25

That, and libraries with "types".

3

u/Vinccool96 Jun 12 '25

If they have those, just rewrite them. Create your own framework.

4

u/g1rlchild Jun 12 '25

"Create your own library to replace something that's been tested and deployed" isn't exactly ideal.

2

u/Vinccool96 Jun 12 '25

That’s pretty much what happens every day with JS and TS