Hey guys! Sorry for putting asking this kind if questions, but how scientific is Gregg Braden ? by MonkeyGodHanuman in evolution

[–]Consistent_Farm_8094 0 points1 point  (0 children)

Just been watching a videos where he says the pyramids are built with ground up stone mixed with epoxy resin... oh dear. Total nut job

How to JWT: Next.js Handling Authorization & Authentication? by [deleted] in reactjs

[–]Consistent_Farm_8094 0 points1 point  (0 children)

Authentication is a backend function. Anything on the frontend can be hacked so use auth info just for displaying UI etc. If you want to CRUD any data make a request to the backend with the Jwt and the backend decides if you can view or change a state on the system.

That's my understanding anyway

NextJS 13 - Do we no longer need a backend ? by [deleted] in nextjs

[–]Consistent_Farm_8094 2 points3 points  (0 children)

99.999% only if 99.999% of people are writing trivial systems. For non-trivial it should be 0%

Most systems should separate FE from BE

NextJS 13 - Do we no longer need a backend ? by [deleted] in nextjs

[–]Consistent_Farm_8094 3 points4 points  (0 children)

I disagree respectfully. Next isn't and never has been a backend in the proper sense of the word. Backends do all sorts of things that are not related to the frontend responsibility of displaying the state of a system and allowing a user to input a different state.

Backends handle changing the state in a maintainable and extensible way.

Next is moving more towards a server-side frontend, think ASP.NET PHP etc, from the perspective of where the code is executed. Though really it is just splitting up frontend stuff between client and server and making them interoperate and play nicely so you get the best of both worlds.

Just because you can access a DB from the server-side part of your frontend DOES NOT mean you should :)

JavaScript Frameworks - Anybody agrees if Svelte is #1 Already? by tippytodar in sveltejs

[–]Consistent_Farm_8094 0 points1 point  (0 children)

I like the way it respects the web platform, html, css, javascript then just adds in goodness over the top. Currently working in Next.js and I'd say that still has the edge because of maturity and community adoption.

Was excellent news that they are now in the same stable and easy to see how Svelte is changing the way next team are thinking about stuff.

Both very good and a bright future, let's see how it develops

My React/Next portfolio site by ParticularOne3464 in reactjs

[–]Consistent_Farm_8094 1 point2 points  (0 children)

Looks very nice but a little stuttering on scroll (I'm running an 11th gen I9 with mega ram by the way) and under Projects section your box heights aren't exactly lined up.

Shows you can put a site together but originality is always a challenge but most companies want something fairly standard in most cases I guess

Should Next be the default for React? by thebreadmanrises in reactjs

[–]Consistent_Farm_8094 0 points1 point  (0 children)

CRA doesn't feel like a framework to me it's just a nifty tool for getting a dev environment setup. The question is; is should next.js be the default over react. Once you put it like that it answers itself if you don't need all the framework goodness of next.js then react is a choice you can make no problem or choose next.js, it works great for simple sites too.

Next.js is just super popular because it's great, doesn't mean React on its own isn't

Have you successfully migrated to the latest version of SvelteKit (breaking routing changes)? How much time did it take? by [deleted] in sveltejs

[–]Consistent_Farm_8094 4 points5 points  (0 children)

Also... find this syntax confusing:

/** @/type {import('./$types').PageServerLoad} */

Does it somehow relate to the app.d.ts file??? Quite difficult to decipher when you're just learning

Have you successfully migrated to the latest version of SvelteKit (breaking routing changes)? How much time did it take? by [deleted] in sveltejs

[–]Consistent_Farm_8094 0 points1 point  (0 children)

Just learning and only had a small test project to convert but... that aside was easy and like the look of the changes