Javascript is often horrifying, but it's also sort of refreshing to work in a dynamic language again.

For example, a library I'm using didn't do a thing the way I wanted. No problem - just patch in the way I wanted it to work by replacing the functions on the object's prototype... Swizzling ftw.


I'm sure there's no possible way this will bite me in the ass later.

· · Web · 3 · 0 · 5

@bigzaphod my colleague made a thing so you can add the diff you want to apply to that library in your git repo, and then apply that diff automatically when installing dependencies:

@bigzaphod Me: "Let me do some of these math calculations in the web UI in JavaScript I'm sure it will be fine."

Me 5 minutes later: "Well that was my dumbest idea ever."

@bigzaphod If you're not doing horrifying things with a language's type system, are you even programming?

Sign in to participate in the conversation

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!