free web page hit counter
🛡️
Copyright Notice: This video is officially sourced and embedded from YouTube. For all copyright inquiries, reports, or removals, please contact YouTube's legal team here.
ThePrimeagen

ThePrimeagen

548,000 subscribers

👁 42,356 views

I like Game Programming

Video Overview & Insights

Twitch : https://twitch.tv/ThePrimeagen

Currently working on a mod for an old game. Someone have done a fantastic job creating lua bindings for the game. Lua is fine for small things, but my mod have many thousand lines of Lua, Which is a bit painful.

— @Archheret1c

Discord: https://discord.gg/ThePrimeagen

Support me (by becoming a backend dev): https://boot.dev/prime

very cool

— @sparshpriyadarshi

Get production ready SQLite with Turso: https://turso.tech/deeznuts

2:00 did Elon or his brother contact you yet? :D

— @Einimas

More User Perspectives

@

@ThePrimeagen ... when we can have beta testing version ... where to subscribe for it :)

@ikirachen
@

Does he use LLM?

@ooker777
@

dude I love your content. You are the godzilla of social media

@WCArena
@

Golden master testing is a beautiful thing, having things deterministic, stripping the non deterministic stuff out. Has served me well over the years for many migrations projects. It really is a game changer.

@Mykezero
@

1:24 The problem with building an UI system is that you're not building the game, lol.

It's a tower defense game sir, you can just "hardcode" the 5 UI elements, it's fine.

@Nors2Ka
@

These are my favourite videos

@paxdriver
@

So he basically made acceptance tests, right?

@eric8788-g3g
@

Nice Eminem reference!

@nelsonchandler7048
@

Deterministic end-to-end testing with CI gates = happy

@xorman
@

aren't end-to-end walkthrough commons ?

@baptisteg4728
@

Glad you are enjoying game programming. I remember saying you should challenge yourself and do some gamedev!

@distortions1
@

I'd be happy with just 150 LoC everyday.
dude I heard you kinda talked about "why think so much, just code".
ya, I'm not 20 years coding serious job experience like you. so if I don't think, I don't know what to even code in the first place.
and it takes so long to just think about some simple things.
if I survive another 20 years, maybe I'll be able to code without thinking as much.
but who knows ?

@7thsheep
@

I did something very similar but built it as visual invariants rather than per pixel checks. Lets me test if a statement is still true even when at a pixel level things actually are changing. Both have value but I have always found per-pixel checks tend to break often and hence be a significant maintenance burden.

@notapplicable7292
@

If you calculate your ui without decimals, you goldens are platform independent, because your calculation is the same independent from hardware.

@p0r5ch3911
@

Another comment about snapshot tests

@pixelfingers
@

You should skip the game and just build a web browser bro.

@oracleofwater
@

Real life human programming in based language very cool

@Awesomer5696
@

Casey got him. RIP Frontend Javascipt-agen. RIP.

@bug5654
@

Shhhh. Here we have a rare ThePrimeagen sighting in his natural habitat. Be very quiet so we don't scare him off.

@GhostOfSatoshi
@

Honestly I love snapshot testing when working with compilers and things, but still coudn't figure out how to use it in ordinary work :(

@kamushekdev
@

Didn't Casey say that he didn't think these snapshot based tests were very useful in his opinion, as it's pretty obvious when the UI breaks? Is there a reason why you disagree with him and decided to continue down this path?

@briankzimmer
@

This is a good idea, nice

@DH-oj2ru
@

Everything is better that Unit Testing. Why we can see that because ever since we gave up on Unit Testing, ...





... there's never been another software project failure

@asteriondaedalus6859
@

man wrote selenium for games

@maciej002
@

Demo-Driven-Development

@thurston04
@

Looks like so much fun

@DntSayGoodbyeToMe
@

No game done but game developer

@Arniores
@

funny, all my projects are also 80% ready all the time

@joesryify
@

I've been doing a similar thing with my project at times, creating visual snapshots of things, however it's more just for debugging. Like I had a compute shader that I had to figure out, and it was too hard to think through the issue just in my head, so I had it print out the result of the shader every frame or so to a small image. Then I could compare each frame. The only difference is I compared it with my eyes instead of AI, lol.

@ZacChien1
@

You've just created snapshot testing, but like, with REAL, LITERAL, snapshots

@MatheusAshton
@

yes me too bro but I'm stupid

@Arzuparreta
@

Fun fact minecraft kinda can have that

@Julienraptor01
@

Yo who's doing the pixels I wanna know. Is it Prime himself? There's no way he's so talented also at art right? Those are real talented sprites and font choice.

@Groaznic
@

Reminds me of E2E and Jest snapshots. Could you please create an E2E for the Odin community?

@shots_of_leo
@

Testing was the one thing that overwhelmed me and pushed me out of programming

@wallacesantos0
@

YouTube sent me another title for the same video: In German “Ich mag Spieleprogrammierung“

@kahnfatman
@

game content is always good
more pls.

@xaaan8
@

Still no game...

@poorlittlemonkey
@

QA Testers hate this guy because of one weird trick

@MrBreakstuff
@

Bro read an article saying llms understand images better than text and immediately created a test framework based on this.

Absolute DOAT.

@nicolashumbert8344
@

Really? 😂😂😂😂😂😂

@littlebulli
@

Let him cook.

@michag7163
@

Why didn't you use yoga or clay?

@user-93fekod1o
@

i'm doing a game engine (odin btw), and that way of testing gave me a pretty cool idea, imagine if the engine already did that for you? my engine is specialized so i think that would fit better compared to more generalist engines

@lokopeto
@

I tried something like that for recording ghost cars in a racing game in Flash Actionscript 2, and it was NOT deterministic.

@xyzzy12345
@

now implement rollback netcode

@vmarcelo49
@

yeah sure but what if you want to change the visuals
your goldens are wrong now
and sure you can regenerate them but now you have to be extra sure they didn't f up something else in the layout

@d_00