← Home ← Back to /v/

Thread 717446302

526 posts 166 images /v/
Anonymous No.717446302 >>717447038 >>717447127 >>717447208 >>717447509 >>717447580 >>717447585 >>717448171 >>717448682 >>717448728 >>717449163 >>717449408 >>717449498 >>717450939 >>717451829 >>717452289 >>717457928 >>717458060 >>717458810 >>717461698 >>717462464 >>717463204 >>717466220 >>717466791 >>717469530 >>717470419 >>717471516 >>717471978 >>717473010 >>717474208 >>717474208 >>717474292 >>717475460 >>717476451 >>717476660 >>717478065 >>717478627
Is game dev difficult?
Anonymous No.717446772 >>717447520 >>717448026 >>717449372 >>717449904 >>717462879 >>717463467 >>717464094 >>717473785
The worst part of gamedev is midwits who don't know gamedev but act smug about if statements online
Anonymous No.717447000 >>717448372 >>717449342 >>717454938 >>717457712 >>717458737 >>717470749 >>717476857
yeah it's very difficult. Goblins keep pouring out of my computer and it's really hard to keep those little shits under control.
Anonymous No.717447038
>>717446302 (OP)
>not making a 40gb executable to check if a number is even or odd
https://andreasjhkarlsson.github.io/jekyll/update/2023/12/27/4-billion-if-statements.html
Anonymous No.717447091 >>717448043
draw calls
Anonymous No.717447127 >>717462613
>>717446302 (OP)
/v/ will tell you the correct thing here is to use a switch
Anonymous No.717447208 >>717474036 >>717476475
>>717446302 (OP)
Code either works or it doesn't, there is no such thing as "bad" code.
Anonymous No.717447292
Just use claude
Anonymous No.717447318 >>717447550 >>717452706 >>717474292
I had like two lines of code on my TI-83+ calculator to check if a number was even. This has to be a joke.
Anonymous No.717447509
>>717446302 (OP)
Bitch never heard of a modulus.
Anonymous No.717447520 >>717448026
>>717446772
>bro just replace the if elses with a switch statement bro even though you're checking against different statements and require a more robust solution
Anonymous No.717447550 >>717447940
>>717447318
Anon it takes less than 1 line of code
anyone using more is either retarded or making a joke pretending to be retarded.
Anonymous No.717447580
>>717446302 (OP)
It's fun.
It was literally my favorite game to play on my MSX computer.
Anonymous No.717447585 >>717447668 >>717447769 >>717447918
>>717446302 (OP)
What the fuck does
(number % 2 === "even".Length % 2) even do?

"even".Length % 2 resolves to 4 % 2 which is 0

Oh so it's 1/0 == 0
Anonymous No.717447643 >>717476681
can't you just do 'return number % 2 == 0'? Am I gay? I write python code for my job, but I'm a terrible programmer
Anonymous No.717447668
>>717447585
oh wow
Anonymous No.717447734
Although you should use the modulo function, I do have a shitpost way of checking for evens.
Covert the number to a string, and then check to see if the last character in the number string is a 0, 2, 4, 6, or 8.
It's not going to be fast, but it's good for a giggle.
Anonymous No.717447769
>>717447585
good bait
Anonymous No.717447834
>>717444068
Yes.
Anonymous No.717447918
>>717447585
almost anon, almost
Anonymous No.717447940
>>717447550
>the mythical zero line function
They said it couldn't be done.
Anonymous No.717448026 >>717448174 >>717448276 >>717449047 >>717450359 >>717457564 >>717470642
>>717446772
>>717447520
Threadly reminder that most games worth playing are coded like shit and have fundamental issues that boil down to lack of abstraction or data driven design.
Just make game. Don't worry about your polymorphic state machine that handles edge cases you'll never run into. Don't make "modular" behaviors for things you know you're not going to recycle. Don't be autistic about "decoupling" components that literally need each other.
I have wasted so much time on doing "system" design for my small projects and never actually making content.
Anonymous No.717448043 >>717448170 >>717448248 >>717456934
>>717447091
i wish devs would START using dx12 or vulkan seriously. a lot of games are still coming out in fucking directx11. sega called their next gen mmo on fucking dx11.
Anonymous No.717448167 >>717448254
return float(number)/2 == float(number/2);
Anonymous No.717448170 >>717448712
>>717448043
If anything, they should go back to dx10, maybe even dx9.
Anonymous No.717448171
>>717446302 (OP)
Game dev as a whole? Depends on your scope, but in general yes.
Programming specifically? Nah
Anonymous No.717448174 >>717448608 >>717458238
>>717448026
abstraction is the opposite of data driven
Anonymous No.717448248 >>717448712 >>717449013
>>717448043
They're not the same, DX12 has horrible shader compilation issues because it comes with C like shaders instead of a bytecode.
Anonymous No.717448254 >>717448557 >>717448671
>>717448167
this tells you that 0 is even which is wrong
Anonymous No.717448268 >>717450021 >>717457892
Heh.. Coding is easy
Anonymous No.717448272
>could just tell it to add 2
>dumb nigger brain
Anonymous No.717448276
>>717448026
Making games requires either communicating with other people or expanding your domain by learning to make assets with other software, while unnecessarily optimizing everything to absurdity is free :)
Anonymous No.717448343 >>717449213 >>717457472 >>717458424
use case for having checked for even numbers?
Anonymous No.717448372 >>717449131
>>717447000
Put the goblins to work to make the game faster.
Anonymous No.717448514 >>717449513 >>717468226
You can just solve that shit using recursion
>def isEven(num):
> if num == 0:
> return "even"
> if num == 1:
> return "odd"
> if num > 1:
> return isEven(num - 2)
Anonymous No.717448557
>>717448254
fine

return (float(number)/2 == float(number/2))*number;
Anonymous No.717448608 >>717459993
>>717448174
You don't know what data driven design is.
Anonymous No.717448671
>>717448254
>which is wrong
https://en.wikipedia.org/wiki/0?useskin=vector#Elementary_algebra
Anonymous No.717448682 >>717472252
>>717446302 (OP)
This is why you don't let trannies code your game.
Anonymous No.717448712 >>717448781 >>717449906
>>717448170
dx11 and below are considered "legacy apis" by microsoft and valve/dxvk. in other words they're so old that they can't be considered "modern".

>>717448248
dx12 is supposed to switch to spir-v instead of hlsl soon.
Anonymous No.717448718
just put the integer into your global integer array
Anonymous No.717448728
>>717446302 (OP)
>picrel
mamma mia...
Anonymous No.717448781 >>717448869
>>717448712
>soon
Anonymous No.717448843
Insane behavior
Anonymous No.717448861 >>717449034 >>717473571
With all these even/odd shitposting when it comes to coding why hasn't any engine created a built in function that automatically sorts even/odd numbers?
Anonymous No.717448869 >>717448945
>>717448781
its already confirmed for shader model 7. whens shader model 7? when 25h2 or next big windows version come out.
Anonymous No.717448945 >>717449307
>>717448869
I mean, this shit should be standard since launch.
We have a massive pile of stutter mess games due that.
Anonymous No.717449013 >>717449126 >>717449215
>>717448248
You can't ship low level shader bytecode on PC, you'd have to compile for not only every single GPU but every driver for every GPU.
Anonymous No.717449034
>>717448861
Why? It's literally just a one-line if statement.
Anonymous No.717449047 >>717449395
>>717448026
The amount of quality in your game code should be directly related to the frequency that you expect to be repurposing that code.
Something like render code had better run well enough since it will directly impact performance, and a core system had better be flexible enough to accommodate how often you as a designer plan to be interacting with it.
Fringe cases can bear to be a little inefficient if they work, but you should be able to anticipate if something is fringe or core before you're really doing game design rather than code architecture.
Anonymous No.717449126 >>717449404
>>717449013
As far i know DX11 and previous do ship in some sort of bytecode that gets translated to the target GPU, skipping the whole "C compiler" part.
Anonymous No.717449131 >>717449342 >>717476857
>>717448372
would love to but they are lazy fucks
Anonymous No.717449163
>>717446302 (OP)
Yes. I've never been able to complete a single game in decades of devving...
Anonymous No.717449213
>>717448343
Anything that alternates.
Anonymous No.717449215 >>717450118
>>717449013
you target vulkan via spir-v, not the micro-architecture of your gpu you retard
Anonymous No.717449284 >>717449472
I can do little coding exercises and whatnot, but when i try to think about making a whole game where all those systems need to work with one another and for saves to work and whatnot my head hurts.
Anonymous No.717449307 >>717449386
>>717448945
hlsl is based on llvm which is slow as shit. its also why amds vulkan driver on windows is much worse than linux. they use llvm compiler instead of aco.
Anonymous No.717449342 >>717449852
>>717447000
>>717449131
I love seeing the cute gobbos
Anonymous No.717449361
it depends. it definitely can be. games are probably the hardest media to make.
Anonymous No.717449372 >>717459939
>>717446772
>midwits who don't know gamedev but act smug about if statements online
Anonymous No.717449386
>>717449307
"nice".
Anonymous No.717449395 >>717449907
>>717449047
>you should be able to anticipate if something is fringe or core before you're really doing game design rather than code architecture.
I can't do game design before I write code is the problem. I get my ideas for mechanics and overall feel incrementally. I can't just sit with a blank sheet of paper and decide I want a game with THIS kind of gun, and THIS kind of movement.
Anonymous No.717449404 >>717460137
>>717449126
It's higher level and more generic so it can work across everything, but much more restrictive in what you can do.
Anonymous No.717449408
>>717446302 (OP)
It's not "difficult", but its very time consuming. First you learn how to do it for years, then you do it for years and MAYBE you will eventually create something. Not even something good, just something.
Anonymous No.717449472 >>717450757
>>717449284
Thats why you start small, like making pong or snake.
Anonymous No.717449498 >>717449776 >>717450010
>>717446302 (OP)
Undertale is awfully coded and yet it is a bestseller
It's as if it doesn't really matter as long as it runs
Anonymous No.717449513
>>717448514
Provided the numbers are standard int/float/double and not a meme type you can just look at the last bit.
Anonymous No.717449643 >>717449841 >>717460470
any other anons chatgpted through coding interviews and got a 200k job? no? just me?
Anonymous No.717449776 >>717451561 >>717481816
>>717449498
Ocarina of Time's dialogue trees are hardcoded into the game's binary, and it runs on the update loop instead of an even-driven system or state machine.
That means that EVERY NPC on screen is polling every frame whether or not you're trying to interact with them, and if you are, then it checks hardcoded variables to see what quests you've completed and then updates the dialogue display based on that.
Anonymous No.717449841
>>717449643
I got mine by showing a game for an old system i'm developing running on an emulator for the old system i developed.
Anonymous No.717449852 >>717476216 >>717476857
>>717449342
glad to read that man. Soon you'll be able to do more than just seeing them
Anonymous No.717449893
#define isEven(x) (!((x) & 1))
Anonymous No.717449904 >>717470938
>>717446772
>game engine discussion by people who have never even opened one
Anonymous No.717449906
>>717448712
>dx11 and below are considered "legacy apis" by microsoft and valve/dxvk. in other words they're so old that they can't be considered "modern".

who gives a fuck?
Anonymous No.717449907
>>717449395
>i can't design a game before I write code
Game design is an iterative process, you'll never get it right on the first go. But you should have an idea of what you're building before you've already spent time building it. That first draft IS game design, its the first step of it.
Even for action games, you can plan things out on paper and toy around with ideas long before you have any idea of how it actually feels.
Try playing some board or card games if you want an easier time getting those juices flowing. Lots of turn based games are just digital tabletop games.
Anonymous No.717449927
!(x&1) you bunch of fucking retards...
Anonymous No.717450010 >>717465835
>>717449498
The problem with this kind of slop programming is not performance.
It's wasting the time you have on this planet with shit you could save yourself by spending a week coming up with a good structure.
Yandev and the ferret fuck men are playing a game of "can i finish this before i die?", and the answer may surprise you.
Anonymous No.717450021 >>717450201 >>717451660 >>717454889 >>717457892 >>717459000
>>717448268
i like the idea of a code contest where the largest most convoluted solution wins
Anonymous No.717450118 >>717450225
>>717449215
spir-v still needs to be compiled for your GPU, using it doesn't eliminate shader compilation in games
Anonymous No.717450201
>>717450021
That was a thing in spacechem, people had figured out the best possible solution for every puzzle, but figuring out the worst possible solution proved to be much harder.
Anonymous No.717450214 >>717450483 >>717450550
>pip install isEven
Anonymous No.717450218 >>717450348
vulkan will die before opengl does
Anonymous No.717450225
>>717450118
Yes, but it's a SHITLOAD faster to do say

add a,1 -> add r1,1, to
faggotassblur +=1; -> add r1,1
Anonymous No.717450348
>>717450218
With microsoft actively trying to kill it,yes.
Computing will only get worse before it gets even worse.
Anonymous No.717450359 >>717450606
>>717448026
>Threadly reminder that most games worth playing are coded like shit and have fundamental issues that boil down to lack of abstraction or data driven design.
Bro just because Undertale has spaghetti code does not mean every successful game dev is a codelet.
Anonymous No.717450483 >>717463839
>>717450214
#!/usr/bin/env -S uv run --script

# /// script
# requires-python = ">=3.13"
# dependencies = [
# "isEven"
#]
# ///

import sys
import isEven

print(isEven.is_even(sys.argv[1]))

# wa la
Anonymous No.717450550
>>717450214
>npm install pyscript
>pyscript run isEven
Anonymous No.717450606 >>717450813
>>717450359
Decompile your favorite games and find out.
Anonymous No.717450757 >>717450941 >>717450957 >>717478479
>>717449472
Ive been doing those, but just scaling that always seems like magic to me. Like trying to think how bigger games that i enjoyed over the years work under the hood is really now shocking. I know some people use blueprints too but even if you think of code as visual, that stuff becomes insane spaghetti in no time, and yet theres far bigger games made without any visual coding and still function. I concede my iq is just probably not high enough to really understand it.
Anonymous No.717450813 >>717451273
>>717450606
I'd love to decompile noita only to find out all the code is in finnish
Anonymous No.717450939
>>717446302 (OP)
Nice clean code faggot, now watch this.
Anonymous No.717450941
>>717450757
Then write out a game document, plan it out before you start coding.
Like with pretty much everything, simplify it until you make sense of it
Anonymous No.717450957
>>717450757
Most software is just big loops with smaller loops within them. Not just games.
Try making a menu game where different menus function in different ways, but still operate on what you expect from menus.
Doesn't need to be complicated, but will help you understand the fundamentals a bit better
Anonymous No.717451208
i'm dumb as a rock and programming is incredibly hard
Anonymous No.717451273
>>717450813
>noita
Never played it but some autist made an attempt to replicate some functionality of the engine in their own project.
https://github.com/PieKing1215/FallingSandSurvival/tree/dev/FallingSandSurvival
The code behind it isn't bad, but it's not giga autist over abstracted code of my dreams, either. Pretty straightforward. Never told anyone to write bad code.
Anonymous No.717451561 >>717451736
>>717449776
>hardcoded into the game's binary
it's a nintendo 64 game, everything is hardcoded into a binary, it's called a ROM
Anonymous No.717451660 >>717451968 >>717466012 >>717466318
>>717450021
There are or were code obfuscation contests where you write the most incoherent slop that actually works and does something cool.

Here's the famous 12 days of Christmas:

#include

main(t,_,a)
char *a;
{return!0 main(-86, 0, a+1 )+a)):1,t<_?main(t+1, _, a ):3,main ( -94, -27+t, a
)&&t == 2 ?_<13 ?main ( 2, _+1, "%s %d %d\n" ):9:16:t<0?t<-72?main(_,
t,"@n'+,#'/*{}w+/w#cdnr/+,{}r/*de}+,/*{*+,/w{%+,/w#q#n+,/#{l,+,/n{n+\
,/+#n+,/#;#q#n+,/+k#;*+,/'r :'d*'3,}{w+K w'K:'+}e#';dq#'l q#'+d'K#!/\
+k#;q#'r}eKK#}w'r}eKK{nl]'/#;#q#n'){)#}w'){){nl]'/+#n';d}rw' i;# ){n\
l]!/n{n#'; r{#w'r nc{nl]'/#{l,+'K {rw' iK{;[{nl]'/w#q#\
n'wk nw' iwk{KK{nl]!/w{%'l##w#' i; :{nl]'/*{q#'ld;r'}{nlwb!/*de}'c \
;;{nl'-{}rw]'/+,}##'*}#nc,',#nw]'/+kd'+e}+;\
#'rdq#w! nr'/ ') }+}{rl#'{n' ')# }'+}##(!!/")
:t<-50?_==*a ?putchar(a[31]):main(-65,_,a+1):main((*a == '/')+t,_,a\
+1 ):0 i@bK'(q)-[w]*%n+r3#l,{}:\nuwloca-O;m .vpbks,fxntdCeghiry"),a+1);}
Anonymous No.717451736
>>717451561
>everything is hardcoded into a binary, it's called a ROM
not true. ROMs can still contain assets like textures, level data, and text.
Anonymous No.717451829
>>717446302 (OP)
why do you need a program to tell you if a number is even? just look at the number retard
Anonymous No.717451968
>>717451660
mustard gas
Anonymous No.717452289 >>717453892
>>717446302 (OP)
>"even".Length % 2
is this just the length of the string "even"? So 4?
I get you want to flip the bit since the method is IsEven and not IsOdd, but this seems like a weird way to do it
Anonymous No.717452706
>>717447318
No shit it's a joke, you retarded narcissist.
Anonymous No.717453258 >>717455210
why would I work for a game company that's always mismanaged and pays pennies when i could work for a startup or a bank that are also mismanaged but pay way more.
Anonymous No.717453740 >>717454080 >>717454321
I've found out that I am shit at asset creation and would rather focus on code and writing, so I'm making a text based game you can play in your terminal.
It's probably not going to get any attention nor will it be good, but it's my project so that I can say I made a game.
Anonymous No.717453892
>>717452289
he is making a joke retard
Anonymous No.717454080
>>717453740
Good luck!
Anonymous No.717454321
>>717453740
If you make it actually be playable on a terminal, and show it off running on a CRT terminal thing, you will get infinite marketing from weirdos.
Anonymous No.717454447 >>717454603 >>717454647
Average RPG Maker devs are an even more special breed.
Anonymous No.717454603
>>717454447
Why do I have to turn off pig execution to run?
Anonymous No.717454647 >>717454847
>>717454447
This, though, is the shit that really kills me, but you see it all the goddamn time.
It's like people never stop and think about how conditionals work and just decide to go balls deep on nested if else if else if else.
Anonymous No.717454690 >>717455768
For me it's sleep sort
I wanted to find the original thread but I could only find Indian blogspam and AIslop, which is even funnier.
Anonymous No.717454847
>>717454647
And worst of all - they never think to condense this shit into a single event that uses a variable to specify who this shit is acting upon and instead copy+paste walls of garbage code over and over.
Anonymous No.717454889
>>717450021
that code that was all emojis
Anonymous No.717454938 >>717455216
>>717447000
I'm looking forward to ur game anon. Nice trips too. Godspeed
Anonymous No.717454981
>They don't program in brainfuck
Anonymous No.717455209 >>717455313 >>717455387 >>717461817 >>717462886 >>717463009
I like coming into these threads, even though I have no idea how to program. I always hear people saying 'programming is easy'. Yet when I look in these threads and try to understand, I feel like a archaeologist looking at ancient Egyptian hieroglyphs. Maybe someday I will understand.
Anonymous No.717455210
>>717453258
Because your grades in school were shitty so those startups and banks will just throw your resume straight into the trash.
Anonymous No.717455216 >>717455393 >>717456695 >>717482183
>>717454938
thanks anon! Have some combat footage I recorded today while testing a possible lamp for exploring dark areas. Don't mind the light leaks on the background, that map is kinda fucked.
Anonymous No.717455313
>>717455209
Programming is unfortunately one of those things that you have to start babbymode ez on first because they are fundamental concepts that flow into other aspects.
Anonymous No.717455387
>>717455209
Everyone says programming is easy but I'm in the same boat, cannot wrap my head around it for the life of me, and Lord knows I have tried.
But I am also cursed not wanting to make simple FPS games about picking up keys and triggering cutscenes.
Anonymous No.717455393 >>717455750
>>717455216
Good stuff! Do you have like a newsletter I can subscribe to to follow your project? I fear I'll miss it when its actually finished 17 years from now
Anonymous No.717455750
>>717455393
Not yet! my plan is to start the heavy shilling after I've released the first, small demo. I'll make sure to shill it far and wide but in any case, if you want to follow the progress make sure to drop by the gamedev threads here in /v/, I'm always posting there.
>I fear I'll miss it when its actually finished 17 years from now
kek
I'll try to make it in less than 10 ( ͡° ͜ʖ ͡°)
Anonymous No.717455768 >>717455923
>>717454690
Found it
Anonymous No.717455773 >>717470283 >>717470741 >>717470819
>too low IQ for programming.
That's why I stick to musicfagging. For indie games, one of these days.
Anonymous No.717455923
>>717455768
Fucking kek.
Anonymous No.717456695 >>717456914
>>717455216
Did you make the models yourself? I love low poly stuff
Anonymous No.717456914 >>717457008 >>717482183
>>717456695
yeah! took some time to learn and I'm not very good at it lmao, but it's fun.
Anonymous No.717456934 >>717478523
>>717448043
dx11 does everything for you
no need for hardware optimization lamo
Anonymous No.717457008 >>717457123
>>717456914
Looks awesome, good luck
Anonymous No.717457123
>>717457008
thanks! hope I'm able to make something you guys enjoy trying out
Anonymous No.717457472
>>717448343
Wanting something to happen with 50% odds, but based on a predictable input. Like if a player has some kind of combined "battle score" and there should be bonus XP half the time, give it when the score is even. I wouldn't use an isEven function unless it was so that the code was more human-readable when working with other people. And even then, I would just opt for a comment like:

//do X when even
if (!(score % 2))

This is also why I would just use isOdd anyway.

// is odd
if (score % 2)
Anonymous No.717457564
>>717448026
>Threadly reminder that most games worth playing are coded like shit and have fundamental issues that boil down to lack of abstraction or data driven design.
Coderlet here, I have plenty of OOP experience and I've experimented quite a bit with functional programming, but I keep hearing about those "data driven design/ data oriented programming" terms and I still don't understand what they're about, how do they compare to OOP or why people keep shilling for them in game development.
Can I get a QRD?
Anonymous No.717457639 >>717457741 >>717457878 >>717458132 >>717458647 >>717461425 >>717461812 >>717471317
DevAnons, what is your favourite file type for storing game data to be accessed during run time? I've heard JSON is used a bit, but so does XML.
Anonymous No.717457712
>>717447000
goblin fucking SHITS
Anonymous No.717457741
>>717457639
txt
Anonymous No.717457846
I have no idea what any of this means and I hope to never do so.
Anonymous No.717457878
>>717457639
json but mostly because I don't know any better nor have any desier to change that
Anonymous No.717457892 >>717457941 >>717458443 >>717459248 >>717464496
>>717448268
>>717450021
>i like the idea of a code contest where the largest most convoluted solution wins
Anonymous No.717457928
>>717446302 (OP)
number % 2 == complex way to spell out "0"
???

Might as well write "true - true"
Anonymous No.717457941 >>717460278
>>717457892
I love the last one doesn't even work.
Anonymous No.717458060 >>717458115
>>717446302 (OP)
OOP doesn’t belong in video game development and anyone who’s worked at a well known company knows this
Anonymous No.717458115 >>717458371 >>717458450 >>717458915 >>717475389
>Using a language with loose typing
ISHYGDDT

>>717458060
I can see the use cases for certain games, but for the majority of games it really isn't needed.
Anonymous No.717458132
>>717457639
I use LÖVE and that just lets you plop things in a lua file. But I like JSON way better than XML. The tags look cluttered to me.
Anonymous No.717458238
>>717448174
this
Anonymous No.717458273
Is this the reddit general?
Anonymous No.717458371
>>717458115
>the man who gave us Javascript then gave us Brave
what a blessed guy
Anonymous No.717458424
>>717448343
When the variable needs to be divisible by 2.

You got 2 teams but 25 players total, then you cannot make 2 even teams, so the user must add or remove players.
Anonymous No.717458443 >>717458495 >>717458551
>>717457892
I would argue that cond == true is better because it convey it's meaning in a more readable manner. It's easier to differentiate for false cases than an exclamation point. Less elegant, but more readable.
Anonymous No.717458450 >>717458551
>>717458115
there's no excuse for not knowing about ieee floating point
Anonymous No.717458495 >>717458595 >>717459604
>>717458443
Readable manner for who?
Anonymous No.717458543
int anonBD;
std::cout << "wats ur birfdae? :) " << std::endl;
std::cin >> anonBD;
do{
if(anonBD <= 17){std::cout << "u must b atleast 18 tew bost on dis bored :'(( " << std::endl;}
else{std::cout << "pee pee poo poo honk honk le funny reddit may may desu ne :D " << std::endl;}
}while(anonBD != 18);
Anonymous No.717458551 >>717458693
>>717458450
Yeah that's the one part of the picture I actively disagree with.

>>717458443
Usually you would name your variable something like isVariable anyway. Anyone looking at the code would know intuitively what !isVariable is.
Anonymous No.717458595 >>717458954 >>717459093 >>717459386
>>717458495
Someone else that might need to dive in your code or yourself, two month later.
Anonymous No.717458647
>>717457639
tab-separated values for tabular data, json for nested data
i try to stick with tabular data as much as i can
Anonymous No.717458693
>>717458551
Yes but you might miss it. == false is like a wart on the face.
Anonymous No.717458737 >>717458832
>>717447000
Dogmafriend, did your gobbos get armor?
Anonymous No.717458810
>>717446302 (OP)
No. In all walks of life, there are incompetent morons. My trade is incredibly easy. And yet nearly every day, I see work done wrong.

Game dev seems to be no different: its not hard. Everyone doing it is just incompetent and lazy.
Anonymous No.717458832 >>717462092
>>717458737
hell yeah, plus shields as well. There are still naked goblins, and you can break a goblin's armor with a heavy attack, making it more vulnerable an easier to make him flinch.
Anonymous No.717458915
>>717458115
0.1 + 0.2 == 0.3 is false in most languages, it's not due to Javascript, it's due to how computers approximate floats.
Anonymous No.717458954 >>717459129
>>717458595
Put a // to explain the section instead
Anonymous No.717459000 >>717459143
>>717450021
https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpriseEdition
Anonymous No.717459093 >>717459389
>>717458595
i would suggest they learn the language and its idioms
Anonymous No.717459129 >>717459258 >>717459658 >>717459776 >>717473946
>>717458954
I mostly see comments as a way to quickly navigate code, not explain it. Code should be self explanatory.
Anonymous No.717459143
>>717459000
Just looking at the folder structure is giving me nightmares.
Anonymous No.717459248
>>717457892
>return null;
Ok Gupta
Anonymous No.717459258
>>717459129
Yes? Explain what the section is and the (cond) should be self explanatory without needing to be retard-proof
Anonymous No.717459386 >>717459469
>>717458595
if (true)
is supposed to be readable enough, it's not esoteric, the same way if you stored a boolean like
my_bool = 1+2 == 3;
In one line instead of putting it in a if statement.
If you can't read this you just can't read code, it's nothing headaches inducing.
Anonymous No.717459389 >>717459629
>>717459093
It's easy to miss a character when you're trying to understand the logic behind. I prefer a code to not be elegant, but clear, rather than having to waste time because I realize that something is wrong and oh fuck I didn't see the syntatic sugar and now I have to reread a wall part of this shit because it's doing the opposite of what I thought it was doing.
Anonymous No.717459469 >>717459502 >>717459514
>>717459386
I'm not saying it's esoteric. Just prone to be misread.
Anonymous No.717459502 >>717459743
>>717459469
Then learn to read
Anonymous No.717459514
>>717459469
No, it isn't.
Anonymous No.717459604
>>717458495
Hello Raj.
Anonymous No.717459629
>>717459389
sneed
Anonymous No.717459658 >>717460003
>>717459129
Ridiculous, you have to put the intent of the code in the comments, if need be you need to explain why you used this or that solution. Commenting to "navigate" code? What do you even mean? Isn't it the mouse wheel that help navigate the code? Richard Stallman give me strength.
Anonymous No.717459743 >>717459814 >>717459815 >>717459906 >>717460524
>>717459502
I prefer to operate under the assumption that we are faillible rather than we are all perfect being that never make mistakes.
Anonymous No.717459776
>>717459129
>Code should be self explanatory.
This phrase makes my eyes do somersaults when I hear it at work. I almost exclusively hear as a way to dunk on juniors to "git gud" by not explaining something they can't read, or to pad out a PR with suggestions because they can't find anything useful to say but can't just simply approve something without yapping.

>implement super obscure 3rd party library call
>don't comment
>"Hey, can we add a comment here? This feels a bit like a black box."
>comment
>"Can we remove this comment? Code should be self explanatory"
Fuckin hate code reviews with certain people.
Anonymous No.717459814 >>717460141 >>717460202
>>717459743
I prefer to keep retards like you from touching code
Anonymous No.717459815
>>717459743
I write mostly C code so I can't assume that, or else my PR's get laughed at.
Anonymous No.717459906 >>717460350
>>717459743
we are fallible, which is why less text is more gooder.
Anonymous No.717459939 >>717460089 >>717460327 >>717478884
>>717449372
Anonymous No.717459993
>>717448608
>You don't know what data driven design is.
nta, but my game has a bunch of skills like diablo, and i had them all as their own equippable. i mean all of them were their own thing before i realized i could put them all in one data table lul.
Anonymous No.717460003 >>717460538
>>717459658
Part a. Part b. Part c.
Titles aren't here to explain what a part is about.
Also, fuck off with your condescending tone. I just said there was an argument about a pattern potentially being more readable despite being uglier, nothing else.
Anonymous No.717460089 >>717481419
>>717459939
Was the real tweet responding to people pointing out his dynamic lighting code is ass? This is the same guy who didn't implement shaders because third world GPUs can't do that (????)
Anonymous No.717460137
>>717449404
>more restrictive in what you can do.
nta but explain this to me like i'm retarded (because i am)
Anonymous No.717460141 >>717460245 >>717460291
>>717459814
Oh no, retard trying to make their code more readable for other, the humanity.
Anonymous No.717460202 >>717460245
>>717459814
Ran out of arguments, I see.
Anonymous No.717460245
>>717460141
>>717460202
So mad you had to reply twice
Anonymous No.717460278
>>717457941
I would have had no idea but that adds to the meme, lol
Anonymous No.717460291 >>717460426
>>717460141
your english is terrible
Anonymous No.717460327 >>717462291
>>717459939
function is_bool(num)
even_array = [2,4,6,8,10,12,14,16];
return even_array.includes(num);
Anonymous No.717460350 >>717460481 >>717460525
>>717459906
Sometime yes, sometime no. Synthetic sugar introduce complexity for the sake of aesthetic. Complexity that can be overlooked and I'm honestly splitting hair here. Maybe that's why some people are reacting with such hostility
Anonymous No.717460415
x&1
Anonymous No.717460426
>>717460291
Ok
Anonymous No.717460470
>>717449643
Saar?
Anonymous No.717460481
>>717460350
It's "syntactic" sugar.
Anonymous No.717460518 >>717478549
Have you taken the pointer pill?
Anonymous No.717460524 >>717460864
>>717459743
Jesus fuck if you see a condition with a single ``thing" between ( and ) then that ``thing" MUST be a boolean (or interpreted as one, if you use a SHITLANG) and if it's true then you do what's in the { }
Unless you're blind or if your brain is incapable of the most basic pattern recognition then it's perfectly legible.
Honest question, which is easier to read and understand:
if (this_is_better) {
return "I'm right"
}
OR
if (better_condition == true /* if the better condition is set to true */ && /* AND */ better_condition != false /* we want to make REALLY sure this is actually true */ ) {
//returns true (of type bool)
return better_condition == true;
}
Anonymous No.717460525 >>717460614
>>717460350
What is your first language, be honest
Anonymous No.717460538 >>717460864 >>717460945
>>717460003
Are you a woman? You put titles in your code as if it was a book? What sort of spaghetti are you writing?
Do you get scared every time you make a for loop?
Anonymous No.717460614 >>717460705
>>717460525
French
Anonymous No.717460620 >>717460691 >>717460703 >>717460743 >>717460843 >>717464294 >>717471561 >>717472082
tabs or spaces
Anonymous No.717460691 >>717463307
>>717460620
Spaces.

Now the real question. Two spaces or four?
Anonymous No.717460703
>>717460620
tabs, I'm white
Anonymous No.717460705 >>717460950
>>717460614
oof
Anonymous No.717460743 >>717476239
>>717460620
tabs, preferably with elastic tabstops
Anonymous No.717460843
>>717460620
Doesn't matter, any code editor can transparently convert one into the other and git can make sure all the files use the same convention. It isn't the 90s anymore.
Anonymous No.717460864 >>717461041 >>717461294 >>717461307
>>717460524
>>717460538
>X==true might be more readable than X and avoid wasting time with small mistakes
>What the fuck did you just fucking say about me, you little bitch? I'll have you know I graduated top of my class in code summer camp[...]
Why do you take this so personally holy shit
Anonymous No.717460921 >>717461158 >>717461307
Anyone else in the position of being fine with programming but can't be bothered to do asset creation? I feel that's worse because while I can program games, I can't be arsed to continue if I am staring at a cube all day.
Anonymous No.717460945 >>717460998 >>717461806 >>717466292
>>717460538
that's rich
Anonymous No.717460950
>>717460705
Such is life
Anonymous No.717460982
test
Anonymous No.717460998 >>717461118
>>717460945
Why is this bad?
Anonymous No.717461041 >>717461284
>>717460864
Your "small mistakes" can be avoided by not treating your code like a book and using comments for what they were meant to do
Anonymous No.717461056 >>717461148
daily reminder, if you dont program in asssembly you are not a real programmer. Im not wasting my time in playing your "game" made with any kind of filthy high level language
Anonymous No.717461118
>>717460998
/*
** sentence that indicates the writer thinks the example speaks for itself
**/
i think the example speaks for itself
Anonymous No.717461148 >>717461223 >>717461589
>>717461056
Fuck assembly. I'm not a machine.
Anonymous No.717461158 >>717461229
>>717460921
Me 100%. I'm a software engineer by trade, but the idea of making tons of models/sprites and music is always what kills my enthusiasm. I ain't paying for that shit, but my own placeholders are always terrible lol.
Anonymous No.717461223 >>717461267
>>717461148
you are not a programmer either then
Anonymous No.717461229
>>717461158
That's literally what AI is for.
Anonymous No.717461251
https://www.npmjs.com/package/is-even
It's that easy
Anonymous No.717461267
>>717461223
Non-sequitur.
Anonymous No.717461284
>>717461041
Insisting on your strawman doesn't make it real
Anonymous No.717461294 >>717461710
>>717460864
You seriously always autistically write true or false in the if statement even if it's the simplest of if statement imaginable due to "readability"?
I for one shun if one liners like
if(true) alert();
Because without the tabbing it doesn't look like a conditional, but not writing true or false is just standard abbreviation.
Anonymous No.717461307 >>717461501 >>717461535
>>717460864
Because I'm tired of cleaning up Jeetpoop from retards who still think Hungarian notation is a good idea.

>>717460921
Have you tried programming tools to create parametric assets?
Anonymous No.717461425
>>717457639
Use SQLite. There's no reason to muck about with XML and JSON.
Anonymous No.717461501 >>717461707
>>717461307
I like hungarian notation, str_something is always a good variable name for a string.
Anonymous No.717461535 >>717461812
>>717461307
You can just write "I think it's ugly and useless" rather than spill your bile and spam buzzwords
Anonymous No.717461589
>>717461148
You are a machine. A Laputan machine
Anonymous No.717461628 >>717467485
None of you actually gamedev and it shows
Anonymous No.717461698 >>717479024
>>717446302 (OP)
return ~i&1;
Anonymous No.717461707 >>717462012
>>717461501
That's useful in engines so you can quickly search all materials(mat_), or textures(tex_), but why would it help you when you don't need to search code for every string?
Anonymous No.717461710
>>717461294
No. And I prefer not putting the == true part. But I must also think about the people that may have to read the shit I write after me. It may not be a good idea, but not doing it because it would be somehow beneath me, the perfect programmer, isn't an argument I would particularly care about either.
Anonymous No.717461732
if(!dick.length) return void;
Anonymous No.717461806 >>717462347
>>717460945
My code is full of this because I'll write out comments explaining the logic of the code as an outline sometimes before actually writing anything. Then I never delete the comments.
Anonymous No.717461812 >>717461909
>>717457639
CBOR

>>717461535
What if I want to spill my bile? Does it bother you? Are you feeling threatened by my superior arguments?
Anonymous No.717461817
>>717455209
fundamentally code is just giving instructions to a computer and the computer doing everything exactly as you requested it.
start small by just understanding how to issue instructions to be executed a single time, as a script.
basic software programming is taking that and letting it loop and execute instructions based on inputs or environment variables.
game programming is taking that to a further extreme and involving real-time inputs and graphical rendering. There's a lot skipped between these steps.
What makes programming hard is that it requires you to do the legwork to get to the part where it gets very complicated. At it's fundamental level, programming is just an exercise in problem solving with no specific correct solution, just solutions that are better in some ways.
You gotta start at the bottom of the tech tree or it'll all be over your head. Simple scripting can get you started.
Anonymous No.717461909
>>717461812
It bother me that I'm trying to engage in a conversation, not win some kind of never ending ego contest
Anonymous No.717461928 >>717462509
don't care, eat shit /v/
Anonymous No.717462001
I made a basic snake game in C that is ran on the CLI, does that count?
Anonymous No.717462012 >>717462347
>>717461707
It's how I would speak and also makes natural differentiations.
Example
str_day, string of the day
int_day, integer of the day
Anonymous No.717462027 >>717462514 >>717462935
its really easy:

using HtmlAgilityPack;

private bool IsEven(int number){
string html = "https://www.google.com/search?q=is+" + number + "+even";
TextFile text = WebClient wc = wc.DownloadString(html);
if(text.Contains("Yes")) return isEven = true;
else return isEven = false;
}
Anonymous No.717462092
>>717458832
Looking good.
Anonymous No.717462149 >>717462289 >>717462378 >>717462585
is it possible to harness llms/ai to code anything worth a shit for someone with 0 coding experience or is the technology not mature enough for that yet? no im not interested in learning, im the ideas guy and ai is my slave that'll do everything to my specifications without being an absolute retard about it.
Anonymous No.717462289
>>717462149
>operating ai without any programming experience
>without being an absolute retard about it
Good luck with that.
Anonymous No.717462291
>>717460327
Should add the comment
>this function is in early access. Will add more numbers as development progresses
Anonymous No.717462347
>>717461806
And then your implementation actually differs from your initial comment and you confuse yourself 6 months later.

>>717462012
Just make one (ONE) Day type and a method to convert it to/from a human readable string
Anonymous No.717462378 >>717462951
>>717462149
The biggest problem with AI currently is context, and in terms of long form shit, code bases can get quite big. That and AI usually gives you outdated programming principles or roundabout solutions. It is also prone to breaking when you give it something slightly outside of the initial domain.
IE:
>Tell LLM to generate a function: Does so fine
>Tell the LLM to change "text" to "dialogue" for that same function: It shits itself.
Copilot is the worst for it.
Anonymous No.717462464
>>717446302 (OP)
no, the only rule is don't let if else conditions get in the way of framerate
Anonymous No.717462509 >>717462658 >>717462689 >>717464273
>>717461928
Do you work at Microsoft, by chance?
Anonymous No.717462514
>>717462027
This is probably the funniest take ever. NPM should update their is-odd and is-even packages with this.
Anonymous No.717462585
>>717462149
no offense, but ideas are worthless on their own. if you don't take the time to implement your ideas, then they remain intangible and in the ether. while they're in that state, they're perfect because it's some abstract thing in your head.
Anonymous No.717462597 >>717462689
Anonymous No.717462613
>>717447127
Switch cases are fun, I like the stuff you can have do with falling through.
Anonymous No.717462658
>>717462509
Sir are you will mocking my post for fun sir? I took engineering course by new delhi and passed only single time only. I will raped your sister.
Anonymous No.717462689 >>717463032
>>717462509
I'm getting an aneurysm from this.

>>717462597
>Consultant
The greatest grift that the corporate world has made.
Anonymous No.717462879
>>717446772
>if statements are a problem
Every time, every fucking time that the yandev image or something like it is posted. The string comparisons in that one are so much worse.
Anonymous No.717462886 >>717463086
>>717455209
Right click this page, select "inspect", navigate to "console".

Write in it:
function my_first_function(num1, num2) {
return num1* num2;
}
my_first_function(3, 9);

Then press "enter".

You can replace (3, 9) with any other number, the function will return their multiplication result, you can call my_first_function again by writing it again and press enter. This way you can call functions.
Anonymous No.717462935
>>717462027
update to a modern search engine; chatgpt
Anonymous No.717462951
>>717462378
Yup...

>do this common transformation function for me
>>[...] This will give you a normal vector pointing in the direction specified by the latitude and longitude.
>> inputting (0, 0) should give (0, 1, 0). It gives (1, 0, 0)
>(outputs the exact same function but with even more comments and a couple of extra variables for good measure)
Thanks for the theta phi, that really did the trick when you should've sin'd instead of causing cos'd
Anonymous No.717463009
>>717455209
ask grokgf to explain it
Anonymous No.717463032
>>717462689
he's not actually a consultant. you can list your job as whatever the fuck you want on LinkedIn and there's no way for them to validate it.
AI dicksuckers think they can fake it until they make it, and that only really works if you convince enough idiots to give you money while you don't actually do anything.
An actual consultant would be able to answer questions when put on the spot. I can guarantee you that someone like that would struggle to find a broad answer with google.
Anonymous No.717463086
>>717462886
SAAR I PAID $300 FOR MY PROGRAMMING COURSE ON FIVERR. STOP TEACHING FOR FREE YOU BASTERD.
Anonymous No.717463204
>>717446302 (OP)
private bool IsEveN(int number)
{
string Number = number.tostring();
return switch(Number.substring(Number.length() - 1)){
case "2":
case "4":
case "6":
case "8":
case "10":
return true;
default:
return false;
}
}

ez
Anonymous No.717463253 >>717463643 >>717463909
anyone have that image of the recruiter's notes about each candidate's responses and at the end it has a profoundly incomprehensible code snippet for a deck of cards? I think about that one a lot
Anonymous No.717463289 >>717463671
>canada (the country known for making extremely abhorrent and low quality posts) gets filled with indians
>suddenly saar posting becomes popular
Anonymous No.717463307
>>717460691
Four, I like moving my eyes to read.
Anonymous No.717463467 >>717465040 >>717466901
>>717446772
Its just not optimised bro
No I don't know what a render context is
No I haven't run a frame through renderdoc
Anyone can tell its unoptimised bro
Anonymous No.717463643 >>717463909 >>717464992 >>717465069 >>717466164 >>717466637 >>717469803 >>717471895 >>717471979 >>717472085 >>717476569 >>717478932 >>717481527
>>717463253
found it.
Anonymous No.717463671
>>717463289
What's wrong with being indian? *sharts all over your designated mechanical switch programming keyboard*
Anonymous No.717463839
>>717450483
troonix shit
Anonymous No.717463909 >>717464085 >>717464513 >>717464659
>>717463253
>>717463643
In the same vein
https://desuarchive.org/g/thread/47945161/
Anonymous No.717464085
>>717463909
im not a programmer but i understand some things within it. if youre new i can understand having problems but some of the shit i see is profoundly stupid. these same people will use AI and say they made that code themselves too, guaranteed
Anonymous No.717464094
>>717446772
bro it's the if elses, I saw that the game had a lot of if elses and someone pointed it out
what the fuck is an update loop and string comparison
Anonymous No.717464273
>>717462509
at least it's pascalcase/camelcase
Anonymous No.717464294
>>717460620
Everyone uses tabs, some people are just in denial.
Anonymous No.717464496 >>717464539
>>717457892
If (cond) return null
You don't need the brackets
Anonymous No.717464513
>>717463909
It's been ten years... Someone save me. Fucking hell.
Anonymous No.717464539 >>717464669
>>717464496
cond && null

You don't need the if
Anonymous No.717464659 >>717464901 >>717465031
>>717463909
>2015 thread
>2017 link
Wait...what?
Anonymous No.717464669 >>717464798
>>717464539
Cam you do that in C++? I think it will complain about the return type being boolean
Anonymous No.717464798 >>717464845
>>717464669
everything is allowed when you're doing javascript
Anonymous No.717464845 >>717464924
>>717464798
I use TS because I'm not a lunatic
Anonymous No.717464901
>>717464659
Probably some SEOslop tricks to stay relevant. All the comments are from 2015, and still just as cringe as they were back then.
Anonymous No.717464924 >>717464996
>>717464845
Your minification step does all of those weird scary things
Anonymous No.717464992
>>717463643
kek
Anonymous No.717464996 >>717465059
>>717464924
And then compiler does weirder scarier things
Anonymous No.717465031
>>717464659
It is from 2015. Timestamp probably got accidentally updated with some version update.
I have the same image on my /g/ memes with the filename "1433600928344.png". which is a timestamp in 2015.
Anonymous No.717465040
>>717463467
if it runs like shit then yes, it is unoptimized
Anonymous No.717465059
>>717464996
compiler entropy
Anonymous No.717465069 >>717465412 >>717465414
>>717463643
This isn't funny anymore when the current answer if just to get Claude to do it
Anonymous No.717465412
>>717465069
its still funny when you consider these were done during interviews
Anonymous No.717465414 >>717465614
>>717465069
On the contrary, it makes it even funnier when you start asking specific questions about the code and the interviewee starts getting that deer in the headlights look.
Anonymous No.717465614
>>717465414
what gets me is the one to one million question. dude had no issue committing to his shitty approach and even gave an approximation (a while), thats good candidate, charisma wise at least.
Anonymous No.717465835
>>717450010
Okay, but being paralyzed because you're afraid of getting something wrong or being considered cringe means you right zero lines of code instead of too many.
Anonymous No.717466012 >>717466805
>>717451660
If that really Returns the 12 Days of Christmas, that actually seems shorter than copy-pasting the whole song into a string. It's also a great reason why I could never be a programmer. I know the very basics, but that looks like literal garbage text.
Anonymous No.717466164
>>717463643
>Have you ever used this "percentage" operator before?
devious
Anonymous No.717466220
>>717446302 (OP)
never skip logic you niggers
Anonymous No.717466292 >>717467440
>>717460945
That first style was actually used in the K&R but to be fair i don't know if // comments were allowed back then.
Anonymous No.717466318
>>717451660
The IOCCC results for 2024 just came out
https://www.ioccc.org/years.html#2024
https://github.com/ioccc-src/winner
Anonymous No.717466637
>>717463643
Huh. Maybe I should try getting a job in software dev.
Anonymous No.717466708 >>717466923 >>717469357 >>717470823 >>717473230 >>717482713
Hi.
Anonymous No.717466763
The better the code for your indie game the worse it is
Thus the worse your code the better the game
Anonymous No.717466791 >>717466912
>>717446302 (OP)
private bool IsEven(int number){
return number <<= 1 % 2 == 0;
}
Anonymous No.717466805
>>717466012
>looks like literal garbage text
That's the point, you're trying to make it as obtuse as possible to save space
I'm pretty sure the actual program that generated it is huge and well written, no way someone did that by hand
Anonymous No.717466901 >>717467573 >>717475775 >>717476801 >>717478431
>>717463467
>Premature Optimization Is the Root of All Evil - Knuth
Your response? Without sounding mad.
Anonymous No.717466912
>>717466791
>private
> == 0
Anonymous No.717466923
>>717466708
i want to avoid this so fucking much. the worst part is theyre probabiy wiring this up to fucking event tick and calls it every frame
Anonymous No.717467440 >>717469625
>>717466292
retard
Anonymous No.717467485
>>717461628
I gamedev
I show
Anonymous No.717467573
>>717466901
There's premature optimization and the other side of the coin is initial wrong decisions
Anonymous No.717468226 >>717468471
>>717448514
>game requires something to be true or false at random
>cluelessly write isEven(rand()) for your RNG function
>rand() decides to return an integer in the billions
>program tries to allocate entire gigabytes of stack and crashes
Congratulations, this is literally worse than converting the whole thing into a string and checking the last character just for memes.
Anonymous No.717468471
>>717468226
>I can't even
Anonymous No.717469357 >>717469972 >>717470823 >>717473230
>>717466708
I like to keep my shit at least somewhat tidy
Anonymous No.717469427 >>717469515
would learning how to code in general be better before attempting a game?
Anonymous No.717469515 >>717469693
>>717469427
how are you supposed to make a game without knowing how to code
Anonymous No.717469530
>>717446302 (OP)
All you need is return number % 2 == 0 because that by itself is a boolean operation
Anonymous No.717469606
My vote is yes. Making a good video game that not only involves coding but art, music and often writing as well....+ also having that game be a success? Its a difficult thing.
Anyone here who thinks its easy to do should just link their successful games because frankly I think you're just talk

>Shitty coders
Dime a dozen thanks to the "learn to code" meme which pushed zoomers into programming where they have zero interest nor skill. Zoomer coders are the absolute worst. That's true of all software related industries though and not just game development
Anonymous No.717469625
>>717467440
?
Anonymous No.717469693
>>717469515
RPG maker
Anonymous No.717469803 >>717470158 >>717470546 >>717472101
>>717463643
rate my OOP, /v/
Anonymous No.717469972 >>717470095 >>717470823 >>717473230
>>717469357
i comment where needed, and stuff everything into named functions. im still new to it but i figure i should clean stuff up soon
Anonymous No.717470095 >>717470442
>>717469972
Is this UE?
It's like I'm back 20 years playing with lego mindstorms
Anonymous No.717470158 >>717470364
>>717469803
ridiculous white space
why are you making me scroll down so much
Anonymous No.717470283
>>717455773
dude artist code lmaooo
Anonymous No.717470364
>>717470158
i have a habit of using Allman identation everywhere because i think it's more logical
otherwise, yeah, i could've cut down the line count a bit, but i prefer the "one line - one operation" rule with a few exceptions
Anonymous No.717470409 >>717470502
>gpt5 releases this week
Is it over for coders now?
It supposedly scores higher than all humans on every software test possible
Anonymous No.717470415
fun making something and having people enjoy it, I imagine in a similar manner to cooking a meal for family/gf

I suck at math and it can be pretty tedious sometimes, I hate doing UI design honestly
Anonymous No.717470419 >>717482539
>>717446302 (OP)
Unrealxisters... we got too cocky...
Anonymous No.717470442
>>717470095
im using UE5.6 right now. I need to build from source and have a C++ project, but im using blueprint visual scripting only until i understand enough to switch to C++
theres stuff not exposed to blueprint visual scripting that can only be done in C++, which really sucks ass, but on the bright side they are slowly adding more nodes to do shit.
theres some benefits to 5.6 but on the other hand its also giga aids to do certain stuff. theres a tradeoff somewhere but if youre competent it doesnt matter

i still remember getting mindstorms NXT 1.0 for my birthday at lego land and learning to do stuff with it. it didnt even have a color module until later
Anonymous No.717470502 >>717476271
>>717470409
Anonymous No.717470546 >>717470615
>>717469803
bro, your expression-bodied members and pattern-matching switches?
Anonymous No.717470615
>>717470546
.net 5.0+ heresy
Anonymous No.717470642
>>717448026
ya make game != make program
they are very different sets of skills
Anonymous No.717470741 >>717470815 >>717470953
>>717455773
I would consider myself a decent programmer and I can't into music
>this is a scale, an octave is divided into 12 notes, makes sense right
>to make a chord you can follow this simple easy rule
>anyway here's a Lydian progression see if you can transpose it into an Aeolian mode, bitch and don't forget to diminish your semitones you fucking retard
>music notation? You can shove this 1300 page book up you ass and maybe you'll get it one day
>wanna play the piano? Why don't you hammer nails through your fingers instead, it'll be more pleasant.

I have a lot of respect for musicfags
Anonymous No.717470749
>>717447000
gobbos on the way to END your shit
Anonymous No.717470815
>>717470741
Once you listen to enough good music, you can more or less put up something that sounds like a basic chord progression
Then just keep fumbling around until it sounds good. Bonus points if you actually break the rules and it still sounds good.
Anonymous No.717470819
>>717455773
Programming is just like a human language in that it's very simple once you tip your toes.
It just looks cryptic at first because you don't know yet what all the symbols means or how the grammar works.
Anonymous No.717470823 >>717471441 >>717471521
>>717466708
>>717469357
>>717469972
>gamedev is the game
Anonymous No.717470938
>>717449904
Creation is just Gamebryo, actually. ;^)
Anonymous No.717470953 >>717471220 >>717471347
>>717470741
Just use suno
Music is a solved problem
Anonymous No.717471173 >>717471312
This is to go beyond OOP.
I call it functional OOP. It is OOP and FP at the same time.
Anonymous No.717471220 >>717471649 >>717472243
>>717470953
I like fucking around in suno but everything sounds kind of samey after a while. Even if you ask it to make the most brvtal black metal you can still perceive the patterns of the underlying popshit dataset.
But it can be good to explore ideas and pluck bits of melodies or rhythms that you enjoy.
Anonymous No.717471312
>>717471173
congrats, you have invented scripted languages
Anonymous No.717471317 >>717471385 >>717471559
>>717457639
YAML
Anonymous No.717471347 >>717471649 >>717472243
>>717470953
this. i like to upload bass riffs and see what it spits out. of course it flexes on me in the first 10 seconds. asshole ai

raw: https://vocaroo.com/1aVyiRiJ4NOx
suno: https://vocaroo.com/105qGZXWwMzJ
Anonymous No.717471385
>>717471317
>country: NO
Anonymous No.717471441 >>717471869
>>717470823
could be worse
Anonymous No.717471516
>>717446302 (OP)
Pirate Software version
Anonymous No.717471521
>>717470823
Ah, the next Zachtronics game
Anonymous No.717471559
>>717471317
>significant indentation
eww lad
Anonymous No.717471561
>>717460620
None, I use Prettier's automatic formatter by pressing Ctrl + S
Anonymous No.717471649 >>717471812
>>717471347
the suno one sounds kino as fuck god damn
>>717471220
stop noticing that anon or the truth of all music will drive you insane
Anonymous No.717471812
>>717471649
Maybe I have tru patrician tastes but I rarely get that feeling and I listen to a lot of music from all kind of genres.
Anonymous No.717471869
>>717471441
You could take every single PS1 model ever made and put it in one scene and it still would have a higher polycount than this sandwich.
Anonymous No.717471895
>>717463643
Holy fuck no wonder retards who aren't good at their job get hired because at least they're enjoyable lmfao.
Anonymous No.717471978
>>717446302 (OP)
There are particular aspects that can be tricky.
knowing your market and STICKING to it, optimizing, and balancing choices are some of the harder aspects of it, I think.
the market and sticking to it part is hard because there is a lot of shit waiting to trip you up or get in your way, especially if you have any investors because they won't know shit and want to chase money trends.
Anonymous No.717471979 >>717472085 >>717472126
>>717463643
The card one seems stupid to me. I get that it's a test and you're meant to want to scale things up, but when you're told the requirements is literally a pack of cards, making a loop to populate 4 different arrays with cards and suits is just ridiculous.

It would have taken half the time to simply write the cards all out individually, and the code would be far more readable doing so.
Anonymous No.717472082
>>717460620
Only mentally ill people use real tab characters.
Anonymous No.717472085 >>717473087
>>717463643
>>717471979
Also: Why's he complaining about people googling answers?

Using Google to see how to do something you're unsure of is standard practice.
Anonymous No.717472101 >>717472287
>>717469803
c = int
suit(c) = c/13
rank(c) = c%13
Anonymous No.717472126 >>717472198
>>717471979
>It would have taken half the time to simply write the cards all out individually, and the code would be far more readable doing so.

a trap some programmers seem to fall into is the desire to be clever getting in the way of work flow.
One example of this is the desire to write code in so few lines that it becomes enigmatic and a pain to come back to.
Anonymous No.717472198 >>717472363 >>717472610
>>717472126
Exactly, and the interviewer clearly dings another one for "painstakingly writing out" the card decks.
Anonymous No.717472243 >>717472845
>>717471220
>>717471347
This has been my approach. I plop my incomplete FL Studio projects in there and see what shit it pops out. My favorites are when the first minute or so mangles the melody and sounds like schizo shit, passes the original audio cut off and then fills in with the sickest fucking remix of whatever parts it did right before.

I'm convinced producers who use Suno to augment their original pieces are going to be sleeper titans in the industry.
Anonymous No.717472252
>>717448682
Well, in fairness writing code like that is a genuine woman moment, so maybe the troons had a point about muh female brain
Anonymous No.717472287
>>717472101
b-but what about a theoretical scenario where your boss tells you to add one more suit...?? then you can just define it in the enum and it will work without changing any of the logic
Anonymous No.717472363 >>717472429
>>717472198
Here's your standard deck of cards:
for(i=0;i<52;i++)deck.push(i)

You need names or graphics? Get an artist to fill the lookup table.
Anonymous No.717472429 >>717472504
>>717472363
You make artist's life easier if you provide a proper frontend that procedurally does this for them
And it's more fun
Anonymous No.717472504 >>717472859
>>717472429
Your fontend is notepad.
Fill deck.txt with your card names. One line per card. In order.
Anonymous No.717472593 >>717472770
>gamedev
what's the point?
https://x.com/jkbr_ai/status/1953154961988305384
Anonymous No.717472610
>>717472198
I wonder if they would allow a few simple follow up questions before coding to outline the scope of work.
because they are definitely looking for candidates to figure out how much time and work is needed to be put into the request.
I never finished my education on coding, but I would have considered (but not necessarily asked) asking them if they just wanted a set of 52 cards, or if they wanted the framework for suits as well.
a simple yes/no and then right to work.
Anonymous No.717472770 >>717472970 >>717473518
>>717472593
>we can't land on the moon but we made infinite realities
what is this tech tree
Anonymous No.717472836
Kill yourself fucking retarded faggot fucking dipshit little retard little fag boy fucking faggot
Anonymous No.717472845
>>717472243
Yeah, its very fun. Especially with a whole backlog of partially finished FL slop over the years. I'm glad they added tunable parameters to the generations. I haven't noticed much melody bungling, but I set my audio strength to 80%. I enjoy the noise it generates with high weirdness as well.
Anonymous No.717472859
>>717472504
b-but i can spend an hour writing a fully automated, modular card-handing framework with an intuitive API that can handle any amount of card values, suits and int32.max cards in deck, and automatically gives a grammatically correct ToString() description for each specific card
because what if i am the artist too...?
Anonymous No.717472883 >>717473156
god i hate programming
getting a cs degree was a mistake
what was i thinking
Anonymous No.717472970 >>717473496
>>717472770
>we can't land on the moon but we made infinite realities
we can and have
starship hls is in development right now
Anonymous No.717473010 >>717473326
>>717446302 (OP)
the real joke is that the bottom solution is 1000x less efficient
Anonymous No.717473037 >>717473475 >>717473572
I had a talk with a publisher recently and have another one coming up because i want to gauge business sides of this shit including ai. Heres what ive come back with, accounting for just watching discourse myself, and exploring ai on my own (local)
>socially the consumer will rape you if you use ai and dont disclose it
>they will do the same if you disclose it but less intense
>typically only cares about art and audio (music, voice acting, you get the idea),
>copyright law has some spefic ruling on this so its clear in the sand from the standpoint of a business or monetary capacity
>code is the one that so far has no clear answer since you typically have a programmer on hand anyway so why bother
>legally speaking code can get a copyright, but can also only apply under certain license terms too
>code snippets online are public domain
>businesses have either "just make it work" or "dont let any ai touch our code" attitudes because it could be beamed to god knows where and use by who the fuck knows
>if you remove art and audio elements for ai usage in your game youre basically all in the clear legally right now
>ethics and personal opinion now dictates whether you can or cant do it for that company/product for programming

what do you anons think? id rather still trust a competent programmer than whatever the fuck ai slop vibecoded bullshit there could be as an alternative, but if youre without a programmer on hand then would ai be a reasonably ethical choice at this point? i hate it so much and i want to die especially because i focus on local non-nvidia solutions for this bullshit but at least im mostly in control
Anonymous No.717473087
>>717472085
Because they're using google for something as basic as writing code to find odd numbers. The "reading voice" candidate didn't even know what he was looking at on his google result.
Anonymous No.717473141 >>717473214 >>717473549 >>717473572 >>717473605
I want to make an incremental game. Something like Cookie Clicker or Realm Grinder or Universal Paperclips. Which engine or language would be best suited to it?
Anonymous No.717473156
>>717472883
>why yes I do want to tard wrangle all of my coworkers AND everyone in every other department, who don't know how to use more than 10 words when describing their feature request
>AND all of the vendors I'll ever interact with
Anonymous No.717473214 >>717473605
>>717473141
javascript, no one wants to play an incremental game that's not playable in a browser
Anonymous No.717473230 >>717473470 >>717473731 >>717473891 >>717474190 >>717481683
>>717469357
>>717466708
>>717469972
complete noob here, does this nodebased workflow make things any easier in terms of gamedev in general and is that why every game is using unreal so that they can hire bottom of the barrel programmers? I'm only familiar with nodes and noodles because I've used blender over the years.
Anonymous No.717473326
>>717473010
depends on how smart the compiler is
since it's a constant function that always returns the same value, it could've optimized it into "number % 2 == 0"
Anonymous No.717473470
>>717473230
>does this nodebased workflow make things any easier
It's like reading the wikipedia article on a math function instead of just looking at the formula
Anonymous No.717473475 >>717474297
>>717473037
>>businesses have either "just make it work" or "dont let any ai touch our code" attitudes because it could be beamed to god knows where and use by who the fuck knows
this is retarded because every ai company offers enterprise solutions where your code is never trained on or stored etc
Anonymous No.717473496
>>717472970
>we can and have
nobody tell him
Anonymous No.717473518
>>717472770
Space travel was never gonna happen anyways since it's a global effort. We barely got it to be a national effort only because we were competing against an enemy superpower in a glorified dick waving contest. That short window of time where society was united just enough to pursue interplanetary travel is long behind us.
Anonymous No.717473549
>>717473141
https://candybox2.github.io/candybox/
https://github.com/candybox2/candybox2.github.io
Anonymous No.717473571
>>717448861
boy have i a present for you
Anonymous No.717473572 >>717474297
>>717473037
>especially because i focus on local non-nvidia solutions
just use gemini, nothing beats the 1million context
>>717473141
unity
you can't make profit from a browser incremental
Anonymous No.717473605
>>717473141
this >>717473214 but anything that compiles to web assembly because java sucks
Anonymous No.717473731
>>717473230
The way it's supposed to work is a programmer writes C++ code like "here's an event for OnTakeDamage, and here's a node for SetHealth", and then the game designer (non-programmer) goes into the Blueprint and noodles up his little OnTakeDamage node to the SetHealth node, so the designer controls all the numbers/balance and the programmer controls all the functionality
Anonymous No.717473785
>>717446772
>its another 'RE engine/UE5 = bad' episode
>its another 'pointing out if/else statements as if the compiler doesn't fix that' episode
>its another 'muh pajeet code/models/optimisation' episode
I'm tired.
If you even entertain the notion or discussing gamedev on /v/ you have brain damage or hyper mega death autism.
Anonymous No.717473846 >>717474509
whole lotta replies in this thread to just say that AI would be the best case use for dev work
Anonymous No.717473891
>>717473230
the node stuff is just for nocoders to interact with these systems in a more intuitive way. it has basically replaced embedded scripting languages like Lua in the modern era
Anonymous No.717473915 >>717473991 >>717474086 >>717474231
my dad told me when he was an engineer in the 70s he would write a program in assembly and then another guy who had memorized the compiler book would turn it into hexadecimal which they would put on a punch card that their computer could read. is he pulling my leg?
Anonymous No.717473946
>>717459129
my notes are mostly schizo
>this shit sucks, but it makes the moon scale every time you kill lunar children. pray the player sleeps before he kills 400
Anonymous No.717473991
>>717473915
from what i understand? yes
dark times
Anonymous No.717474036 >>717474317
>>717447208
Code needs to be maintained and retarded shit makes that harder to do. Hard to maintain code is bad code waiting to happen.
Anonymous No.717474086
>>717473915
If that surprises you, what if I told you that in the 40's, you could literally fuck your computer.
Anonymous No.717474105 >>717474230 >>717474252 >>717474360 >>717477787
How hard is it to get into gamedev? Like if I wanted to make a lighthouse keeper survival game or something like that where there are survival systems, how retarded do I need to not be to do it?
Anonymous No.717474190
>>717473230
>does this nodebased workflow make things any easier in terms of gamedev
no its for people that dont know how t program and it can get them familiar with the concepts and groundwork to actually do it in a real language eventually. its a competence skill check.
its also slower by several magnitudes than proper code but if youre efficient with it and smart about how you use it the penalty is less heavy
Anonymous No.717474208 >>717476224
>>717446302 (OP)
>>717446302 (OP)
#include
#include
#include
#include
#include
bool isEven(int num) {
std::bitset<32> binary(num);
char lastBit = binary.to_string().back();
int lastBitAsInt = lastBit - '0';
std::function isZero = [](int x) {
return std::pow(x, 2) == 0;
}; bool (*resultFunc)(int) = isZero;
return resultFunc(lastBitAsInt);
} int main() {
for (int i = 0; i <= 10; ++i) {
std::cout << i << (isEven(i) ? " is even\n" : " is odd\n");
} return 0;
}
Anonymous No.717474230 >>717477787
>>717474105
You need to be able to code and probably some math (up to early calculus). Asset creation is the hardest part
Anonymous No.717474231 >>717474279
>>717473915
no, punch cards worked like that. imagine the iteration time when you have a bug and there are 200 other people that use the mainframe on a set schedule so you basically only get like a 1 hour window a day to try to run your shit and that's only enough time to run it a couple of times
Anonymous No.717474252 >>717474319 >>717477787
>>717474105
Programming isn't as scary as it seems. The most commonly used engines (Unity, Unreal, Godot, Gamemaker) have retardproof scripting and/or a lot of tutorials online.
What might really bite you in the ass is making assets, if you're not already an experienced artist.
Anonymous No.717474279
>>717474231
I like the stories about people dropping their cards without writing numbers on them and having to redo it all from scratch
Anonymous No.717474292
>>717446302 (OP)
Was that really helpful with no definition for Length?

>>717447318
Yes, just divide by 2 and subtract an int conversion of the result from it. Why the FLUX make an entire class just for this?
Anonymous No.717474297
>>717473475
>this is retarded because every ai company offers enterprise solutions where your code is never trained on or stored etc
youd be surprised how often this isnt the case. its that trust you have to get with the company and the people ive spoken to do not trust anything, but some dont give a fuck regardless while others do. propping up a local solution is expensive to deal with and maintain so many will still opt for a company or just not use ai at all
>>717473572
i have some resources already i just prefer doing local where i can. if im in a spot with no networking and i can fire a local model up even if its not quite great its still better than being a retard that cant code i guess
Anonymous No.717474317 >>717474406 >>717476520 >>717478148
>>717474036
>Code needs to be maintained
no it doesn't
Anonymous No.717474319
>>717474252
Every asset you could ever need already exists in archive.org as an asset CD copy from 90's
Anonymous No.717474360
>>717474105
gamedev is piss easy
especially if you leverage ai
go take some udemy courses for unreal or unity
you can torrent them too(they are just videos usually)
Anonymous No.717474406
>>717474317
Tell me again about not maintaining code on 4chan.org.
Not a subject any of us here experienced first hand.
Anonymous No.717474509 >>717475059
>>717473846
imo the best use case for AI is as an assistive tool and that particular use case should be fully socially acceptable. I'd prefer my project to ultimately be my work, but I'm not above using AI for inspiration or speeding things up. It's not much too different from copying code online or listening to my favorite video game songs to take and partially tweak ideas from. I just wish the anti-AI crowd wasn't programmed to be so utterly immovable over their stance. I understand the worries for job displacement, but it doesn't change the fact that this is an assembly line-tier innovation: It's not going away. It literally can't, and insinuating otherwise is literal copium. Even if every western democracy in the world banned it, China and the like would just be completely emboldened to take advantage. There's some ethical dilemmas that demand a middle road approach and attempting to act in denial just cripples you. Fuck if I want to take this point to the extreme; imagine some poor Brazilian kid gets access to some AI tools that make his dream game possible despite his lack of free time or other resources. With today's climate, he'd probably get slammed by a bunch of left-wingers for being a lazy asshole and not putting in real work. Just like that, the leftie became the crotchety boomer. It's a complicated scenario that isn't done justice by the black and white conflicts the brain-damaged masses are hypnotized into.

I wish artists would see it more for its practical capabilities rather than suffer mental breakdowns over an inevitable technology. It should say a lot that Gabe and Sakurai are already calling it absolutely necessary to incorporate it into our work at this point.
Anonymous No.717474549 >>717474910
bitwise goes brr
Anonymous No.717474910 >>717475154
>>717474549
>0xDEADBEEF
Heh nothin personnel kid
Anonymous No.717475059 >>717475791
>>717474509
I draw and I code and AI just doesn't support augment drawing the same way it augments coding
Anonymous No.717475154
>>717474910
I prefer CAFÉBABEs myself, they're hotter.
Anonymous No.717475389
>>717458115
some of these are by an obvious nocoder

>typeof NaN is number
>0.1 + 0.2 != 0.3
floating point quirks

>true + true + true = 3
>true - true = 0
true == 1. Same as in C

>Math.min() == Infinity
>Math.max() == -Infinity
Because it is fast and implemented to be used recursively.

Probably defined something like

result = infinity;

for(x in args) if(x < result) result = x;

return result;
Anonymous No.717475460 >>717475501 >>717475704 >>717475826 >>717476615
>>717446302 (OP)
Should gamedevs read SICP? Why haven't you read SICP yet?
Anonymous No.717475501
>>717475460
I bought it so it looks nice on the shelf
Anonymous No.717475704 >>717478463
>>717475460
because lisp sucks, the book is highly overrated and its entire reputation carried by a meme in the first paragraph
Anonymous No.717475775 >>717475881
>>717466901
Measure twice cut once
Anonymous No.717475791 >>717482121
>>717475059
That's fine. What's important is just whatever part of the process it makes easier.
Anonymous No.717475826
>>717475460
Everyone should read it. The people who don't like it are aspiring code monkeys who realize it won't help them get a wage slave job for some evil surveillance company.
Anonymous No.717475881 >>717476238
>>717475775
and use the same ruler, from the same end
Anonymous No.717475961 >>717476103 >>717476757
AI has been helping me more than I would care to admit lately. I'm not like stupid, I know what the codes do but AI is great at simplifying things or coming up with shortcuts I missed. The key is to use it in small amounts to better your own work
Anonymous No.717476103
>>717475961
i find ai great at things like
>fuzzy searching(what was the name of that thing that does this)
>telling me things i don't know
>warning me about potential blunders for new projects
>shitting out massive amounts of code i can't read
Anonymous No.717476123
>Need a component to hold mass and other physics information
>Call it the HiggsComponent
That's why I like working on my own code, I can do whatever I want
Anonymous No.717476216
>>717449852
This is satisfying
Anonymous No.717476224
>>717474208
>std::function isZero = [](int x) {
>return std::pow(x, 2) == 0;
>}; bool (*resultFunc)(int) = isZero;
Cmonkey here
what the fuck is this
Anonymous No.717476238
>>717475881
Never switch rulers mid-project.
It's a nightmare, don't lie to them that you can easily make it work.
Anonymous No.717476239
>>717460743
is it possible to learn this power
Anonymous No.717476271
>>717470502
>rumor
kek
judging by the slop they opensourced recently, gpt5 is going to be a nothingburger
Anonymous No.717476451
>>717446302 (OP)
Good coding is hard and takes lots of skill and research, but you can get a simple game running even with garbage code.
Notice that code quality and game quality aren't as correlated as most of the internet would say.
You can easily have good games (including commercially successful games) with garbage code and awful games with John Carmack levels of code.
The most important thing is get to get started and be curious and resourceful. Be critical of your code, but don't lose your mind over it.
Anonymous No.717476475
>>717447208
based pragmatic coder take
Anonymous No.717476520
>>717474317
hiromoot, you nigger
when will you add webp support
Anonymous No.717476569
>>717463643
This was the average coding interview pre 2022
Now its 2 hard leetcode problems and 5 interview stages
Why couldn't I have been born 5 years ealier
Anonymous No.717476615
>>717475460
I tried reading it after learning cepples for a while, and it was way too basic and beginner-oriented.
Anonymous No.717476660 >>717476743
>>717446302 (OP)
>modulo cringe instead of just checking whether the first (or last, depending on how you view it) bit is 1 or 0
Anonymous No.717476681
>>717447643
that is how a human would write it. but webdevs lose their humanity over time and then they write shit like repeatedly calculating
>"even".Length % 2
Anonymous No.717476694 >>717476809
Just use AI boomer ludites
Anonymous No.717476743 >>717476903 >>717476940
>>717476660
are you sure the compiler doesn't reduce % 2 to exactly that, at least when the 2 is hardcoded?
Anonymous No.717476757
>>717475961
>don't know how to do thing
>"hello chatGPT give me resources on how to learn [thing] from the ground up to get a first-principles understanding"
>recommends me mammoth 9,001-page tome on the subject, academic papers, and official standards for any relevant protocols or such
It's so insanely good at filling in unkown unkowns I feel like the autodidact paradise of "you can learn anything on the internet if you just put in some time" is coming totally true.
Anonymous No.717476801
>>717466901
Anonymous No.717476809
>>717476694
*rapes you*
Anonymous No.717476857 >>717477614
>>717449852
>>717449131
>>717447000
Goblins should be green.
Anonymous No.717476903
>>717476743
I don't know if the JS/Typescript "compiler" would do that. A modern c/c++ one probably would.
Anonymous No.717476940
>>717476743
negative numbers switch em
Anonymous No.717477487 >>717477602 >>717478495
I ain't no programmer, but Deepseek taught me python arrays. It removes those specific punctuation from all files with those extensions in the run directory. Thanks AI
Anonymous No.717477602 >>717477720
>>717477487
nice anon
ai is really fucking handy for making your custom tools
Anonymous No.717477614
>>717476857
Anonymous No.717477720 >>717477847
>>717477602
It also taught me that if statements default to true, and ifnot to false, so you can just do stuff like this
Anonymous No.717477787
>>717474105
trust these anon's words
>>717474230
>>717474252
the scope of what you outlined is a solid idea for a beginner.
>lighthouse keeper
>1-2 primary structures
>half of the world is just ocean
>1/4-1/3 is beach/cliffs
you can start the world design simple and make it more detailed over time as you please
>survival based
survival systems are mostly math and timers, and you should expect to fiddle with the settings a bunch to tweak the survival part, but when you make it you can have all of those be options the player can fiddle with as well.

Go light on animations and stick to default assets for the engine you choose to start with as well, perhaps?
Anonymous No.717477847 >>717477881
>>717477720
>if statements default to true
Anonymous No.717477881
>>717477847
Okay maybe I said that wrong and don't know how to word it, but I get it
Anonymous No.717477943 >>717477975
if(true == true) Infinity/0;
Anonymous No.717477957 >>717478080 >>717478081 >>717478217 >>717478420 >>717478720
Can I use AI to learn how to optimize my code? Not going to pay 1 gorrilion dollar for some useless certificate paper.
Anonymous No.717477975
>>717477943
Do NOT run this code
Anonymous No.717478065 >>717478241
>>717446302 (OP)
what is the "even".Length % 2 part even doing in that?

is the point of the image that none of that matters and you could just return the inverse of (number % 2)
Anonymous No.717478080
>>717477957
If you want to optimize your code then use a profiler to see what's actually slow
Anonymous No.717478081
>>717477957
Ask it to roleplay as Casey Muratori and then show it example code.
Anonymous No.717478148
>>717474317
lol
lmao
90% of the web runs on ancient PHP and Java code bases older than you are
Anonymous No.717478217
>>717477957
show it a code, ask if it can be optimized it, post results
Anonymous No.717478241
>>717478065
It's a shitpost replying to a shitpost, it's all ironic.
"even".Length is always 4, so all this is doing is returning true if number % 2 is equal to 4 % 2. Any even number mod 2 will return the same result (0), so therefore if the number is even, taking its modulus will return the same result as 4 mod 2, making the comparison true.
Anonymous No.717478420 >>717478515
>>717477957
You mean like writing some shitty code and then asking it to write it in a better way?

Maybe. I've seen it do a great job at making certain suggestions, but then also give extremely retarded suggestions at other times. My most frequent complaint is something like:

>here is this file. Please write a unit test function inside the TODO comment on test_make_sure_thing_works. Do not make any other updates to the file or add dependencies.
>Okay, here is the updated code. I also refactored this other part because blah, blah, blah.
>*file has been completely changed*
Even the latest pro models are all pretty bad about this type of shit. So if you already know what you want, it's fine, but if you don't know better, it's likely you will get handed code that is more retarded or outright broken. Because at the end of the day, LLMs don't "understand" commands and instead just generate what is the most likely response to your query.
Anonymous No.717478431 >>717479735
>>717466901
DRY
KISS
Anonymous No.717478463 >>717481094
>>717475704
do you have an alternative to recommend?
I have the basics of object oriented programming in my head for C++
I know where I want to go for languages (foundation in C, then finish C++)
but for the overarching mindset behind things, how to approach things, where should I look?
Anonymous No.717478479
>>717450757
When you have no shit going on, could be during a task, just think how you would put the system together and later after making it think of making another system work with the one you made, it's good practice even if they're bad. You need to build the muscle so when ya need it ya can flex it. For yourself,
Anonymous No.717478495
>>717477487
in bash this is just
rename 's/\- !/' *.jpg *.jpeg *.png
rename 's/[!\-\[\] ]//' *.mkv
Anonymous No.717478515 >>717478834
>>717478420
>>here is this file. Please write a unit test function inside the TODO comment on test_make_sure_thing_works. Do not make any other updates to the file or add dependencies.
>>Okay, here is the updated code. I also refactored this other part because blah, blah, blah.
>>*file has been completely changed*
>Even the latest pro models are all pretty bad about this type of shit. So if you already know what you want, it's fine, but if you don't know better, it's likely you will get handed code that is more retarded or outright broken. Because at the end of the day, LLMs don't "understand" commands and instead just generate what is the most likely response to your query.
dude what are you doing?
use cursor or vscode extension models
you can see diff changes and select which parts to keep
Anonymous No.717478523 >>717479116 >>717479180
>>717456934
>dx11 does everything for you
Except now it's DX12 all the way down thanks to 11on12.
DX11 is completely dead and every DX11 context is now just wrapped in DX12 and sucks shit because Microsoft hates humanity and also fuck you in particular for liking DX11, I guess.
Anonymous No.717478549
>>717460518
yes, for cheating
Anonymous No.717478584 >>717478653 >>717478672
DX9 lived for ages
What happened to DX10?
Anonymous No.717478627 >>717478850
>>717446302 (OP)
If you're using %2 in your even/odd function instead of i&1, you're doing it wrong.
Anonymous No.717478653 >>717478862
>>717478584
it was bad so nobody used it. then DX11 came out and was better.
Anonymous No.717478672
>>717478584
>what happened to the Windows 8 of Direct3D?
Anonymous No.717478720
>>717477957
Optimize it for what? Performance at scale? Uptime? Optimization is about tradeoffs, not sprinkling pixie dust on code to magically make it better at everything. Sometimes code can be highly optimized at the wrong thing because the developers had the wrong priorities.
Anonymous No.717478791 >>717478923
I stopped using Unity and start using RPG Maker because I got tired of always coding and never actually making anything.
Anonymous No.717478834
>>717478515
Cursor does exactly what I described. If you already know how to program, you know "what parts to keep", but a lot of people will just see accept whatever changes are suggested without realizing they're introducing some kind of antipattern or actual bug. If anon is a programmer already, then yeah they will probably learn by asking AI to clean up their code.
Anonymous No.717478850 >>717478995 >>717479205
>>717478627
what about negative numbers?
Anonymous No.717478862 >>717482651
>>717478653
>""""better""""
DX11 is still a downgrade on every game that ran DX9
Anonymous No.717478884 >>717478915
>>717459939
>eat my entire ass
Anonymous No.717478915
>>717478884
he's gay btw
Anonymous No.717478923
>>717478791
based
Anonymous No.717478932 >>717479135
>>717463643
whats dumb about this is that these people shouldve been weeded out way before getting to a technical interview. i blame whatever shit company this guy works for.
any normal company will have low level guys or HR phone screen to make sure youre not dealing with retards or liars before actually doing a real interview
Anonymous No.717478995
>>717478850
what about them?
Anonymous No.717479024
>>717461698
>return ~i&1;
Welcome to Hyperborea my son.
Anonymous No.717479116 >>717479524
>>717478523
vulkan is superior to dx12 but dx12 has way more market share and money going into it. its a shame
Anonymous No.717479135
>>717478932
whats dumb is that interviews dont even happen anymore
every job posting is fake
Anonymous No.717479180
>>717478523
there's DXVK for those poor souls still stuck with windows
Anonymous No.717479205
>>717478850
No one uses one's complement.
Anonymous No.717479219 >>717479856
~(-5) == 4
>true
:-D
Anonymous No.717479524
>>717479116
>dx12 has way more market share
I think projects like dxvk are turning that around. DX10 and DX11 games that run like trash on Win11 are being rescued by a magical dll that just works, and most DX12 games are slop.

Steamdeck compatibility is also a nice incentive to target vulkan instead of dicking around with Microsoft APIs.
It's slow-going, but it's gaining traction with 0 marketing budget. Really more of a testament to how rotten the Windows ecosystem has become than the advantages of vulkan, but w/e.
Anonymous No.717479735
>>717478431
GROSS
Anonymous No.717479773
>Is running difficult?
>>No
>Oh yeah, but can you run as fast as Usain Bolt?

>Is running difficult?
>>Yes
>LMFAO fatass, imagine being so fat you can't even run

>Is running difficult?
>>Well it depends..
>It's a simple question retard, yes or no?
Anonymous No.717479856 >>717479876
>>717479219
Depends on the hardware.
Anonymous No.717479876 >>717480397
>>717479856
Virtual machine
Anonymous No.717480060 >>717480183 >>717480530 >>717480808
Anonymous No.717480183
>>717480060
I prefer
>if (conditional) {
>}
for less scrolling if a document has a lot of such brackets.
Anonymous No.717480397
>>717479876
~(-5) could also just as easily be 2 and 5
Anonymous No.717480530 >>717480703
>>717480060
{ on new line is more readable when you have deep nesting, and it visually separates the header from the body
Anonymous No.717480615
if(
condition &&
stamina
){
fuck()
}
Anonymous No.717480703
>>717480530
isnt that what indents should be used for?
Anonymous No.717480808
>>717480060
I really don't care which way it is as long as things are properly indented.
If your brackets are at the same indentation as the internal statement, I will kill you.
Anonymous No.717481094 >>717481212 >>717481507
>>717478463
go watch the first ~40ish handmade hero videos
Anonymous No.717481171
bool isEven(int num) {
return std::isnan(std::pow(-1.0f, 1.0f / (float) num));
}

Haven't confirmed but I think this would work
Anonymous No.717481212
>>717481094
sounds good, looks good.
adding it to my list.
Anonymous No.717481419
>>717460089
to be fair, my game is also targeting the gtx 1060 3gb for medium high settings, with fsr3 quality for 60 fps at 1080p.
Anonymous No.717481507
>>717481094
I've been meaning to watch that between working on vulkan, but I foolishly decided to watch it with a friend trying to learn and he keeps not being in the mood.
Anonymous No.717481527
>>717463643
kek
Anonymous No.717481683 >>717481726
>>717473230
It's for devs that don't want to touch the pain that is visualstudio + unreal. I came from making unity games and everything translates pretty well, but if you want a custom data type or class with things like json parsing or other bullshit, you need to use c++
Anonymous No.717481726 >>717481786 >>717482156 >>717482278
>>717481683
WIth AI you might as well make your own engine
Either way you'll have a black box of code
Anonymous No.717481786 >>717481962
>>717481726
what a midwit retarded take.
Anonymous No.717481816
>>717449776
Other than the text hardcoding that doesn't seem bad.
Anonymous No.717481962
>>717481786
not an argument
Anonymous No.717482121
>>717475791
>just use AI saar
>please buy our product
AI niggers really
Anonymous No.717482156
>>717481726
sar plz
Anonymous No.717482183
>>717456914
>>717455216
pure soul. where do i follow you?
Anonymous No.717482278 >>717482584 >>717482790
>>717481726
Anonymous No.717482539
>>717470419
i enjoy both the fact that he "aura farms" in every thumbnail, and also that he's right, and all people do is slander him instead of proving him wrong. based optimization twink.
Anonymous No.717482584
>>717482278
is that a man or a woman?
Anonymous No.717482651
>>717478862
pretty sure there were some that ran better because something about draw calls. besides that it supports effects that DX9 simply couldn't.
Anonymous No.717482713
>>717466708
i'm glad i now know enough about blueprints and c++ to know that this image exists to make blueprints look bad. you cannot end up like this in any scenario. it's literally impossible.
Anonymous No.717482790
>>717482278
what the hell is going on in this webm