Everyone's Making Fun of Next.js 14.0

  Рет қаралды 132,164

Josh tried coding

Josh tried coding

6 ай бұрын

So much stuff happened this week!!!
Honestly not a fan of server actions myself but people have really been memeing that one part of the Next.js Conf so much.. I feel like it's been ripped out of context a lot. So much new cool stuff to explore in 14.0!
Awesome article on SQL injection: neon.tech/blog/sql-template-tags
-- my links
Discord: / discord
GitHub: github.com/joschan21

Пікірлер: 242
@vinoopb
@vinoopb 6 ай бұрын
Your views and opinions are always helpful Josh, love your long-hours tutorials especially. Keep building 🙌
@joshtriedcoding
@joshtriedcoding 6 ай бұрын
cheers dude
@AbhishekSingh-xd1pf
@AbhishekSingh-xd1pf 6 ай бұрын
binod
@macieja92
@macieja92 5 ай бұрын
great joke xD I deleted my subscription a long time ago, but youtube keeps recommending me this shit
@youssefbedhief2050
@youssefbedhief2050 6 ай бұрын
Personally, I think you're doing a really good job, and sincerely, your long-hour tutorials help me learn and enjoy the dev world. Thank you for all. And if Kyle makes a video about you, that means you're doing a great job, and you're good at what you're doing. So, cheers, man.
@rafalka7084
@rafalka7084 6 ай бұрын
Not only Kyle but Theo (in a good light) as well. Anyway being in my 40s, I enjoy watching Josh, great content.
@ukeshrestha
@ukeshrestha 6 ай бұрын
It's not the concern of SQL injection. Most of people are afraid of Seperation of concern of backend and frontend code. This reminds of the old php syntax that is hard to maintain.
@ml-tech
@ml-tech 6 ай бұрын
if you’re so against frontend and backend getting mixed up then NextJs may not be the best option for you…it’s tagged as a “fullstack” framework for a reason…
@MikeNicklas
@MikeNicklas 6 ай бұрын
​@@ml-tech Most modern full-stack frameworks still have separation of concerns. People ran to full-stack frameworks to get out of the PHP spaghetti code mess...now we're coming full circle.
@scaffus
@scaffus 6 ай бұрын
Yeah, it seems unsustainable, love the way sveltekit does it
@anttihilja
@anttihilja 6 ай бұрын
You can write unmaintainable code with any framework
@luzaw4957
@luzaw4957 6 ай бұрын
Next JS is not Nest JS
@kesoBJJ
@kesoBJJ 6 ай бұрын
keep up the good work, josh. your videos are super helpful. love the long ones where you implement an app from 0 to the end.
@user-lg9on9bm7c
@user-lg9on9bm7c 6 ай бұрын
Don't feel like your cancelled. You are one of youtuber I can count on to be up to date when it comes to web development space. I follow you content regularly. Keep up the great work.
@more-sun
@more-sun 6 ай бұрын
He wasn't, lol. Kyle just pointed out a flaw in Josh's solution to a fetch problem. Since Josh is an influential content creator, Kyle believes that Josh gave out "wrong" information. The video is kinda clickbait, though
@baldcoder_
@baldcoder_ 6 ай бұрын
He wasn't canceled and that advice wasn't great. Kyle's argument was valid. I love the guy and his content is great, but no harm in owning to a mistake or offering a counter-argument (if any).
@MRCDF7
@MRCDF7 5 ай бұрын
I bet that you not even have seen Kyle's video. You just said something nice to look nice.
@RichDoesTech
@RichDoesTech 6 ай бұрын
Great video, I need to deep-dive server actions too in the next few days! The main issue i sssume people have is around seperation of concerns / PHP syntax but overall, I think it could be useful.
@WebDevCody
@WebDevCody 6 ай бұрын
I’m convinced they used that sql example to create buzz by people who don’t understand basic JavaScript
@ramanujangunturu4996
@ramanujangunturu4996 6 ай бұрын
I think people are more concerned about the seperation between frontend and backend
@WebDevCody
@WebDevCody 6 ай бұрын
@@ramanujangunturu4996 it’s separated, via an api call
@jakehadley4044
@jakehadley4044 6 ай бұрын
I must not understand basic JavaScript. I didn't even know functions could run like that.
@0x150
@0x150 6 ай бұрын
@@jakehadley4044 Same. I have about 6 years of professional programming experience, have used javascript pretty much since day one and I have NEVER seen this be used like this, or this feature mentioned anywhere.
@dzienisz
@dzienisz 5 ай бұрын
True, it’s not basic JavaScript
@jasmeetbrar8609
@jasmeetbrar8609 6 ай бұрын
I feel like the SQL Injection example is beside the point. They just wanted to give a simple example of what server actions would look like. Of course, in a real production system, you would design things in a more secure and scalable way, and not use the example on the slide on a real live system.
@joshtriedcoding
@joshtriedcoding 6 ай бұрын
Yeah exactly, it was ripped out of context. It's super hard to fit all important stuff onto a single slide, I know from animating my videos with keynote lol. The talk was awesome
@jasmeetbrar8609
@jasmeetbrar8609 6 ай бұрын
@@joshtriedcodingI totally agree with you man. People should really be applauding this release. We are getting good features and improvements. IMO, even if you don’t like or want to use the server actions approach, you don’t have to. It’s there if you’d like to not have to resort going through some API call, and Vercel is taking into account everyone’s feedback here. I truly think they have done a great job, and if people beg to differ, they should give some constructive criticism here. I don’t want to have blind hate here.
@dmsnm
@dmsnm 6 ай бұрын
I am pretty sure they are using the @vercel/postgres npm library in their demo in which case the docs clearly states "Isn't it a security risk to embed text into SQL queries? - Not in this case. Vercel sanitizes all queries sent to your Vercel Postgres database before executing them. The above code does not expose you to SQL injections"
@IAmLesleh
@IAmLesleh 6 ай бұрын
If they're using the Vercel PostgreSQL library (and I assume they would be), the sql function is already a parameterized query, so there wouldn't be any chance of SQL injection.
@nikhilsnayak3473
@nikhilsnayak3473 6 ай бұрын
Jeez. Finally someone is talking about this. Giving hot takes before understanding basics is really bad. I am gonna subscribe to you for this ❤
@BeyondLegendary
@BeyondLegendary 6 ай бұрын
Impressive, very nice. Let's see Paul Allen's sql injection attack.
@joshtriedcoding
@joshtriedcoding 6 ай бұрын
Heyyy dude, always appreciate your comments!!
@TheSherifff
@TheSherifff 6 ай бұрын
You are the best, your explanations are as they should be, and your tutorials are of great help to everyone.
@mubin-ansari
@mubin-ansari 6 ай бұрын
While I really enjoy the server components, I am getting increasingly worried about how new developers will now be able to write bad backend code straight in their react components. Also, this entire server actions feature, is it just me or do you think as well that this goes way against the "seperation of concerns" principle? I would not want to open a codebase where there is a button component which has an SQL query inside the JSX or the file for that matter.
@joshtriedcoding
@joshtriedcoding 6 ай бұрын
I think they can be useful for just whipping up a quick app (assuming you don't need publically accessible APIs). I much prefer a regular API approach though. Especially because there are tools like tRPC & react-query that make error handling & loading states as intuitive as it gets
@Kurimson
@Kurimson 6 ай бұрын
Its about being flexible. Instead of having an additional endpoint in your api folder you can have this function co-located. It can make it easier to use right and update. In our environment, we would have an api endpoint (used as a proxy) then call our .NET API from there that isn't exposed to the client. I can see it being useful. Is it absolutely needed no but as I said before it is more flexible.
@Hexalyse
@Hexalyse 6 ай бұрын
Separation of concerns is very good if you want different pieces not depending on each other. Yes, it's super cool to have a "standalone" API if you want to one day build a frontend in a different language, with different technologies etc. But if your app is by design made to stay "monolithic" and your backend is tightly coupled with your frontend and you will never add (or switch to) another frontend, then separating the concern just increases your codebase length, and sometimes complexity. Because it's that many more steps and files to dive through to understand what is happening when you press on the button. If the code is right there on the button component, then it's clear what it does. Everything is contextual and has its pros and cons, as usual.
@BlobBlobkins
@BlobBlobkins 6 ай бұрын
Do new developers write good backend code not in React components? I don't get your point.
@kristianlavigne8270
@kristianlavigne8270 5 ай бұрын
Pretty much how JSP and ASP worked. Mixing everything together. A nice spaghetti mess but hyper productive
@abiswas97
@abiswas97 6 ай бұрын
Hope you're doing okay and weren't too affected by Kyle's video :)) you're a huge inspiration mate
@joshtriedcoding
@joshtriedcoding 6 ай бұрын
Appreciate you man!
@codernerd7076
@codernerd7076 6 ай бұрын
But he was right....
@abiswas97
@abiswas97 6 ай бұрын
​@@codernerd7076 I actually feel both approaches are valid! Just for different use cases. Kyle's is appropriate for most general use cases in CRUD apps, where an initial timeout should not completely stop the query, and should just have a new loading state. However there are cases where you would want to completely stop the request on timeout, such as the server taking longer than usual, and you'd rather have your user re-request than wait. You could have severala cases 1. Stop after first timeout (Joash's video, very valid for calls that will always be intensive and can be more represnetative of a slow server than a slow network. This could be something like getting an api call that is compute heavy on the server, and you know how long the server should usually take) 2. Stop after x timeouts - I've seen this used in zoomable image libraries like Openseadragon, where you don't want to keep waiting on data that is taking too long. You can timeout at 5 seconds, try 5 times and then stop. Completely valid) 3. Stop after the response is truly resolved/rejected, and use timeouts for loading states (Kyle's video) I'm not experienced enough to suggest one as a gold standard, but I feel all 3 approaches have their place and just need consideration based on the use case you are applying it to
@zettai8087
@zettai8087 6 ай бұрын
​@@codernerd7076no one said he wasn't. Rest. No need to shove it down our throats
@ironsand
@ironsand 6 ай бұрын
Kyle only brought one new perspective on the problem. It's normal: two great guys think better than one. This doesn't diminishes in anything Josh's great job, not even in that video -- it's good to watch both in sequence, but the way. If someone tries to "cancel" Josh for this, this person would be a moron...
@murodjonazamov3951
@murodjonazamov3951 6 ай бұрын
Good luck, learning lots of cool stuff. Watching from Uzbekistan 🇺🇿
@dflosounds
@dflosounds 4 ай бұрын
This is a hot take, but I'm personally glad that we at least have the option to couple the frontend/backend together again. I think we've taken the separation of concerns idea a bit too far. When I first started learning React, I admittedly loved the idea of keeping the backend/frontend far away from each other so that they could be developed separately, and either one could be reused for multiple web apps. But having worked in web development for over 8 years now, I can honestly say that that pattern hasn't really paid off on any project I've worked on. I've never once reused a frontend or an API, and I found myself having to bounce between multiple files and folders just to create a new page or form on a site. Not saying that's the case for everyone, but for me, 95% of the time it just makes more sense to keep frontend and backend code together. It's faster to work with, and it's easier to see exactly what's happening. Yes you can shoot yourself in the foot, but can't you also do that with API routes?
@kishirisu1268
@kishirisu1268 3 ай бұрын
Real life example for typical webstore: Backend (any implementation) + Admin on React + Website on NEXT. Perfectly reusable, but only in case it is normal REST API, not that buzz word server nonsense.
@garethwilliams3199
@garethwilliams3199 6 ай бұрын
Thanks for explaining so well Josh! Also do you plan on doing any videos/tutorials with React-native in the near future?
@crithcraft
@crithcraft 6 ай бұрын
Really great video, thank you for make me understanding something new in JS)
@owenwexler7214
@owenwexler7214 6 ай бұрын
The Drizzle magic sql command works the same way, accepts a template literal that is then sanitized in the magic sql function.
@rjwhite4424
@rjwhite4424 6 ай бұрын
You didn't get cancelled bro, you and Kyle are literally the only accounts I watch for web dev advice, tutorials, and current news.
@ericnemo8348
@ericnemo8348 6 ай бұрын
Hey Josh, once again a short and insightful video ! 👍🏻 And being cancelled is the prize of the fame ! It’s also the proof you re being watched Great power means great responsibilities 😂
@emad_naeim
@emad_naeim 6 ай бұрын
I learn a lot from you, please keep cooking ❤️
@_bijaydas
@_bijaydas 6 ай бұрын
I want my frontend and backend code completely separated. Just because we can do something technically, doesn't mean we have to.
@joshtriedcoding
@joshtriedcoding 6 ай бұрын
Yeah exactly, it's nice to have the option and I'm sure they might be useful in some cases. I prefer to have them separated too, just makes the line between front- and backend much more clear
@FaisalMahmood91
@FaisalMahmood91 5 ай бұрын
Just organize your folders and files separately then simply import a server function into the client code where you need any connection between client and server.
@VenkyBeast
@VenkyBeast 5 ай бұрын
​@@FaisalMahmood91 Yeah right, that's what I do, I separate Server Code & Client code. I prefer calling server function directly instead of exposing API from Server-side and accessing it from client side, it's just way too much work. That's the reason I love using NextJS over combination of React & NodeJS(Express).
@JamesNashWalker
@JamesNashWalker 5 ай бұрын
🎯 Key Takeaways for quick navigation: 00:14 ⚡ Next.js 14.0 brings significant speed improvements, with a 50% reduction in local startup server time and a 94% boost in hot module replacements. 00:43 🏗️ Partial pre-rendering allows defining a static HTML shell served immediately, followed by dynamic content streamed in later. 01:12 🤔 Server actions in Next.js 14.0 have sparked debate due to their syntax resembling old PHP days and potential security concerns, specifically SQL injection vulnerabilities. 02:21 🔍 SQL injection vulnerabilities explained, emphasizing the importance of parameterized queries for safe dynamic insertions. 06:49 🛡️ Template strings in Next.js 14.0's code example demonstrate a secure approach, utilizing tag functions to safely handle dynamic values and prevent SQL injection. Made with HARPA AI
@howuseehim
@howuseehim 6 ай бұрын
Honestly Next.js 14 just convinced me to learn php and be happy
@ajibadesokunbi1318
@ajibadesokunbi1318 6 ай бұрын
Keep up the good work , learnt a lot from your videos
@ameer6168
@ameer6168 6 ай бұрын
Your videos helped me a lot more than todo's list guy
@bhaveshmishra6998
@bhaveshmishra6998 6 ай бұрын
Keep making some good tutorial I am learning alot from you thanks josh❤
@joshtriedcoding
@joshtriedcoding 6 ай бұрын
really appreciate you man. happy to hear that
@akuoko_konadu
@akuoko_konadu 6 ай бұрын
Your views are amazing, keep making good content Josh 👏
@yarapolana
@yarapolana 6 ай бұрын
I have been following for awhile probably subscribed much later (dont judge) but I love the way you explain things. Please continue with the long hour tutorials. :) And yes I mentioned once if it is possible to send you some “buy me a coffee” fund :)
@diegoulloao
@diegoulloao 6 ай бұрын
Finally I understand how to use template strings! greaat
@deniswastaken
@deniswastaken 6 ай бұрын
bruh your videos are pretty informative, no matter whatever people say.
@c4346
@c4346 6 ай бұрын
thanks for your explanation josh!
@georgepetroff2364
@georgepetroff2364 6 ай бұрын
Great content as always Josh, vielen Dank!
@davisbento
@davisbento 6 ай бұрын
Ok you answered just one of many questions/problems about this approach, but the bigger concern is about the separation between frontend and backend, that the community around the world agreed that is horrible to "mix" the server with client side, like the "old" PHP did, that's why we moved to an API and Client architecture instead of a MVC architecture. And running a SQL script asks for more than just calling it. When you have a proper backend you have many resources like: load balancer, caching, pagination, many things that are more complex than just calling the SQL itself. And what prevents the dev from making a big SQL query with many relationships inside the use server?
@JoseWaldier
@JoseWaldier 5 ай бұрын
you say it like the API architecture is going to be replaced. This is a feature that if you want, u use it, if not dont. No one is forcing you to use server actions. It is at your discrimination when to use it or not, there is some situations where having an API is better like you mentioned, but there some situations server actions serve its purpose.
@jijojosein
@jijojosein 6 ай бұрын
As someone who just started learning NextJS, I was worried about all the trolling as I didn't understand a thing and assumed I chose the wrong framework. But this video cleared many of my concerns. Thank you!
@samanderson4881
@samanderson4881 5 ай бұрын
Can you use js,html and CSS without any other framework?
@jijojosein
@jijojosein 5 ай бұрын
@@samanderson4881 yes, you can.
@shs4293
@shs4293 6 ай бұрын
Josh , Kyle and Theo have helped us a lot. We are glad to have you guys in the community!
@daedalus5070
@daedalus5070 6 ай бұрын
I'll get on board with React and Next when they finish it.
@dr.d303
@dr.d303 6 ай бұрын
Same as mine 🤣
@Sajgoniarz
@Sajgoniarz 11 күн бұрын
I recently started to learn Next.js. I find it really funny how i get into the 14 version of framework that has barely any functionality and almost none conventions. Whoever invented Next.js have no idea what frameworks are, because only thing that i see is a messy library in which you need to build around, not otherwise, like you would expect to deal with library. I have literally flashbacks from using React for the first time 8 years ago. Next gives me the same vibes of immaturity of "wannabe framework" Anyway great video :)
@11r3start11
@11r3start11 6 ай бұрын
It’s indeed php/java/c# -like syntax, that was there since 90s, and thankfully forgotten. But at that time backend guys trying to embed frontend. Now it will be frontend guys trying to embed backend) I’ve already seen react devs that exposed passwords and other internal thing to FE accidentally. But now it will be next level, as while you using component’s tag you have no idea whether it is server or client :) Anyway, the wall between worlds is no longer there, so it will be interesting to look at all this
@roberth8737
@roberth8737 6 ай бұрын
Great to see this example. Do you think server actions could largely replace the need for trpc ?
@saralightbourne
@saralightbourne 6 ай бұрын
i also thought about that! i think for most cases it's easier to use server actions but tRPC would still be great if you have your backend separately
@joshtriedcoding
@joshtriedcoding 6 ай бұрын
I guess technically both are "tRPC's", because both offer you an rpc-style way to call your backend with typesafety in mind. For me, regular API routes are the winner because I feel like handling loading / error states in server actions is just not as intuitive. But we'll see how their adoption comes along, maybe it'll be a whole different story in a couple months time
@CoryTheSimmons
@CoryTheSimmons 6 ай бұрын
Always wondered how people made those template string functions.
@greendsnow
@greendsnow 6 ай бұрын
Typescript flexing, right on your face!
@codewithguillaume
@codewithguillaume 6 ай бұрын
You're my favorite channel Josh. By far ;)
@joshtriedcoding
@joshtriedcoding 6 ай бұрын
appreciate you man!
@parlor3115
@parlor3115 6 ай бұрын
I'm crying tears of joy, but mostly frustration with the broken caching system
@VeaceslavBARBARII
@VeaceslavBARBARII 6 ай бұрын
next.js 14.1 will probably fix it, lol
@neociber24
@neociber24 6 ай бұрын
What problem do you have? I had not use caching that much
@parlor3115
@parlor3115 6 ай бұрын
@@neociber24 It's enabled by default in Next.js 13. Any page is cashed unless you explicitly tell it not to. This happens in the production build, so you won't notice it until you go prod and think something is wrong with the database or the server because the docs are a $$
@arikmosfor4907
@arikmosfor4907 6 ай бұрын
that is you personal opinion and i respect that.im working with react and satisfy with it.
@manshulduggal5482
@manshulduggal5482 5 ай бұрын
Man, I don't care what anyone says, there is always something to learn from everything. Including you and that other guy, both of you are perfect content creators! I have learned a lot from both of you and will continue to do the same in the future. People on the internet are super harsh since they can, and no one can do anything about that. I'm pretty sure in the end we are all here to learn and improve and as a content creator, you will continue to provide and do your best even though it takes a lot of your time to come up with ideas and the hours you put in when no one is watching. Please continue to improve and provide us with more quality content. everyone is wrong, and no one can be right every time.
@MRCDF7
@MRCDF7 5 ай бұрын
I think you care. If not you would not been watching this channels. If he said something wrong, people must point that out. Lets just be rational.
@manshulduggal5482
@manshulduggal5482 5 ай бұрын
@@MRCDF7 Looks like you didnt notice, but I clearly stated everyone can be right or wrong, you just learn from that. So...of course he got corrected for the mistake he made, but what are you on about ??? lmao
@nisabmohd
@nisabmohd 6 ай бұрын
Parameterise function calling I learned something new
@yuitachibana8829
@yuitachibana8829 6 ай бұрын
Tbf that problem of separation of concern already existed since the beginning of nextjs, server action is just a way send form data without defining an api route. In general most ssr frameworks will have this issue
@Chris...S
@Chris...S 5 ай бұрын
Hey Josh, I can't seem to get video element events to fire if the parent component is a server component. Any insight? I'm trying to make a loading spinner and hide it when onLoadedMetadata fires.
@eero8879
@eero8879 6 ай бұрын
The issue with sqli thing is that many people are used to syntax like DB.query("...where id=$1;", id) where it's clear that it's parametrized. No special syntax or anything, just a pure function call.
@whatyoumissed9994
@whatyoumissed9994 6 ай бұрын
i dont think kyle cancelled you, he corrected you and showed a better approach plus gave you some spotlight, more like a shout out, i hope he contacted you first before publishing the video, he is one of the nicest guy i know
@iamghezali
@iamghezali 6 ай бұрын
is there a library that provides that sql tagged function?
@Metruzanca
@Metruzanca 6 ай бұрын
Not entirely sure myself if this is true for nextjs, but in Solidjs serverActions don't even make it to the client, all the client gets is a sort of RPC of the method. Which is totally black magic fuckery, since we devs write something inside the "client code" but then that client code gets so heavily transformed.
@Nobodylihshdheuhdhd
@Nobodylihshdheuhdhd 6 ай бұрын
Solidjs ❤
@CaleMcCollough
@CaleMcCollough 5 ай бұрын
Not every major version comes out with a lot of new features. Technically all of the minor releases after the last major release may just be part of the new major release but they're all debugged and working properly and the app is on to the next phase.
@jbsmith86
@jbsmith86 4 ай бұрын
Yeah that's a pretty classic injection issue and the exact reason they switched to database ORMs like 10 or 15 years ago. Development trends are an ongoing cycle.
@tjam84
@tjam84 5 ай бұрын
cheers, thoroughly well explained
@redcodemohammed
@redcodemohammed 6 ай бұрын
As a Jhin main, 14 is when I will start using Next :
@dasezo
@dasezo 6 ай бұрын
The art begins xD
@eduardstefan6833
@eduardstefan6833 6 ай бұрын
I’m confused isn’t partial pre-rendering just hydration? Isn’t the whole point of suspense to literally stream data later to not block the page?
@neociber24
@neociber24 6 ай бұрын
No exactly, with partial pre-rendering you send the HTML without the inner content then the content is stream and place inside
@Mecabricks
@Mecabricks 6 ай бұрын
I would love to be able to try turbopack, unfortunately not a single one of my projects starts without throwing an error instantly when I use the flag 😅. There is also the whole caching saga that is going on for a year now. Overall lots and lots of broken things with the app router and very weird decisions from the team. We have come full circle from the php days but adding extra layers of complexity on the top for almost zero benefits. Still, I have faith in the Nextjs project…
@iabdousd
@iabdousd 6 ай бұрын
History repeats itself
@brand9114
@brand9114 6 ай бұрын
Naw you’re not canceled. Web dev simplified just said “idk you’d cancel a pending promise after 2 seconds and error it out”. Great vid. I think your vids bring alot to the table and lookin forward for more
@joshtriedcoding
@joshtriedcoding 6 ай бұрын
I guess the promise got cancelled then lol. It's all good, his suggestion to let the user choose when to abort is great. Appreciate your comment man, cheers
@user-no4kf6ej9n
@user-no4kf6ej9n 6 ай бұрын
man that code was an example just to people know that is running in server side, everyone uses an orm for crud
@Hexalyse
@Hexalyse 6 ай бұрын
People (wrongly) making fun of something they don't understand on the internet ? Not surprised at all.
@galaxies_dev
@galaxies_dev 6 ай бұрын
Great video Josh - but more important was you getting canceled this week and we didn’t explore that 😂
@sayeedmahdimousavi351
@sayeedmahdimousavi351 5 ай бұрын
It is good video that can help us get all in a secode. I think new app router next still has many problems like how to stream a big video with a single response? because we can not pipe the streams with response. I had search a lot but no where I could find it, could you please help me.
@amanuel2135
@amanuel2135 6 ай бұрын
You gotta collab with WebDevSimplified bro!
@haliszekeriyaozkok4851
@haliszekeriyaozkok4851 6 ай бұрын
Seriously? People started to learn new lucking next 13 and even there is like no proper tutorial exist about it and they ship new next 14. I've done with next, if i don't especially demanded to write it i never write this kinda non stop changing framework. I'll go with svelte, it's best js framework we could ever saw.
@geeksy2278
@geeksy2278 6 ай бұрын
It's not about SQL injection, it's more about an architectural thing. And btw we also never done such things in PHP ✌️😁
@aewfan4360
@aewfan4360 5 ай бұрын
but if the userId is still passed as a string in second approach, a hacker can still inject SQL query, right ?
@incarnateTheGreat
@incarnateTheGreat 5 ай бұрын
You basically summed it up at the end: people clowning and making stupid jokes about the "use server" statement in the demo need to give their heads a shake. Why would the Next team put that up if they knew how bad or broken that would be?
@WojtekPoroslo
@WojtekPoroslo 6 ай бұрын
Remix ftw with how they approach server actions
@wego-k4811
@wego-k4811 6 ай бұрын
Great job there. I think most of the critics come from the fact that they can't handle SQL injection issues. I'd say they get a crash course on SQL and they'd see its rather very simple to handle injections
@jere2239
@jere2239 6 ай бұрын
So, what do I do now? Which framework to use?
@neociber24
@neociber24 6 ай бұрын
What get the job done
@jere2239
@jere2239 6 ай бұрын
@@neociber24 i expected a better answer
@forinda
@forinda 6 ай бұрын
How does parameterized query escape the illegal strings.
@codinginflow
@codinginflow 6 ай бұрын
I don't understand the difference between "partial prerendering" and the way suspense streaming already worked before
@toshitsingh7270
@toshitsingh7270 5 ай бұрын
Where are you checking that dev test? How I can do that?
@codernerd7076
@codernerd7076 6 ай бұрын
It uses all those canary-stable features and 'works' on 'all' none Vercel hosting... 😅
@gadgetboyplaysmc
@gadgetboyplaysmc 6 ай бұрын
Man I can't believe how many people used to trash on SvelteKit for its "magic". NextJS's "use server", "use client", is pretty magic to me. Kind of an awkward one for JSX to be honest.
@JoaoLucas-tw2pt
@JoaoLucas-tw2pt 5 ай бұрын
great job mate
@iPankBMW
@iPankBMW 6 ай бұрын
One year later we still cannot opt out of default fetch cache! :(
@goazevedo3461
@goazevedo3461 5 ай бұрын
I'm getting this error while using puppeteer "Could not connect to the CAPTCHA service. Please try again.". Any idea how can I fix this?
@icarojose6316
@icarojose6316 5 ай бұрын
the example was just a simple way to demonstrate backend functions being called in the front safely, in a real world app a person will use a ORM not write a SQL statement.
@iyxan2340
@iyxan2340 5 ай бұрын
bro it ain't an sql injection if you use a special string template thingy. Like the function Prisma.$executeRaw`` you could pass in parameters as if they were regular string concatenation, but it is processed and sanitized by prisma automatically.
@nazuu
@nazuu 6 ай бұрын
Or they may want us to talk about it;D
@mhdfr
@mhdfr 6 ай бұрын
Yeaa Im still getting error when use turbopack
@codelucky
@codelucky 6 ай бұрын
How do ya compare it with Astro?
@dienvidbriedis1184
@dienvidbriedis1184 5 ай бұрын
next is the next overconfident noob magnet.
@aizensoskue3880
@aizensoskue3880 6 ай бұрын
sveltekit have implemented the best way to handle server actions . next js now is just bunch of abstractions on top of each other server components was never a good idea
@cckdex
@cckdex 6 ай бұрын
WEB DEV BEEEEEFFFF LETS GOOO
@avwie132
@avwie132 6 ай бұрын
Gets criticized, says he gets cancelled….
@snehasish96
@snehasish96 6 ай бұрын
Bro, your explanation is soooo good, ❤from India. One suggestion please slow down your words if possible, This would be more helpful for people whose native language is not English.
@imnash21
@imnash21 6 ай бұрын
Kyle's only fixing about aborting the requests in some delay, he's right instead of, it's better to wait or retrying the requests, let the users to cancel his/her requests. In our country we have 2G/3G in some places like in Rural areas. We understand what Kyle did, we still support you both and watch your great tips and tutorial videos.
@peterchinoko4339
@peterchinoko4339 3 ай бұрын
Hey josh can you make a project with three js
@GATrailer
@GATrailer 5 ай бұрын
The fanny thing is going from naive SQL to ORM then back to SQL,... In this case, going down all the way to binary will be good 😂
@nurlanshukurov3864
@nurlanshukurov3864 6 ай бұрын
You're a chad
@cx20012002
@cx20012002 5 ай бұрын
the key thing is i believe in real world no one will execute sql query inside a dom like this
@zakraw
@zakraw 6 ай бұрын
We really don't know if the given code is vulnerable against SQL injection. We probably should assume that "sql" has defence mechanism for that. The problem is that they used overly simplified example for Server Actions which may encourage inexperienced devs into writing poor code.
@elvispalace
@elvispalace 6 ай бұрын
it was just an example. no one will use sql injection, when you can use ORM
@krtirtho
@krtirtho 6 ай бұрын
It's just super fun to make fun of people who are making fun of something they don't understand
@musa.ibrahim.80
@musa.ibrahim.80 6 ай бұрын
next 14 is awesome.
Giving Up On Next.js | Theo Reacts
44:49
Theo - t3․gg
Рет қаралды 106 М.
NextJS Tutorial - All 12 Concepts You Need to Know
44:38
ByteGrad
Рет қаралды 195 М.
БРАВЛЕРЫ ОТОМСТИЛИ МАТЕРИ😬#shorts
00:26
INNA SERG
Рет қаралды 4,7 МЛН
Which one will take more 😉
00:27
Polar
Рет қаралды 14 МЛН
Ages 1 - 100 Decide Who Wins $250,000
40:02
MrBeast
Рет қаралды 102 МЛН
Next 14 Reveals React's Taint, Solves RSC Safety Issues
15:22
Theo - t3․gg
Рет қаралды 56 М.
React и Next js убивают фронтенд!
9:11
Миша Ларченко
Рет қаралды 39 М.
I DONT USE NEXT JS
54:01
ThePrimeTime
Рет қаралды 297 М.
7 Awesome TypeScript Types You Should Know
8:57
Josh tried coding
Рет қаралды 73 М.
Why I Don't Use NextJS For My Side Project Anymore
6:51
Josh tried coding
Рет қаралды 54 М.
10 common mistakes with the Next.js App Router
20:37
Vercel
Рет қаралды 158 М.
Shadcn + Next.js 13 is HEAVEN | A QUICK GUIDE
13:30
developedbyed
Рет қаралды 115 М.
Updates Like These Make Tailwind So Fun
8:00
Josh tried coding
Рет қаралды 63 М.
A Better Way to Write APIs?
12:00
Josh tried coding
Рет қаралды 80 М.
Интел подвинься, ARM уже в ПК!
14:06
PRO Hi-Tech
Рет қаралды 121 М.
Turn On Wi-Fi Automatically
0:49
Tech Official
Рет қаралды 741 М.
План хакера 🤯 #shorts #фильмы
0:59
BruuHub
Рет қаралды 900 М.
Iphone yoki samsung
0:13
rishton_vines😇
Рет қаралды 8 МЛН
Infrared Soldering Iron from Cigarette Lighter
0:58
ALABAYCHIC
Рет қаралды 1,5 МЛН