Learning Golang To Cure My Crippling Depression

  Рет қаралды 43,949

conaticus

conaticus

Күн бұрын

Discord: / discord
Github: github.com/conaticus
Twitter: / conaticus
CDN Source Code: github.com/conaticus/go-cdn
JWT Demo: jwt.io
Lemon's Project (amethyst): / discord
Dylan: github.com/dylhack
0:00 Learning Go
1:37 CDN API
3:09 Auth System
5:34 Thoughts on Go
Stop using NodeJS and try Go!

Пікірлер: 224
@conaticus
@conaticus Жыл бұрын
*Go* with whatever tech suits you :)
@Dev-Siri
@Dev-Siri Жыл бұрын
How to prevent getting doxxed from JS Twitter community: Step 0: comment
@heavymetalmixer91
@heavymetalmixer91 Жыл бұрын
"I don't care if Microsoft knows everything about me, because it works". Sad but true, that's why I stopped using Linux many years ago.
@dr.evilnick4959
@dr.evilnick4959 Жыл бұрын
So when do you become a Minecraft mod maker?
@Tmplar
@Tmplar Жыл бұрын
Poor guy had to come out and remember people that provocative titles exist and that nobody cares if you still want to use JS. I feel you.
@IamPyu-v
@IamPyu-v Жыл бұрын
@@dr.evilnick4959 no.
@lev2590
@lev2590 Жыл бұрын
if you want to avoid the windows security question on every run you should consider using a port that isnt reserved for admins
@joserobjr7010
@joserobjr7010 Жыл бұрын
just don't use windows
@okie9025
@okie9025 Жыл бұрын
@@joserobjr7010 just don't use software
@adisonmasih
@adisonmasih Жыл бұрын
@@okie9025 just don't use computers
@stragerneds
@stragerneds Жыл бұрын
He is using port 3001 which does not require admin to listen on.
@illegalsmirf
@illegalsmirf Жыл бұрын
lol @ the n00bs using Windows. Why don't you use what M$ tells you to use? PowerShell and C# 💩
@stephenguo7388
@stephenguo7388 Жыл бұрын
The Linux issue you're having is very fair. The go install instructions say "You may need to run the command as root or through sudo" and the command given is "rm -rf /usr/local/go && tar -C /usr/local -xzf go1.20.5.linux-amd64.tar.gz" The natural reaction is to add "sudo" at the beginning. But you need to add it for both "rm" and "tar", which is why installing it wasn't working. I would say this is more of go's fault for not mentioning this.
@musdevfrog
@musdevfrog Жыл бұрын
fax
@alborn4217
@alborn4217 8 ай бұрын
or just install it through a package manager
@banditosdoritos
@banditosdoritos Жыл бұрын
He has awakened. Go is a very solid language with a bright future.
@fukmyass
@fukmyass Жыл бұрын
Nope
@DocHudson420
@DocHudson420 Жыл бұрын
@@fukmyass name checks out
@arpmovies3609
@arpmovies3609 Жыл бұрын
It very poorly designed language... I mean why not make a language which is designed as a popular language without its tradeoffs.😊😊😊
@okie9025
@okie9025 Жыл бұрын
"bright future"? That's like saying Python is a new language and has a bright future ahead. Go has already proven to be less than ideal, at least when compared to NodeJS.
@MoolsDogTwoOfficial
@MoolsDogTwoOfficial 8 ай бұрын
@@okie9025 0 == '0' is true
@arjix8738
@arjix8738 Жыл бұрын
Looking at how hard it was for you to even run hello world in go, it makes sense why you have nightmares from JS...
@IamPyu-v
@IamPyu-v Жыл бұрын
Awesome video! I can't even figure out how the GO module system works.
@charlesbcraig
@charlesbcraig Жыл бұрын
I used go a bit when it was first announced. It was amazing at the time. Years later I went through the Rust book and have no desire to use go. That said, I’m using sveltekit for my frontend/backend. Most of us don’t need that extra performance since most bottlenecks are IO aka the database. I do have a potential long running process that, depending on how the js performs, I’ll rewrite that in rust and have it do that one thing. In the future when frameworks like leptos become more mature or there’s a “Rust on Rails” type contender, I’d definitely ditch js for that. Side note: after Mojos announcement, that could be a game changer
@thedevminer
@thedevminer Жыл бұрын
Technically the way you were using JWTs had nothing to do with encryption. You only signed the payload.
@swagz6440
@swagz6440 Жыл бұрын
wdum
@thedevminer
@thedevminer Жыл бұрын
@@swagz6440 I encourage you to read the JWT specification. The JWTs get base64-encoded (not an encryption) and then signed by the private key (or a secret) of the issuer. The JWT can then be validated by checking against the private key / secret they were signed by.
@swagz6440
@swagz6440 Жыл бұрын
@@thedevminer alright thank you
@lqx7
@lqx7 Жыл бұрын
woah nice video about my favourite programming language. NIce reminder to start watching conicatus again. Btw, I know the error handling is verbose but functions in go returning each and every possible error makes it so that you are also forced to handle all of them.
@Dr-Zed
@Dr-Zed Жыл бұрын
"You can encrypt it using SHA" - Please stop calling hashing encryption. It's just wrong.
@Kventis
@Kventis Жыл бұрын
It's part of cryptographic security. Calling it encryption is wrong, but it's not the end of the world.
@d_15_giteshsarvaiya22
@d_15_giteshsarvaiya22 Жыл бұрын
It's a one way encryption.. can't be decrypted
@d_15_giteshsarvaiya22
@d_15_giteshsarvaiya22 Жыл бұрын
@@0xAAA yaa , you are right, I said that bcoz people use that phrase to explain the function of hashing. Although, in fundamentals, hashing adn encryption have two different principles
@senzmaki4890
@senzmaki4890 Жыл бұрын
​​@@0xAAAhere's a diff btw not knowing and being stupid, clearly there's only one cringe idiot here
@mxjeonsg
@mxjeonsg 10 ай бұрын
No
@rign_
@rign_ Жыл бұрын
I use golang for my backend and game server, and it saves me a lot of money. Learning golang and fixing bugs takes more time than nodejs, because I'm still learning too.
@ninetynin
@ninetynin Жыл бұрын
learn rust
@rign_
@rign_ Жыл бұрын
@@ulrich-tonmoy In my case, it all comes down to personal preferences. I'm not particularly keen on using C# to develop game servers on Linux, as I need to calculate complex tasks like NPC behavior, game logic, damage calculation, and anti-cheat measures on the server-side. While Golang's Goroutine has certainly been a lifesaver for me, it's worth noting that I'm still learning and have encountered quite a few bugs along the way.
@cppandjavaandkotlindev
@cppandjavaandkotlindev Жыл бұрын
@@ninetynin rust gang i am learning rust right now and i have to say its syntax is so sweet
@amasoharnold4762
@amasoharnold4762 Жыл бұрын
How does go save you money?
@ulrich-tonmoy
@ulrich-tonmoy Жыл бұрын
@@ninetynin yea planning to learn Tauri But for server go is better for most cases
@codewithguillaume
@codewithguillaume Жыл бұрын
Okay I want to give a try ❤
@bonsaiboi9083
@bonsaiboi9083 8 ай бұрын
1:19 nice to see I am not the only one struggling with dev environments in Linux and just switched back to Windows to get shit done. A few days ago I just wanted to code some c in EndevourOS (dual boot) and it literally lasted 10 min for the first path errors and 10 more minutes for the nvidia drivers being corrupted after sudo pacman -Syu, leaving me with only the terminal and no UI... I guess pop os is the only fairly stable distro to actually work in if you have an nvidia card
@maguilecutty
@maguilecutty 8 ай бұрын
Had the same journey w the docs. Do the go w tests and it makes a lot more sense
@lukavranes2492
@lukavranes2492 Жыл бұрын
Awesome video man! I actually tried go at one point and felt the same way about so many things, especially modules. But seeing you actually recommend it, welp, let's just say I'll give it another "go". :)
@MaxProgramming
@MaxProgramming Жыл бұрын
2:37 Now that's true 😂. I honestly like the performance and all Go provides but the syntax is a little bit ewww for me compared to what I'm used to (TS)
@principleshipcoleoid8095
@principleshipcoleoid8095 Жыл бұрын
5:52 Python has tenserflow, and Rust crate for tenserflow is not good enough yet
@lego942
@lego942 Жыл бұрын
Can you make your code size larger
@cody72212
@cody72212 5 ай бұрын
Which programm is he using to print out the network traffic
@cellularmitosis2
@cellularmitosis2 Жыл бұрын
I was hoping for a bit more on what benefits you saw from golang, what problems it solved which were present in your JS projects.
@conaticus
@conaticus Жыл бұрын
definitely found that the developer experience was nicer, having the errors handed to you is much better than guessing
@mgjulesdev
@mgjulesdev Жыл бұрын
Relative to it, Go is fast, truly type safe (typescript is just a superset), very simple, fewer quirks and surprises, strong std library, very low cpu and memory consumption, good DX all around, testing, benchmarking and profiling is a joy ... in all a boring language that gets the job done.
@amasoharnold4762
@amasoharnold4762 Жыл бұрын
@@mgjulesdev can you give an example of when it’s superiority in consuming low cpu and memory could come into play Most applications just perform basic crud operations even if it was an e-commerce store But i wonder would something go be superior in serving data to users than node I.e it’ll be better in serving 100,000 users faster and with less cpu usage
@DarkerInk
@DarkerInk Жыл бұрын
Great video, I've wanted to actually try out go more in depth then I have, seems fun (and annoying)
@utf8redactedcharacters
@utf8redactedcharacters Жыл бұрын
Have you used kotlin with springboot?
@cheun95
@cheun95 Жыл бұрын
You actually don’t have to manually type in the imports. Just go get -u and then use the package wherever you need it. Should auto import upon saving the file lol. Just make sure to go mod tidy afterwards
@mgjulesdev
@mgjulesdev Жыл бұрын
True with the vscode Go extension which automatically installs all the tooling you need, you should get intellisence, automatic import and formatting, and so on. It's a very good developer experience compared to JavaScript/TypeScript, Ruby, Python, Elixir and other dynamically typed languages.
@Kranael93
@Kranael93 Жыл бұрын
Ok ok how would the projekt look like with java? Really want that video next 🙂
@owenwexler7214
@owenwexler7214 Жыл бұрын
My NodeJS backend works, not gonna fw it for a while. It will probably get a Go or Rust rewrite at some point but that’s damn near the bottom of the priority list.
@dragoni_penguin
@dragoni_penguin 7 ай бұрын
bro what is that keygen music edit: 2:44 GMod licenses???
@sunnyvegas2778
@sunnyvegas2778 Жыл бұрын
How do you deal with 3rd party APIs not using go? What if I want to use a payment processor that does use GO?
@terrencemoore8739
@terrencemoore8739 Жыл бұрын
You communicate using APIs. APIs are language-agnostic because they communicate through http requests not any given language. In other, older languages, there may be a package for particular languages to make interfacing easier but its not necessary. Using the normal API interfacing, you can make a package for go or any other language.
@codedsprit
@codedsprit Жыл бұрын
Did you tried Ocaml🐪 ?
@mrnobody9268
@mrnobody9268 Жыл бұрын
4:10 when you explained JWT, I feel like you kinda didn't explain it right. Anyone can decode it, the data itself is not encrypted, instead you write a header, which contains information about the signature and type, you write the payload which just the payload you use, and then finally you write a signature that can be only written by a private key on the server. JWT doesn't protect the data, it instead gives data signature in such a way that it can be later confirmed that the data hasn't been tampered with.
@Dev-Siri
@Dev-Siri Жыл бұрын
OK, I will stop using JS. I will use TS instead. If you also tell me to stop using TS, how the hell am I supposed to write a frontend UI? EDIT: Bro changed the title from JavaScript to NodeJS and also added a comment justifying his statement to prevent getting doxxed. 💀 Anyways, if you tell me to stop using Node, Bun and Deno look like good alternatives. EDIT 2: This guy really tried to hide all the evidences for the original video title & thumbnail. The title was changed earlier to NodeJS but now even the thumbnail changed from "Try GO" to "I tried GO". I actually kinda feel bad for you that you had to change everything to make people happy. It takes away the humor present. EDIT 3 (July 20, 2023): Title was changed multiple times in the past until it became just 'I tried go' and now he adds '(masterpiece)' what
@ReactWala
@ReactWala Жыл бұрын
right ❤
@nulanfr5940
@nulanfr5940 Жыл бұрын
C 😂😂😂😂
@ReactWala
@ReactWala Жыл бұрын
@@nulanfr5940 😂😂😂
@Marhaenism1930
@Marhaenism1930 Жыл бұрын
LOL hell yeah,... Stop using NodeJS, okay then i will use DENO instead.
@ReactWala
@ReactWala Жыл бұрын
@@Marhaenism1930 I will use bun then.
@PawitSahare
@PawitSahare Жыл бұрын
Alright bro , let try golang 3:07
@Reddblue
@Reddblue Жыл бұрын
2:09 WTFF you have the same mug as mine, that scared me for a moment 😭
@rybakostis
@rybakostis Жыл бұрын
Give me a single use case where JS capabilities won't suffice, but go would?
@DocHudson420
@DocHudson420 Жыл бұрын
They just suck. The language SUCKS
@DocHudson420
@DocHudson420 Жыл бұрын
Performance
@rybakostis
@rybakostis Жыл бұрын
@@DocHudson420 performance is not a use case.
@Kventis
@Kventis Жыл бұрын
Actual mutlithreading applications. Static binaries.
@mgjulesdev
@mgjulesdev Жыл бұрын
Go scales better than NodeJS in all cases I can think off. It's important when you run a distributed system with individual components that must scale at a low cost. Many places I've worked at moved from NodeJS, PHP or Ruby just because they needed to scale at a lower cost.
@TheRealMangoDev
@TheRealMangoDev Жыл бұрын
@conaticus thanks for updating the title...
@userunp
@userunp Жыл бұрын
very cool
@UwU-dx5hu
@UwU-dx5hu Жыл бұрын
But go should be slower than nodejs. Because in node js uses worker threads to work async tasks.but i believe go uses threads.which is faster?i am not sure
@demyk214
@demyk214 Жыл бұрын
JavaScript is a single threaded language with no actual means of multithreading. And if u wanna talk about worker threads and spawning multiple files, no that’s spawning processes and bot natural multithreading as Go, Rust, C family can do and some other languages.
@ImmaFiringNoLazors
@ImmaFiringNoLazors Жыл бұрын
>Brave Browser opinion discarded 🚮
@InvixYT
@InvixYT Жыл бұрын
Why not use C# at this point.
@mgjulesdev
@mgjulesdev Жыл бұрын
Why ?
@InvixYT
@InvixYT Жыл бұрын
​@@mgjulesdev because the complaints he has, you don't have in C#. Like C# works well with Linux, has clear Syntax, has good Docs, and has clear naming conventions. Those are all the things he disliked about Go, and when je tried C# in that other video he didn't really have any complaints.
@jongeduard
@jongeduard Жыл бұрын
Hi, as someone who has always worked with C# and DotNet from litterally beginning of it 20 years ago, while also working in may other technologies, I know how amazing it is, but also how amazing many other things are. Most recently I learned Rust and I love it at least as much as I do C#, if not more. Therefore I also don't believe Go is so bad at all. Actually looks like a quite easy language to learn (I might take a look at it one day). The thing is, this boy just needs to properly follow good tutorials, read books and get more experience with the language. Looks like there are a ton of sources and a great online playground. Trying multiple languages is recommended of course.
@InvixYT
@InvixYT Жыл бұрын
@@jongeduard Yeah I agree, rust is a very good alternative. And I'm also not saying C# is the way to go. I'm just saying that all the inconveniences he mentioned he experienced with Go, these aren't present in C#.
@lxg00n83
@lxg00n83 Жыл бұрын
Why don't just install golang from your package manager?
@maddsua
@maddsua Жыл бұрын
- Why did you switch to Go? Me: Go does not have an effing trycatch bs and is fast as f
@user-xw6jy3gd1v
@user-xw6jy3gd1v Жыл бұрын
name of music @4:30
@conaticus
@conaticus Жыл бұрын
here ya go: www.epidemicsound.com/track/LzuO4kdZdI/
@DaFuqMIWatching
@DaFuqMIWatching Жыл бұрын
Golang makes some basic ass stuff so damn complicated. I work with streams of data in node a lot and doing it in go instead is such a fucking drag
@biki3
@biki3 Жыл бұрын
god mod why, reminds me of my case. i use go and git commands, and end up with got run ... got add * got commit ... got mod vendor
@Randych
@Randych Жыл бұрын
alias "git gud" = git add .; git commit -m "minor update"; git pudge
@RedStone576
@RedStone576 Жыл бұрын
cant tell me what to doooo
@heavymetalmixer91
@heavymetalmixer91 Жыл бұрын
Why not just use C++?
@illegalsmirf
@illegalsmirf Жыл бұрын
The hardest part of using Go is trying to get it installed.
@AquaQuokka
@AquaQuokka Жыл бұрын
💀 Yes.
@terrencemoore8739
@terrencemoore8739 Жыл бұрын
I almost didn't learn it because of this but 7 days of Rust gave me new motivation to get it installed 😂
@GabrielM01
@GabrielM01 Жыл бұрын
1:24 judging by your accent i would assume its a fair statement for a citizen to make
@leojohn6702
@leojohn6702 Жыл бұрын
True. I will use typescript. This vloggers don’t practice so much coding. You can spot them when using statements like “use this tech instead”. Is just better.
@Tyzer126
@Tyzer126 10 ай бұрын
Why do you not recommend using python ?
@mfmoral1
@mfmoral1 Жыл бұрын
"The queen is dead" 💀
@datboijdope
@datboijdope Жыл бұрын
Cool video, but you should probably fix your keyboard since it takes 1000 clicks to type a single character.
@zajunc69
@zajunc69 Жыл бұрын
whatever the language i feel like in 2023 every programming language is inefficient. If only low code solutions were less annoying in certain areas that would be great. We had a big leap between fortran and let's say, java. Now it's time for a big leap from modern languages to low code + ai Currently it’s basically a cripple fight between different programming languages imo We’re living in times where we feel everything should be easier but we still didn’t manage to make it so
@vanish3408
@vanish3408 Жыл бұрын
You aren't having linux problems. You are having you problems. You should use a package manager
@nielubieyoutuba
@nielubieyoutuba Жыл бұрын
Why do you even compare such different technologies?
@HalfMonty11
@HalfMonty11 Жыл бұрын
Future video idea: "STOP using Go... Try Rust"
@ehsankhorasani_
@ehsankhorasani_ Жыл бұрын
it's people say oh I like water more than food! Javascript is more for frontend stuff.
@MinhazurSarker
@MinhazurSarker Жыл бұрын
I'm a node js Dev. But I love Rust, Go as well. I'm not fully switching from node js but gonna use the besides node js.
@backupmemories897
@backupmemories897 Жыл бұрын
based
@frontforumfocus
@frontforumfocus Жыл бұрын
lets gooo
@EuCaue1
@EuCaue1 Жыл бұрын
I was literally finishing a .js script, and this video show up in my youtube home. 🤡
@aleksanderbaszkiewicz536
@aleksanderbaszkiewicz536 Жыл бұрын
It is insane how you can produce such low quality javascript code yet feel entitled to comment what other people should use
@MyOnlineTV
@MyOnlineTV Жыл бұрын
After watching this i will definitely use nodeJs until some conceiving video will come..
@ryanswatson
@ryanswatson Жыл бұрын
Blames Javascript, moves to Go... Blames Linux, moves to Windows... Blames VSCode (made by Microsoft)... Blames Go Documentation, moves to ChatGPT... ...complains about using ChatGPT In conclusion: Blames Go for not having any big options that do everything for you "like Python" ...but don't use Python!
@mgjulesdev
@mgjulesdev Жыл бұрын
A lot of blaming going on 😂
@marana.th4
@marana.th4 Жыл бұрын
lmao, youtube is stalking me, I've recently switched from node to go, and youtube suggests me this video, just clicked coz he's talking about node and what do you know, he switched to go too
@jongeduard
@jongeduard Жыл бұрын
Well, both are Google basically.
@michaelkrebs7678
@michaelkrebs7678 Жыл бұрын
You know you're a programmer when you managed to make the simplest task the most complicated task of the day. AHAHAHA
@75rxREDSTONE
@75rxREDSTONE Жыл бұрын
You may dislike JavaScript and/or TypeScript and prefer Go instead, though I don't think you should force other people to learn Go instead. Each person has their preferences, and therefore they might prefer another language depending on their needs. Therefore, learning other programming languages, like Go, might not be the best one for something they're looking for. Instead of forcing people to learn other languages, I'd recommend "telling" them to give it a try instead. The title should probably be changed to "Reasons to learn Go instead of JavaScript".
@frittex
@frittex Жыл бұрын
get real
@Marhaenism1930
@Marhaenism1930 Жыл бұрын
u may dont take it seriously, content like this is ady exists in the past(kinda boring but for gain viewers or attention its work as well). i was watched TSoding vid.. in one of his vids(i forgot the title but when he was made a project in rust), he said these day some dev or even some tech tuber are noisy, so many argument about this and that but never try to listening and understand each others, or simply meaningless debate or trolling.. i wondering now, is this really a science? especially web dev community . its just feel like gaming community instead.
@Randych
@Randych Жыл бұрын
Did he aim a gun at you saying "abolish js NOW" or what?
@mgjulesdev
@mgjulesdev Жыл бұрын
Use whatever makes sense. At the end of the day it's all about minimizing the tradeoffs.
@ko-Daegu
@ko-Daegu Жыл бұрын
this is the result of libral snowflake learning
@dickheadrecs
@dickheadrecs Жыл бұрын
🦀 🦀🦀
@emreaka3965
@emreaka3965 Жыл бұрын
please make the same video with rust :D
@sergeyscherbo
@sergeyscherbo Жыл бұрын
please don't put password in jwt 😶‍🌫
@lyoneel
@lyoneel Жыл бұрын
why vscode whyyyy (Jetbrains user here :D)
@MrAbrazildo
@MrAbrazildo Жыл бұрын
2:26, you crazy little fella! By using only global variables, you will survive only in projects that are easy to handle between f()s, such as scientific and database ones. For more complex projects, such as games, it would be a disaster! Because f()s can be called in alternative ways, according to values of variables. It's not just a matter of worrying about f()s inner content.
@stoicnash
@stoicnash Жыл бұрын
me after writing an entire system using js and hear someone say js is the best language😂
@TheRavageFang
@TheRavageFang Жыл бұрын
Stop saying what I should stop 😂
@rakeshchowdhury202
@rakeshchowdhury202 Жыл бұрын
What is nodejs? Using go for last 3 years
@charlie_r_1717
@charlie_r_1717 Жыл бұрын
Who's this geeza
@lw4311
@lw4311 Жыл бұрын
Brexit geeza
@piano_arts_2007
@piano_arts_2007 Жыл бұрын
Yeah, js is bad but even worse is Node js, I'm at the point where I really hate node js. This is bc some days ago I've been trying to make some desktop aplication and honestly it was one of THE worst choices ever. So I'll tremake the same thing but in tauri and hope for the best and the node js thing will remain abandoned and I'll never use node js for handling json files...
@abdullahX001
@abdullahX001 Жыл бұрын
I would love to see the dislike stats on this video...
@Kventis
@Kventis Жыл бұрын
*Go* outside
@conaticus
@conaticus Жыл бұрын
allergic
@someonewhowantedtobeahero3206
@someonewhowantedtobeahero3206 Жыл бұрын
0:10 skill issue
@deadgamesdeadman
@deadgamesdeadman Жыл бұрын
i LOVE javascript
@uwu-zl6tq
@uwu-zl6tq Жыл бұрын
now try rust and make a video called "STOP Using GoLang"
@ericjohnson5990
@ericjohnson5990 Жыл бұрын
I hate JavaScript with a passion, but I love rust and C.
@clyptos2705
@clyptos2705 11 ай бұрын
try kotlin
@bamadoescode6242
@bamadoescode6242 Жыл бұрын
Now do rust
@rehkmansa
@rehkmansa Жыл бұрын
Beg me 🙃
@nathaniepeter5707
@nathaniepeter5707 Жыл бұрын
😂😂😂
@sh0e1ace__1
@sh0e1ace__1 Жыл бұрын
early
@bigbrotherr
@bigbrotherr Жыл бұрын
It won't work, so good luck convincing developers to stop using JS everywhere.
@this._jungleBird
@this._jungleBird Жыл бұрын
Go Rust ! 🎉
@aryajpegasus
@aryajpegasus Жыл бұрын
NO I will use javascript for eVERYTHING I'd use javascript in kernel programming if I ever did that
@Will-dx8ht
@Will-dx8ht Жыл бұрын
silly
@lubba64
@lubba64 Жыл бұрын
Try Rust 🤪
@vitalyl1327
@vitalyl1327 Жыл бұрын
Yep, sure, JavaScript is abhorrent. But switching one dung to another, JS to Go - that does not make sense. Go is quite ill-designed too.
@DocHudson420
@DocHudson420 Жыл бұрын
It’s significantly better than JavaScript…
@vitalyl1327
@vitalyl1327 Жыл бұрын
@@DocHudson420 it's *somewhat* better, but it's more broken in other ways, so I'd say they're on par in terms of crappiness.
@DocHudson420
@DocHudson420 Жыл бұрын
@@vitalyl1327 then use rust
@DocHudson420
@DocHudson420 Жыл бұрын
@@vitalyl1327 JavaScript is just a pile of hot garbage and it’s garbage collection is terrible. It’s memory usage is terrible. Writing the language is terrible
@vitalyl1327
@vitalyl1327 Жыл бұрын
@@DocHudson420 exactly, it's a far better language. Hell, even C++ is a much better language than Go.
@paulcosma2823
@paulcosma2823 Жыл бұрын
> can't follow simple documentation to install Go in Linux > Linux bad
@Sebeklis
@Sebeklis Жыл бұрын
js better!
@darealmexury
@darealmexury Жыл бұрын
This comment section is full of gatekeepers, not surprising at all...
@conaticus
@conaticus Жыл бұрын
let the havoc begin!
@IlliaZhdanov
@IlliaZhdanov Жыл бұрын
linux is good.
@dueft4479
@dueft4479 Жыл бұрын
Vid was not bad but unfortunately clikbait
@principleshipcoleoid8095
@principleshipcoleoid8095 Жыл бұрын
Rust is better with errors, probably.
@epsi
@epsi Жыл бұрын
Not sure about that. let mut v = match f(arg) { Ok(x) => x, e => return e }; // Do something with v. looks a lot like v, err := f(arg) if err != nil { return v, err } // Do something with v. People like to complain about Go's error handling verbosity, but it avoids C's errno mistake, and it doesn't have sum types that require unwrapping either implicitly (matching expressions in Rust, guards in Haskell, etc.) or explicitly using methods that panic if you use the wrong one (unwrap(), unwrap_err(), etc.) It also doesn't have exceptions (out of band errors) that require additional syntax like Java, C++, Python, etc., so it takes advantage of the existing syntax to return multiple values, with the error being the last return value as a de-facto standard. Simple, yet effective.
@mgjulesdev
@mgjulesdev Жыл бұрын
Go forces you to make a conscious decision about your errors (i.e. how should I handle this error.. log? return to caller? wrap it?).. true it can be annoying at first but believe me, when sh#t go south on Production at 3am because an external API or database or message broker went down, you'll thank yourself ..
@mgjulesdev
@mgjulesdev Жыл бұрын
Devs who have access to exception handling make it an excuse to not handle each error appropriately and believe me, it's a pain in the arse to work on these projects ! Just because you try-catch everything does not mean you actually handled the underlying errors properly.
@phoenix-tt
@phoenix-tt Жыл бұрын
@@epsi Who even match-returns the errors when there's an amazing "?" operator. It is even cooler, because you can write error mappers to convert from any library error to your error and it feels like magic: `let data = db.query(smth)?;`
@epsi
@epsi Жыл бұрын
@@phoenix-tt I'm not a Rust programmer, just somewhat familiar with a bit of the syntax, so my instinct was that `?` caused a panic if an error occurred, not a return (probably better written with `!` if it caused a panic, but that's reserved for macros). It certainly looks prettier, but it seems like a waste if it is just syntactic sugar for it to return the error. Then again, the alternative is writing `match` again and again (or that try! macro pre-1.13), so it's probably a good fit for Rust. If you want to do something other than return the error, i guess you're stuck with `match` every time (or you write a macro like try! that does what you need, like logging and ignoring it).
@Ogbobbyjohnson92010
@Ogbobbyjohnson92010 Жыл бұрын
There is a go backend framework: Fiber
I Learnt Another JavaScript Framework
6:09
conaticus
Рет қаралды 24 М.
Big O myths busted! (Time complexity is complicated)
21:33
strager
Рет қаралды 132 М.
Smart Sigma Kid #funny #sigma #comedy
00:40
CRAZY GREAPA
Рет қаралды 22 МЛН
How I RUINED My Rust Project
4:58
conaticus
Рет қаралды 53 М.
Gitlab DELETING Production Databases | Prime Reacts
17:27
ThePrimeTime
Рет қаралды 317 М.
iced GUI | Rust Language
17:00
Learning Rust
Рет қаралды 4,3 М.
When RESTful architecture isn't enough...
21:02
Dreams of Code
Рет қаралды 262 М.
The Story of Next.js
12:13
uidotdev
Рет қаралды 559 М.
How principled coders outperform the competition
11:11
Coderized
Рет қаралды 1,6 МЛН
When You Give Programmers a HUGE Database
5:21
conaticus
Рет қаралды 28 М.
The BEST Backend Language for You | Prime Reacts
32:57
ThePrimeTime
Рет қаралды 308 М.
How I Made My Own Redis (In Rust)
12:09
conaticus
Рет қаралды 24 М.
Oi Oi Oi & E E Ei Meme Looking For a Girlfriend
0:26
Mischief time
Рет қаралды 35 МЛН
НАЛЕТЕЛ НА БРАТА САНИ🧨
0:36
RFC Fighting Championship
Рет қаралды 229 М.
Гаджеты вредно!!! ☎️😳😡 #funny #comedy
0:26
Fast Family LIFE
Рет қаралды 1,1 МЛН
Matt Kills Dexter's Deer | Dexter: New Blood S1E1 | #Shorts
0:51
Clashed PR
Рет қаралды 23 МЛН
Мыла наелся
0:21
Pavlov_family_
Рет қаралды 4,7 МЛН
КЕПКА КОМАРОВ
0:16
KINO KAIF
Рет қаралды 11 МЛН