Live data from Hacker News

The Epic Stack

epicweb.dev

51–60 of 109 posts

Re: The Epic Stack

#51

I would describe myself as someone 'in the trenches' of web dev as a consultant and I wanted to say that I respect this more knowing it's from Kent C. Dodds. I considered buying his React course, though I haven't, but I respect his knowledge and opinions; and for what it's worth, if Kent C. Dodds considers this to be an excellent stack, I would give it serious consideration. If you consider yourself to be an indie ha…

"I would give it serious consideration" There are 18 components listed. This stack is thick.

So what? It covers a lot of things. Things that are often needed on the web. Almost always to be honest.

You can go with "express.js" only and then figure out 10 other missing pieces yourself.

Re: The Epic Stack

#52

Without fail, every article from Kent C. Dodds shows what appears to be total inexperience despite claims of the contrary. The advice is, at this point, almost meme worthy. There's an infamous post from 2021 (that he may have been roasted for here): https://kentcdodds.com/blog/how-i-built-a-modern-website-in-... Almost every single piece of advice is wildly overcomplicated and ridiculous. I do like some of the techno…

But the whole modern development it's a nightmare as I see, or at least the advertised modern serverless development, you need to depend on:

- Some serverless hosting - Some database provider - Some auth provider - Some other service, etc

In the past you just rented a simple VPS or shared hosting, setup all by yourself and have just one provider for everything, nowadays I read that auth it's very hard and you should not do it and instead use some auth provider (Auth0, etc).

I remember the good old days with php, just upload your file and it worked, now they try to replicate that experience but with dozens of providers.

Re: The Epic Stack

#54
post #36
post #15

"It's time to just ship" Lists 10 tools to start with. Also, had the displeasure of using Prisma a while back. Extremely slow type generation, and complex to work with its client-server architecture. When your library requires a separate process you know you messed up. If you want to just ship, pick up Next.js, or whatever you already know and add dependencies when you need them. Let thought leaders thought lead.

Interesting. Have you tried https://github.com/kysely-org/kysely ? I know Prisma is an ORM and kysely is a "type-safe typescript SQL query builder" but I just wanted to know if you had the opportunity to try it and your opinion about it. I'm searching for SQL typescript tooling for my next project.

I would recommend to use just good old database client and send your queries as text, nothing it's easier than that, every orm struggles when you want to do some relatively complex query, I struggled to do something like this with kysely `LEFT JOIN table2 ON (table1.id = tabl2.id AND table2.status = 1` was insane how complicated it was, sure you can pass raw sql, but what's the point of the orm then.

Re: The Epic Stack

#55
Don't mean to add 1 more to the list, but I would say tRPC is a must have for side projects for me now where I'm not requiring a publicly facing API.

The ability to just define a function on the backend, and it be callable in my frontend, with responses automatically typed is a game changer for building fast.

For me that means https://create.t3.gg/ is the current go-to for starting a new project, but it's definitely missing some pieces this stack has.

Re: The Epic Stack

#56
post #16

How's remix compared to nextjs? NextJs is quite well established, does Remix offer something better on top? Under which circumstances one would choose remix over nextjs?

Remix is _really_ great if you want a traditional web application. In the tutorial they (used to?) do a bait and switch on you where at one point you realize no client side JavaScript has been running the entire time because the tutorial hadn't even talked you through how to bundle in the client side js! The idea is pretty much, use the platform.

Of course, I'm building a web app on top of it, so I want a lot of features that "the platform" doesn't necessarily support very well without client-side js to facilitate everything. And I did make an honest go of it. To me, the biggest pain point is still forms and form validation, which is notoriously painful in React land. I'm ultimately using react-hook-form and running the same schema validator client-side and server-side, which means I'm not really "using the platform" in that respect. I'd love to see an official react-hook-form type solution added to Remix.

Still, the framework has some really great, sticky conventions and it feels like they thought of almost everything. For example, the "action" and "loader" convention is awesome, nested layouts are the bomb, they encourage filenames like .server.ts to differentiate between things that can't be run client-side, heavily encourage the use of a bunch of goodies from react-router (which most people probably don't know exist) because Remix's routing is built on top of react-router... And so on.

Having used both Next.js and Remix a few times, it's difficult for me to recommend one definitively over the other; if you aren't experienced with them either one will be a learning curve. In general, I think Remix is the better framework but some shortcomings in the documentation (e.g. I found out about some new routing conventions because the old ones weren't working for me and it was confusing because the tutorial and docs seemed to use the old ones) and the relative dearth of resources online can lead to frustration. This should pretty much be a non-issue if you start a new project with one of the "stacks" that someone has developed, the blessed ones of which give you a base project that already has database, authentication, tailwinds etc configured with example routes and components.

Next is already taking some of the good ideas from Remix (nested layouts still in beta I think), and has a pretty extensive and mature ecosystem with lots of answers on SO and blogs at this point. For example, if you want free social auth you're pretty much just going to install next-auth. Still don't know exactly what I'd do in Remix for that.

Re: The Epic Stack

#57
post #51

Earlier quoted context omitted.

"I would give it serious consideration" There are 18 components listed. This stack is thick.

So what? It covers a lot of things. Things that are often needed on the web. Almost always to be honest. You can go with "express.js" only and then figure out 10 other missing pieces yourself.

"So what?"

At what point do you become a user?

Re: The Epic Stack

#58

Without fail, every article from Kent C. Dodds shows what appears to be total inexperience despite claims of the contrary. The advice is, at this point, almost meme worthy. There's an infamous post from 2021 (that he may have been roasted for here): https://kentcdodds.com/blog/how-i-built-a-modern-website-in-... Almost every single piece of advice is wildly overcomplicated and ridiculous. I do like some of the techno…

But the whole modern development it's a nightmare as I see, or at least the advertised modern serverless development, you need to depend on: - Some serverless hosting - Some database provider - Some auth provider - Some other service, etc In the past you just rented a simple VPS or shared hosting, setup all by yourself and have just one provider for everything, nowadays I read that auth it's very hard and you should…

The non-serverless version still works fine, even in modern JS land. The simple approach still works if you have some knowledge around setting up a server and configuring a few things.

I also think that the advice around Authentication is often misguided. For simple cases it's not that hard to add authentication without a separate service. There is too much scaring the newbies around that topic, when they are probably about as likely to mess up authentication when they try to configure an excessively complex library compared to implementing basic session authentication with the tools their framework provides.

Re: The Epic Stack

#59

Without fail, every article from Kent C. Dodds shows what appears to be total inexperience despite claims of the contrary. The advice is, at this point, almost meme worthy. There's an infamous post from 2021 (that he may have been roasted for here): https://kentcdodds.com/blog/how-i-built-a-modern-website-in-... Almost every single piece of advice is wildly overcomplicated and ridiculous. I do like some of the techno…

I was convinced that he was going to sell this "Stack" for an exorbitant amount like some other Javascript influencers have done in the past. Thankfully this seems to be free at least.

Re: The Epic Stack

#60
I’ll stick to rails, batteries included everything with easy to follow conventions. “It’s time to just ship” and proceeds to list like 15 different things, just lol. JavaScript must cause brain damage or something.

Hell, even LAMP is a better “just ship” than this monstrosity.

Post reply on HN