logoalt Hacker News

komeyesterday at 11:39 AM4 repliesview on HN

why don't web devs just learn html and css properly, and maybe xslt for the really complex transformations then use vanilla js only when it's truly necessary?

instead we've got this absolute mess of bloated, over-engineered junk code and ridiculously complicated module systems.


Replies

venturecrueltyyesterday at 5:46 PM

Because then how would they pay their inflated Bay Area rent?

vorticalboxyesterday at 12:50 PM

the issue is not that devs don't know what they are its that they don't pin packages

if you run `npm i ramda` it will set this to "ramda": "^0.32.0" (as of comment)

that ^ means install any version that is a feature or patch.

so when a package is released with malware they bump version 0.32.1 and everyone just installs it on next npm i.

pinning your deps "ramda": "0.32.0" completely removes the risk assuming the version you listed is not infected.

the trade off is you don't get new features/patches without manually changing the version bump.

show 2 replies
lexicalityyesterday at 2:11 PM

Good luck with the XSLT going forward what with Google trying to remove it from the internet.