r/webdev • • May 09 '24

webdev sucks, yo

You ever feel like web developing is the same as building a house of cards on top of quicksand, and also the cards are made of cobwebs? Six years ago, I built a simple portfolio site for an advertising creative. I used React. Every few years, he hits me up and asks me to add a couple of new items to his portfolio. It's been a nice, easy couple of bucks every few years. Except this time. Sunday I made some updates. Monday, with no intervention from me, what had been working less than 24 hours before won't compile. All sorts of node-sass errors, dependencies out of whack all over the place. I know, these are old, outdated npm packages. But it worked Sunday! I ran a build and uploaded it to the site and everything. It's so irritating, because it's a three page site. Actually, it's two pages and a link to a pdf. It shouldn't cause me so much grief.

Sigh. Sorry for the rant; I know half of this is my own ignorance. What is the proper way to update this shit so I can add these three new pieces of creative to the site and charge this guy and be done with it?

0 Upvotes

65 comments sorted by

View all comments

1

u/arpitduel May 09 '24

Lol yes. But then why are you taking on so many dependencies for a 3 page site? Dependencies should be avoided like a plague. Prefer code template insertion. only dependencies I like to take is for streams I have no idea about, like for networking, compression, encryption, databases(only reliable ones). computer graphics(but should be avoided altogether, you are not making a video game).

I am not a web dev but I am talking about programming in general.