← Home ← Back to /v/

Thread 715330456

161 posts 38 images /v/
Anonymous No.715330456 [Report] >>715330571 >>715330946 >>715331663 >>715332151 >>715333280 >>715333342 >>715334548 >>715335383 >>715335764 >>715336114 >>715336872 >>715337137 >>715337243 >>715337291
>game coding is ha-
Anonymous No.715330541 [Report]
dae e celeb drama :3
Anonymous No.715330559 [Report]
You might not like it, but this is what peak performance looks like.
Anonymous No.715330571 [Report] >>715330796 >>715330853 >>715331292 >>715333207
>>715330456 (OP)
jeet code
Anonymous No.715330715 [Report]
So is posting video games on the video game apparently. You should join your eceleb friend over on youtube!
Anonymous No.715330796 [Report] >>715331292
>>715330571
don't be rediculous; this is far worse than jeet code
jeets may be bad at their jobs, but even they usually have SOME training. this dipshit doesn't even have the skills you'd learn in an intro to programming class
Anonymous No.715330853 [Report] >>715331292 >>715335247
>>715330571
giga retard troll code. no fucking way he did this shit.
Anonymous No.715330946 [Report] >>715331247 >>715331476 >>715331679 >>715332556 >>715332665 >>715332756 >>715333187 >>715333604 >>715333935 >>715334570 >>715336120 >>715337541
>>715330456 (OP)
How else would you code it? If (IP = correct choice), (something happens), else (display_text "not a hacker")?
Anonymous No.715331179 [Report] >>715331464
>stupid fucking cripple
Anonymous No.715331247 [Report] >>715331292 >>715331663
>>715330946
instead of checking every single ip that exists line by line, just make a list of banned ips. fucking simple. and use a fucking database. holy shit. this guy is mentally fucking retarded.
Anonymous No.715331292 [Report]
>>715330571
>>715330796
>>715330853
>>715331247
Anonymous No.715331454 [Report]
imagine Thor having a nice dream, probably about not being a loser and pic related flashes, waking him up instantly shitting himself.
Anonymous No.715331464 [Report]
>>715331179
>pinky finger bigger than others
>doesnt know how abs or tonned torso looks or works
why bother saving this trash art if the artist didnt even care?
Anonymous No.715331476 [Report] >>715331742
>>715330946
using else is bad practice
I hate this guy in the OP, but he is unironically correct in his approach
Anonymous No.715331540 [Report]
I made two stupid games in JavaScript as a teenager, and even I did a better job than this moron
I didn't write a new line of code for each piece of dialogue, and I used switch statements correctly
Anonymous No.715331565 [Report] >>715331627 >>715333158
The problem with pseuds getting high off criticisizing other people's code is that the majority of them are too stupid to even know when something is fake
Anonymous No.715331627 [Report]
>>715331565
Thor's ability to walk is fake nigga
Anonymous No.715331663 [Report] >>715331731 >>715333346 >>715333672
>>715330456 (OP)
>>715331247
The file itself is a database
Literally nothing wrong with this
Because it's hardcoded it will be even faster
Anonymous No.715331679 [Report]
>>715330946
I don't much about coding but ik you can use for loop for repeatetive tasks, but i could be wrong
Anonymous No.715331731 [Report] >>715331856 >>715331907
>>715331663
>be even faster
He's making a visual novel not crysis 3
It should be all plug and play at this stage of development
Anonymous No.715331742 [Report] >>715332084 >>715332775 >>715334830
>>715331476
Explain why else is bad like Im 65
Anonymous No.715331810 [Report]
>understand the logic of programming pretty well
>hate the syntax and semantics of everything but scripting languages
Anonymous No.715331856 [Report] >>715332072
>>715331731
why would there be hackers for a visual novel?
Anonymous No.715331907 [Report]
>>715331731
Its a visual novel. Who cares
Anonymous No.715332072 [Report]
>>715331856
because he's a mouth breather heigh on his own supply
Anonymous No.715332084 [Report] >>715337046
>>715331742
you gotta hash the strings into a custom pointer array and and stroggify each bytecode into a structclass so that it runs better
Anonymous No.715332151 [Report] >>715332345
>>715330456 (OP)
Wouldn't it be easier to make a list and just have the program check the list?
Anonymous No.715332187 [Report]
Did he really pentest a powerplant?
Anonymous No.715332345 [Report] >>715332412 >>715332601 >>715332636 >>715332736 >>715332825 >>715332862 >>715333004
>>715332151
Optimization wise, how is telling your game to check 200 ifs different than telling your game to check a list that has 200 items
Anonymous No.715332412 [Report]
>>715332345
It just seem like a list would be more tidy. I'm not a programmer by the way, I am trying to learn though.
Anonymous No.715332556 [Report] >>715332713 >>715334964
>>715330946
Have an IPAddr class that hold the original full string but also the 4 digits of the ip adress as individual integer.
Have a range or collection of integer to iterate over and check if the last digit attribute of your IPAddr correspond to any of these, if so do something.

Or even more simple, use regex rules.
Anonymous No.715332601 [Report]
>>715332345
I mean, the smart thing would be to just import the list and write a line of code that goes through it, instead of writing code for each element in the list
Anonymous No.715332636 [Report] >>715332787
>>715332345
If we ignore compiler optimizations, searching through a list might be faster if you write the correct algorithm for it.
I'd have to know the context, but if you want to search for an IP in a data structure that contains IPs from hackers, then why not use a hash table? Lookup is technically O(1)
Anonymous No.715332665 [Report]
>>715330946
I'd have my PC pop a prompt up asking me if that IP address is a hacker or not.
The background of the message prompt would be some stacked anime girl
Anonymous No.715332713 [Report]
>>715332556
>regex
Anonymous No.715332736 [Report]
>>715332345
It's not about performance but code maintainability and architecture. It's slop code, the performance difference is marginal. "Premature optimization" is a pitfall in programming.
Anonymous No.715332748 [Report]
>715330541
doesnt saving webms like these make you a homosexual?
Anonymous No.715332756 [Report]
>>715330946
If you need maintainability then make a list or range check. If you want performance either a range check or if not all IPs in a range are whitelisted then halve the range in each step before reaching the equation level. So that at least it's log(n) steps and not linear n steps.
Anonymous No.715332775 [Report]
>>715331742
because it's unnecessary
Anonymous No.715332787 [Report]
>>715332636
NTA
You're right I'm retarded, I didn't think of a hash table but it's perfect for this.
Anonymous No.715332810 [Report]
If you're going to post one, why not continue and post more to make the thread unusable? You're getting unfairly fucked by the jannies later anyway.
Anonymous No.715332825 [Report]
>>715332345
using 'dict' instead of 'if' allows the checker to jump directly to the correct statement, rather than checking all 200
Anonymous No.715332862 [Report]
>>715332345
the point is that the code is easier to modify, like adding a new element doesn't require you typing bunch of nonsense conditionals, instead you just add it to the list

and yes you're right, the speed won't be any different in this case, compilers optimize stuff like this away
Anonymous No.715333004 [Report]
>>715332345
you could store them in a hash map, so performing a lookup is O(1)
also it seems he's just adding ip ranges, so it'd be better to code something that supports ip ranges
if IPRange("1.1.1.1-200").contains(ipaddr)

there's dozens of better ways to do it
Anonymous No.715333158 [Report]
>>715331565
At this point I can't tell who's trolling whom.
A few days ago I saw a post from an alleged CS student insisting to their professor that `if` statements are bad and destroy performance.
Did he genuinely believe `if` statements shouldn't be used?
Was he making fun of people who post bad code without understanding why it's bad?
I can't tell anymore.
Anonymous No.715333187 [Report]
>>715330946
vectors, hashtable, and iteration are your friends
turning numbers into string format is not
Anonymous No.715333207 [Report]
>>715330571
jeets have AI now to make functional code
Anonymous No.715333280 [Report]
>>715330456 (OP)
This is something you'd only see in an elementary school computer science class.
Anonymous No.715333342 [Report] >>715336710 >>715337671
>>715330456 (OP)
for (int i = 0; i < RANGE; i++) {
if (i == BAN) {
ban();
}
std::cout << “1337” << std::endl;
}
Anonymous No.715333346 [Report]
>>715331663
Just run 256^4 If statements every time you want to check an IP
Anonymous No.715333458 [Report]
Damn anons itt are offering better advice than /g/ on a good day, how the turns have tabled.
Anonymous No.715333592 [Report]
It's a fucking shitpost, why are people debating this like it's real code when it's a meme stolen from plebbit. You're not smart for pointing out this is retarded, that's the joke you autists
Anonymous No.715333604 [Report]
>>715330946
Disgusting saggers
You can tell they reach below her belly button without a bra
Anonymous No.715333672 [Report]
>>715331663
>Because it's hardcoded it will be even faster
What's great is that I can't tell if this meant to be taken seriously or an obvious joke
Anonymous No.715333690 [Report] >>715334130 >>715334204 >>715334551 >>715334595 >>715334616 >>715336579 >>715337119 >>715337137
I don't know anything about server stuff, but making a visual novel seems like a weekend's worth of work.
>The character moves on the X and Y axis, >interacts with another character, and goes through a dialogue tree
>A new area opens up
>there are small animations here and there

All of these things seem pretty simple to me
Anonymous No.715333935 [Report]
>>715330946
I wonder if this would be possible to do with renpy.
Anonymous No.715334094 [Report]
https://www.youtube.com/watch?v=yitNhIYxzCc
Anonymous No.715334130 [Report] >>715334410 >>715334480
>>715333690
Depends on how you write it. Using a framework like ren’py or gamemaker or even windows forms or something will be easy. Writing it from nearly scratch using OpenGL or DX will be hard but you can tune it to be exactly how you’d like it, with modern gpu frameworks like Vulkan it will be about 10x the code that OpenGL would use for a ~5% performance gain on newer hardware. Also consider that if you’re making it from scratch you’d need to handle internal windowing and font rendering and everything. Diy is way more satisfying but much more time consuming, I have way more respect for engine writers than I do for unitysloppers
Anonymous No.715334204 [Report] >>715334608 >>715337119
>>715333690
And you would be right. Besides that dialogue tree, your story follows a flowchart like tree based on player input so the hardest part is defining which flags trigger which paths.
Each node has a background, a set dialogue, a music track, characters that can appear, etc.
Anonymous No.715334297 [Report]
>game coding is ha-
Anonymous No.715334409 [Report] >>715334479 >>715334501 >>715334596 >>715334610 >>715336820
If you don't program x86 assembly then you're not a real programmer
How do I learn assembly?
Anonymous No.715334410 [Report]
>>715334130
fair
> I have way more respect for engine writers than I do for unitysloppers
but what's the point of reinventing the wheel just to go to McDonalds

If it were a game with real time gameplay, I would’ve thought differently, but I don’t really see the point of creating what’s essentially a visual novel from scratch
Anonymous No.715334423 [Report]
Is there any better way to tell what the compiler will optimize away than checking godbolt.org?
Anonymous No.715334479 [Report]
>>715334409
>spoiler
Start with something easier, like 6502.
https://assemblytutorial.com/
Anonymous No.715334480 [Report] >>715334560
>>715334130
>I have way more respect for engine writers than I do for unitysloppers
I only care if the end product is actually good. The code can be ugly or unimpressive or whatever, making a good game demonstrably hinges on many other things.. Some try to reinvent the wheel to make an uninspired game.
Anonymous No.715334501 [Report]
>>715334409
Start with 8051 programming then go up from there, branch off to PIC, ARM, 8086 then actual x86_64 CPU programming.
Anonymous No.715334548 [Report] >>715334570 >>715334634 >>715334965 >>715336225 >>715337615
>>715330456 (OP)
var allowed_addresses: Array = [1,2,3,4,5,6,7 ... 30]

if (ipaddress.last_digits() in allowed_addresses) {return 0}


last_digits() would just be a function that checks the last digit and sees if it's in the allowed_addresses array. Was that so fucking hard? I'm not even good
Anonymous No.715334551 [Report]
>>715333690
That's the funny part.
He hasn't made his own engine. He barely even makes his own assets. GM abstracts every aspect of making games outside of raw logic (even Lua is more powerful) and yet he can't even figure out hilariously basic shit like enums and static files.
It doesn't even rise to the level of being a script kiddy. He's one step above that teenager in your high school BCIS class who opened that matrix website and mashed the keyboard as a joke.
Anonymous No.715334560 [Report]
>>715334480
Especially for something like a visual novel lmao.
those are carried by the writing and art.
Anonymous No.715334570 [Report]
>>715330946
Like this:
>>715334548
Anonymous No.715334595 [Report]
>>715333690
If you are a good artists and a writer, sure.
Short story without much graphics isn't hard to do.
Anonymous No.715334596 [Report]
>>715334409
https://store.steampowered.com/app/370360/TIS100/
Anonymous No.715334608 [Report]
>>715334204
sounds a little more complex, but you could definitely create a standardized system that takes care of all that
where each interaction is an object that pulls from different lists of dialogue, music, etc.
I'm talking out of my ass right now, but it seems doable
Anonymous No.715334610 [Report]
>>715334409
Cracksmes are useful.
Anonymous No.715334616 [Report] >>715334892
>>715333690
Yeah now make it look good and write a good story.
Those parts ain't so easy
Anonymous No.715334627 [Report]
Kill yourselves eceleb homolovers
Loli board when
Anonymous No.715334634 [Report] >>715334675
>>715334548
why not just check if theast digits are between 1 and 30?
Anonymous No.715334675 [Report]
>>715334634
Sure but you don't know if there might be a gap at some point.
Like for example 30 is allowed, but 31 isn't, then 32 is allowed again.
This covers for that
Anonymous No.715334784 [Report]
>game dev for a month on specific asset
>realize this isn't what I want
>start again from scratch or change to another style
After doing this for years, it really makes you think
Anonymous No.715334830 [Report] >>715335521
>>715331742
it's resource hogging syntactic sugar and a result of bad program design, deaign your program to not use else statements instead
Anonymous No.715334892 [Report] >>715334943 >>715335142
>>715334616
aye big guy, we are just talking about coding that my game dev days are behind me
Anonymous No.715334943 [Report] >>715335142
>>715334892
>we are just talking about coding that my game dev days are behind me
That's not a valid sentence bro
Anonymous No.715334964 [Report] >>715335379
>>715332556
zoomers will never fathom regex
Anonymous No.715334965 [Report] >>715335129
>>715334548
>var
It should be immutable
Anonymous No.715335073 [Report] >>715335137 >>715335209 >>715335291
So how come thor isnt crashing out and pulling up a ukulele, crying on stream or something?
He just keeps digging his own grave.
Anonymous No.715335129 [Report]
>>715334965
That's a language implementation detail, no need to get hamstrung on something like that for pseudocode suggestions
Anonymous No.715335137 [Report]
>>715335073
Dig deep enough and you can become a pharao
Anonymous No.715335142 [Report] >>715335187
>>715334892
>>715334943
that, my*
Anonymous No.715335187 [Report]
>>715335142
>we are just talking about coding that, my game dev days are behind me
Still no good
Anonymous No.715335209 [Report]
>>715335073
for a narcissist, admitting fault is a death sentence
Anonymous No.715335217 [Report] >>715336026
not again this troon stuff
don't you have a dedicated board to talk about girly clothes, programming and anal sex?
Anonymous No.715335247 [Report]
>>715330853
It's either a fake picture or he's just trolling at this point.
Some people think any attention is good attention.
Anonymous No.715335291 [Report] >>715336937
>>715335073
There's a very good reason why he never coded a single enum.
I don't know what it is but he'll be able to find one, enums are bad for his ARG or something.
Anonymous No.715335321 [Report] >>715336037
>CPU SIMD keeps getting wider and wider
>at 512-bits now on modern CPUs except Intel but they are just deliberately being gay about AVX512 support rather than it being a HW thing
>XMVECTOR gets used less and less so CPUs continue to leave more and more performance on the table for animation, physics, etc...
Anonymous No.715335379 [Report] >>715335646 >>715336860
>>715334964
With LLMs there's no excuses now.
Anonymous No.715335383 [Report]
>>715330456 (OP)
Surely there are fewer malicious IP's than non-malicious ones. Why not just make a list of those?
Is this guy actually going through every possible external IP address?
Anonymous No.715335521 [Report]
>>715334830
>yfw when you find out how the machine processing whatever the fuck you would write instead
Anonymous No.715335646 [Report] >>715335760 >>715335857 >>715335873 >>715336185 >>715336524
>>715335379
I'm reasonably convinced Thor's code is largely produced by an LLM since LLMs fucking love commenting everything.
I bet there's an em dash in his comments somewhere.
Anonymous No.715335760 [Report]
>>715335646
his "game" has been in the oven for so long that it actually predates gen AI lol
Anonymous No.715335764 [Report]
>>715330456 (OP)
As if anyone actually understands what the fuck is that wall of text means.
Anonymous No.715335857 [Report] >>715335903
>>715335646
>Thor
his name is jason, you fuckin reditor
Anonymous No.715335873 [Report] >>715335976
>>715335646
I wish I was joking but I'd say even a LLM would do a better job at giving reasonable suggestions to what he's trying to achieve with the code we've seen. Yep.
Anonymous No.715335903 [Report] >>715336070
>>715335857
It's Maldavius Figtree.
Anonymous No.715335976 [Report]
>>715335873
https://pastebin.com/Pucc3LXX
Someone threw the screenshot with his massive variable array into an LLM for cleanup and it spat this out.
Anonymous No.715336026 [Report]
>>715335217
You're the gayest dude here
Anonymous No.715336037 [Report] >>715336931
>>715335321
Intel isn't deliberately being gay about AVX-512 they're just incompetent. They dropped support for it because current e-cores don't support it and you'll be running into issues with heterogeneous instructions on one system. AVX-512 support is coming back soon since they figured out how to do it without being insanely inefficient and they put it on e-cores. The way Intel was doing AVX-512 up until now made it unfeasible to add support to e-cores unless you'd be fine with having half of them on the same die size.
What I did is just buy a 9950X for now.
Anonymous No.715336070 [Report]
>>715335903
It's Malding Fagtree
Anonymous No.715336114 [Report] >>715336198 >>715336225 >>715336250
>>715330456 (OP)
Looks like a fake screenshot. Does someone have a clip or a video of this? Otherwise I will not engage with this thread further nor impart my wisdom.
>t. senior software engineer
Anonymous No.715336120 [Report]
>>715330946
Switch you ever have an, and forgive me for even uttering this word, 'if' in your code it is DOGSHIT and your game SHOULD and WILL fail.
Anonymous No.715336185 [Report] >>715336302 >>715336463
>>715335646
Pirate Faggot's code is terrible but I agree with one thing and that is commenting everything.
Yes, code should be readable without comments but what people are missing is that in large codebases it's useful to be able to Ctrl+F stuff in plain English.
Anonymous No.715336198 [Report]
>>715336114
idk about this one but i watched code review he is an actual retard
Anonymous No.715336225 [Report]
>>715336114
solution was already found anyway>>715334548
Also you should be solving it for fun, regardless of fake news or not
Anonymous No.715336250 [Report] >>715336496
>>715336114
That one is fake but the one that is real is his self-coded anti piracy, triple digit IQ stuff that is essentially
>If Game = Pirated then PiratedGame = 1
>If PiratedGame = 1 then Game = over
Anonymous No.715336302 [Report] >>715336865
>>715336185
If you have a function called "Talk to NPCs"
Do you need a comment next to it saying "This is the talk to NPCs function"?
Anonymous No.715336382 [Report]
What the fuck are these IP ranges? lol

Lietrally not used by your average user.
Anonymous No.715336463 [Report] >>715336548
>>715336185
You don't need comments if your functions and variables are names properly and not fucking stupid like b_temp_1.
Anonymous No.715336496 [Report] >>715336847 >>715337051
>>715336250
Why do idiots like him even bother with anti-piracy measures that are trivial to bypass? Same with in-game anti-cheat. They're all extremely easy to bypass and all they accomplish is wasting 15 extra minutes in cheat engine.
If a dev wants to be a faggot just paypiggy Denuvo tb.h
Anonymous No.715336524 [Report]
>>715335646
It was written years before LLMs, he has added basically nothing to the game in 5 years
Anonymous No.715336548 [Report]
>>715336463
Plus, if you comment everything, it gives you exponentially more work if you need to update something, since all the comments need to be updated too. They should only be used when necessary.
Anonymous No.715336579 [Report] >>715337119
>>715333690
It's certainly on the easier side and you can very easily reuse the same codebase for a decade or more, Just look at some of the major eroge companies in Japan if you need examples. All the difficult parts is the visual and story aspects rather than the actual program when it's usually the other way around
Anonymous No.715336710 [Report]
>>715333342
>if your iterator variable == ban
retard
Anonymous No.715336820 [Report]
>>715334409
i don't know why you'd want to, it's going to be machine dependent with some instructions not included on some chipsets which means you have to work around them (and you can, sometimes it takes a few extra lines of asm)
Anonymous No.715336847 [Report]
>>715336496
How else will he convince his braindead audience that he's a super hacker if he doesn't beat pirates at their own game?
Everything he has ever done has been for the sake of his image. That's all he cares about.
Anonymous No.715336860 [Report]
>>715335379
llms don't and can't change the fact that zoomer will NEVER be able to conceptualize regex, the very notion is swahili to them
Anonymous No.715336865 [Report] >>715336992 >>715337147 >>715337153 >>715337413
>>715336302
What I mean is that the function can be called TalkToNPC() or talk_to_NPC() and Ctrl+F "talk to" won't find either and "talk" will have too many results.
Like I said, this is for large code bases and when you're working with others. When working alone you'll generally use consistent naming convention and this won't be an issue.
I'm not saying you should comment every single variable, they should be self-explanatory and you should avoid global variables when possible anyway, but it costs you nothing to make a plain English comment next to a function to save yourself a lot of time later.
>inb4 IDEs handle this for you
Many people prefer and work faster in simple text editors without any of that so this isn't a silver bullet.
Anonymous No.715336872 [Report]
>>715330456 (OP)
Fucking no way. Even I, a troglodyte python savant, know how retarded that is.
Anonymous No.715336931 [Report] >>715337248
>>715336037
It worked fine if you disabled E cores until Intel pushed a BIOS update that removed that feature. Intel are definitely deliberately limiting AVX512 on consumer CPUs
Anonymous No.715336937 [Report] >>715336994
>>715335291
You're just really dumb and it shows. If I added variables into enums everyone would be able to open the decompiled code and figure out all the secrets of the ARG. Also, enums make it easier to cheat in the game, again, because of decompiles. Players shouldn't skip steps or cheat.
Anonymous No.715336964 [Report]
Even the most stupidly written search through a list of banned IPs is better because 1) the number of banned IPs will always be <<< than the total number of possible IPs, and 2) the range of common public IPs is a small subset of the total (no one is online with a 1.1.1.1 IP)
Anonymous No.715336992 [Report]
>>715336865
So you're saying Jason needs that
"Starts a conversation" comment, because he uses it as a bookmark?
Anonymous No.715336994 [Report]
>>715336937
>I
he*
Anonymous No.715337046 [Report]
>>715332084
none of these words are real words, frogposter
Anonymous No.715337051 [Report] >>715337431
>>715336496
Remember he tried tying anticheat to achievements because he was 1000% sure steam cracker mans couldn't do achievements (they can).
Hilarious.
Anonymous No.715337095 [Report] >>715337154 >>715337490 >>715337856
>no comments
>code should be self-documenting
Memes. Will not work when you are sharing the codebase with a team ie multiple people and requirements decided by top management who believes in short term gains.
Anonymous No.715337119 [Report]
>>715333690
>>715334204
>>715336579
Writing a proper multiple choice dialogue system isn't that straightforward, if you're doing it from scratch. I've written such things many times, for UI and games.

These are all the elements you need to consider:
1. A picture or animation of who's talking, and maybe a name tag.
2. A wall of text for dialogue.
3. Several buttons for making choices.
That's if it's fairly basic.
So you need to write some kind of function to change each of these as a data point, and something that interacts with the UI to change what you're seeing on screen. Say, set your wall of text to the new string for the next dialogue.
But you have buttons. Each button needs to lead to call some function to change the dialogue. You need to figure out how many buttons you'll use, and how to hide them when not in use. But what if you have speech checks, quest advances, number changes? Can't say x yet because y hasn't happened.
Where do those variables get stored? Is the script written directly in the IDE (retarded btw)? Is each dialogue hard coded? Because it's actually more important in how easy it is to write brand new scripts for the system, without looking at the codebase, because it's a huge time waster otherwise. This is why amateurs make such a mess of it.
Every little possibility needs to be thought about, if not the whole thing needs to be scratched and redone. But once it is, it's easy to reuse.
Anonymous No.715337137 [Report]
>>715330456 (OP)
This way of doing it is so dumb, I refuse to believe it is real. Even if you knew nothing of coding, you'd get too frustrated to not search for a better solution. You've got a link to the stream where that occured?

>>715333690
The code itself is easy, yes. I did mine in 300 lines on a weekend half of that is still commented out nonsense. The content and making it look/feel/sound good is what takes effort.
Anonymous No.715337147 [Report] >>715337591
>>715336865
I was always taught that comments are for why, not what.

Coders should be able tor read the code itself. Comments are for random shit that is not immediately obvious. For example, you don't need a comment to say i is being used as an iterator but if you have the code if i == 6 then i += 2 then you say why the fuck you are doing that with a comment.
Anonymous No.715337153 [Report] >>715337473
>>715336865
>name functions
>func_talk_gay_shit
>have an iq about 80
>search func_talk_gay when looking for dat gay shit
>ah there it is
lol
Anonymous No.715337154 [Report] >>715337515 >>715337856
>>715337095
The idea that code should be "clean, self-documenting" is some Uncle Bob retard shit. Fuck clean coding paradigms.
Anonymous No.715337219 [Report]
Jason Hall might legitimately be impressed by the "every IP on the internet" skiddie joke with the quad nested for loops
Anonymous No.715337243 [Report] >>715337316
>>715330456 (OP)
This guy worked at Blizzard as a security expert??
Anonymous No.715337248 [Report] >>715337479
>>715336931
Yeah but you needed to disable e-cores which defeats the purpose of buying an Intel chip. It ended up being pointless because a year later instead of disabling a third of a 12900K you could just buy a 7950X and have 16 cores that support it. Or just get a Xeon W.
On 13900K you'd be losing half the performance with e-cores off. Even in games the scheduler prefers to e-cores over hyperthreading because Intel is incompetent and HT can stall the first thread, which doesn't happen on AMD for some reason. E-cores were only bad on 12th gen because the ring clocked down when they were accessing L3, doesn't happen on 13th gen.
Anonymous No.715337291 [Report]
>>715330456 (OP)
Hacking power plants for the government btw
Anonymous No.715337316 [Report]
>>715337243
they shoved him into the QA department and made him fetch the left-handed screwdrivers, blinker fluid and polka-dot paint
Anonymous No.715337413 [Report]
>>715336865
I name my functions like this
>function1
>function2
>...function304
With no frame of reference for what they do, where they are, or how they work, other than how many other functions I wrote.
Anonymous No.715337431 [Report]
>>715337051
It's impossible to pirate and I find that deeply hilarious.
Anonymous No.715337473 [Report]
>>715337153
I just said it's unnecessary with consistent notation but you never know if some retard coworker named it something else.
I'm playing the devil's advocate here, a retard coder who comments his shit is better than one that isn't.
Anonymous No.715337479 [Report]
>>715337248
Ok and I'm not even mentioning that Intel released AVX10 which allows for AVX512 with a 256-bit FPU just like AMD Zen 4 and little Zen 5. And this was 2 years ago, they don't really have an excuse not to support it.
Anonymous No.715337490 [Report]
>>715337095
>I'm the only one working on my code, it doesn't matter if the variable array is readable or not
>I'll comment everything because other people might need to understand it if I work in a team

?????
Anonymous No.715337503 [Report]
I just use code from YouTube tutorials and make my own assets.
Anonymous No.715337514 [Report]
I think everybody with half a brain knows that he just puts up poorly written code on purpose to make people ragewatch his streams (even if 90% of them know fuckall about programming). But you're all naive, you're all just waiting to look down on others.
Anonymous No.715337515 [Report]
>>715337154
I run a code obfuscator and minify before every git commit and push

fuck the other people on the project
you should know what func_1 does from context
Anonymous No.715337541 [Report]
>>715330946
database or shove them into a collection you can just iterate through
Anonymous No.715337573 [Report]
Quick question (I really have no idea about this) but can't one use ai for simple shit like this? I heard Gemini 2.5 can "understand" a million words at once. Can't you just put all that shit in and say random bullshit go? I mean if it's THAT obvious? Or is ai too bad for that?
Anonymous No.715337591 [Report]
>>715337147
Depends on language. Try doing this in fortran lol. Modern languages are so sissified you can get away without commenting anything.
Anonymous No.715337594 [Report]
there's no such thing as a solo project, you're at minimum always in a team of 3

There's past you, who's a fucking asshole who ruined the entire thing. There's future you, who's a sucker who has to deal with the mess, and current you who's just trying to get through the day.
Anonymous No.715337615 [Report] >>715337749
>>715334548
uint targetIP = 2164067329 //128.252.12.1 converted to decimal
HashSet<uint> bannedIPs = new HashSet<uint>() {2164067320, 2164067321, 2164067329 ...}
if(bannedIPs.TryGetValue(targetIP, out _))
{
. . . . //clean IP
}
else
{
. . . . //banned IP
}

o(1), easily expandable
Anonymous No.715337671 [Report]
>>715333342
I would do it like this.
for (int i = 0; i < 1000000; i++){
printf("nigger");
}
Anonymous No.715337749 [Report]
>>715337615
as you can see, since i've made a simple logical mistake and written this on .net - i am not very smart
Anonymous No.715337841 [Report]
Reminder to never use Rust.
>code refuses to compile because you have a "problematic constant"
Anonymous No.715337856 [Report]
>>715337095
>>715337154
You'd ideally have comments describing what functions do, rather than have comments inside functions describing what each global variable is.
You'd have comments on your global variables describing them if necessary, so that when you hover over them in any place of your code you'd actually see that comment.

Notice how in pic related there's no comments in the actual code where the variable is used. The one comment is made in only one place, and that is where the variable is initialized. You'd describe it if it needs describing (the name isn't descriptive enough). This way, when you hover over the "dickSize" variable, you'd see the comment "Size of your dick" (in this example).
What PS is doing is adding the same comment over and over again. Which is retarded and something you wouldn't even see a junior developer do. He's coding on the skill level of a trainee developer (a person with 0-6 months of experience and no prior experience with coding in an education system or tutorials). It's something you'd see my grandma do if I suddenly placed her in a coding bootcamp.