5 ms·
You know what the issue is? People are so focused on being able to scale their idea to billions of users before they even start building it. So someone today wo
by Alifatisk 2y ago
You know what the issue is? People are so focused on being able to scale their idea to billions of users before they even start building it. So someone today would start using Kubernetes for their website with 5 visitors. I've seen many students use Nextjs for websites that could easily be written with plain html + css, and some chart library.
- tasn 2y agoThe experience of developing a simple website using React is orders of magnitude better than using html and CSS. Reusable components, loops, and separating data from presentation go a long way even in the simplest of pages. Sure, you don't need React, you could use Jinja or any other templating library, but React is pretty good at what it does. As for Next.js, it makes it super easy to develop using React. The biggest problem with React is the JS bloat that's sent to the browser. Though as long as you do server side rendering and don't even ship the JS to the FE, Next.js is a pretty good static site generator.
- Alifatisk 2y agoI miss the old LAMP stack, good times
- Carrok 2y agoThe LAMP stack is still here, waiting for you.
- paddw 2y agoThis. It is way faster to build a decent looking prototype using JavaScript Framework Bloat than shipping something leaner. Performance and maintainability are luxuries that make sense to focus on later. This is in no way analogous to using k8s from the get go, which is a technology focused on being flexible and generic enough to maximize choice, rather than speed or developer experience. Yes, yes, I you want to make a plain HTML form its fast enough, but for a startup 99% of customers want to feel assured by it having a look and feel which simply takes too much time if you are building things up without a framework
- cjs_ac 2y ago> The biggest problem with React is the JS bloat that's sent to the browser. There's a web app I use (ClickUp) where I have to watch UI elements load one-by-one, like I'm back on dial-up or something. I'm convinced they end up with more CPU load just doing all the TLS handshakes than they would if they just sent me all the HTML in one go.
- bryanrasmussen 2y ago>The experience of developing a simple website using React is orders of magnitude better than using html and CSS. OK well I've done both and I have to say no it's not, but probably my definition of simple is simpler than yours. It also seems to me that the original comment used a simpler than yours model of simplicity. >Next.js is a pretty good static site generator. my experience is that Next.js is a lousy static site generator, but reasonable if you want to use React.
- tasn 2y agoI explained why in the rest of the comment. Reusable components, code generation, etc. are a godsend. Copy pasting sections across and within pages, and not being able to generate code is hell. Simple is better, but bare doesn't necessarily mean simpler.
- averageRoyalty 2y agoWe're talking about "simple website". You can use any number of LLMs to generate you a boilerplate or use something simple and lightweight like Bootstrap. For a simple website, the things you're talking about add time and effort, not remove them - especially for someone who knows how to do neither.
- andybak 2y ago> The experience of developing a simple website using React is orders of magnitude better than using html and CSS. Isn't this rather circular? It's only this way if you already know React well enough to be fluent. Learning React and all it's conceptual baggage is a huge jump from understanding html/css/basic js plus the HTTP request/response cycle (all things which you'll need to understand even if you do use React) Honestly - this sounds a little like Stockholm Syndrome. I've spent a long time actively avoiding React and nothing I've read or seen has led me to think that was a poor decision. Quite the opposite - I feel progressively more vindicated with every passing year.
- tmcdos 2y agoThere is CAPRI (https://capri.build/docs/why/ https://capri.build/docs/why/) which allows using both interactive (they call them "islands") and non-interactive Vue/React/Svelte components to build your static website. So I can still split the website into reusable Vue components and if the components are not interactive - I can end up with no JavaScript at all. CAPRI also supports getting your content from several headless CMS (Storyblok, TinaCMS, Sanity, Contentlayer) so once you build the layout content can be easily added or changed.
- owebmaster 2y agoYou don't need NextJS to use React. You don't need React to have reusable components, loops and separating data from presentation. > The biggest problem with React is the JS bloat that's sent to the browser What does React bring then? It is slow, overengineered and bloated. It is also the only thing many developers know. Just like PHP 20 years ago.
- joshribakoff 2y agoIt doesn’t matter if you have five visitors or 5 million you presumably want your website to stay online so you need something that restarts the processes when they die, etc. Honestly building and publishing a docker image is super simple. There are numerous hosted kubernetes solutions to deploy it to as well. I don’t think that using next JS or using Kubernetes means you are inherently over complicating anything, and this is coming from someone who prefers minimal technology (I personally don’t use next JS, but I see the value in it for others)
- nine_k 2y agoPublishing a Docker image is simple. Managing a Kubernetes cluster, even hosted, may be much more complex, for no added benefit. Throw your container on a VM, make systemd or even runit keep it running. It scales fine to half dozen boxes if needed. Same for your Postgres DB. For extra fancy points, keep a hot standby / read replica, and pick up any of the manual switch-over scripts. Should keep you running until dozen million DAU, with half-day spent on the initial setup.
- echelon 2y agoCan someone explain what is so hard about kubernetes? You build an artifact in CI, you spend a few minutes writing your deployment yaml, and then you deploy it. There's no more work after that. What is so freaking hard about kubernetes? Why is everyone losing their minds over it? It isn't rocket science and it doesn't take a lot of time. The nightmare is maintaining flaky snowflake bare metal machines.
- dartos 2y agoIt’s not necessarily that it’s hard, but to be effective with kubernetes you need to understand a lot of infrastructure concepts like DNS, load balancing strategies, docker, storage drivers, service discovery, what exactly a pod is, what exactly a container is, etc. It’s a lot of up front knowledge needed for marginal benefit at small to mid scales. There’s a lot of steps if the “write your deployment yaml” step.
- 2y ago
- Levitz 2y ago> I've seen many students use Nextjs for websites that could easily be written with plain html + css, and some chart library. Students are the one case in which I'd say this is good. The vast majority of the stuff students do is not going to be successful. The purpose here is not to build stuff, it's to learn how to build stuff, and in that case exploring technologies is a net win.
- deleted 2y ago[deleted]
- matt-p 2y agoThe chart library is presumably JavaScript.. so what's the fundamental difference? Next can just spit out html/CSS/js that you can host on GitHub pages or S3. But they get familiar with a popular full stack framework I honestly don't see what's that controversial with the scenario.
- WhyNotHugo 2y agoThe issue is a bit deeper than this. A couple of years ago, somebody tweeted something along the lines of "did you know you can POST an html form without using javascript?". The replies were incredible, because they revealed how many folks could write a full blown React app to post a form, but didn't know how to do it with just <form>. I agree: it's terrible that kids would go straight to React without trying plain html + js first, but they do this because they often don't know any other way of doing it.
- citizenpaul 2y agoI used to think that but I've changed my option in the last couple of years. I think be bar for a bare bones app is starting to get so high you can no longer afford not to think of it as an entire platform from day one. I think AI will make this bar even higher. The other thing is apps mostly work now. Even 10 years ago people (including devs) would tolerate a flaky application. Now days everyone expects five-nine uptime and zero data loss and seamless cross platform functionality. If you start off with some "toy" version you fool yourself into thing this idea is not as hard as it sounds. Then once you hit the wall of production reality you start to realize just how hard something is going to be in production and that's why the market is still open for your idea. Its why there are so many profiles on github with tens or hundreds of abandoned projects. There's probably a lot of greybeards out there that will say all you need on a computer is a terminal and emacs. They might be right but you cannot scale/sell it and everything in-between is just a compromise.
- PuppetSoup 2y ago> I've seen many students use Nextjs for websites that could easily be written with plain html + css, and some chart library. Maybe the students want to learn a popular framework in order to have job? That is exactly the reason I learned Nextjs and lo and behold, it proved to be useful for me and my employer..