top | item 41470353

(no title)

samldev | 1 year ago

I switched from Svelte/SvelteKit to Svelte/Laravel and my productivity went through the roof. Same would apply with Rails or probably other batteries included backends. SvelteKit gives you SSR but that’s it. Laravel/Rails/etc gives you database, queues, real time support, authentication, authorization, the list goes on.

I plan to make my next YouTube video making my case for why Laravel is better with Svelte than SvelteKit is https://youtube.com/@samldev

discuss

order

KaoruAoiShiho|1 year ago

What's a Laravel equivalent in JS so we can stick with 1 language instead of using PHP?

ncphillips|1 year ago

There isn't one. There's been a couple attempts but they just don't hit the mark like Rails or Laravel do.

Honestly, the upside of 1 language is not that high. Don't be afraid of PHP, it isn't the same language it was 15 years ago. I've been programming JS for 10 years but only been using PHP for a year, it's weird but it's got some nice parts too.

mgkimsal|1 year ago

What if there isn't one?

jitl|1 year ago

Redwoodjs seems active, Sails seems less active, Adonisjs I’ve heard of.

The lack of a clear leader Rails clone in NodeJS land is probably the ecosystem’s biggest weakness. The downstream effect is theres a bunch of typical libraries/clients are just… MIA in the node ecosystem. Like, there’s no production grade Memcached client for node. ¯\_(ツ)_/¯ We had to fork one & heavily patch it for Notion.

miohtama|1 year ago

Thank you. I asked about SvelteKit vs. Inertia, not Laravel.

halfcat|1 year ago

It’s not really a valid comparison. Inertia isn’t a full stack solution like SvelteKit. You pair Inertia with a backend.

The whole point of it is it bridges the backend you know (Laravel, Rails, Django) with frontends (React, etc), without having to mess with JSON APIs.

0xblinq|1 year ago

You’re still not getting what inertia is and keep asking dumb questions that make no sense. Please, check inertia docs. It has nothing to do with sveltekit/next/nuxt.