The Truth About Next.js 14

Поделиться
HTML-код
  • Опубликовано: 29 сен 2024

Комментарии • 169

  • @0xedb
    @0xedb 11 месяцев назад +212

    I just hope many young devs aren't using Twitter exclusively to learn. Way too many ill-informed opinions on there. WTF does learning Next 14 even mean? People screaming PHP but can't even tell you what exactly is wrong!

    • @CottidaeSEA
      @CottidaeSEA 11 месяцев назад +27

      A lot of opinions are emotional, not logical. A lot of the people who hate PHP, Java, etc. have never actually used the languages in a real project.

    • @RegalWK
      @RegalWK 11 месяцев назад +15

      blame "web gurus" from yt ;)

    • @0xedb
      @0xedb 11 месяцев назад +6

      @@RegalWK there are way too many people who just churn out videos for the sake of it

    • @oscarljimenez5717
      @oscarljimenez5717 11 месяцев назад +4

      @@CottidaeSEA I hate Java and i've use it, actually was my first language. Now i really hate it because make people scared or desmotivated about programming because is too hugly with all OOP concepts.

    • @gandalfthegrey2777
      @gandalfthegrey2777 11 месяцев назад +10

      @@oscarljimenez5717 So you hate it just because it's difficult and oop?

  • @varshithkumar7782
    @varshithkumar7782 11 месяцев назад +56

    Hey Theo. I have seen many people explain all these prerendering methods, but can you do a indepth video with code showing all of them in the devtools to explain why is it better.

    • @OmarElmasry1
      @OmarElmasry1 11 месяцев назад +1

      Great idea. I vote for this

    • @Nicholas-qy5bu
      @Nicholas-qy5bu 11 месяцев назад +1

      upvoted, i dont really understand all the differences, specially between this new pre rendering and ISR

  • @PhilipAlexanderHassialis
    @PhilipAlexanderHassialis 11 месяцев назад +10

    All of this sounds great. The Next team is obviously hard at work to produce a better offering. The only bothersome thing I see is that the line between React itself and Next becomes blurrier and blurrier. The RSC way shouldn't need Next "per se". Much like the original SPA doesn't need Node to run and it can be hosted on everything that can serve http/s, the RSCs with all their Suspense glory and "render boundaries" should be only Node dependent (which again, in some more obscure cases is a hard no).

  • @zeMasterRuseman
    @zeMasterRuseman 11 месяцев назад +4

    I just learned Next 14 and now I have to learn Next 14.01? Fuck this

    • @IvanRandomDude
      @IvanRandomDude 11 месяцев назад +1

      The horror. My life is so hard. I need to learn new framework every week!!!! I am so special.

    • @Amaraticando
      @Amaraticando 11 месяцев назад

      too late, now I have to learn v14.0.2-canary.0

  • @O_Eduardo
    @O_Eduardo 11 месяцев назад +3

    The fullstack isormorphic idea, the semantic version ( not that semantic )...
    I'm feeling like I'm alone in mass hysteria, like I just woke up living in a Tim Burton movie...
    "use client", "use server"...that's just code smell...Only because people don't want to understand how server side frameworks works...Is that realy bad to install a Nest.js in the project and do some duplicated validations?
    I thought nothing could be worst than Wordpress regarding code design subject, but I guess I was wrong...

  • @0xlodz
    @0xlodz 11 месяцев назад

    Brilliant explanation of partial prerendering! Had an 'aha' moment when seeing the schema demonstrations.

  • @David-gj6dc
    @David-gj6dc 11 месяцев назад +2

    In regards to the SQL injection concerns, people act like it's not possible to write SQL vulnerabilities in literally any language. If you are even aware of that concern then you should be responsible as an ethical engineer to prevent it from happening, regardless of the language you use. And like was mentioned tagged template literals are probably the most idiomatic way to address this concern in modern JS. But it's not like you couldn't have prevented it using your own string builder even if your didn't have that feature.

  • @spencer5051
    @spencer5051 10 месяцев назад

    Initial thoughts.. if theres nothing major why did they do a major version release? Hype?

  • @drugoviic
    @drugoviic 11 месяцев назад +1

    vercel just reinvented PHP😀

  • @LuicMarin
    @LuicMarin 11 месяцев назад +1

    The "14" is just marketing , it's next 13.6

  • @rtorcato
    @rtorcato 11 месяцев назад

    Any plans to make a video on Turbo repo? What are your thoughts on mono repos.

  • @kinax2
    @kinax2 10 месяцев назад

    So now the form get done in the server side, but how are you doing the client side validation using formik, if the input is invalid, you want to show an error message in the client side

  • @haliszekeriyaozkok4851
    @haliszekeriyaozkok4851 11 месяцев назад

    I've same opinion as first opinion. People just started to learn and adopting that next.js 13 and the next.js team appeared with new version that includes a lot of unstable stuff. Why are you just do that shit like express, don't do anything until 4-5 year will pass?

  • @John2202W
    @John2202W 11 месяцев назад

    I tried updating to Next 14 and it broke my Prisma/Turborepo setup

  • @DioArsya
    @DioArsya 11 месяцев назад

    wow

  • @CodingWithLewis
    @CodingWithLewis 11 месяцев назад +15

    Theo being able to type on Discord and say "thats the thumbnail" is a power I wish I could one day have

  • @m___pryor
    @m___pryor 11 месяцев назад +29

    Theo, thank you for your relentless effort in making these Next.js videos. I have been learning A LOT about react, CSR & SSR, caching, etc. Your knowledge and dedication to educating junior developers like myself is admirable. Thank you!

  • @jozekuhar2895
    @jozekuhar2895 11 месяцев назад +35

    Tweeting before reading. I just switched from Vite to Next and learning app router for last two weeks and just opening the docs I can tell not much is changed in my learning curve. Except I needed to remove experimental Server Actions from config file (which is great obviously). Overall I love how they made experience for developer smoother.

    • @jsonkody
      @jsonkody 11 месяцев назад

      Vite what?

    • @moritzschuessler
      @moritzschuessler 11 месяцев назад +9

      Docs are Lava for some guys really. Instead of digging into the concept of a Framework by urself in 2 hours, they rather watch a 8h video where somebody copies code. The docs of next are so good that can get started real fast. some stuff is optional where you should only know it is there so when you need it, you can understand it then.

  • @LC12345
    @LC12345 11 месяцев назад +5

    I really hate Next 14 because I have to relearn a whole new API for everything, Page-router is no longer supported, it opens up for SQL-injections and client React is no longer possible.
    I get all my info from grumpy old/junior devs on Reddit and X.

    • @oscarljimenez5717
      @oscarljimenez5717 11 месяцев назад +3

      this is a joke right?

    • @Amaraticando
      @Amaraticando 11 месяцев назад

      on top of that, emotion, styled components and MUI don't work anymore =(

  • @samuelgunter
    @samuelgunter 11 месяцев назад +5

    Next 13 released, now Next 14?!? When will the insanity end? what's next, 15?

    • @srymisclick
      @srymisclick 11 месяцев назад

      Just like with Node, I stick to the even numbers. 16, 18, 20... Same with Next, 12 then 14, then 16 😂 can't trust the odd releases.

  • @SeattleSpursFan1882
    @SeattleSpursFan1882 11 месяцев назад +9

    Bumping the version number to 13.6 makes more sense from a version control standpoint.

    • @scepta6694
      @scepta6694 11 месяцев назад +2

      Node version change counts as breaking change

    • @marcusramsden5595
      @marcusramsden5595 11 месяцев назад +1

      Releasing a big number makes for a better marketing blog post. I just stick 0.* in front of the version number and breathe into a bag 😂

    • @SeattleSpursFan1882
      @SeattleSpursFan1882 11 месяцев назад

      @@scepta6694 Weird as I don't see major releases from ExpreesJS, KOA, AdonisJS, NestJS, Loopback, Sailjs, Hapi, Meteor or Totaljs. Why is that?

    • @theklr
      @theklr 10 месяцев назад +1

      @@SeattleSpursFan1882that’s their choice? Semver is descriptive not prescriptive. You should read release notes regardless.

  • @davidsiewert8649
    @davidsiewert8649 11 месяцев назад +5

    @theo you forgot to mention that "partial prerendering" only works if you can configure it to be cachable by a cdn.
    Since the feature is currently only in preview state I doubt it. So lets wait for Nextjs 15.

  • @siobe0
    @siobe0 11 месяцев назад +2

    Please don't make the diagrams before your videos, I like to see the thought process that goes into it because it usually helps me understand the concept you're explaining since I can follow the steps your brain is taking to get to the final concept.

  • @manshulduggal5482
    @manshulduggal5482 11 месяцев назад +1

    when people said they have to learn the next 14 ... I realized how stupid they are I mean, You just go to the documentation and read it, and The syntax doesn't look any different from what it already is.= and if someone doesn't like server actions then ... just don't use it???

  • @fatalglory777
    @fatalglory777 11 месяцев назад +4

    Was so relieved to hear there were no new API changes. If they had done another change as radical as server actions I was getting ready to throw my hands in the air and port my app to HTMX.

  • @additionaddict5524
    @additionaddict5524 11 месяцев назад +1

    How can I get a tRPC t-shirt 😭, need it so bad

  • @evalaviniabucur1789
    @evalaviniabucur1789 11 месяцев назад +3

    When you're so good at clarifying things that you sabotage yourself into having your viewers leave the video after 2:28 minutes ^_^

  • @matejaivanovic1587
    @matejaivanovic1587 11 месяцев назад +2

    Can we get the video about cloud architecture behind this? Really interested in whole cdn + streaming thing

  • @spr1ng586
    @spr1ng586 11 месяцев назад +1

    Do I understand correctly that if I use an external api, then server actions will be useless for me? Since I can only write a post request in them, and this can be done on the client as well

  • @heracraft5526
    @heracraft5526 11 месяцев назад +1

    Where can i get the t-shirt your wearing?

  • @Dev-Siri
    @Dev-Siri 11 месяцев назад +2

    Put sam infront of the server actions presentation as the thumbnail, you'll get instant clicks from the twitter users.

  • @idukpayenicholas7823
    @idukpayenicholas7823 10 месяцев назад +1

    What is the name of your diagramming tool?

  • @mathiasriissorensen6994
    @mathiasriissorensen6994 11 месяцев назад +2

    Thanks for the content! A side note, you mentioned that you wanted to make the diagrams before the recording, it actually helped me a lot looking at you creating them, as I thought things were moving. :).

  • @tj78492
    @tj78492 11 месяцев назад +1

    Are we just over engineering at this point?

  • @McProski
    @McProski 11 месяцев назад +2

    Dude, your explanations are legitimately invaluable. These videos are so awesome, it's mind blowing we get this content for free.

  • @ThingEngineer
    @ThingEngineer 9 месяцев назад

    Next 14 - We would like to announce we are moving away from app router to the new…
    /s

  • @viniciusataidedealbuquerqu2837
    @viniciusataidedealbuquerqu2837 11 месяцев назад +1

    if the component is all server. why do we need to write again 'use server'? this is a really good api but this is tripping me off. is it because they didn't want to change much on the default behavior of shipping Js to the client?

    • @Luis-fh8cv
      @Luis-fh8cv 11 месяцев назад

      That was an inaccuracy. That component wasn’t a server component. It was a “universal” component. You can do fetch and few other things, but you can’t run client only react logic like “useState” etc.
      The marketing power of Next is insane. Reading the comment section it seems so many people are using next despite difficulties in learning. But simpler frameworks like Nuxt barely get as much attention :/. The hype in web development is a problem

  • @haritssyah7434
    @haritssyah7434 11 месяцев назад +2

    10:15 ISR = Incremental Static Regeneration

  • @davidsiewert8649
    @davidsiewert8649 11 месяцев назад +1

    Turbopack is not stable. No reason to trying to port to it, if it just leads to already reported issues.

  • @prasadpulaguntla9255
    @prasadpulaguntla9255 11 месяцев назад +1

    Great video, thanks for all the efforts to explain this!! What I can't wrap my head around is how does partial pre-rendering help you when you build your app on localhost (that's the part that is little fuzzy)?? Does the benefits only come into picture when you are caching resources on CDN?

  • @shadowfaxenator
    @shadowfaxenator 11 месяцев назад +3

    If you buy a server in every major region and use it to run nodejs runtime (containerized or bear metal) you won’t have any cold starts and the cost is much less then lambda.(just start with a cheap machine). Edge is much efficient then lambda, but there are questionable benefits vs dedicated server, cause edge networks are still not so wide as we’d wanted and runtime has a lot of restrictions

    • @lapulapucityrider3227
      @lapulapucityrider3227 11 месяцев назад

      LOL how about scaling to zero?

    • @lapulapucityrider3227
      @lapulapucityrider3227 11 месяцев назад

      it depends on you traffic, if its consistent buy dedicated server or any ec2 if not use lambda or ec2 fargate if you want scalable container

    • @shadowfaxenator
      @shadowfaxenator 11 месяцев назад

      @@lapulapucityrider3227 if you try to use lambdas and compare it to dedicated servers in real life (especially not in AWS) you’d see that even holding servers with no trafic is cheaper than handle one -two traffic spikes on lambda

    • @moritzschuessler
      @moritzschuessler 11 месяцев назад

      Well for my 1 User (me) Serverless(maybe Edge → When the 1 Users Travels) Hosting is the best

  • @ugotisa
    @ugotisa 11 месяцев назад +2

    Never thought there would be a ow2 version type update in programming

    • @lukivan8
      @lukivan8 11 месяцев назад

      But it is actually great

  • @stanislautsishkou5632
    @stanislautsishkou5632 11 месяцев назад +1

    nexjs: semver sucks

  • @Tyheir
    @Tyheir 11 месяцев назад +1

    Scrolling twitter and Reddit and seeing the replies to next 14 has been wild to say the least. I think it’s a case of the old fashioned boomer vs zoomer where old devs are reluctant to change. I think at this point tho a lot of reactions are just hype train.

  • @SandraWantsCoke
    @SandraWantsCoke 11 месяцев назад

    bummer, I thought we're going back to client side everything....

  • @EddieVillamor
    @EddieVillamor 9 месяцев назад

    Upgraded from next 12 to 14 and the only thing to fix was the next Link prop warnings.

  • @kearfy
    @kearfy 11 месяцев назад +2

    Turbopack causes a huge memory leak for me. 100gigs of ram in maybe 2 or 3 minutes.

    • @kearfy
      @kearfy 11 месяцев назад

      I reached out about it on discord and I’d expect such an issue to majorly spark interest for the devs but I was told to check if there are any open issues lol
      Yet to open an issue myself

    • @srymisclick
      @srymisclick 11 месяцев назад

      @@kearfy well, there are open issues for this stuff already, so you were told right

  • @iPankBMW
    @iPankBMW 11 месяцев назад +1

    Why noone addresses issue with opting out of nextjs fetch() caching.... Its impossible to opt out of that cache. No matter what we use. Lastest API they added in nextjs 14 was unstable_noStore but still doesnt help.. That opting out of cache doesnt work first 30-60 seconds and only after that it starts to work....

    • @oscarljimenez5717
      @oscarljimenez5717 11 месяцев назад

      already exist a propsal from the Next team for opting out Client cache, i hope it hit soon.

  • @blipojones2114
    @blipojones2114 11 месяцев назад

    React on the server is just such a strech from it original intended use. If react isnt going to be in an SPA, dont use react.

  • @vishalsangole836
    @vishalsangole836 11 месяцев назад +1

    Here an idea make loading pages ssg. on every request, respond with loading page first and then stream actual page even if page crashed or not.

  • @katanaut
    @katanaut 11 месяцев назад +1

    Hey Theo, would be cool if you could do a video where you show how to test next js app for performance and rendering times using chrome dev tools.

  • @JJ-ho5hb
    @JJ-ho5hb 8 месяцев назад

    hey, great video. What's the sketch tool you use here? Thanks

  • @giovannitonussi3746
    @giovannitonussi3746 11 месяцев назад +1

    I had to start a project the same day of Next Conf, and did it with Next 14. The turbopack update really seems faster, but what I'm really interested in is the partial prerendering. Also, thanks for the amazing content as always.

  • @puneettripathi8418
    @puneettripathi8418 9 месяцев назад

    Next is just PHP now, how we all come around in circles

  • @daigahou
    @daigahou 9 месяцев назад

    do you have any video to discuss should or not using src folder on nextjs?

  • @TomasJansson
    @TomasJansson 11 месяцев назад +1

    Great summary. Will static pre-rendering also make edge even faster, or will edge be 100% “dynamic”?

  • @seanknowles9985
    @seanknowles9985 11 месяцев назад +1

    Complexity off all this is wild!

  • @bchdev
    @bchdev 11 месяцев назад

    Theo you need to hit the gym bro. Great content as always

  • @henrikrinne3639
    @henrikrinne3639 11 месяцев назад +1

    Why did you, and others talk about server actions in the context of a form action. Thats boring. Server actions can be called by the client. Thats amazing! We’re doing it in our project. No need to write APIs

    • @FrankyDeMeyer
      @FrankyDeMeyer 11 месяцев назад +2

      I love this capability as well, but don’t want to jump in just yet. We’re planning to create a mobile app in the future, so if we convert our API code into server actions, how is the app going to communicate with the server? Unless server actions somehow create documented endpoints as well.
      To me, this is an elephant in the room that nobody seems to talk about.

    • @fghdfghdfgghdstwesdfjtykjyfgk
      @fghdfghdfgghdstwesdfjtykjyfgk 11 месяцев назад

      they create actually@@FrankyDeMeyer
      you can see in network they're just http endpoints.

  • @aakarshan4644
    @aakarshan4644 11 месяцев назад

    I really want to understand the web standards vs the framework patterns, one way we got the RESTful principles like idempotency, URL as state etc and on the other hand we have the frontend evolving into a complex state machine of its own. sync to the source of truth? server? DB? edge? CDN?
    Its like a war to build 300 mph trains on tracks that handle 50 at max. Frontends evolving into a full ass native desktop app with a target "install" time of

  • @user-pj3ns2bq2e
    @user-pj3ns2bq2e 11 месяцев назад

    New release but major bugs in 13.4/13.5 preventing projects from upgrading are not adressed. What about fixing all the stuff thats broken instead of steaming on with new features? Some projects are so hughe and heavily invested that migrating from the pages router will never happen.

  • @witchmorrow
    @witchmorrow 10 месяцев назад

    Can someone explain - he said towards the end 'pre-rendering makes me hesitant to use Edge' (as opposed to Lambda?) - but he doesn't explain why, does anyone know?

  • @kodekorp2064
    @kodekorp2064 11 месяцев назад

    I just don’t understand how people just… Can’t read? Like bro every time I look at a brand there’s a whole changelog.

  • @piotrm98
    @piotrm98 11 месяцев назад

    Can you make a new video of making some small app like pokemon app, but with App router and all of next next stuff. I think that could help understand the new way of doing things.

  • @miervaldis42
    @miervaldis42 10 месяцев назад

    I'm thankful you did this video even if you didn't feel like it because your diagrams were very helpful to grasp the concept of what Next.js 14 is going to provide us :)

  • @capsey_
    @capsey_ 10 месяцев назад

    When I saw this thumbnail I literally cried, this is most beautiful thing I've seen in my entire life, I cannot fathom how much effort you must've put into it, it's so majestic I'm gonna scream your name in bed

  • @wolfVFXmc
    @wolfVFXmc 11 месяцев назад +4

    The thing about the sql injection is. You and other devs might know how to do it securely but there will always be a percentage of devs that will write insecure code

  • @versaleyoutubevanced8647
    @versaleyoutubevanced8647 11 месяцев назад

    ok but why vercel dashboard is so badly done? there is like 300 skeletons, layout shifts, cold starts... good ui, good flow, but bad ux

  • @srymisclick
    @srymisclick 11 месяцев назад

    Excited for PPR in light of a bi project that could use it sooo much. Shame it doesn't work on Vercel yet, but oh well.

  • @ActiveAndReactive
    @ActiveAndReactive 10 месяцев назад

    Good stuff, the presentation style is amazing! Please let me know what that software tool used to write easy to understand notes.

  • @shadowfaxenator
    @shadowfaxenator 11 месяцев назад +1

    I don’t understand why partial pre-rendering is a new feature as it was already present in next 13 (suspense + streaming)

    • @theklr
      @theklr 11 месяцев назад

      There’s more features under the hood that they plan to announce and my theory it’s more for headless CMS tools and the like

    • @srymisclick
      @srymisclick 11 месяцев назад +1

      PPR means the page gets built as static HTML with suspense fallbacks, whereas before it was just a lambda. You can't put a lambda on a CDN.

  • @Furki4_4
    @Furki4_4 11 месяцев назад

    the last update before 14 was 13.5.2 and it significantly improved budling time in dev env but I don't think turbo option make any difference, besides it sometimes breaks hot-refresh :/

  • @georgepetroff2364
    @georgepetroff2364 11 месяцев назад +1

    Thanks Theo, get some well deserved rest!

  • @yassineoh813
    @yassineoh813 11 месяцев назад

    Does TRPC still worth after server action being stable???

  • @rubananderson3880
    @rubananderson3880 11 месяцев назад

    Remix : "Look what they need in order to mimic a faction of my power!"

  • @Orland89
    @Orland89 11 месяцев назад

    There are not security problem, but there are a lot of pattern problem. There is a reason if we develop mvc/mvvc

  • @justfly1984
    @justfly1984 11 месяцев назад

    so why major version? marketing? sucks)))

  • @juliusmarminge
    @juliusmarminge 11 месяцев назад

    Eyyy tRPC shirt 🎉

  • @haraldvinje
    @haraldvinje 11 месяцев назад +1

    What's the name of the drawing/diagram program you use?

  • @rjxl8
    @rjxl8 11 месяцев назад

    Update to next 14 from 13 and my app broke, great issue is with clerk

  • @bojidaryovchev9995
    @bojidaryovchev9995 11 месяцев назад

    I love watching a pro present stuff, mad props yo

  • @LotusSoftPvtLtd
    @LotusSoftPvtLtd 10 месяцев назад

    nice

  • @AnassSanba-f5d
    @AnassSanba-f5d 11 месяцев назад

    I'm using nuxt and i'n having a peaceful time here

  • @ramandev_
    @ramandev_ 11 месяцев назад +1

    What app did you use for the notes?

  • @FabuBrik
    @FabuBrik 11 месяцев назад

    It's a full time job to keep up with this stuff. Thanks for the breakdowns.

  • @KellenProctor
    @KellenProctor 11 месяцев назад

    Clerk authMiddleware is broken with turbo

  • @tenmo3625
    @tenmo3625 11 месяцев назад

    Love the Mimikyu plush in the background

  • @justfly1984
    @justfly1984 11 месяцев назад

    Why not comparing with SSG?

  • @saralightbourne
    @saralightbourne 11 месяцев назад

    but how to make such partial CND caching in next js? sounds sick for real

    • @srymisclick
      @srymisclick 11 месяцев назад

      PPR generates a static HTML page with holes for the suspended components, filled with their fallbacks. You can cache the static page and then the server only has to dynamically fill in the holes, instead of generating the whole page each time.

  • @crmgbo
    @crmgbo 11 месяцев назад

    So, no CDN means no advantages ?

  • @chan-et9mu
    @chan-et9mu 11 месяцев назад

    What is the editor tool in this video?

  • @2012Accounts
    @2012Accounts 11 месяцев назад

    No luck with turbo in any of my repos so far sadly

  • @saav5343
    @saav5343 11 месяцев назад

    i hate nextjs , and i don't even use it

  • @schmellmafeet
    @schmellmafeet 11 месяцев назад

    How do I cdn cache?

  • @JEsterCW
    @JEsterCW 11 месяцев назад

    the *tRPC* shirt tho

  • @coolemur976
    @coolemur976 11 месяцев назад

    Best release eveeeer

  • @nabinsaud4688
    @nabinsaud4688 11 месяцев назад

    Trpc gang ❤

  • @patrickwasp
    @patrickwasp 11 месяцев назад

    If no breaking api why not 13.1?

  • @emreq9124
    @emreq9124 11 месяцев назад

    what the heck is happened to your skin bro ?

  • @ahmedam77
    @ahmedam77 11 месяцев назад

    Great video!
    What application you use for the sketching?

    • @skm12
      @skm12 11 месяцев назад +2

      Looks like Excalidraw

    • @ahmedam77
      @ahmedam77 11 месяцев назад

      Thanks a lot!@@skm12