Re:Inertia.js – Build React, Vue, or Svelte apps with server...
by miohtama on Friday September 06, 2024 @07:28PM
(#41470445)
Thank you. I asked about SvelteKit vs. Inertia, not Laravel.
Re:Inertia.js – Build React, Vue, or Svelte apps with server...
by halfcat on Friday September 06, 2024 @07:39PM
(#41470505)
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.
Re:Inertia.js – Build React, Vue, or Svelte apps with server...
by miohtama on Friday September 06, 2024 @07:43PM
(#41470521)
SvelteKit is not a “full” (depending on the definition what full means) stack solution either, and is commonly used with backends like Django or Rails. For example, it does not have its own ORM.
Re:Inertia.js – Build React, Vue, or Svelte apps with server...
by 0xblinq on Sunday September 08, 2024 @03:19PM
(#41482464)
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.
Re:Inertia.js – Build React, Vue, or Svelte apps with server...
by KaoruAoiShiho on Friday September 06, 2024 @09:37PM
(#41470961)
What's a Laravel equivalent in JS so we can stick with 1 language instead of using PHP?
Re:Inertia.js – Build React, Vue, or Svelte apps with server...
by jitl on Friday September 06, 2024 @11:07PM
(#41471224)
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.
Re:Inertia.js – Build React, Vue, or Svelte apps with server...
by miohtama on Saturday September 07, 2024 @02:49AM
(#41472022)
One (not only) of the problem is that you cannot do it in JavaScript very well due to poor underlying support for types. You neded TypeScript to have the equicalent of ActiveRecord or Django model.
Re:Inertia.js – Build React, Vue, or Svelte apps with server...
by jitl on Saturday September 07, 2024 @08:01AM
(#41473410)
This doesn’t follow because both Django and Rails evolved in languages without a type checking compiler. Rails is super dynamic in ways that would make Typescript type checker kind of sad.
Re:Inertia.js – Build React, Vue, or Svelte apps with server...
by mgkimsal on Friday September 06, 2024 @10:44PM
(#41471164)
What if there isn't one?
Re:Inertia.js – Build React, Vue, or Svelte apps with server...
by ncphillips on Saturday September 07, 2024 @07:31AM
(#41473279)
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.
Re:Inertia.js – Build React, Vue, or Svelte apps with server...
by banashark on Saturday September 07, 2024 @03:39PM
(#41475944)
Adonisjs, which is explicitly stated as taking major influence from laravel: https://adonisjs.com/
Re:Inertia.js – Build React, Vue, or Svelte apps with server...
by KaoruAoiShiho on Sunday September 08, 2024 @11:34AM
(#41480993)
Doesn't have the featureset or community unfortunately
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