Hacker News new | past | comments | ask | show | jobs | submit login

Regarding auth and db, the ones I've spoken with that prefer JS way of doing things like to combine a bunch of existing offerings into one, eg Auth0 for Auth, Prisma for DB and so on. The more potential points of failure, the more attractive it seems to them.

When saying that Laravel/RoR gives you all that by running one simple command, I get blank stares. Hard to believe, I know.




We've come to the point that being able to run code and render html on a server is considered a new feature (aka SSR and serverless functions). I recently watched the Next.js conf and i couldn't help but giggle.

-Do you want functions?

Use our proprietary platform

-Do you want to store content?

Use cloudinary, aws

- Authentication?

Auth0,firebase

- Database?

Use FaunaDb and our super cool new query language that nobody knows and cares about.

> Congratulations. You've built your new webapp on Jamstack. Now you have to manage large bills across hundreds of 3rd party services, vendor lock-ins. Also good luck trying to reproduce all that on a development machine or organize your code.

On the other hand you can just: laravel new project-name --jet and deploy on a single linux machine or heroku and you get:

-Robust and customizable Auth, password reset, 2fa

-A serious db like PostgreSQL and an orm

-SSR by default with 0kb bundle size!

-Any css tool you need

-Easy APIs, tokens and permissions

-Truly open source.You have full control of your code and data

So yeah it's just a command but yikes, who uses PHP in 2020, right?


Exactly! FaunaDB was the recent topic of discussion and I was like oh here we go again...

> So yeah it's just a command but yikes, who uses PHP in 2020, right?

Lol yeah, but PHP 8 is looking really nice


> Now you have to manage large bills across hundreds of 3rd party services, vendor lock-ins.

A nightmare.

That said, I don't see any major problems in using Next with a monolithic BE. It's a viable tool to get things done.


The problem is then you'd have to use PHP or Ruby. Much as people say they've improved, they're not better than TypeScript. I wish someone made something like Laravel for TS. Sometimes I look at Laravel and think, sure it's great that they did all of that and are even making a bunch of money, but why did it have to be PHP of all languages?


PHP and Ruby both are better than a half-ass typing on a single-thread language.

(I only write Elm and Elixir nowaday)


There is AdonisJS which is a Laravel clone but in JS. I'm not sure about TS support, though.


Rails doesn't give you auth* though.


Ah, sorry. I don't have much experience with RoR. Laravel, mostly, and Laravel auth is one command away. I assume RoR won't be too far away from that, too.


I can imagine people thinking Devise is Rails' own auth, given how popular it is.


well, whenever I did rails, that was pretty standard. Laravel's baked in auth, is probably why it's so much better than rails, that and queues, telescope, etc... all the nice to haves that come standard in laravel that are extra in rails apps.


I agree on this. But, you could add a few gems to Rails and it comes at par with Laravel.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: