Пікірлер
@vuquangtruong5950
@vuquangtruong5950 18 сағат бұрын
That is Awe......Some, bro. Clean, no BS, StraightForward.
@light_splitter
@light_splitter Күн бұрын
14:28 - so you're telling me I would have to write ALL THAT just to do a DIVISION? What is the point of being a bagillion times faster if it takes me 50x more time to write than a simple bash function?
@lukassvoboda5256
@lukassvoboda5256 2 күн бұрын
Awesome video. This is the format I am looking for. Unfortunately it is hard to find this one in the flood of BS videos full of hours of void. Thanks for that!
@damianrutkowski1161
@damianrutkowski1161 3 күн бұрын
Amazing tutorial, perfect, no fuss. This is what I was looking for. Good job mate!
@LarsKniep
@LarsKniep 4 күн бұрын
great!
@joshaldrinsario4421
@joshaldrinsario4421 4 күн бұрын
New sub here
@munraitoo13
@munraitoo13 4 күн бұрын
Just finished your Go crash course and was looking for tutorials on how to build an api with no frameworks or external libs, which ended on me finding you again. Keep doing this great work man!
@cherryCake299
@cherryCake299 5 күн бұрын
boss level neovim user
@houbill5363
@houbill5363 5 күн бұрын
Thanks a lot of your great content! Please go on!
@Jarek.
@Jarek. 7 күн бұрын
Oh, this is too good! Only small comment to 8:09 - the Header in my test ended with '=' char which got encoded to %3D. So it was mismatching with CSRF token stored in the DB (as it had =). After changing line 24 to _csrf, _ := url.QueryUnescape(r.Header.Get("X-CSRF-Token"))_ it finally worked. Many thanks again!
@davepac7
@davepac7 9 күн бұрын
The video is only an hour long but I've been watching and replicating for hours
@IAmLorenzoF
@IAmLorenzoF 9 күн бұрын
What theme in vscode are you using?
@IAmLorenzoF
@IAmLorenzoF 9 күн бұрын
This video is amazing. It's perfectly tailored for programmers switching from a lang to golang. Your explanation and visuals are perfect, and also you don't run when explaning which is amazing.
@snbwcs
@snbwcs 10 күн бұрын
It might be the cleanest and best Go context explanation video on KZbin.
@kvelez
@kvelez 10 күн бұрын
package main import "math" type Vector struct { X float64 Y float64 } // Vector operations func (v Vector) add(other Vector) Vector { return Vector{X: v.X + other.X, Y: v.Y + other.Y} } func (v Vector) subtract(other Vector) Vector { return Vector{X: v.X - other.X, Y: v.Y - other.Y} } func (v Vector) multiply(scalar float64) Vector { return Vector{X: v.X * scalar, Y: v.Y * scalar} } func (v Vector) distance(other Vector) float64 { dx := v.X - other.X dy := v.Y - other.Y return math.Sqrt(dx*dx + dy*dy) } func (v Vector) projection(other Vector) Vector { dotProduct := v.X*other.X + v.Y*other.Y magSquared := other.X*other.X + other.Y*other.Y if magSquared == 0 { return Vector{} } scale := dotProduct / magSquared return other.multiply(scale) } type Ball struct { r Vector v Vector mass float64 radius float64 } func (b *Ball) addGravity(level float64) { const pxPerM = 50 const fps = 60 b.v.Y += level * 9.8 / (fps * fps) * pxPerM } func (b *Ball) handleWallCollision(Cr, screenWidth, screenHeight float64) { if b.r.X-b.radius <= 0 { b.v.X = -Cr * b.v.X b.r.X = b.radius } if b.r.X+b.radius >= screenWidth { b.v.X = -Cr * b.v.X b.r.X = screenWidth - b.radius } if b.r.Y-b.radius <= 0 { b.v.Y = -Cr * b.v.Y b.r.Y = b.radius } if b.r.Y+b.radius >= screenHeight { b.v.Y = -Cr * b.v.Y b.r.Y = screenHeight - b.radius } } func (b *Ball) ballHitVelocity(b2 *Ball, Cr float64) Vector { mRatio := (Cr + 1) * b2.mass / (b.mass + b2.mass) vDiff := b.v.subtract(b2.v) rDiff := b.r.subtract(b2.r) proj := vDiff.projection(rDiff) return b.v.subtract(proj.multiply(mRatio)) } func (b *Ball) isHit(b2 *Ball) bool { dist := b.r.distance(b2.r) return dist <= b.radius+b2.radius } type Slider struct { value float64 } type Game struct { balls []Ball gravitySlider Slider restSlider Slider padding float64 screenWidth float64 screenHeight float64 } func (g *Game) Update() error { for i := 0; i < len(g.balls); i++ { for j := i + 1; j < len(g.balls); j++ { b1 := &g.balls[i] b2 := &g.balls[j] if b1.isHit(b2) { v1 := b1.ballHitVelocity(b2, g.restSlider.value) v2 := b2.ballHitVelocity(b1, g.restSlider.value) b1.v = v1 b2.v = v2 } } } for i := range g.balls { g.balls[i].addGravity(g.gravitySlider.value) g.balls[i].handleWallCollision(g.restSlider.value, g.screenWidth, g.screenHeight) g.balls[i].r = g.balls[i].r.add(g.balls[i].v) } return nil }
@akhiljohn9247
@akhiljohn9247 10 күн бұрын
Which vim plulgin do you use for Go ?
@suryakiranrekha
@suryakiranrekha 11 күн бұрын
Absolute beauty….one of the best tutorials in the whole of internet , in any topic!!!! It’s everything you need to know about go. I went slowly and practiced every thing being discussed the video, took me good 6 hours, but I feel much confident in go….Great effin job sire ☘️
@ranasuleman1662
@ranasuleman1662 11 күн бұрын
you are a go goat.....Love to learn from you ...Keep going dude
@ranasuleman1662
@ranasuleman1662 11 күн бұрын
THE BEST VIDEO......GOAT
@davidmurphy563
@davidmurphy563 13 күн бұрын
Damn, i really thought id like this language. If you're ethos is simplicity then you indent, you don't curly. Ok, that's a personal preference, it's not a showstopper. You didn't have a print function... You literally had to import it and with a weird package name. That's not simple. I'll pass.
@GSingh-i4q
@GSingh-i4q 15 күн бұрын
Damn!!!! This was crazy good dude. Hats off for making it so simple
@dbdejonge2081
@dbdejonge2081 16 күн бұрын
I want to know what is dumped to trash, include this rather than exclude this.
@Lucaslima-gz9vk
@Lucaslima-gz9vk 16 күн бұрын
man you're a savior. That's the best tutorial i've ever seen in my whole life omg.
@tinkertaps
@tinkertaps 16 күн бұрын
Alternate title: "Edging with Go for 1 hour". Jokes aside your teaching style is superb, no BS, no going in loops, straight to the point, and fun! Subscriber++
@patturnweaver
@patturnweaver 18 күн бұрын
what a wonderful overview. i got a lot by watching this.
@michaelhollis5749
@michaelhollis5749 22 күн бұрын
Coming from C, I'm loving Go! Many similarities, but the simplified syntax and control flow is so nice. Plus, if one wants, you can do all the unsafe pointer arithmetic and operations from C in Go too! Looking forward to coding more Go and enjoy your concise video on learning it. Using Neovim is a nice plus, too!
@paolopantaleo7135
@paolopantaleo7135 23 күн бұрын
Very useful
@kairavb
@kairavb 23 күн бұрын
at 44:13 we need to lock the memory from other processes, not lock the process itself
@harshupadhayay7087
@harshupadhayay7087 24 күн бұрын
Dude you're a lifesaver. Thanks for the incredible short & efficient course.
@kairavb
@kairavb 25 күн бұрын
I am loving this video!
@zuao76
@zuao76 26 күн бұрын
Man this tutorial is spot on. Not 1 hour learning about ifs and while. Covers a lot, in a pragmatic and concise way. Please make a tutorial on Gorm if you have the chance. Thank you, very much and keep up the good working :)
@gonza.shreds
@gonza.shreds 26 күн бұрын
This really GOes fast! Nice
@viyanshandilya40
@viyanshandilya40 29 күн бұрын
I tried putting a variable without defining if it is a string, float, integer...
@Vishwask22
@Vishwask22 Ай бұрын
Is the syntac for, var intSlice3 []int32 = make(int32[], 3, 8) is correct? Coz getting an error like this expected operand, found ']' But mentioning type of elements for slice after [] is working for me, Like var intSlice3 []int32 = make([]int32, 3, 8)
@studiospan6426
@studiospan6426 Ай бұрын
this is the best go tutorial i had come across. short and precise no time waste
@flurry301
@flurry301 Ай бұрын
Wich text editor is that?
@Bijimeledag
@Bijimeledag Күн бұрын
Neovim, watch it again from the start
@nesocode
@nesocode Ай бұрын
Thank you, this was easy to understand.
@n3xu501
@n3xu501 Ай бұрын
I absolutely love videos like this, straight to the point no non-sense.
@ParthShukla-o3t
@ParthShukla-o3t Ай бұрын
Hi sir is there a way to contact you, any mail id or something.
@MarkWalsh-gc
@MarkWalsh-gc Ай бұрын
This is a great video, very informative well done. It's a shame there was so much dust floating around during the video though - made it hard on these old eyes lol. Seriously though, awesome information!
@FelipeLima-k6p
@FelipeLima-k6p Ай бұрын
Lonly
@siewkingsam2534
@siewkingsam2534 Ай бұрын
late to the party but is that CointBalance Params or CoinBalanceParams at 57:41
@МитяКарпов-н1ь
@МитяКарпов-н1ь Ай бұрын
Best video on Go!!!
@riad215
@riad215 Ай бұрын
What a legend. Awesome videos!
@serajal-dinhaqiqi6292
@serajal-dinhaqiqi6292 Ай бұрын
Great
@artemxeon1654
@artemxeon1654 Ай бұрын
Быстро говорите. Непонятно ничего!!!
@osasomoregbee4878
@osasomoregbee4878 Ай бұрын
This is one of the simplest video on context, thank you so much
@johanngarces5596
@johanngarces5596 Ай бұрын
This is such a nice, tight format for more experienced developers who just need a quick overview/refresher. There’s a lack of intermediate-knowledge resources like this so Thank you :)