Why I switched from JS to Golang (As a Javascript Developer)

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

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

  • @gosnooky
    @gosnooky 3 года назад +1060

    This guy does coding videos while in bed. He wins the Internet.

    • @MrXperx
      @MrXperx 3 года назад +42

      This is more common than you would think. I literally had to force myself to get out of bed during the pandemic while coding.

    • @onihani
      @onihani 2 года назад +6

      He is op 😂

  • @amansagar4948
    @amansagar4948 3 года назад +325

    bruh you are the first guy recording lying on a bed, lmao it's so original keep that up, loved it

  • @dilsmedia
    @dilsmedia 2 года назад +103

    The most relaxing introduction to Go ever 😀

  • @r0ckinfirepower
    @r0ckinfirepower 3 года назад +91

    Bruh you're programming in bed? That's next level

  • @schadough
    @schadough 2 года назад +48

    I love your teaching vibe, you get straight to use cases and how they’re tackled and not a lot of content creators do that. Keep it up bro 😎

  • @Gregorius421
    @Gregorius421 3 года назад +116

    2020: Not wearing pants on a zoom call.
    2021: Giving a presentation from bed.
    What's next for our cultural evolution?

  • @MelodyLu9000
    @MelodyLu9000 Год назад +3

    Hey 2-years-ago-Ryan: it's mid-2023 and I'm using your videos every couple of days to keep me going-- your cool cadence and immediately practical vibe are like pure programming sugar as I slog through onboarding into a new complex project with three new languages (like, I like learning, and I'm okay with being confused and lost and wrong a lot, but it does wear me down). Anyway, you're the light at the end of the tunnel with your genuine excitement and can-do pragmatism. Plus, doing it all while chilling, a hero to us all. Thanks, Ryan!

  • @ibrahimsyahz
    @ibrahimsyahz 2 года назад +7

    Man u are my supermodel. There is no such cooler thing than coding and making a video while lying on the bed. SUBSCRIBED

  • @MirkoVukusic
    @MirkoVukusic 2 года назад +2

    Laying in bed, so relaxing voice, concise and clear,... Man add a cocktail and it's like a vacation watching you

  • @brnoliveira-l8i
    @brnoliveira-l8i 2 года назад +6

    Learned more about Go in 8 min with your video than the two hours I've spent with some random tuts found on google. Tks!

  • @sanzhar.danybayev
    @sanzhar.danybayev 3 года назад +7

    Bro, the way you chill while coding is awesome 😂

  • @redfernguitar
    @redfernguitar 2 года назад +1

    The best under 10 minute intro I've seen yet.

  • @mgjulesdev
    @mgjulesdev 2 года назад +7

    Nice video. Enjoy your journey as a Gopher.
    For those curious, goroutines are like little independent processes multiplexed on threads. Creating and destroying a thread is expensive but goroutines are super lightweight and cheap to create and destroy.

  • @themarksmith
    @themarksmith 3 года назад +1

    Like your style of delivery, subbed!

  • @lucaszecat
    @lucaszecat 2 года назад

    Awesomw video bruv! Let's go we need more content 👨‍💻🚀

  • @bopon4090
    @bopon4090 2 года назад +10

    Golang is so easy to learn. I love this language. If i have to choose close compiled alternative to js then it definitely would be golang.

  • @BrenonAraujo
    @BrenonAraujo 3 года назад +4

    I started to learn golang a couple of weeks ago for almost the same reasons, good observations, and damn you were so smooth. code & chill lmao

  • @mikebradbury3997
    @mikebradbury3997 2 года назад +1

    This was a great overview of Go! Thanks!

  • @WaldirBorbaJunior
    @WaldirBorbaJunior 3 года назад +32

    From PHP to Java to NodeJS to Python finally GO. Now I'm in paradise.

    • @denchola
      @denchola 2 года назад +1

      I don't know any coding language should I start from GO?

    • @WaldirBorbaJunior
      @WaldirBorbaJunior 2 года назад +1

      @@denchola Yep! You first need learn/understand algorithm

  • @sinayeganeh9033
    @sinayeganeh9033 3 года назад +37

    Nice! IMO Js with Go can be the best (React in front-end & Golang as restfull API in back-end)

    • @webpro9083
      @webpro9083 3 года назад +1

      This is my next move

    • @Splinter4077
      @Splinter4077 3 года назад +3

      This is a powerful combo!

    • @peterpetersen6613
      @peterpetersen6613 3 года назад +10

      Front-end should be done in a more performant framework, like Svelte

    • @yashptel
      @yashptel 3 года назад +5

      Best stack

    • @krishgarg2806
      @krishgarg2806 2 года назад +13

      ​@@peterpetersen6613 I mean it depends on the case as for complex components, in svelte you would probably have to make your own, whereas in react, the community is massive, there will probably already be a package for it.
      That't why I usually like to use svelte for fun, and react for serious projects.

  • @WeirdSide
    @WeirdSide 2 года назад +1

    most comfortable youtuber

  • @Cyber_Lanka
    @Cyber_Lanka 3 года назад +4

    What about Typescript?

  • @ianno3
    @ianno3 2 года назад +5

    Appreciate the vid. I'm a little curious about Go as a Node dev, but haven't worked on anything that has made me use it just yet. Everything in the vid is reasonably reproducible in Node. The TypeScript typechecker is really slow, so your last point is resonating pretty hard. That's why kdy1 is porting the TypeScript compiler to Go, and I can't wait

    • @williamrgrant
      @williamrgrant 2 года назад +1

      If you want to test it, you could setup some gRPC routines in Go, then call them with something like gprc/gprc-node from Node.
      Disclosure: not a Go professional. But I've been researching adding it to my toolbox as well.
      I agree with the sentiment though: it seems neat to be able to do all these basic things. But whether a tool easily fits into an existing software ecosystem without adding too much hassle *while also adding benefit not possible with the existing system* is the real test.

  • @Dino-qz9bt
    @Dino-qz9bt 3 года назад +23

    What if we had to compare it it to TS though.. Would miss the .map, .filter etc.. 😭

    • @codewithryan
      @codewithryan  3 года назад +15

      Yeah Typescript is a great way to add more safety to JS. I think TS is good for most API work and React stuff. It’s when it comes to performance that Golang starts to shine 🤩

    • @webpro9083
      @webpro9083 3 года назад +2

      Compiled language Vs interpreted... Compiled always wins. It's go Vs rust Vs c++ not Js level

    • @prestonrasmussen1758
      @prestonrasmussen1758 2 года назад

      @@webpro9083 TS isn’t going to get the same performance as the other languages you mentioned, but it is compiled when it needs to be

    • @webpro9083
      @webpro9083 2 года назад +1

      @@prestonrasmussen1758 Compiled to javascript that will be interpreted right? The compile I am talking about here is what computer understand "101010101010101010"

    • @prestonrasmussen1758
      @prestonrasmussen1758 2 года назад

      @@webpro9083 Well very technically TypeScript is transpiled to JavaScript but you’ll see a lot of people use compiling to describe this process.
      That’s not what I’m talking about. In the modern day, JS is compiled to bytecode once the code warms up using the Just-in-Time compiler or JIT. The bytecode is either interpreted by a VM or compiled to machine code (again, a lot of factors go into this), but it’s the same process as Java and C# (although those two languages are compiled to bytecode ahead of time).

  • @davidsyengo1893
    @davidsyengo1893 2 года назад +2

    You sir have convinced me to get into Go

  • @ayami123
    @ayami123 3 года назад +6

    I kinda only need Golang for Calculations though,
    nodejs is quite enough for most of my RestApi calls anyway.

  • @alejandro.p
    @alejandro.p 2 года назад +4

    These aspects you mention are what I like about Kotlin

  • @andoresp_
    @andoresp_ 2 года назад

    Great video, as a javascript developer i was unsure about learning go and this video clarified my thoughts

  • @lewisjablackburn
    @lewisjablackburn 3 года назад +3

    What about typescript?

  • @ozzyfromspace
    @ozzyfromspace 2 года назад +2

    If a man lying in bed eloquently tells you to try Go, try Go. Awesome video bro, I'll be starting a project "soon" and would love to build the backend in go, rather than node-ts. I'm already exploring go, and it's definitely different, but I'm open minded and optimistic that I'll enjoy coding the go way. Stay well my brother ☮️🏆

  • @dabbopabblo
    @dabbopabblo 2 года назад +3

    Oh my God I aspire to be the type of developer you are so badly. That’s chilling out enjoying what you do beyond comprehension

    • @Yusuf-ok5rk
      @Yusuf-ok5rk 2 года назад +1

      i only watched this video as of now and he is definitely morgan freeman of coding

  • @jamdonut
    @jamdonut 2 года назад +2

    Hooooold up, long running operations in GO vs JS, even if GO compiled to JS would still be JS single threads. So how does it help if you needed a JS app?

  • @neoprint3d
    @neoprint3d 2 года назад +1

    What about typescript to address the larger projects

  • @roger_that_do_you_copy
    @roger_that_do_you_copy 8 месяцев назад +1

    Damn bro made me subscribe. 2024 I'm learning Go

  • @jimxu1963
    @jimxu1963 3 года назад +18

    I think you are just saying “I am switching from fronted dev to backend dev “

  • @qorzzz9252
    @qorzzz9252 2 года назад +15

    Comparing JS to Golang doesn't make any sense - unless you are specifically referring to NodeJS. JS and Golang are used in completely different ecosystems and solve different problems.

    • @IsraelAgyemanPrempeh
      @IsraelAgyemanPrempeh 2 года назад +8

      Though I get your point, you wouldn’t compare Flask to GoLang, you will compare Python to GoLang. Underlying NodeJs is JavaScript. So he’s not wrong

  • @UODZU-P
    @UODZU-P 2 года назад

    I came here to learn about Go but now I need to know what your bed setup is

  • @analisamelojete1966
    @analisamelojete1966 3 года назад +25

    I’d say knowing JS and Go are a must in your skill set. Go is going to be the language for building reliable, scalable implementations of ML algorithms. So, Go it’s a nice to have not necessarily a replacement for JS.

    • @rei2502
      @rei2502 2 года назад +2

      what about Rust?

    • @liftingisfun2350
      @liftingisfun2350 2 года назад +1

      @@rei2502 web3

    • @AndrewTSq
      @AndrewTSq 2 года назад +8

      @@rei2502 I started to learn Rust cause everyone talked about it.. then just for fun I tried go and like go way more than rust. Not saying Rust is bad in any way, but I prefer Go.

    • @hyper_channel
      @hyper_channel Год назад +1

      @@AndrewTSq go philosophy matches much better with JS/TS, Rust is fine for things where you want critical levels of performance or reliability, which TBH is rare for most of us. And GO isn't slow either.

  • @DevlogBill
    @DevlogBill 2 года назад +3

    Wow nice Go is a nice-looking language syntax wise. The println reminds me of Kotlin's println and I think there was another language which used the println as well? Also, never seen a language use the double dots with the equal sign ':=' ? I don't know. But I am guessing Golang is primarily used as a backend language?

    • @prestonrasmussen1758
      @prestonrasmussen1758 2 года назад +1

      Yeah the ‘:=‘ for definitions originated as notation used in math, and Go adopted it

  • @lesliewubbel9157
    @lesliewubbel9157 3 года назад +1

    Great video!!

  • @nacxxj7184
    @nacxxj7184 3 года назад

    What's about Rust for Backend

  • @thetechguy6124
    @thetechguy6124 2 года назад +1

    why not typescript? 🤔

  • @AleksandrPodyachev
    @AleksandrPodyachev 2 года назад +1

    the thing is that I do not see many job openings for Golang

  • @SandraWantsCoke
    @SandraWantsCoke 3 года назад +7

    You're taking "home office" to the next level lying in bed and all

  • @kedusyared6589
    @kedusyared6589 2 года назад

    Definitely subscribed!

  • @BrunoidGames
    @BrunoidGames 2 года назад

    That's what I like, straight to the point!
    I would use a pointer in IsAdult function: func (p *Person)..

  • @HKHasty
    @HKHasty 2 года назад +1

    Great video, can you compare Python and Go?

  • @deNudge
    @deNudge Год назад

    this is a dope video! 🙂

  • @LabbaekRatul-fc5ly
    @LabbaekRatul-fc5ly Год назад

    You also do that same concurrency thing is nodejs too but u need to know about node clustering and fork worker

  • @ajaxjson3320
    @ajaxjson3320 Год назад

    How to call javascript when you build go web application?
    That is the hard part in golang

  • @abhijeetbora8672
    @abhijeetbora8672 2 года назад

    Which table are u using

  • @princeofexane
    @princeofexane Год назад

    This is kinda tutorial I need. ❤

  • @handmadesoftware
    @handmadesoftware 3 года назад +2

    8:05 maaaan come on, that's why they have created typescript, you could do those on typescript too.. anyway but the go also cool, thanks man, I loved your pillow

  • @imbalos
    @imbalos Год назад +1

    Why I switched from JS to Golang (As a C++ developer)

  • @CodeSketched
    @CodeSketched 2 года назад

    Awesome video style man! How is your audio so good, btw? 🤔

  • @Kats0unam1
    @Kats0unam1 2 года назад

    Was it hard for you to find jobs in Golang if your base was Javascript ?

  • @DouglasWiseRogers
    @DouglasWiseRogers 2 года назад +1

    Hey Ryan. Quick question: was there any specific resource that you used to learn Go? I want to transition into Go from JS like you mentioned and tryna figure out where to start.

  • @gadgetboyplaysmc
    @gadgetboyplaysmc 3 года назад +2

    This man legit woke up, get his laptop, and decided to record a video in bed.

  • @liftingisfun2350
    @liftingisfun2350 2 года назад +3

    Do you Jacky while you Hacky

  • @0jinx
    @0jinx 2 года назад

    So basically, you don't want to use typescript and web/node workers ?

  • @morgadoapi4431
    @morgadoapi4431 2 года назад

    So THIS is the zoom level at which a JS developer develops. Nice to know!

  • @lethanhan9084
    @lethanhan9084 2 года назад +1

    man how are you typing

  • @AbhimanyuAryan
    @AbhimanyuAryan 3 года назад +12

    Nice GoLang is used in startups fangs everywhere just like Java. Java is old and boring. Golang is fills the gap real nice

  • @willaizze3644
    @willaizze3644 3 года назад

    Wow, I didn't to knew about that. Thanks a lot.

  • @adicide9070
    @adicide9070 2 года назад +1

    so why did you switch? :D

  • @RealManoylo
    @RealManoylo 3 года назад +3

    Golang looks fun

  • @yumindev
    @yumindev 2 года назад

    This guy's voice is just joyful.

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

    Very useful thank you

  • @fuhoo5836
    @fuhoo5836 2 года назад +1

    compiler is also super fast.

  • @DevlogBill
    @DevlogBill 2 года назад +1

    Hi Ryan, I am back. I decided to message you because I was wondering if you were familiar with C# and Java? I am looking at either one of these technologies because I am getting close to learning and creating projects with JavaScript my focus is full stack. I choose C# and Java because both are posted a lot in the job market in NYC especially Java. But my question to you is, which tech is easier to pick up in terms of finding materials to learn and create projects and which one is better supported and finally from your personal opinion which one would you recommend? Love your videos and aspires me to focus deeper into programming, thanks man.

  • @zkl4620
    @zkl4620 3 года назад +2

    Instantly subbed when I saw that you were in bed that's hilarious

  • @kirillgimranov4943
    @kirillgimranov4943 2 года назад +1

    Finally
    One more js frontend man switched to a proper backend technology

  • @osxs333__7
    @osxs333__7 2 года назад +1

    You just described TypeScript

  • @coldsir5406
    @coldsir5406 2 года назад

    Why Go when Rust?

  • @rei2502
    @rei2502 2 года назад +2

    Js is going to be the king for web frontend though...until WASM is pretty mature I think

    • @parkerAmv
      @parkerAmv 2 года назад

      Yep, but for now i think javascript is still the common usage instaed if WASM

  • @moshawa588
    @moshawa588 2 года назад

    I don't understand why I'm so instantly a fan

  • @artema9037
    @artema9037 Год назад

    nice video, thanks

  • @Viralvlogvideos
    @Viralvlogvideos 2 года назад

    Ok i agree go is good language but man straight away coding in go from bed something epic i never saw in my life. Setup tour please

  • @kedusyared6589
    @kedusyared6589 2 года назад

    me on my bed watching this guy code from his bed xD

  • @liampugh4705
    @liampugh4705 3 года назад

    liked and subbed, keep up the good work

  • @njengathegeek
    @njengathegeek 2 года назад

    Legend

  • @GianetanSekhon
    @GianetanSekhon 2 года назад +3

    ' Golang is not Object oriented but makes you do object oriented type of things..' 😭😂

  • @cali4484
    @cali4484 2 года назад +1

    Its not that easy. .Js is so popular. all companies only support .js. you can use .js natively in firebase and cloudflare worker

  • @SaiyanJin85
    @SaiyanJin85 Год назад

    I don't understand this comparison. Go is server side and js in on the browser. Cool vid though

    • @TheRythimMan
      @TheRythimMan 4 месяца назад

      I find that when most RUclipsrs say "JavaScript" they're actually referring to node.js (a server-side JavaScript runtime environment), in which case you can definitely compare them and Go is definitely better.
      Until I realized this, videos like this were baffling to me too.

    • @SaiyanJin85
      @SaiyanJin85 4 месяца назад

      @@TheRythimMan omg, I just revisited this video to watch it again and you replied to my message with the same thoughts as me. wtf?? LOL

  • @vuufke4327
    @vuufke4327 2 года назад

    he's just chilling tho

  • @johnmcway6120
    @johnmcway6120 3 года назад +1

    Ashamed to admit but I can at times stay and work in bed for the whole day

  • @rafaeldericksanchezlockwar4920
    @rafaeldericksanchezlockwar4920 2 года назад

    i just started the vid and i can't believe that he just recorded this in bed

  • @lucho7971
    @lucho7971 3 года назад

    nice video!!!

  • @capslock3250
    @capslock3250 Год назад

    JavaScript and Golang are two completely different programming languages. They have minimal overlap in terms of domain and can therefore never be an option with each other.

  • @goblinmoblin4869
    @goblinmoblin4869 2 года назад

    Nice video

  • @hwaakthuu
    @hwaakthuu 2 года назад

    I don’t understand how as a developer you can just switch your language. If you are working in a company you can’t go to your manager and say that today I will use golang(i mean you can’t write go along with js in the same file). You can maybe work on personal projects with go in that case you don’t need to work on scale and maybe you are better of working with js.

  • @jorge1869
    @jorge1869 3 года назад +1

    Both languages are very different.

  • @yashptel
    @yashptel 3 года назад

    this video is more like "Learn Go in Single Video"

  • @avi7278
    @avi7278 Год назад +1

    These are certainly reasons to use go over js, but none of them are good reasons.

  • @bluesteel1
    @bluesteel1 3 года назад +1

    +1 like for lying in bed while recording ....

  • @housesarebig
    @housesarebig 2 года назад

    Golang bestlang 💪💪

  • @mr_don_key
    @mr_don_key 3 месяца назад

    and now the cons of golang compared to js

  • @FPChris
    @FPChris 2 года назад

    Go, JS, and wasm with a webview.

  • @ReadyMeta1
    @ReadyMeta1 2 года назад

    I thought I was the only one programming in bed