Тёмный

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

Code With Ryan
Подписаться 58 тыс.
Просмотров 96 тыс.
50% 1

Javascript is a flexible and powerful language, but here are few reasons why I made the switch to using Go for my serious projects…
0:00 Intro
0:30 Data Structures with Behavior
1:17 Extending a Base Datatype
2:33 Unit Testing
4:33 Goroutines for Multithreading
7:48 Conclusion
Follow me on Twitter: / ryancodez

Опубликовано:

 

10 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 159   
@gosnooky
@gosnooky 2 года назад
This guy does coding videos while in bed. He wins the Internet.
@MrXperx
@MrXperx 2 года назад
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 года назад
He is op 😂
@amansagar4948
@amansagar4948 2 года назад
bruh you are the first guy recording lying on a bed, lmao it's so original keep that up, loved it
@r0ckinfirepower
@r0ckinfirepower 2 года назад
Bruh you're programming in bed? That's next level
@dilsmedia
@dilsmedia 2 года назад
The most relaxing introduction to Go ever 😀
@schadough
@schadough 2 года назад
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 2 года назад
2020: Not wearing pants on a zoom call. 2021: Giving a presentation from bed. What's next for our cultural evolution?
@TheMemin247
@TheMemin247 2 года назад
Going back to no mic, no cam only notepad and unregistered hypercam2
@illegalsmirf
@illegalsmirf 2 года назад
With his willy hanging out
@lagseeing8341
@lagseeing8341 2 года назад
@@TheMemin247 don't forget trance
@younesmdarhrialaoui7723
@younesmdarhrialaoui7723 2 года назад
giving bed from presentation
@sunsettrance7841
@sunsettrance7841 6 месяцев назад
​@@lagseeing8341here I am
@MelodyLu9000
@MelodyLu9000 11 месяцев назад
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!
@ibrahimsyahzairussalam
@ibrahimsyahzairussalam 2 года назад
Man u are my supermodel. There is no such cooler thing than coding and making a video while lying on the bed. SUBSCRIBED
@mikebradbury3997
@mikebradbury3997 2 года назад
This was a great overview of Go! Thanks!
@mgjulesdev
@mgjulesdev 2 года назад
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.
@MirkoVukusic
@MirkoVukusic 2 года назад
Laying in bed, so relaxing voice, concise and clear,... Man add a cocktail and it's like a vacation watching you
@sanzhar.danybayev
@sanzhar.danybayev 2 года назад
Bro, the way you chill while coding is awesome 😂
@themarksmith
@themarksmith 2 года назад
Like your style of delivery, subbed!
@andoresp_
@andoresp_ Год назад
Great video, as a javascript developer i was unsure about learning go and this video clarified my thoughts
@coyote-wang
@coyote-wang 2 года назад
The best under 10 minute intro I've seen yet.
@lucaszecat
@lucaszecat Год назад
Awesomw video bruv! Let's go we need more content 👨‍💻🚀
@BrenonAraujo
@BrenonAraujo 2 года назад
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
@bipinmaharjan4090
@bipinmaharjan4090 2 года назад
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.
@brnoliveira-l8i
@brnoliveira-l8i 2 года назад
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!
@lesliewubbel9157
@lesliewubbel9157 2 года назад
Great video!!
@sinayeganeh9033
@sinayeganeh9033 2 года назад
Nice! IMO Js with Go can be the best (React in front-end & Golang as restfull API in back-end)
@webpro9083
@webpro9083 2 года назад
This is my next move
@Splinter4077
@Splinter4077 2 года назад
This is a powerful combo!
@peterpetersen6613
@peterpetersen6613 2 года назад
Front-end should be done in a more performant framework, like Svelte
@yashptel
@yashptel 2 года назад
Best stack
@krishgarg2806
@krishgarg2806 2 года назад
​@@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.
@WaldirBorbaJunior
@WaldirBorbaJunior 2 года назад
From PHP to Java to NodeJS to Python finally GO. Now I'm in paradise.
@denchola
@denchola Год назад
I don't know any coding language should I start from GO?
@WaldirBorbaJunior
@WaldirBorbaJunior Год назад
@@denchola Yep! You first need learn/understand algorithm
@davidsyengo1893
@davidsyengo1893 2 года назад
You sir have convinced me to get into Go
@princeofxane
@princeofxane Год назад
This is kinda tutorial I need. ❤
@ozzyfromspace
@ozzyfromspace 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 ☮️🏆
@kedusyared6589
@kedusyared6589 2 года назад
Definitely subscribed!
@willaizze3644
@willaizze3644 2 года назад
Wow, I didn't to knew about that. Thanks a lot.
@jimxu1963
@jimxu1963 2 года назад
I think you are just saying “I am switching from fronted dev to backend dev “
@ianno3
@ianno3 2 года назад
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 года назад
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.
@dabbopabblo
@dabbopabblo Год назад
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 Год назад
i only watched this video as of now and he is definitely morgan freeman of coding
@alejandro.p
@alejandro.p 2 года назад
These aspects you mention are what I like about Kotlin
@coldcrushforce
@coldcrushforce 2 месяца назад
Very useful thank you
@BrunoidGames
@BrunoidGames Год назад
That's what I like, straight to the point! I would use a pointer in IsAdult function: func (p *Person)..
@UODZU-P
@UODZU-P Год назад
I came here to learn about Go but now I need to know what your bed setup is
@rogerangel9457
@rogerangel9457 Месяц назад
Damn bro made me subscribe. 2024 I'm learning Go
@WeirdSide
@WeirdSide 2 года назад
most comfortable youtuber
@deNudge
@deNudge Год назад
this is a dope video! 🙂
@analisamelojete1966
@analisamelojete1966 2 года назад
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 года назад
what about Rust?
@liftingisfun2350
@liftingisfun2350 2 года назад
@@rei2502 web3
@AndrewTSq
@AndrewTSq Год назад
@@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 11 месяцев назад
@@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.
@SandraWantsCoke
@SandraWantsCoke 2 года назад
You're taking "home office" to the next level lying in bed and all
@liampugh4705
@liampugh4705 2 года назад
liked and subbed, keep up the good work
@jamdonut
@jamdonut 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?
@artema9037
@artema9037 Год назад
nice video, thanks
@liftingisfun2350
@liftingisfun2350 2 года назад
Do you Jacky while you Hacky
@Dino-qz9bt
@Dino-qz9bt 2 года назад
What if we had to compare it it to TS though.. Would miss the .map, .filter etc.. 😭
@codewithryan
@codewithryan 2 года назад
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 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 года назад
@@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).
@CodeSketched
@CodeSketched 2 года назад
Awesome video style man! How is your audio so good, btw? 🤔
@lucho7971
@lucho7971 2 года назад
nice video!!!
@njengathegeek
@njengathegeek Год назад
Legend
@ayami123
@ayami123 2 года назад
I kinda only need Golang for Calculations though, nodejs is quite enough for most of my RestApi calls anyway.
@DouglasWiseRogers
@DouglasWiseRogers 2 года назад
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.
@mrbaeman39lolman60
@mrbaeman39lolman60 2 года назад
K&R helped
@heybran_
@heybran_ Год назад
codewars is a great one
@HKHasty
@HKHasty Год назад
Great video, can you compare Python and Go?
@DevlogBill
@DevlogBill 2 года назад
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 года назад
Yeah the ‘:=‘ for definitions originated as notation used in math, and Go adopted it
@Cyber_Lanka
@Cyber_Lanka 2 года назад
What about Typescript?
@DevlogBill
@DevlogBill Год назад
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.
@arenazo
@arenazo Год назад
Golang❤
@gadgetboyplaysmc
@gadgetboyplaysmc 2 года назад
This man legit woke up, get his laptop, and decided to record a video in bed.
@morgadoapi4431
@morgadoapi4431 2 года назад
So THIS is the zoom level at which a JS developer develops. Nice to know!
@neoprint3d
@neoprint3d 2 года назад
What about typescript to address the larger projects
@handmadesoftware
@handmadesoftware 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 Год назад
Why I switched from JS to Golang (As a C++ developer)
@qorzzz9252
@qorzzz9252 2 года назад
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 года назад
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
@lewisjablackburn
@lewisjablackburn 2 года назад
What about typescript?
@yumindev
@yumindev 2 года назад
This guy's voice is just joyful.
@RealManoylo
@RealManoylo 2 года назад
Golang looks fun
@abhijeetbora8672
@abhijeetbora8672 2 года назад
Which table are u using
@goblinmoblin4869
@goblinmoblin4869 Год назад
Nice video
@osxs333__7
@osxs333__7 2 года назад
You just described TypeScript
@kirillgimranov4943
@kirillgimranov4943 2 года назад
Finally One more js frontend man switched to a proper backend technology
@moshawa588
@moshawa588 Год назад
I don't understand why I'm so instantly a fan
@AleksandrPodyachev
@AleksandrPodyachev 2 года назад
the thing is that I do not see many job openings for Golang
@kedusyared6589
@kedusyared6589 2 года назад
me on my bed watching this guy code from his bed xD
@vuufke4327
@vuufke4327 2 года назад
he's just chilling tho
@zkl4620
@zkl4620 2 года назад
Instantly subbed when I saw that you were in bed that's hilarious
@fuhoo5836
@fuhoo5836 2 года назад
compiler is also super fast.
@Kats0unam1
@Kats0unam1 Год назад
Was it hard for you to find jobs in Golang if your base was Javascript ?
@nacxxj7184
@nacxxj7184 2 года назад
What's about Rust for Backend
@adicide9070
@adicide9070 2 года назад
so why did you switch? :D
@AbhimanyuAryan
@AbhimanyuAryan 2 года назад
Nice GoLang is used in startups fangs everywhere just like Java. Java is old and boring. Golang is fills the gap real nice
@johnmcway6120
@johnmcway6120 2 года назад
Ashamed to admit but I can at times stay and work in bed for the whole day
@0jinx
@0jinx 2 года назад
So basically, you don't want to use typescript and web/node workers ?
@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
@rafaeldericksanchezlockwar4920
i just started the vid and i can't believe that he just recorded this in bed
@rei2502
@rei2502 2 года назад
Js is going to be the king for web frontend though...until WASM is pretty mature I think
@parkerAmv
@parkerAmv Год назад
Yep, but for now i think javascript is still the common usage instaed if WASM
@thetechguy6124
@thetechguy6124 2 года назад
why not typescript? 🤔
@GianetanSekhon
@GianetanSekhon 2 года назад
' Golang is not Object oriented but makes you do object oriented type of things..' 😭😂
@Viralvlogvideos
@Viralvlogvideos Год назад
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
@lethanhan9084
@lethanhan9084 2 года назад
man how are you typing
@coldsir5406
@coldsir5406 2 года назад
Why Go when Rust?
@ajaxjson3320
@ajaxjson3320 10 месяцев назад
How to call javascript when you build go web application? That is the hard part in golang
@bluesteel1
@bluesteel1 2 года назад
+1 like for lying in bed while recording ....
@yashptel
@yashptel 2 года назад
this video is more like "Learn Go in Single Video"
@RandomShowerThoughts
@RandomShowerThoughts 2 года назад
Golang is amazing
@jorge1869
@jorge1869 2 года назад
Both languages are very different.
@SaiyanJin85
@SaiyanJin85 Год назад
I don't understand this comparison. Go is server side and js in on the browser. Cool vid though
@ralymbetov
@ralymbetov Год назад
next level is coding while sleeping
@ReadyMeta1
@ReadyMeta1 2 года назад
I thought I was the only one programming in bed
@housesarebig
@housesarebig 2 года назад
Golang bestlang 💪💪
@FPChris
@FPChris 2 года назад
Go, JS, and wasm with a webview.
@cali4484
@cali4484 2 года назад
Its not that easy. .Js is so popular. all companies only support .js. you can use .js natively in firebase and cloudflare worker
@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.
@justadude8716
@justadude8716 Год назад
anyone interested look up the defer keyword!
Далее
Go vs Rust vs Bun vs Node | Prime Reacts
18:07
Просмотров 163 тыс.
Why I'm learning Go
21:35
Просмотров 58 тыс.
Node.js is a serious thing now… (2023)
8:18
Просмотров 632 тыс.
I'm Coming Around To Go...
21:33
Просмотров 103 тыс.
A Very Simple Tech Stack
7:58
Просмотров 69 тыс.
Monolith vs Microservices vs Serverless
23:05
Просмотров 75 тыс.
Go vs Rust: Which To Learn In 2024?
6:57
Просмотров 23 тыс.
Advanced Golang: Generics Explained
13:37
Просмотров 57 тыс.