Going Back To Next

Поділитися
Вставка
  • Опубліковано 1 гру 2024

КОМЕНТАРІ • 341

  • @t3dotgg
    @t3dotgg  3 місяці тому +28

    GO WATCH CODY'S VIDEO ua-cam.com/video/mt1ZCai1G-I/v-deo.html

  • @WebDevCody
    @WebDevCody 3 місяці тому +303

    A Theo reaction, right after a Primegen reaction. I might as well retire at this point.
    Thank you for reacting to my video!

    • @Cr4zyiee
      @Cr4zyiee 3 місяці тому +2

      Time to try again in Cursor world!

    • @n1cekita
      @n1cekita 3 місяці тому

      You have almost the same number of subscribers, come on, don't be shy)
      Waiting for new hot takes btw

  • @michal_kuczek
    @michal_kuczek 3 місяці тому +55

    I didnt finish my project in next yet and youtube did a full rotation through all frameworks already

    • @tpmunizz
      @tpmunizz 3 місяці тому +1

      and nothing actually changed in the real world for years now

  • @vinialves12362
    @vinialves12362 3 місяці тому +39

    Cody's a genius. He made a video appealing to Prime, waited the react, than made another one appealing to Theo (clap clap)

    • @codeChuck
      @codeChuck 25 днів тому

      Hahaha, :D View gathering :D You reap what you saw ;)

  • @sify11
    @sify11 3 місяці тому +106

    'handling the errors is not something i care about' XD

    • @QuebnQ
      @QuebnQ 3 місяці тому +33

      Thats the Web Dev mentallity we know and love.

    • @infantfrontender6131
      @infantfrontender6131 3 місяці тому +5

      Literally me in Elixir with pet projects. Just "let it crash"

    • @shirkit
      @shirkit 3 місяці тому +2

      Yeah, this is an underrated take. Sometimes just let things break and then you fix it. I for instance only code about 1/4 of my time, the rest is spending managing my business. So yeah, devs are ALL over the place.

    • @mrmaniac9905
      @mrmaniac9905 3 місяці тому +10

      Theo is genuinely the epitome of a poser wanna be programmer who probably has narcistic tendencies

    • @emilryden8306
      @emilryden8306 3 місяці тому

      finally someone singing the forbidden tune.

  • @ElvenSpellmaker
    @ElvenSpellmaker 3 місяці тому +172

    He seems to be complaining more about using Go and Templ than htmx itself...
    You don't have to use Go to use htmx...
    The htmx creator clearly states that htmx isn't meant to replace JavaScript but complement it and reduce the amount of menial code for things that can be handled by the extended HTML tags.

    • @khai96x
      @khai96x 3 місяці тому +14

      This further solidifies my opinion that Go is the wrong choice for web backend. Not only do you have to deal with nil pointer and race condition, you would also have to deal with its UX.
      Go is less than C# in safety, job availability, and hireability.
      Go is inferior to Rust in term of performance, safety, and ergonomic (few languages have such as convenient tool as Rust macros).

    • @C4CH3S
      @C4CH3S 3 місяці тому +55

      ​@@khai96xthe type of comment someone who doesn't actually write go writes.

    • @ivan.jeremic
      @ivan.jeremic 3 місяці тому +1

      Node is the best backend for apps.

    • @C4CH3S
      @C4CH3S 3 місяці тому +28

      @@ivan.jeremic I'm honestly baffled that you actually said that, that you actually insinuated a single core, non distributed, event loop driven runtime with colored functions and traditional exceptions is somehow, the best backend...

    • @Hendrik1186
      @Hendrik1186 3 місяці тому +4

      @@C4CH3S I could not agree more. nodejs struggles hard with high request counts and if a user of the API does something stupid the whole process will block for a moment good look by the way then figuring out where that happens.

  • @amrojjeh
    @amrojjeh 3 місяці тому +14

    I understand why he disliked Go but I don't think he was using it correctly. You cannot program in Go the same way you program in JS. The paradigm in Go is libraries cannot panic for you, and so if you want less verbose code, just create the functions you need that panic in the way you expect them to. If you handle parsing an int the same way every single time, then create a function wrapper and just use that.
    Go does not have to verbose. It's as verbose as you want it to be.

    • @amrojjeh
      @amrojjeh 3 місяці тому +3

      I watched more of the video and I noticed other gripes which mostly come from Javascript habits

  • @notarealperson9709
    @notarealperson9709 3 місяці тому +23

    so he setup his project structure like he does in nextjs and tries to force golang into that convention. i see this with java programmers all the time that are trying to switch to golang.

    • @paw565
      @paw565 3 місяці тому +3

      How to do this right sir?

  • @devinlauderdale9635
    @devinlauderdale9635 3 місяці тому +11

    web dev cody's content is nice because he shows himself having incorrect assumptions, he doesn't cut the stuff out, he leaves it all in. I like how he explains how he messes up, works on it to understand, and then shares with his community.

  • @sortof3337
    @sortof3337 3 місяці тому +86

    2 WEEKS IS NOT ENOUGH TIME TO LEARN ANYTHING AND JUDGE IT.
    So, you can write JavaScript with htmx as well, idea of htmx isn't about no javascript but hypermedia as state representation.
    I think web dev cody's experience isn't a real experience in industry cause most of his experience is making youtube videos not products being used by people and 2 weeks isn't enough time to learn Go let alone htmx.
    There are people at IBM who are making decent sized projects in HTMX. It would be awesome if you could get them on stream.
    I think your view is right in saying that this might not be real industry experience but of an indie hacker who makes videos not products.

    • @chriss3404
      @chriss3404 3 місяці тому

      Yeah... I think Cody made some phenomenal points about not being to build as quickly, but as for finished product ux... Most real world htmx apps I've heard of ship a small amount of javascript to deal with the few things that don't fit the model, but are still core to good UX. HATEOAS (worst acronym) is really useful for keeping things simple and I think it's a shame that it feels like it got a bad shake.

    • @tsubasateacher
      @tsubasateacher 3 місяці тому +6

      If you follow his complaints on Twitter, someone says, "If you bumped into some issues while using some library, you must find another way to do it and not double down on your problem so that it works the way you want."
      Cody did the latter (and is happy that Carson acknowledged that it's a bug), but there are still other ways to fix Cody's problem.

    • @WebDevCody
      @WebDevCody 3 місяці тому +12

      I mean, did y’all actually think id permanently switch to go and htmx when I’ve been getting paid to write JavaScript, typescript, react, node full time for 10 years now?
      The moment my content becomes all Go you know my actual paycheck from work is coming from Go.

    • @SteveKuznetsov
      @SteveKuznetsov 3 місяці тому +5

      Not permanently, no, but getting a bit more bake time would certainly help, especially since you're stepping out so far from your career expertise. In my career experience, two weeks just isn't enough time to switch mindsets - of course you mastered the mechanisms of development in the new stack, but your comments about things like parsing integers and error handling clearly show that you're still (understandably) writing Go while thinking in JavaScript. I write safety critical server software for a living, and I've been learning front end - in the last two years I've written websites with Next.js and Nuxt, and a mobile app in React Native. Even still I can clearly see I'm writing JavaScript but thinking like a back end dev. You do you, though.

    • @WebDevCody
      @WebDevCody 3 місяці тому +7

      @@SteveKuznetsov eh like I said, I think go is good, I just need to get used to how it’s written. HTmX I can’t see the silver lining.

  • @BobKane-g6x
    @BobKane-g6x 3 місяці тому +25

    Our team has moved on from the JS framework and isn’t looking back. We now use HTMX sparingly, and that’s all we need. We couldn’t be happier with this approach. Personally, I’ve rediscovered my joy in development, which is the most important thing. If you find satisfaction working with Next, React, Vue, or any other framework, go for it. The key is to enjoy what you do. HTMX has been great for us.

    • @simonhartley9158
      @simonhartley9158 3 місяці тому +3

      I'd be interested to hear some examples/specifics.

    • @LongJourneys
      @LongJourneys 3 місяці тому +2

      Honestly I've been contemplating taking my company in a different direction as well. I've been doing this for 20 years and the last decade has been hell trying to navigate all of these constantly changing frameworks. I'm kind of sick of it.

    • @gruntaxeman3740
      @gruntaxeman3740 3 місяці тому

      I think there is way too much of lack of deep understanding about tools and where to use them.
      We have the thing called "web", hypertext documents to share stuff. But it went to every machine so it became very early as standard way to make user interfaces for *applications*. Application is different thing than example some some company web page.
      Of course browser was very limited because everything was depended on page loading. In fact Javascript was considered as optional thing most of the 00s. It was around 2009 when it makes sense to write applications that are expected to work everywhere so we can actually make things dependent on Javascript. It started from jQuery, paradigm was server rendered UI with page loads, but jQuery make usable to make some components dynamic and work without pageloads.
      We soon got Angular that was for single page applications and later we got React. But those actually run UI code completely on JS and that was of course terrible idea if project is company web page or similar content page. Applications are not intended to be accessed with search engines.
      What happened is that substandard web developers started to overuse Javascript in content pages while in reality they should render them in server and avoid Javascript. Some cases Javascript make sense and those cases were possible to handle with jQuery component long time and past four years web components are way to go.
      It is just important to make difference is someone making systems that share content or are they making application.

    • @gruntaxeman3740
      @gruntaxeman3740 3 місяці тому

      @@LongJourneys
      UI code in applications has always gone out of date quickly. If not technology did not start to rot, then it went out of fashion. But when application runs in browser, there was and still is going very rapid development and newer technology reduces boilerplate code or it runs faster.

    • @Joshua.Developer
      @Joshua.Developer 3 місяці тому

      Yep as a newbie focusing 100% on React is a big mistake. Your learning React ecosystem and not coding or development. Go and templ and HTMX is fine for the most point.

  • @cabanford
    @cabanford 3 місяці тому +43

    Interested in HTMX, but have been waiting for a "flip-side" view of its weak points.

    • @sarabwt
      @sarabwt 3 місяці тому +15

      Weak points are that you have to do web 1.0 and enhance that instead of building the app like you would for the SPA. It is also clumsy to update multiple things, because you either have to render higher in the tree to reflect all changes, send weird OOB responses or emit events and make those places refresh themselves. It is probably the least messy if you just use "boosted links" and do full page renders, and optimize it later.

    • @araozu
      @araozu 3 місяці тому

      ​@@sarabwtyeah, if you need the high interactivity of a SPA, you are better off writing a SPA. Htmx has other use cases

    • @screweddevelopment12
      @screweddevelopment12 3 місяці тому +2

      there are some small gotchas too like including the vary header in the response or ur cache will be all messed up (back and refresh will only render the html partials). its pretty nice tho once you figure it out tbh.

    • @ricardodelacrvz1400
      @ricardodelacrvz1400 3 місяці тому +1

      ​@@sarabwt your whole crap next js bubble is the result of people enhancing web 1.0 for more than a decade to the point of a running a server just for it. at any point claiming that running a virtual dom for a web app when today there exactly no need for it is like picking your car to go to work when your job is 200m away from you. you code for convenience. at this point your not even a programmer, your a IDE user. the real programmers are building your crap performant frameworks.

    • @sarabwt
      @sarabwt 3 місяці тому

      @@ricardodelacrvz1400 Tf you on about? I work as a BE dev/devops, I never used Next EVER, I hate React, I used HTMX for pretty much every hobby project since 2021 (way before you found out about it) and I use neovim for everything. How highly regarded do you have to be, to think, that HTMX is beyond critique??? Which makes me believe, that none of you ever built any even moderately complex app using HTMX.

  • @KevinVinck
    @KevinVinck 3 місяці тому +2

    I feel like so much of it is just down to what you're used to and experienced with. I came from Objective-C, C# and Python before really getting into Javascript. And my first reaction to Javascript was "Ugh, why does it feel like everything is hidden behind syntactical sugar and shortcuts?" I felt like the amount of syntax I had to learn before I could understand what Javascript code was doing was significantly higher than in other languages I was used to. So for me when I first tried Go the same verbosity he sees as a detriment felt like a breath of fresh air to me. It's more characters to type sure, but I feel like I feel like that's made up by me spending less time than I do in Javascript trying to decipher the cleverness involved when trying to minimize verbosity in coding.

  • @juxuanu
    @juxuanu 3 місяці тому +6

    A couple things I noticed:
    - not enough time spent learning Go
    - bad tooling (e.g. GoLand does go to templ and not compiled file)
    Don't get me wrong, he does make good points, but some of them are not.

  • @rikschaaf
    @rikschaaf 3 місяці тому +7

    12:55 I remember when IntelliJ added support for clicking to go to spring bean/component definitions from the place that they were injected. It made working with Spring and Spring Boot SOO MUCH better.

    • @dzigizord6567
      @dzigizord6567 3 місяці тому +1

      you should have added a trigger warning before writing "spring bean"

    • @rikschaaf
      @rikschaaf 3 місяці тому

      @@dzigizord6567 Well, at least I didn't write JavaBea-... Oops 😅

  • @thales-maciel
    @thales-maciel 3 місяці тому +7

    are you ok theo? I've never seen such bad arguments from you before.
    - "I'm used to JS and I don't like GO's package system because it's weird".
    - "I'm frustrated because using something different requires a shift in my mental model"
    - "There's only one type of web app"
    - "I'm right, I don't care"
    I understand you're mad and want to fight the non-sense hype and hate, but take a breath... you know way better than this.

    • @hamm8934
      @hamm8934 3 місяці тому +6

      he's always been like this. I'm glad you're finally starting to see it.

    • @sheko4515
      @sheko4515 3 місяці тому

      His business is T3 stack so he will sh*t on non js stacks just to keep his cash cow running, js has its place but htmx, rails, django phoenix have there place too in fact most of the time you can avoid JavaScript, react, next.js and this non sense but again he lives in his bubble for obvious reasons.

    • @onça_pintuda999
      @onça_pintuda999 2 місяці тому +2

      @@hamm8934 Exactly, I got tired of this "Next Next Next" of Theo, IDK if he is, but seems to be sponsored by Vercel to promote that shit framework. Dont watch his videos anymore, I just come here to coment "Stop using Next, use Solid"

    • @hamm8934
      @hamm8934 2 місяці тому

      @@onça_pintuda999 hes sponsored by vercel

  • @TenFeetDown
    @TenFeetDown 3 місяці тому +21

    The whole "Full Stack" world is a very deep local minima that people outside of it don't want to get into, and to get people out of it will take a truly convincing paradigm shift.

  • @notarealperson9709
    @notarealperson9709 3 місяці тому +42

    panic in a POST handler? lul

  • @chrisr236
    @chrisr236 3 місяці тому +10

    Unrelated, but I've been a long time Rails dev and this weekend I tried NextJS. I'm honestly surprised at how easy it was. There are a lot of simple and powerful ideas in here - not something I expected from a JS framework.

    • @kingnick6260
      @kingnick6260 3 місяці тому +3

      Yeah I really don’t understand why people complain. I’ve been deving since 2001 back with mostly HTML, transitioned to PHP in 2006, React in 2019, and now NextJS. I just happen to use the tools for the trade, yet didn’t expect such a huge cult around each language.

    • @Korabii
      @Korabii 3 місяці тому

      @@kingnick6260 It's javascript of course every framework is a cult

    • @HugoDuprez449
      @HugoDuprez449 3 місяці тому

      Try Svelte :D

    • @romulino
      @romulino 2 місяці тому

      I just really miss migrations, also setting suipabase for local development felt like breaking away from the Hades and I just gave up.

  • @sify11
    @sify11 3 місяці тому +31

    he basically complains about good practices go forces XD

  • @flxk
    @flxk 3 місяці тому +3

    Regarding the redirect and login button: We simply do an out-of-band swap of the login form. 🤷

  • @theangelofspace155
    @theangelofspace155 3 місяці тому +10

    2:00 so far I only heard, "because of some skills issues, I need to go back to JavaScript".

  • @thisaintmyrealname1
    @thisaintmyrealname1 3 місяці тому +12

    My DX with Go increased immensely by switching to the Goland IDE. No time to mess around with gdb or VS code extensions.

    • @balaclava351
      @balaclava351 3 місяці тому +2

      Yeah, this is a large part of the issue. He's using a text editor instead of an IDE.

    • @WebDevCody
      @WebDevCody 3 місяці тому

      @@thisaintmyrealname1 I wish I tried it out, I didn’t know about it

    • @rasibn
      @rasibn 3 місяці тому

      I love the new look and feel of Idea on mac, it's so nice.

  • @killerwife
    @killerwife 3 місяці тому +1

    I will argue that the speed at which GO compiles is directly proportional to its rigidity in naming. The parser can be a lot simpler, and yes, it cannot compete with the multitude of weird shit you can do in javascript, but thats exactly why javascript is slow. Just like all the conversations about json not supporting a trailing comma, and after examining, you figure out how it complicates the parsing tree and how immense the performance impact would be. Not saying I like the GO way of doing things inherently, but its EXTREMELY important to acknowledge why things are that way. My GO builds compared to NextJS are not even in the same realm.

  • @miguelalzate4850
    @miguelalzate4850 3 місяці тому +2

    I love Go and consider it vastly superior to JavaScript/TypeScript, and I completely disagree that it's more verbose than TypeScript. However, even though I'd love to create my frontend with Go, I acknowledge that nothing beats the JavaScript/TypeScript ecosystem for that purpose. The development experience for UI/UX with those tools is remarkable. In the end, it's important to recognize that each tool excels in entirely different areas.

  • @Eziekel666
    @Eziekel666 3 місяці тому +2

    Convex is an absolute kill, it went so fast to have something usable with no worries about cache invalidations and the dx is so great because there is no obscure errors and such simplicity.

    • @WebDevCody
      @WebDevCody 3 місяці тому +1

      You’re a smart man

    • @Eziekel666
      @Eziekel666 3 місяці тому

      ​@@WebDevCody Found it thanks to a github repo where I was stealing components setup, so of course I went like "ignore this db saas crapware vendor-locking yada yada".
      And then 2 month later I tryed it, was impressed.

  • @darknezx9542
    @darknezx9542 3 місяці тому +5

    I'm on both sveltekit and go/templ/Htmx, and the dev experience is the reason why I keep going back to js. Especially the hmr and dev server. Not sure why my air/templ setup panics from time to time, and that requires me to kill the dev server and restart it.

    • @williambuckley5601
      @williambuckley5601 3 місяці тому

      I'd love to be a developer whose experience is defined solely by the UI building process.

    • @stevensoftware-engineer6997
      @stevensoftware-engineer6997 3 місяці тому

      JavaScript is forever the best 🔥🔥🔥

    • @QWERTIOX
      @QWERTIOX 3 місяці тому +1

      You should report these panics to air/tmpl

  • @MrManafon
    @MrManafon 3 місяці тому +33

    My man would fall in love with Elixir based on what he said

    • @WebDevCody
      @WebDevCody 3 місяці тому +8

      I guess we’ll never know

    • @RogerDearly
      @RogerDearly 3 місяці тому

      ​@@WebDevCody😢😢😢

  • @nexovec
    @nexovec 3 місяці тому +5

    Didn't know htmx will have a villain arc

  • @ffffoundit3198
    @ffffoundit3198 3 місяці тому +3

    Context switching is not exclusively between languages, back when node didn't support modules i had to write commonJS on backend & ES modules with react and that had me always messing up the node files with ES modules syntax...

    • @MrJfergs
      @MrJfergs 3 місяці тому +1

      The fact that commonjs and es modules is still not resolved and likely won't be for a very long time makes me want to not use node.

  • @SteveKuznetsov
    @SteveKuznetsov 3 місяці тому +13

    Theo if you write a unit test in the same package as the unit you're testing, nothing needs to be exported. I'm sorry to say that comments like these make you sound like you really don't know the absolute bare basics of what you're talking about.

    • @Lohan_Guedes
      @Lohan_Guedes 3 місяці тому +2

      its bc he does not know....
      I was really wondering WHY THE FUCK he needed to export something from a package in order to test it...

    • @Soarex
      @Soarex 3 місяці тому

      He probably meant, he had to ‘const foo’ > ‘export const foo’, making the previously private-to-the-file variable public to everything else in the current package just to test it.

    • @SteveKuznetsov
      @SteveKuznetsov 3 місяці тому +1

      @@Soarex he was talking about this as a downside of Golang, which doesn't have that kind of concept.

  • @thegrumpydeveloper
    @thegrumpydeveloper 3 місяці тому

    Appreciate him giving it a go and having opinions on it from using it. So many opinions out there are just theory and not people who have actually tried to actually build something.

  • @RemotHuman
    @RemotHuman 3 місяці тому +21

    Couldn’t you theoretically write the VScode extension yourself to open the non-compiled file when you command click

    • @jesse9999999
      @jesse9999999 3 місяці тому +14

      the whole point of vscode is not needing to write your own implementation of stuff like that, the templ lsp authors should be responsible for that behaviour

    • @xsharawi
      @xsharawi 3 місяці тому +16

      A v*code user solving their own problem? Impossible.

    • @Hendrik1186
      @Hendrik1186 3 місяці тому +1

      How about using an Actual IDE? Goland for example?

    • @jesse9999999
      @jesse9999999 3 місяці тому +2

      @@xsharawi i use nvim and write my own plugins for a bunch of pointless shit, i'm just saying for a person that chooses to use vscode they're probably not looking to write a plugin

    • @WebDevCody
      @WebDevCody 3 місяці тому +6

      That would assume I’m smart and want to waste a bunch of time doing that

  • @dotnetapp
    @dotnetapp 3 місяці тому +1

    35:25 is a bad take, to be honest. I don't mean that he has to fully commit to Go or anything like that. I actually appreciate that he tried it out and formed an opinion about its style. However, concluding with "Yeah, so I'm basically a JS/TS dev. You can make fun of me, but whatever," is such a weak conclusion.
    For me, being a developer means innovating, improving, and constantly learning new things-that's what I love about the web. You also have to explore what other frameworks and languages are doing to really understand the landscape. Maybe you can take something from the Go/Rust/Zig idioms and apply it to your work in JavaScript/TypeScript. I always seek out new stuff and strive to get good at it, and I've been a JS/TS developer for 10+ years now without losing that passion.

  • @harryhack91
    @harryhack91 3 місяці тому +8

    My main problem with modern frontend frameworks is that I'm so traumatized with Angular and Webpack, which takes and absurd amount of time to build and deploy, and the developer experience isn't great either. I can listen a full 3 minutes song here on YT while the Angular dev server tries starts up on the company-provided potato laptop. That's why I chose HTMX, I didn't wanted to deal with that. And the reason I don't like React is that it brings back Vietnam memories from the JSP days.

    • @dealloc
      @dealloc 3 місяці тому

      I think those tools (Webpack specifically) are best suited for build tools that package bundlers, and not by themselves nowadays (unless you have a very specific environment setup).
      Webpack _can_ be very fast and its dev experience excellent, but you have to spend upfront time to get there, since it's quite low-level compared to Vite, which just wraps ESBuild and Rollup.
      For example, Metro on React Native is relatively fast when you consider the number of files and dependencies that often come with a React Native app; without all those dependencies, it builds in a very small amount of time, and you can be pretty sure that there's not going to be inconsistencies between development and production builds. Vite has bit of a problem with this, since it uses different bundlers depending on the environment its built against.
      I don't know about Angular's specific setup, but that does indeed sound terrible if it takes 3 minutes for a development server. I have fortunately not have such a bad experience with Webpack (not using Angular), but we've since moved to Vite on my team, and deal with the inconsistencies as they come, which with every version gets very minimal at this point.

    • @ivan.jeremic
      @ivan.jeremic 3 місяці тому

      skill issue.

    • @araozu
      @araozu 3 місяці тому

      For enterprise CRUD apps there is no reason to use front end framewoks. htmx and hyperscript are more than enough. Those absolutely don't need so much interactivity

  • @gageracer
    @gageracer 3 місяці тому +1

    It's weird that almost all complaints were aesthetics but he left the biggest one: templ templates does not have any kind of highlighting when you use go code, CSS, tailwind, htmx or any other js thing. It's just plain text. Whatever you type it just looks at you as you are writing in a txt file. As someone who was learning to use alpine, htmx and templ at the same time, I had to triple check everything I typed with another monitor to make sure that is the correct way to create a variable for alpine inside a " " but { } if you want to use a go variable but then you gotta make sure to convert everything to string otherwise templ goes crazy so now I have to make a helper function that gets every argument and converts it into string and returns a string so I can add that to my alpine state description... And you just ask yourself what am I fckn doing?
    HTMX having weird bugs on me cost me a job btw. HTMX does not run certain update triggers unless that form is updated outside once for me. That made the state of client and the server disconnect which is the WHOLE point of HTMX, to have a one-to-one state on the server.

  • @balaclava351
    @balaclava351 3 місяці тому +5

    His complaints are valid... but the complaints about the editor linking to wrong files... that what you get for using VSCode. If he used a proper Go IDE like GoLand he wouldn't have had these issues.

    • @hamm8934
      @hamm8934 3 місяці тому +1

      The incorrect go-to-file complaint he had is a documented bug on the github repo that they're working on. It's not an easy fix because they basically have to intercept the Go lsp and redirect it to the Templ LSP. If you're already in a Templ file, the go-to-definition works.
      Templ is like 2 years old and was made by one dude. Things like this will be gone in a year or two. Templ, Go, HTMX, and Alpine will be a powerhouse in 2-3 years.

  • @Ben-ts7ut
    @Ben-ts7ut 3 місяці тому +3

    respect for actually pushing people to the original video

    • @WebDevCody
      @WebDevCody 3 місяці тому

      I know Theo is a chad for that

  • @nasko235679
    @nasko235679 3 місяці тому

    The argument for editor support is a huge one. That's why Laravel for example are working extremely hard to integrate aVSCode extension that actually functions, because most devs will give anything a shot, but the moment it becomes annoying they're going to peace out.

  • @msclrhd
    @msclrhd 3 місяці тому +1

    I've seen HTMX used on 3 large-scale projects. It's not perfect, but it's eliminated all the onsubmit bindings I used to have to write in JavaScript. I like the declarative nature of HTMX. For everything else I can write native JavaScript code to do additional initialization logic, or hook into the HTMX events to deal with things like rich edit controls.
    At the end of the day it is another tool to make use of. If you find TypeScript and next.js is easier for you then use that.

  • @williambuckley5601
    @williambuckley5601 3 місяці тому +2

    The original video annoyed me no end. He picked a rock solid language and paired it with Templ, a tool which is barely used and is little more than a thought experiment outside of the UA-cam developer context. Not only that, he then complained about IDE experience when using said fringe tool....

  • @GGGGGGGGGG96
    @GGGGGGGGGG96 3 місяці тому +1

    Comparing htmx with NextJs is like comparing a bicycle with a car - they are completely different, they offering different solutions for different type of problems (and goals).

    • @onça_pintuda999
      @onça_pintuda999 2 місяці тому +1

      Agree, Next is a 1998 Fiat Multipla but it's still a car...

  • @penguindrummaster
    @penguindrummaster 3 місяці тому

    One of the unspoken evils about string interpolation in JavaScript is the ambiguity of what gets called to do it. I recently learned (the hard way) that implicitly valueOf() is actually called first, and then toString(). So, if you happen to implement both, then you need to contend with the fact that string interpolation prefers valueOf() over toString(). You can explicitly call toString(), but then it's hardly any different than using a string formatter.

  • @RyanTipps
    @RyanTipps 3 місяці тому

    The open API wrapper thing requires you to trust the type definitions from the backend, and which are often obviously wrong, so I end up using Zod to validate them client side because I don’t have control over the backend codebase and the other team doesn’t care enough

  • @Lohan_Guedes
    @Lohan_Guedes 3 місяці тому +2

    Sepnds 10 years coding javascript: WOW who'd think I'm performant in this language!?
    Then Spends 4 weeks using Go: wow, I'm not as productive as the language I'm proficient in, because I've used for 10 yers... wow I can't believe it

  • @TheGagouman
    @TheGagouman 3 місяці тому

    Just wanted to comment and praise you for the fact that you didn't include a part of Cody's video and told us to go watch it. This supports the original creator in a big way which I love.

  • @rns10
    @rns10 3 місяці тому +1

    40:11 just replace go with any backend server lang that you want to use. It still make sense.

  • @PortalUser2
    @PortalUser2 3 місяці тому +5

    Theo's diagram makes me realize how powerful Blazor is if you want the best of both worlds. It is like REACT and GO, but in a single solution/framework.

  • @astartup
    @astartup 3 місяці тому +2

    One place where JavaScript sucks is with the 64-bit integers. This is a hardcore struggle with BigInt.

  • @bopon4090
    @bopon4090 2 місяці тому +2

    Nothing he said about go is a legit issue. He is so deep into js he cant think beyond js ecosystem. I understand that cause i was there too.

  • @nony3882
    @nony3882 18 днів тому

    I've been doing full stack with both Go and React for 8 years, and I never mix the two. Use hammer as hammer, and use drill as drill. The moment you start using the wrong tool, or try to bolt your hammer onto a drill, disaster happens.
    Make yourself comfortable with multiple tools, not doing everything with the same tool.

  • @jackdixon6681
    @jackdixon6681 3 місяці тому +1

    People will say that these complaints are just whining about enforced good practice, but I think that misses the crux of the issue.
    Enforced good practice is great in production code, but it can make learning a language a much more painful process.
    "Skill issue" is go-to the response to that complaint, but a beginner has no skills, and that's precisely *why* it's an issue.

  • @gautamdey4509
    @gautamdey4509 3 місяці тому +1

    the package name does not need to match the directory name that the go files exist in.

  • @echobucket
    @echobucket 3 місяці тому

    int to string conversion can throw an error in JS as well, you just don't know until runtime and your code explodes. (it's actually worse than that, it returns NaN, which you should be checking with isNaN)

  • @ufffd
    @ufffd 3 місяці тому

    34:30 superly duperly based please keep doing this

  • @tsukinoko_kun
    @tsukinoko_kun 2 місяці тому

    I was a Next.js fan in the past. I liked it and was good at using it. Then I started using different languages than JS (C#, Kotlin, C, Go, Rust, …) and fell in love with Go. Now I can't use Next anymore because it makes no sense to me. Next feels less like a framework and more like a working web server that I can configure using JS code. It's challenging to describe that more precisely.
    I don't have his problems with dev experience, using Air for dev and Docker for prod. I switched from Neovim to Goland which fixed all my language server issues.
    I can see the rest of his pain points. The reason I like Go more than JS is that I hate the JS ecosystem enough that I would use anything to stop using JS, and Go is the thing I hate the least.

  • @proudkinglion2215
    @proudkinglion2215 2 місяці тому

    The funny thing is that I very often disagree with something Theo says, but in this video I agree 100%

  • @devinlauderdale9635
    @devinlauderdale9635 3 місяці тому

    I will say one thing about string manipulation in golang, if readability is the primary reason you want that feature, why not just use fmt.Sprint() instead of fmt.Printf(), you can write out the arguments to be much more readable that way like fmt.Sprint("I like ", cheese(), " and the t3 stack")

  • @stevensoftware-engineer6997
    @stevensoftware-engineer6997 3 місяці тому

    I've seen many people going after programming languages and framework trends but at the end we together in JavaScript. And the good thing about JavaScript you learn once and do everything frontend as well backend 👏🏽👏🏽👏🏽👏🏽👏🏽👏🏽

  • @dotnetapp
    @dotnetapp 3 місяці тому

    TBH no packages is not a lie, go wasn't meant to be used as a fullstack/SSR/HTMX framework, use it as a backend framework and you don't need to install any packages to make it work.
    Everything is built in the formatter, the linter, package manager, testing tool etc.
    The only thing thats really missing even if you use it as it was meant is a recompile on code change.
    Never understood the hype for htmx and its "simplicity" people trade a frontendframework made for making websites for backendframeworks/libraries like templ etc. and sure than everything is much more simple yea right.

  • @shadowfaxenator
    @shadowfaxenator 3 місяці тому

    There is not only developer quality of life, but also a performance of a service itself. NodeJs SSR and especially NextJs ssr is a magnitude slower than Golang. You need more infrastructure to scale the same app.

  • @nicolasjoulin3004
    @nicolasjoulin3004 3 місяці тому

    WDC is a genius. Would not have thought you could milk the anti-js AND the pro-js crowd back to back in a matter of weeks but the lad did it

  • @azubu101
    @azubu101 3 місяці тому +31

    Prime in shambles

    • @stan______
      @stan______ 3 місяці тому

      shambles how?

    • @DarthVader11912
      @DarthVader11912 3 місяці тому

      ​@@stan______he hates JavaScript snd people who use it.

    • @itsmeagain1415
      @itsmeagain1415 3 місяці тому +5

      @@DarthVader11912 people who use it??? where the heck did you get that from

    • @DarthVader11912
      @DarthVader11912 3 місяці тому

      @@itsmeagain1415 come on it's straight up obvious.

    • @araozu
      @araozu 3 місяці тому +3

      @@DarthVader11912He "hates" people who use js for the wrong reasons. He "hates" fully serverless nextjs ssr server components with all the blows and whistles, to render a CRUD used by 10 people

  • @everythingisfine9988
    @everythingisfine9988 2 місяці тому

    Astro > Next
    So much easier to work with and manage. And if you need a fully featured application with different roles, permissions, interactivity, etc, then you still shouldn't be using next.
    SSG/SSR The portions of the application that don't require a login. And devlop the bulk of the application as a SPA

  • @SokarRomania
    @SokarRomania 3 місяці тому +2

    Seems to be complaining more about go, templ and VSCode. Anyway not liking HTMX is fine, using nextjs is fine to each it's own. I'm using blazor and loving it

  • @roccociccone597
    @roccociccone597 Місяць тому

    Sounds like he didn’t like go. Perhaps Kotlin should’ve been the language chosen for someone with a JS brain.

  • @mantovani96
    @mantovani96 2 місяці тому

    Almost all the stuff he had to add to make HMR work is related to JavaScript, and that why people complain about. If you just want to start a project and add some good practices to it, you’ll need TypeScript, Eslint, Prettier, at least in the backend side. As of Go you’ll need to basically install the VSCode extension and Air for hot reloading, the tooling in Go is much better.

  • @thunkin-ai
    @thunkin-ai Місяць тому

    where does my fav Django fit in? I'm contemplating Django HTMX for builds (after a hiatus of web dev for a few years)

  • @prodevus
    @prodevus 3 місяці тому

    Can you get the ctrl+click thing if you're just making a nextjs api without trpc? Do I need trpc for e2e type safety and all those benefits? Don't really like the trpc syntax.

  • @12crenshaw
    @12crenshaw 3 місяці тому

    *Laughs in Intelij's Kotlin*
    It's funny how all those things are non-issues in Java/Kotlin when combined with Intelij. Verbosity is so easy to overcome with autocomplete and everything else is just performent and matured light years ahead of GO/JS

  • @AntonYefremov
    @AntonYefremov 3 місяці тому

    13:23 what font editor is this? Looks non-standard, looks really nice

  • @seanmills3502
    @seanmills3502 Місяць тому

    If you go back to Next.js, should you rename it to Prev.js?

  • @dislexicllama
    @dislexicllama 3 місяці тому

    Would you ever do a deep dive into Nuxt to see what the Vue grass is like on the other side of the fence?

  • @momoyan4893
    @momoyan4893 3 місяці тому +26

    just dont use nextjs and be happy

  • @blabla-kk8bl
    @blabla-kk8bl 2 місяці тому

    Most of those guys who buys the js hypes generally never developed a real web app. HTMX shows we do not need more js to achive most of web app`s functionality in internet.

  • @MerthanMerter
    @MerthanMerter 3 місяці тому +1

    prime just messing with your brains

  • @gro967
    @gro967 2 місяці тому

    Error handling in Go is still the GOAT!

  • @BenRangel
    @BenRangel 3 місяці тому

    3:40 Yeah I would never voluntarily pick a language without string interpolation as my main application language. Details like that are a big deal for developer happiness and readability.
    But yes - perhaps I'd say the same about something else (like error handling) if I was used to a different language.

  • @FryGuy1013
    @FryGuy1013 3 місяці тому +1

    The assumption that go is the only performant language on the server is kind of weird.

    • @cocoscacao6102
      @cocoscacao6102 3 місяці тому +1

      Java, C# and others are a big no-no in hype driven communities.

  • @oscarhagman8247
    @oscarhagman8247 3 місяці тому

    can't wait for prime to react to this

  • @FunkyByteAcademy
    @FunkyByteAcademy 2 місяці тому

    trpc is the shit. T3 is the shit. t3 turbo is the elephant shit. Fucking love it.

  • @shadowfaxenator
    @shadowfaxenator 3 місяці тому

    It’s also strange to hear about typescript type safety vs go. Go has runtime type safety, typrescript is transpiled to JS and doesn’t have runtime type safety

  • @dough-pizza
    @dough-pizza 3 місяці тому +7

    "Lower your UX expectations and then you'll love it"
    "Lower your DX expectations and then you'll love it"
    "Lower your expectations..."
    Brother at this point I'll clap if the damn thing prints "Hello, World!"

    • @KodeAkuma
      @KodeAkuma 3 місяці тому +3

      IDK about you but I find JS Dev Hi5'ing themselves for DX absolutely hilarious, The UX thing yes HTMX is not a replacement for React etc etc you have to use something like alpine js for the react-ish things HTMX is not a magic bullet. Coming to the DX part just chill down it's only been like 1 or 2 years since all these blew up templ is only 3 years old htmx while older than templ only came to prominence in the last 2 years and it's a growing community everyday u see new people coming in and in 2 years it's 70% of the DX u get from using next js which has been around for 10 years and u only got niceties like end to end typesafety a robust hot-module reload (which break in larger project regardless) etc like 2-3 years back. IDK why you are comparing something so new to an already establish project and expecting it to be 1:1 DX give it time to grow.

    • @dough-pizza
      @dough-pizza 3 місяці тому +3

      @@KodeAkuma JS devs Hi5ing is hilarious since most of Theo's comments parrot the same opinion regarding shitting on JS, it's not a minority opinion at all.
      Agreed other ecosystems might take time to develop but people who don't like JS offer those ecosystems as a silver bullet to cure all JS pains but as you said it isn't huh? Funny that...

  • @owenwexler7214
    @owenwexler7214 2 місяці тому

    Developer velocity is as important a consideration as raw performance.

  • @janisozols5255
    @janisozols5255 3 місяці тому

    Typescript (solidjs) and C# (aspnet core with openapi 3) are similar enough the context switch isn’t a problem at all

  • @vessbakalov8958
    @vessbakalov8958 2 місяці тому

    Theo keeps saying 'modern webtools and technologies' strictly to refer to the gospel of react. Arguably HTMX is more modern. It is so modern it is still developing very fast.

  • @farhanghazali4406
    @farhanghazali4406 3 місяці тому

    PHP and Python Devs for last 10 years never complained about context switching from BE and FE :D

  • @Vreth6
    @Vreth6 3 місяці тому +2

    Hey it is almost as if streamers and content creators are just mentioning the tech that gets them the most views, isn't that odd 🙃

  • @sheko4515
    @sheko4515 3 місяці тому +2

    Theo, he is not bashing HTMX, he is not happy with Go and Templ! Please understand that there is a world outside Javascript and your T3 stack business that generates good money for you!

  • @jakethis3355
    @jakethis3355 3 місяці тому

    This editor flow is why I can't write ruby without rubymine. Trying to write ruby in vscode is a nightmare.

  • @thales-maciel
    @thales-maciel 3 місяці тому

    using go with templ my ctrl+click takes me to the template definition, not the compiled code, something's weird

  • @dotsonjb14
    @dotsonjb14 3 місяці тому

    The Templ click through thing is 100% real. Templ is just too annoying for me. The gains you get for it aren't great either, so I've just been using go's built-in templates.

  • @rasibn
    @rasibn 3 місяці тому

    Imo the context shifting between two languages: frontend and backend is not that significant. It's more than okay to use two language for your web application. Like 99% of application are written this way.

  • @lienmeat
    @lienmeat 3 місяці тому

    Go is good on the backend/cloud, and I love it there. There's hardly anything better (once you get used to it) for writing a lot of kinds of tools/services. It makes a lot of things easy to write that are easier to maintain than most other langs if you are on a decent size team. For frontend-related stuff, hell no. I think templ and htmlx are never going to be as good as your expectations as a good/very experienced frontend dev though.

  • @Requiem100500
    @Requiem100500 2 місяці тому

    time for the daily dose of L takes from my favorite soydev

  • @BlazeShomida
    @BlazeShomida 3 місяці тому

    26:15 I’ve made a gist that helps make message passing between main and worker threads a bit more typesafe

  • @kobibr9362
    @kobibr9362 3 місяці тому

    I am not ok with those issues, I hard all kind of issues with anything basically I haves used since 2011 and this is what I did, I just solved them and got help solving them. I stoped using Go because I hated writing quite a lot of code for thing like data validation. Somehow the same thing just take less efforts in rust when you know what to do. I now use Rust and I really wanted Go at first. I comme from Java land. I love AOP and functional programming good error management. Strict contracts for things like form validation. Maybe I got more skill issues in Go but I could not achieve a level of control that was satisfying enough in Go. So I rewrote the little code I had already written in go in rust and man I felt the power infuse in my blood.

  • @timbouma6
    @timbouma6 3 місяці тому +3

    Looking at Peter Levels, who builds startup after startup using just PHP, HTML, and CSS-each with just one file-really makes you think...

    • @naughtiousmaximus7853
      @naughtiousmaximus7853 3 місяці тому

      Code organization is important for when you work with multiple people. If you are solo thats not neccessary.

  • @ankitkumarjat9886
    @ankitkumarjat9886 3 місяці тому +4

    I think what we need is a full featured framework in javascript like Laravel or springboot

    • @paw565
      @paw565 3 місяці тому

      What about nest js sir?

    • @ankitkumarjat9886
      @ankitkumarjat9886 3 місяці тому

      @@paw565 nestjs is good when it comes to API's but it is not good when compared with laravel, laravel has built in frontend backend configuration with things like auth, mailing, queues ...

    • @infantfrontender6131
      @infantfrontender6131 3 місяці тому +1

      AdonisJS

    • @onça_pintuda999
      @onça_pintuda999 2 місяці тому

      @@paw565 I've being working with Nest since a year now, and I will never say that Nest is close to Laravel or Spring, every JS/TS framework lack on something, Nest has queues, and those kind of shits, but dont have strong structures or abstractions as Laravel, Nest has the basic abstractions but to implement a HUGE application creating every single repository, entity, service, strategy, policy and controllers are a pain in the ass, but we made a "base repository" and "base entity" to handle repeated features and abstractions to get data from db and to send to db, and hell yeah its a huge piece of shit, it's good, it works but my senior as always "What Laravel does for this", and we did it, if we hadnt choose Nest and created a small Nest contianer to handle blockchain communication and the true backend in Laravel it would have take 1/3 of the time to do the same thing.
      Nest has the basics but not for a real go to market product, I like their solutions and modularitaions but this kind of things made everyone working on it tired of Nest/TS.

    • @onça_pintuda999
      @onça_pintuda999 2 місяці тому

      For me, the best solution for monolith apps are problem solvers as Inertia, creating a monolith with the backend (Laravel) and frontend (React/Vue/etc) very simple and tied. Didnt tried it yet but I'm willing to

  • @griffadev
    @griffadev 3 місяці тому +1

    Orval i think is better than openapi-typescript it also does react query also does zod schemas