Alex Mux
Alex Mux
  • Видео 16
  • Просмотров 571 733
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.

Комментарии

  • @Jarek.
    @Jarek. День назад

    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 3 дня назад

    The video is only an hour long but I've been watching and replicating for hours

  • @IAmLorenzoF
    @IAmLorenzoF 3 дня назад

    What theme in vscode are you using?

  • @IAmLorenzoF
    @IAmLorenzoF 3 дня назад

    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 4 дня назад

    It might be the cleanest and best Go context explanation video on RUclips.

  • @kvelez
    @kvelez 4 дня назад

    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 4 дня назад

    Which vim plulgin do you use for Go ?

  • @suryakiranrekha
    @suryakiranrekha 5 дней назад

    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 5 дней назад

    you are a go goat.....Love to learn from you ...Keep going dude

  • @ranasuleman1662
    @ranasuleman1662 5 дней назад

    THE BEST VIDEO......GOAT

  • @davidmurphy563
    @davidmurphy563 7 дней назад

    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 9 дней назад

    Damn!!!! This was crazy good dude. Hats off for making it so simple

  • @dbdejonge2081
    @dbdejonge2081 10 дней назад

    I want to know what is dumped to trash, include this rather than exclude this.

  • @Lucaslima-gz9vk
    @Lucaslima-gz9vk 10 дней назад

    man you're a savior. That's the best tutorial i've ever seen in my whole life omg.

  • @tinkertaps
    @tinkertaps 10 дней назад

    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 12 дней назад

    what a wonderful overview. i got a lot by watching this.

  • @michaelhollis5749
    @michaelhollis5749 16 дней назад

    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 17 дней назад

    Very useful

  • @kairavb
    @kairavb 17 дней назад

    at 44:13 we need to lock the memory from other processes, not lock the process itself

  • @harshupadhayay7087
    @harshupadhayay7087 18 дней назад

    Dude you're a lifesaver. Thanks for the incredible short & efficient course.

  • @kairavb
    @kairavb 19 дней назад

    I am loving this video!

  • @zuao76
    @zuao76 20 дней назад

    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 20 дней назад

    This really GOes fast! Nice

  • @viyanshandilya40
    @viyanshandilya40 23 дня назад

    I tried putting a variable without defining if it is a string, float, integer...

  • @Vishwask22
    @Vishwask22 24 дня назад

    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 24 дня назад

    this is the best go tutorial i had come across. short and precise no time waste

  • @flurry301
    @flurry301 28 дней назад

    Wich text editor is that?

  • @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 :)

  • @AW1571
    @AW1571 Месяц назад

    Why are the middleware functions called in reverse?

    • @aleyrizvi
      @aleyrizvi 24 дня назад

      Because of the logic wrapping in range function.

  • @djenning90
    @djenning90 Месяц назад

    I'm learning Go coming from a C# background, and I found this really helpful. Thanks!

  • @3570_AHANAMAJUMDER
    @3570_AHANAMAJUMDER Месяц назад

    13:20

  • @TerenceSilonda
    @TerenceSilonda Месяц назад

    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?

  • @nexisle7508
    @nexisle7508 Месяц назад

    Is this AI? You pronounce bcrypt as BYEcrypt, im thinking that's a typo to the TTS

  • @furqanhussain2625
    @furqanhussain2625 Месяц назад

    Random banner coming randomly is annoying and distraction

  • @anuragnayak9704
    @anuragnayak9704 Месяц назад

    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!

  • @tomislavtumbas8360
    @tomislavtumbas8360 Месяц назад

    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 ¯\_(ツ)_/¯