3 ms·
Someone explain to me why you _need_ JavaScript to build a text website?
by exabrial 4y ago
Someone explain to me why you _need_ JavaScript to build a text website?
- somehnguy 4y agoOf course you don’t need it, I don’t think anybody would argue you do. The article even acknowledges that in the 3rd sentence :) Personally I use Next/React along with all the fun stuff that goes with it for basic personal sites because it’s the same stack I use at my day job and I can be productive quickly. The skills are transferable, I frequently learn something while working on a personal project that I can apply to a work project, and vice versa. That part is very valuable to me.
- benatkin 4y ago> The skills are transferable Are the big projects using Next because it's useful or because it's trendy? (Maybe that's the wrong word, it's "trendy" with some staying power, like Apple.) Sometimes, particularly when caught in a difficult upgrade cycle, Next is more trouble than it's worth. I'm don't know if that's the case now. It is a marketable skill, that's for sure. I just don't know if you should choose a framework just because it's popular.
- somehnguy 4y agoI think popularity is a completely valid reason for choosing one framework over another. It means I’m more than likely not the first person to run into problem x or need y, and don’t need to reinvent the wheel. That means I can focus on developing useful things instead of getting tangled up in the tech. Which can be super fun of course, but most of the time I need to accomplish something other than playing with fun tech.
- benatkin 4y agoWell, Bright is a good example of this, in the post. Sure, you may need RSC to use it (or at least React). But it seems like it could have be written to support multiple frameworks without losing much of anything. That may be possible in the future because it says it's "RSC-first".
- bottlepalm 4y agoIt's legit useful. Same language on the front and backend. Easily share dtos and libs across server/client. Able to render server side and/or client side. Same template logic on both (React). State is seamlessly transferred from server to client. The compiler creates optimal javascript bundles for every page on your site. SSR, SSG, ISR, CSR - are all options you can choose per page. I've use almost most frameworks out there over decades, currently Next feels like the most productive. My wish list for it includes better static typing of api routes like trpc. A first class solution, like DI maybe for structuring backend code and accessing it via api or props.
- benatkin 4y ago> Same language on the front and backend. Yes, isomorphic JS. With React it can be annoying if you have a component that you never intended to run on the server and you get a hydration warning. It also complicates the decision of what language to use on the backend. It is often useful though.
- MaxLeiter 4y agoI tried to capture my reasoning in the post: > To address the React-sized elephant in the room: you do not need this fancy setup to build a blog. HTML and CSS may be a better choice for you, but I'd find little fun in that, and I'm a strong believer in having a website to experiment with.
- vladdoster 4y agoThe author works at Vercel so this is their bread and butter.
- henning 4y agoWhen all you have is a shitty hammer that sucks, everything looks like a shitty nail that sucks
- runald 4y agoYeah, what's wrong with those people. Don't they know javascript is terrible and not a real programming language, and people should do some deep soul searching before deciding to use it. Oh, every other programming is language is fine. Extra points if it's esoteric and cool. "\/s"