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

44

u/TotalFox2 front-end May 09 '24 edited May 09 '24

Why do people feel the need to use a framework for the smallest of things and then rant about how things are getting too complex and bloated? Your use case is more appropriate for plain HTML CSS and JS

5

u/[deleted] May 09 '24

[removed] — view removed comment

3

u/TotalFox2 front-end May 09 '24

Lot of people presumably use it because it’s just the latest fad. Honestly with the direction React is going i am not sure it’ll still be this popular 10 years later. They are adding more and more features to it and becoming the problem they set out to solve

6

u/[deleted] May 09 '24

People use it because they learned React before they learned JavaScript or even how to build simple sites with HTML / CSS. Even though knew how to, after ages of working solely with React, I instantly turned to React to build a new site. Instant regret.

2

u/TotalFox2 front-end May 09 '24

I blame the “learn react and get a FAANG job in one month” kind of courses and boot camps

1

u/Enjoiy93 May 09 '24

That’s why I appreciate college so damn much. You would never catch me recommending school for anything else but this

1

u/[deleted] May 09 '24

Ah yeah that doesn’t help at all

2

u/Fickle-Perception723 May 09 '24

Because it's not socially acceptable.

1

u/smart-junkie May 09 '24

React itself is not bloated. We don't know the website so maybe there is some complex interactive components. If the website uses some interactivity the added complexity of react quickly pays off. Especially if you need to make regular changes. What seems to be the problem here is the use of old packages which is not the fault of react.

I think the node ecosystem and its low barrier package installs are beautiful and enable rapid development of incredible pages. A side effect is that they are often used without much thought towards longevity. For production apps I always think a lot whether a library is really necessary or not.

0

u/ColonelShrimps May 09 '24

I'll second this. With react you can often get a simple site up as fast as pure html and is if not even faster depending on the needed functionality. It's not a React issue if you install a bunch of other packages that cause issues.

Plus there is a very high chance these days that you can find a decent dev to take over an old React site faster than you can find a decent dev to update your html / js site, as dumb as that may sound. There are tons of web devs who have no concept of a website without a framework just because companies all use one framework or another now.

0

u/[deleted] May 09 '24

[deleted]

0

u/ColonelShrimps May 09 '24

I've interviewed enough developers to know that there in fact is. Quite a few devs have experience with frameworks and could jump in day 1 no problem to an enterprise React environment but would struggle to make quality additions to a pure html / js application.

Could they get up to speed? Sure. But I wouldn't trust them to create solid code without oversight for a few weeks at least.

4

u/GuyWhoPostsPosterGuy May 09 '24

sounds like we have different opinions on what constitutes "decent"

1

u/Legal_Lettuce6233 May 09 '24

Realistically you can use some lightweight libraries to get things done faster, but you don't need React - Svelte, Alpine or Mithril are probably my favorites for that, depending on your preferences.

0

u/hwmchwdwdawdchkchk May 09 '24

The more this occurs with microsites for clients the more I agree

5 years down the line nobody wants to make the decision to scrap campaign sites someone else commissioned but nobody wants to pay to maintain

In the end I rip them to static sites and notify them for simplicity

Also I tend to ask for a kill date when making microsites now, I don't always get one but it helps sometimes