- Видео 16
- Просмотров 571 733
Alex Mux
Добавлен 19 фев 2023
Golang Context Package: It's More Than You Think!
We tackle the Go context package. We cover timeouts with goroutines, how to use contexts in your own code, how to use contexts with common packages and how you can use contexts as a way to pass around data and avoid expensive network calls.
Просмотров: 2 451
Видео
Python Dataclasses: From Basic to Advanced Features
Просмотров 8952 месяца назад
We take a detailed dive into dataclasses in python. We learn about how they work, and explore all the parameters including, init, frozen, repr and slots and more.
How Golang Middleware Works + Some Middleware You're Gonna Want in Your API
Просмотров 3,5 тыс.2 месяца назад
We explore how Middleware works in golang. We Also take a look at an example piece of middleware you are probably going to want to use.
Golang Project: Building a Secure Login Portal
Просмотров 7 тыс.2 месяца назад
We explore building a secure web app in Golang using sessions, CSRF tokens and username/password login.
Test Like a Pro in Go!
Просмотров 1,6 тыс.3 месяца назад
Taking a look at how to run unit and integration tests for your code in Golang.
Building a GO API - No External Packages!
Просмотров 3,2 тыс.3 месяца назад
We build a fully functional API in Golang without using any external packages. Learn about request context, authorization and middleware.
Building A Physics Simulation: Particle Collision
Просмотров 1,8 тыс.5 месяцев назад
We code a computer physics simulation in code! Particle simulation with the inelastic collision formula.
Go Project: Let's Make a PONG Game in Golang!
Просмотров 3,9 тыс.5 месяцев назад
We tackle a project in Golang: we make a pong game! We use Ebitengine V2 to create our 2D game.
Write Better GO Code: Composition
Просмотров 2,5 тыс.6 месяцев назад
In Golang what is composition and how to use it to write better code?
Learn Python Fast: Full Tutorial
Просмотров 2,2 тыс.7 месяцев назад
This is a full tutorial on learning Python! From start to finish in less than an hour, including a full demo of how to build an api in Python. No fluff, just what you need to know. 0:00 Introduction to Python 3:44 Variables and Basic Data Types 8:20 Advanced Data Types 13:51 Control Structures 19:58 Functions 28:55 Useful Built-In Functions 31:07 Classes 35:44 Installing and Importing Packages ...
Learn VIM Fast: Full Tutorial
Просмотров 4,3 тыс.Год назад
Full tutorial on learning to use Vim. Make Vim your new editor, trust me it's worth it ya'll.
Setup Neovim Fast with Awesome Results
Просмотров 7 тыс.Год назад
Setup Neovim fast and easy while still creating an efficiency powerhouse. Follow my easy step-by-step guide and get going with Neovim ASAP. My current NVIM setup: github.com/avukadin/nvimSettings/blob/main/init.lua 0:00 Intro 0:14 Kickstart Neovim 1:15 Default Features Overview 3:30 Custom but Essential Plugins
How do Floating Point Numbers Work?
Просмотров 3,1 тыс.Год назад
Floats or floating point numbers are represented using IEEE-754 standard. Understanding how this works is an important part of being a software engineer.
Learn GO Fast: Full Tutorial
Просмотров 507 тыс.Год назад
This is a full tutorial on learning Golang! From start to finish in less than an hour, including a full demo of how to build an api in Go. No fluff, just what you need to know. 0:00 Introduction to Golang 6:25 Constants Variables and Basic Data Types 13:14 Functions and Control Structures 19:30 Arrays, Slices, Maps and Loops 26:36 Strings, Runes and Bytes 31:06 Structs and Interfaces 35:18 Poin...
Learn GO Fast: Building an API
Просмотров 19 тыс.Год назад
Building and API in Golang! In the final part of this series, we put what we have learned together and build a working API in GO.
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!
The video is only an hour long but I've been watching and replicating for hours
What theme in vscode are you using?
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.
It might be the cleanest and best Go context explanation video on RUclips.
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 }
Which vim plulgin do you use for Go ?
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 ☘️
you are a go goat.....Love to learn from you ...Keep going dude
THE BEST VIDEO......GOAT
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.
Damn!!!! This was crazy good dude. Hats off for making it so simple
I want to know what is dumped to trash, include this rather than exclude this.
man you're a savior. That's the best tutorial i've ever seen in my whole life omg.
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++
what a wonderful overview. i got a lot by watching this.
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!
Very useful
at 44:13 we need to lock the memory from other processes, not lock the process itself
Dude you're a lifesaver. Thanks for the incredible short & efficient course.
I am loving this video!
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 :)
This really GOes fast! Nice
I tried putting a variable without defining if it is a string, float, integer...
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)
this is the best go tutorial i had come across. short and precise no time waste
Wich text editor is that?
Thank you, this was easy to understand.
I absolutely love videos like this, straight to the point no non-sense.
Hi sir is there a way to contact you, any mail id or something.
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!
Lonly
late to the party but is that CointBalance Params or CoinBalanceParams at 57:41
Best video on Go!!!
What a legend. Awesome videos!
Great
Быстро говорите. Непонятно ничего!!!
This is one of the simplest video on context, thank you so much
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 :)
Why are the middleware functions called in reverse?
Because of the logic wrapping in range function.
I'm learning Go coming from a C# background, and I found this really helpful. Thanks!
13:20
I think I'm missing something. In the Authorize function, you're reading the username from the request. But when making the request you're not passing the username (or maybe you are), but we never really expect the username in every request... what's the logic there?
Is this AI? You pronounce bcrypt as BYEcrypt, im thinking that's a typo to the TTS
Random banner coming randomly is annoying and distraction
At 46:54, the execution speed is constant in dbCall() because all the execution happens at one core but in the count() function the cpu has to use all of this core, increasing performance and speed? I couldn't understand that section properly!
actually on timestamp 33:43, the print in the console is incorrect, 15*25 = 375 not 119. this is because uint8 cannt hold value higher than 256, and 256 + 119 is 375 ¯\_(ツ)_/¯