Thread 105905502 - /g/ [Archived: 247 hours ago]

Anonymous
7/14/2025, 8:36:21 PM No.105905502
GvyKz8aW0AAHAtK
GvyKz8aW0AAHAtK
md5: a8f5f183283cd59f03e4885d0604701d🔍
Is this efficient code?
Replies: >>105905525 >>105905552 >>105905578 >>105905654 >>105905699 >>105905742 >>105905837 >>105905849 >>105905888 >>105905911 >>105905953 >>105906009 >>105906087 >>105906189 >>105906264 >>105906476 >>105906766 >>105907006 >>105907161 >>105907250 >>105907496 >>105908236 >>105908355 >>105908656 >>105909240 >>105909361 >>105910211 >>105910441 >>105910549 >>105912397 >>105912432 >>105913162 >>105914368 >>105915655 >>105916337 >>105917717
Anonymous
7/14/2025, 8:38:38 PM No.105905525
>>105905502 (OP)
Yes it's an O(1) algorithm
Replies: >>105905725 >>105905999 >>105906209 >>105907923 >>105908199
sage
7/14/2025, 8:40:52 PM No.105905552
>>105905502 (OP)
yes
Anonymous
7/14/2025, 8:43:07 PM No.105905578
>>105905502 (OP)
For /g/ it is.
Anonymous
7/14/2025, 8:48:38 PM No.105905654
>>105905502 (OP)
no, make it a switch statement. then its good.
Replies: >>105908674 >>105909363 >>105911763
Anonymous
7/14/2025, 8:52:54 PM No.105905699
>>105905502 (OP)
Yes it keeps his code cave clean
Anonymous
7/14/2025, 8:54:49 PM No.105905725
>>105905525
It's O(n).
Replies: >>105905791 >>105906209 >>105908199 >>105913641 >>105917233
Anonymous
7/14/2025, 8:56:13 PM No.105905742
>>105905502 (OP)
Whose code is that? What is it meant for?
Anonymous
7/14/2025, 8:59:48 PM No.105905790
Bro should just cast it to a number and then check by ranges. Although hard coding ranges is retard shit. He should just have a file that can be parsed at runtime to get whitelist and blacklists.
Anonymous
7/14/2025, 8:59:49 PM No.105905791
>>105905725
it's O(1) because there is fixed number of IP adresses :^)
Replies: >>105905817 >>105906209 >>105908199 >>105908425 >>105917233
Anonymous
7/14/2025, 9:02:30 PM No.105905817
>>105905791

This is a conditional chain though so they will all be evaluated in sequence. If he wanted O(1) he would need a hash table.
Replies: >>105905888 >>105906209 >>105916526
Anonymous
7/14/2025, 9:04:52 PM No.105905837
>>105905502 (OP)
Well, if it works...
Anonymous
7/14/2025, 9:05:54 PM No.105905849
>>105905502 (OP)
what does that matter it is very easy to understand
Replies: >>105905894
Anonymous
7/14/2025, 9:09:24 PM No.105905888
>>105905502 (OP)
Any decent compiler will turn it into a binary search.

>>105905817
A hash table would be O(N) in the size of the input. This is constant (O(1)) in the input size, since the comparison short circuits. So this does in fact have better asymptotic complexity :^)
Replies: >>105908199 >>105908797 >>105914990 >>105915714 >>105916753
Anonymous
7/14/2025, 9:09:40 PM No.105905894
>>105905849
>Gamemaker game takes 10 minutes to load because it's manually and sequentially checking every IP address possible to determine if you're the handful of "known hackers"
>It took 7 years to write this list
>Game is an hour and a half long undertale knockoff but with more furry bait
Who cares is right
Anonymous
7/14/2025, 9:10:38 PM No.105905911
>>105905502 (OP)
he worked at blizzard so yes
Replies: >>105908152 >>105908198 >>105914968
Anonymous
7/14/2025, 9:13:18 PM No.105905953
>>105905502 (OP)
did this nigger not once stop and think if there's a better way?

What that Blade quote again?
Replies: >>105908037
Anonymous
7/14/2025, 9:17:43 PM No.105905999
>>105905525
What IP range is he even trying to filter? Just use integers and and mask them with & or |.
Replies: >>105916359
Anonymous
7/14/2025, 9:18:50 PM No.105906009
>>105905502 (OP)
what the actual fuck. is this game coded worse than yandere simulator?
Anonymous
7/14/2025, 9:19:44 PM No.105906021
1750736031327943
1750736031327943
md5: 364a8bfdae1d2689814fa47a03c28c16🔍
what did pirate cuckware mean by this?
Replies: >>105906121 >>105908236
Anonymous
7/14/2025, 9:22:56 PM No.105906047
35405e32b1099488f40207361ded1e52
35405e32b1099488f40207361ded1e52
md5: d8cb8e978142b92fc5e4d20179b9de7c🔍
>even furfags know this is bad behaviour
Replies: >>105906140 >>105906199
Anonymous
7/14/2025, 9:26:09 PM No.105906087
>>105905502 (OP)
this cannot be real
Replies: >>105908831
Anonymous
7/14/2025, 9:29:14 PM No.105906121
>>105906021
https://www.youtube.com/watch?v=NM_jnHy1N-w
Anonymous
7/14/2025, 9:30:45 PM No.105906140
>>105906047
that code is not bad
Replies: >>105906225
Anonymous
7/14/2025, 9:31:11 PM No.105906149
Is that the guy that looks like Chris Chan that sold his soul to corpos?
Anonymous
7/14/2025, 9:33:59 PM No.105906189
>>105905502 (OP)
>not using the maxminddb format for ip lookups
Anonymous
7/14/2025, 9:34:50 PM No.105906199
>>105906047
cursed "artist"
Anonymous
7/14/2025, 9:35:41 PM No.105906209
>>105905525
>>105905725
>>105905791
>>105905817
Big O is not applicable here because the size of the input is constant. I am calling your alma mater and demanding that they revoke your computer science degree immediately.
Replies: >>105906276 >>105906892 >>105907923 >>105916868 >>105917233 >>105918744
Anonymous
7/14/2025, 9:37:04 PM No.105906225
>>105906140
This. You could replace it with code that computes the final number from the year, but that will make the code less clear. Especially when you later get URLs that don't follow the scheme, or if there's no event for a year.
You could create a map from year to URL, then check if the year is in the map and then push the result if it is, but why?

This code is clear and easy to maintain. It's kinda based.
Bad code isn't about a bit of repetition in a single function but about the entire architecture being fucked.
Replies: >>105906276
Anonymous
7/14/2025, 9:39:55 PM No.105906264
>>105905502 (OP)
yes, it is written in Based++
Anonymous
7/14/2025, 9:40:42 PM No.105906276
Pause-Break
Pause-Break
md5: d986aa0215577e0f3bd24c3bb11b6f70🔍
>>105906209
>the problem is a giant if-else and not a fundamental failure to understand IP networking and what private/internal addresses are

>>105906225
>the problem is a giant if-else and not a fundamental failure to understand the passage of time and that it will not be 2022 ever again
Replies: >>105906304 >>105916982
Anonymous
7/14/2025, 9:42:35 PM No.105906304
>>105906276
>>the problem is a giant if-else and not a fundamental failure to understand the passage of time and that it will not be 2022 ever again
Well, he should comment it out, but it is good documentation for how the function works. What's your issue with it being there? You think this is a performance killer?
Replies: >>105906396
Anonymous
7/14/2025, 9:49:52 PM No.105906396
289439eee741ef5c224f6f8619ef1644
289439eee741ef5c224f6f8619ef1644
md5: 9a6a276cbd92c73f0e8086ed277e4ed3🔍
>>105906304
you can be a 2d fetish creature built for vore but you have to respect the fleeting nature of time (or at least use a table)
Replies: >>105906541 >>105912570
Anonymous
7/14/2025, 9:57:07 PM No.105906476
>>105905502 (OP)
No, this just looks like some dirty filling
bash echo -e "if (ipaddress == '1.1.1."{0..255}"') {return 0; } //comment\n"

Comparative boolean expression on strings can be quite expensive, if this intend to run on networks.
Replies: >>105906581
Anonymous
7/14/2025, 10:03:45 PM No.105906541
>>105906396
if you meant hashmap it would be dogshit slow compared to switch/if-else chain if you only have like 5 keys
Replies: >>105906591
Anonymous
7/14/2025, 10:07:16 PM No.105906581
>>105906476
if you're going through network logs or whatever, you should have configured your intrusion detection slop suite to ignore obviously invalid/internal IPs in the first place

if you're writing it from scratch or something, IPs are literally just a series of bits and you can very easily check for sequences you don't care about
Replies: >>105906621 >>105906851
Anonymous
7/14/2025, 10:08:16 PM No.105906591
>>105906541
if you only have like 5 keys why not just store all your shit in a big flat file the COBOL chad you are destined to be
Anonymous
7/14/2025, 10:10:50 PM No.105906621
>>105906581
why are you defending the actions of a tiny yellow marshmallow dragon thing
you don't even know the use case
Replies: >>105906870
Anonymous
7/14/2025, 10:16:02 PM No.105906673
would as numbers be better?
Anonymous
7/14/2025, 10:17:40 PM No.105906687
If only it was a Switch... It'd be so performant...
Anonymous
7/14/2025, 10:27:50 PM No.105906766
ckULPDZ
ckULPDZ
md5: 98de68015df397cf2ed7ffeca07b0f8a🔍
>>105905502 (OP)
this is a funny photoshop, but the original image it's based on is far less egregious
>just initialize it all to zero with a loop bro
if he did that, he wouldn't be able to include the comments explaining what each ID means, which is helpful; also keep in mind this is in gamemaker studio which has very poor support for language features and constantly requires ugly workarounds for everything
he's not the greatest programmer but it's not as bad as people seem to suggest
>inb4 just use an enum
Replies: >>105906929 >>105907057 >>105907125 >>105907182 >>105908065 >>105908236 >>105908425 >>105910654 >>105911038 >>105912560 >>105912564 >>105914706 >>105914906 >>105916248 >>105916485 >>105917315 >>105917325 >>105917422
Anonymous
7/14/2025, 10:35:27 PM No.105906851
>>105906581
The ipv4 bits are defined into byte segments.
The punctuation indicate that this is a string.

>If you are writing from scratch
Would depend on what you are writing against, not everything is "easy".
Anonymous
7/14/2025, 10:36:55 PM No.105906870
1665
1665
md5: 62d6a83ee5203ca34f367724d6338dd4🔍
>>105906621
>you don't even know the use case
this board ruined me beyond repair i need to do the greentext
Anonymous
7/14/2025, 10:38:26 PM No.105906892
>>105906209
Your computer has a finite amount of memory, thus bounding the potential input size to any problem. Therefore, all algorithms performed on a modern computer are O(1). Q.E.D.
Replies: >>105910630 >>105919395
Anonymous
7/14/2025, 10:41:15 PM No.105906929
stop me from hating
stop me from hating
md5: ec8ad94f236e325b6134c24aea7acbe0🔍
>>105906766
what is the actual use case here? i mean that seriously. /g/ loves to flip its shit over OMG LONG LIST AIEEEE but what is this long list of? it looks like story flags, and in a lot of older games story progression is basically handled as a series of flags and it's expressable as a bitmasked integer

even in modern games flags on objects often work like that, e.g.
https://developer.valvesoftware.com/wiki/Flag
so like 2 is physgun can grab, 4 is outputs on player +USE(hitting E at it), so putting 6 in that field means physgun can grab it AND if you hit E at it it generates an output

that said there could be easier/cleaner ways to do it purely from an organizational perspective. for example, the old Exile games handle "Stuff Done Flags" (the actual technical term Jeff Vogel used) as 2d arrays. X is generally some high level concept, and Y is where you are in that quest chain/concern/etc. and the docs for Blades of Exile recommended explicitly separating them that way, reserving a couple numbers for main story progression "just in case" and not being afraid to use a new line of flags for one-off events since if you rewrite a minor thing into a major plot point now your flags gonna become all spaghetti
Replies: >>105906970 >>105907326 >>105911935 >>105912527 >>105912675
Anonymous
7/14/2025, 10:45:37 PM No.105906970
>>105906929
it's reddit that jumped on the "hehehh thor writes bad code" bandwagon because of a few videos people made, I would be surprised if /g/ (excluding tourists) feels the same way
Replies: >>105906998
Anonymous
7/14/2025, 10:48:27 PM No.105906998
>>105906970
i've seen the same sort of memes about other creators in vg's /agdg/ though, it seems like failed normies see long lists and just freak out because they're stupid and have never actually made a game before, nor even read about it

most game programming for anything other than graphics and physics is pretty primitive and that's fine because if the actual challenge is "know where the player is in a linear story" a series of flags is perfectly sufficient. if anything i would want to see how the game state is checked more than how long the list of available states of the world gets (are you doing an if-then against every possible case, are you a memer who thinks a switch is better, or did you be a deranged gray muzzle and XOR two intergers)
Anonymous
7/14/2025, 10:49:05 PM No.105907006
>>105905502 (OP)
It depends on what you mean by efficient. It's as fast as a for loop but it's not maintainable and very error prone. You could miss a number.
Anonymous
7/14/2025, 10:50:33 PM No.105907015
>ip address is 32 bit unsigned integer
>dotted notation is to make it easier for humans to read
>have giant list of bad IPs
>macro magic to make it in to a giant switch statement
>switch statement turned into O(1) jump table at compile time

yeah bros I think he might be a genius
>inb4 binary will be huge
Anonymous
7/14/2025, 10:55:27 PM No.105907057
>>105906766
whats the play here for if you want to add
>Middle - Joe's Cigar (0|1 - No|Yes)
Do you make it into [209] and push everything down by one or do you make it so it's
>[208] - Joe's Computer
>[913] - Joe's Cigar
>[209] - Lightswitch State
from what I've seen he also does for loops for these like [224+X] so that doesn't really seem like the way to go either
Replies: >>105907133
Anonymous
7/14/2025, 11:02:52 PM No.105907125
>>105906766
In js this is just
const storyline = {
pool: {},
cafe: {},
}
storyline.cafe["PPP is gone"] = true
Replies: >>105907150
Anonymous
7/14/2025, 11:03:24 PM No.105907133
>>105907057
>he also does for loops for these like [224+X]
in that case, I imagine he just inserts the flag and then goes through the whole game and adds +1 to everything above it, which isn't ideal I agree
Anonymous
7/14/2025, 11:04:30 PM No.105907150
>>105907125
yes, that's how a hash table with string keys works rather than an array, thanks nigger
can the peanut gallery please fucking leave?
Anonymous
7/14/2025, 11:05:47 PM No.105907161
>>105905502 (OP)
>Is this efficient code?
No. It's much easier to just check if the EVIL bit is set in the header.
Anonymous
7/14/2025, 11:07:27 PM No.105907182
>>105906766
...Why not just create an enum and use that instead of magic numbers with a comment?
Replies: >>105907204 >>105907211 >>105908647 >>105909576
Anonymous
7/14/2025, 11:09:42 PM No.105907204
>>105907182
Maybe because he's a lying grifter?
Anonymous
7/14/2025, 11:10:24 PM No.105907211
>>105907182
>le magic number
redditor detected
Replies: >>105907247 >>105916874
Anonymous
7/14/2025, 11:13:19 PM No.105907247
>>105907211
Enjoy your unreadable spaghetti, Fagtree.
Anonymous
7/14/2025, 11:13:57 PM No.105907250
>>105905502 (OP)
use briefcase?
Anonymous
7/14/2025, 11:20:22 PM No.105907326
>>105906929
To find out what is wrong here you literally need to read any introductory book on programming all of them will tell you not to do this.
This list is unwieldy, it's unchangeable monolith. If you make decisions along the road to change something small it will take you as long to modify as it was to create it.
If you need to reference one of the values in the future you need to have a reference guide.
Mistake possibility is becoming exponential and debugging is becoming nightmarish.
Literally read a book nigga.
Replies: >>105907373 >>105908012 >>105912259 >>105912723 >>105914890
Anonymous
7/14/2025, 11:24:56 PM No.105907373
>>105907326
>it's unchangeable monolith
ctrl+shift+f "storyline_array[124]"
>If you need to reference one of the values in the future you need to have a reference guide.
That's literally what you're looking at?
>Mistake possibility is becoming exponential and debugging is becoming nightmarish.
No it does not. The values being in an array together doesn't characterize how the data is actually used, what this is is just 100s of individual variables being stored as array elements for convenience. You are larping as a programmer if your mind jumps to "exponential" when you see a long list of individual variables that don't interact with each other at all
Replies: >>105907472
Anonymous
7/14/2025, 11:33:58 PM No.105907472
>>105907373
>I will be contrarian for the sake of being contrarian.
I see you never wrote a script in your life. Let alone code anything.
Replies: >>105908046
Anonymous
7/14/2025, 11:36:23 PM No.105907496
>>105905502 (OP)
I honestly hope this is a joke. Ehy didn't he check the know ipaddrs?
Anonymous
7/15/2025, 12:18:05 AM No.105907923
>>105905525
>>105906209
How the fuck do so many people not understand big-O notation?
>input is constant
That literally doesn't matter that's not what big-O measures REEEEEEEEEEEEEEEEEEEE
Replies: >>105908132 >>105911101 >>105912551
Anonymous
7/15/2025, 12:27:03 AM No.105908012
>>105907326
you see him change it all the fucking time, actually

>If you need to reference one of the values in the future you need to have a reference guide.
as opposed to what?
Replies: >>105909524
Anonymous
7/15/2025, 12:30:29 AM No.105908037
>>105905953
>What that Blade quote again?
Some motherfuckers just keep trying to skate uphill
Replies: >>105915261
Anonymous
7/15/2025, 12:31:12 AM No.105908046
>>105907472
It's painfully obvious that you're larping and have never worked on a codebase beyond writing toy scripts. I'd love to see your solution to the problem, should be worth a laugh
Replies: >>105909515
Anonymous
7/15/2025, 12:33:20 AM No.105908065
>>105906766
desu this isnt that bad. a magic string (or hashed string) or an enum is better though. a literal magic number is kind of cursed. at the end of the day, stuff has to be hardcoded somewhere to work.
is that gamemaker? maybe gamemaker doesnt have hashtables or enums
Replies: >>105908083
Anonymous
7/15/2025, 12:34:54 AM No.105908083
>>105908065
>is that gamemaker?
yes
Anonymous
7/15/2025, 12:39:39 AM No.105908132
>>105907923
big oof
Replies: >>105912551
Anonymous
7/15/2025, 12:41:14 AM No.105908152
>>105905911
As a janitor or something like that, definitively not as a dev.
Anonymous
7/15/2025, 12:44:05 AM No.105908198
>>105905911
maldy dog cocks would be the type to make it so that battlegrounds and groups lag by placing incorrect locality connections together with local connections, yes like europe and america
Anonymous
7/15/2025, 12:44:13 AM No.105908199
>>105905525
>>105905725
>>105905791
>>105905888
this thread gave me cancer
Anonymous
7/15/2025, 12:46:17 AM No.105908236
>>105905502 (OP)
>>105906021
Not even women are this bad
>>105906766
Nigger why are you documenting your code inside your source files holy fuck just initialize that shit and make a csv or some other shit that actually explains those values
Replies: >>105908277 >>105908286
Anonymous
7/15/2025, 12:49:43 AM No.105908277
21
21
md5: f9bc397dfd6385eef49849f328e9415e🔍
>>105908236
>why are you documenting your code inside your source files
Replies: >>105908287 >>105908324 >>105908468 >>105916848 >>105917249 >>105917336 >>105917902
Anonymous
7/15/2025, 12:50:19 AM No.105908286
>>105908236
fucking stop
Anonymous
7/15/2025, 12:50:23 AM No.105908287
>>105908277
He's right thoughbeit
Replies: >>105908296
Anonymous
7/15/2025, 12:51:06 AM No.105908296
>>105908287
No you're not
Replies: >>105908301
Anonymous
7/15/2025, 12:51:37 AM No.105908301
>>105908296
Yes he is :)
Anonymous
7/15/2025, 12:55:16 AM No.105908324
>>105908277
>// Story flags. See flags.csv
Your jeetcode now only has actual fucking code instead of a million comments that just waste your time every time you need to scroll past that section
Anonymous
7/15/2025, 12:58:18 AM No.105908355
>>105905502 (OP)
if you had even 10 minutes of a cs education you'd the ip list in a hashtable or at least an array.
Replies: >>105908425
Anonymous
7/15/2025, 1:06:39 AM No.105908425
>>105906766
> i worked at blizzard script kiddy can't into dictionaries and enum
truly frightening

>>105905791
are you unwell?

>>105908355
pic is fake, so nobody cares.
Replies: >>105913660
Anonymous
7/15/2025, 1:10:52 AM No.105908468
>>105908277
nobody should ever need to store this many comments. you should be writing code that's readable and memorable not only to yourself but to others. if he didn't write all that shit, he wouldn't know how his own code works. guy is basically like yandredev - similar programming abilities, similar arrogance, refuses to learn as they apparently know better than everyone else. etc.
Anonymous
7/15/2025, 1:29:07 AM No.105908647
>>105907182
Adding enums would make his code better, but honestly that specific screenshot isn't that bad.
Replies: >>105909388
Anonymous
7/15/2025, 1:29:45 AM No.105908656
>>105905502 (OP)
sovl
Anonymous
7/15/2025, 1:31:34 AM No.105908674
>>105905654
switches don't work on strings stupid
Replies: >>105908794
Anonymous
7/15/2025, 1:43:26 AM No.105908765
Bit funny how no one in this thread knows about jump tables anymore
Anonymous
7/15/2025, 1:46:47 AM No.105908794
>>105908674
You're retarded. An IPv4 address is almost always represented as a 32-bit int and if you happen to have it as a string you can easily convert it to an int and perform a switch on it, which can then be further optimized by the compiler.
Replies: >>105909213
Anonymous
7/15/2025, 1:46:54 AM No.105908797
>>105905888
>aNy dEceNt cOmPilEr WiLl tUrN iT iNtO a bInArY sEaRcH.
LMAO
Replies: >>105908977
Anonymous
7/15/2025, 1:51:08 AM No.105908831
pjt
pjt
md5: eb982f9cc2e795dc7540d88f81ec0c64🔍
>>105906087
Good morning SAAR!
Anonymous
7/15/2025, 2:02:22 AM No.105908937
cniles will literally rip their own dicks off before they use a hash table for anything
Replies: >>105908977 >>105909017
Anonymous
7/15/2025, 2:07:09 AM No.105908977
>>105908797
The search for the sufficiently intelligent compiler continues...

>>105908937
he comparing strings for equality, so either he's retarded or that isn't c.
Anonymous
7/15/2025, 2:10:31 AM No.105909017
>>105908937
LMAO, Imagine being so fucking retarded you have to populate and check against a hash table instead using a single bitwise operation.
Replies: >>105909137
Anonymous
7/15/2025, 2:25:02 AM No.105909137
>>105909017
that's a terrible solution if you have more than a few IPs ranges... though it wouldn't surprise me if this fucking retarded e-celeb was just trying to check one or two.
Anonymous
7/15/2025, 2:36:07 AM No.105909213
>>105908794
look at the screenshot stupid
Replies: >>105916137
Anonymous
7/15/2025, 2:38:41 AM No.105909240
>>105905502 (OP)
That's funny.
What's not funny is doing pixel shader like job with the CPU using the game maker script.
Which heartbound does to draw the shadows.
Replies: >>105912596
Anonymous
7/15/2025, 2:51:46 AM No.105909361
>>105905502 (OP)
>jeetcode
an excellent code quality saar, I will make sure the other members of the hiring committee will have no objections
Anonymous
7/15/2025, 2:52:08 AM No.105909363
>>105905654
Retard. It would still be shit with a switch statement.
Anonymous
7/15/2025, 2:55:09 AM No.105909388
>>105908647
It is. Comments shouldn't be necessary to understand what's happening. This is absolute garbage.
Anonymous
7/15/2025, 3:08:22 AM No.105909515
>>105908046
Yes, the person who says there is nothing wrong with handcrafting over 300 array is going to tell me I don't know anything.
Like I said in my original post go read a book. All of them are going to tell you not to actually do this.
Replies: >>105909939 >>105910712
Anonymous
7/15/2025, 3:09:27 AM No.105909524
>>105908012
>He actually changes it all the time
8 years in development and coding taking the majority of the time makes sense all of the sudden.
Anonymous
7/15/2025, 3:15:58 AM No.105909576
>>105907182
enum is useful if you're going to use that code multiple times in multiple places.
But if he's going to use it once. It's rather pointless.
Replies: >>105912508
Anonymous
7/15/2025, 3:56:54 AM No.105909939
>>105909515
Your appeal to authority is denied, post your own alternative solution or fuck off
Anonymous
7/15/2025, 4:27:19 AM No.105910211
>>105905502 (OP)
chat is this real
Replies: >>105910639
Anonymous
7/15/2025, 4:37:51 AM No.105910281
>appeal to authority
You retards really don't understand fallacies do you?
Any reasonable person would do anything to avoid the number array, you can even do macros, just define numbers as something else. I'd do structs, others would do enums. Anything but this retarded approach to
Replies: >>105910712
Anonymous
7/15/2025, 5:00:55 AM No.105910441
>>105905502 (OP)
He's a game dev, what did you expect? They can barely code nowadays and with AI tools it's only going to get worse.
Anonymous
7/15/2025, 5:18:28 AM No.105910549
>>105905502 (OP)
IP addresses should be checked with a trie for O(1) lookups.
Replies: >>105910572
Anonymous
7/15/2025, 5:21:03 AM No.105910572
>>105910549
Tries are O(log(N)) (in the size of the tree).
Replies: >>105910623
Anonymous
7/15/2025, 5:29:43 AM No.105910623
>>105910572
No they aren't. At every level of the tree, look at one bit of the address. Go left if the bit is 0 and right if the bit is 1. Every lookup does exactly 32 comparisons, which is a constant.

Real trie implementations will do more than one bit at a time, but it'll still be O(w), where w is a constant. For example, see the performance section here:
https://hackage-content.haskell.org/package/containers-0.8/docs/Data-IntMap-Strict.html
Replies: >>105910766
Anonymous
7/15/2025, 5:30:13 AM No.105910630
>>105906892
Give this woman the Turing Award
Replies: >>105917688
Anonymous
7/15/2025, 5:31:13 AM No.105910639
>>105910211
HE WAS OUT OF CODING MANA
FUCK OFF ALREADY
Anonymous
7/15/2025, 5:33:10 AM No.105910654
>>105906766
Didn't Undertale code look like that as well?
Nothing wrong with that.
Replies: >>105910714 >>105910726
Anonymous
7/15/2025, 5:41:06 AM No.105910712
>>105909515
>Like I said in my original post go read a book. All of them are going to tell you not to actually do this.
>>105910281
>>appeal to authority
>You retards really don't understand fallacies do you?
That is literally the textbook definition of an appeal to authority.
Replies: >>105910729
Anonymous
7/15/2025, 5:41:34 AM No.105910714
>>105910654
Toby fox isn't a programmer with 20 years of experience in game dev. We can excuse people who have no skills in an area to make mistakes. We can make fun on yandere dev for his shit code. But with pirate it isn't about making fun, it's about being utterly baffled how he can have credentials and make code that no year one Case student would be making.
Replies: >>105910787 >>105912328
Anonymous
7/15/2025, 5:42:43 AM No.105910726
>>105910654
tobyfox literally learned to program to make undertale and the end result was still a lightweight game. the faggot in OP claims to be a veteran but somehow manages to write worse code than yanderedev
Anonymous
7/15/2025, 5:43:16 AM No.105910729
>>105910712
You really need to learn what the fuck appear to authority is or just not call out fallacies. Because fallacy fallacy is a fallacy in itself.
Replies: >>105910745
Anonymous
7/15/2025, 5:44:57 AM No.105910745
>>105910729
No, that is precisely what it is. Saying "nuh uh" won't change that fact
Replies: >>105910792
Anonymous
7/15/2025, 5:49:10 AM No.105910766
>>105910623
That's constant in the sense that radix sort is linear. A well designed impl will do a comparison if there is only one branch in the tree, consequently being faster in general but getting slower as the number of entries increases.
Anonymous
7/15/2025, 5:50:23 AM No.105910780
His code is probably bad, but every criticism of him is also bad. This reminds me a lot of the yandere-dev discouse, with switch-lets spamming up every thread who missed the actual problems with the game.
Replies: >>105912328 >>105912456
Anonymous
7/15/2025, 5:51:27 AM No.105910787
>>105910714
He doesn't have any actual programming credentials. He's just lied about his acumen. He did QA and phishing email campaigns.
Anonymous
7/15/2025, 5:52:10 AM No.105910792
>>105910745
Let me explain to a ducking moron like you.
>Appeal to authority
Bob has written on this subject and you are wrong
This is a textbook, this is what definition means. You tell someone that your argument is invalid because bob is authority
>What I wrote
Go read bob, it will explain to you why things are wrong
No authority is being invoked, you are given a citation for how to acquire knowledge to understand the subject deeper.
Hope this helps you fucking moron.
Replies: >>105915687
Anonymous
7/15/2025, 5:52:41 AM No.105910796
else/if else/if
Anonymous
7/15/2025, 6:23:21 AM No.105911038
>>105906766
global.storyline.cafe.coffee_delivered = false;

was never an option? At least with this he could take advantage of intellisense and reduce his cognitive load. It's still not the best option but it's better that the shit he wrote.
Replies: >>105912516
Anonymous
7/15/2025, 6:34:05 AM No.105911101
>>105907923
The state of this fucking field
Replies: >>105912551
Anonymous
7/15/2025, 8:01:05 AM No.105911715
Did the fucker really have to use string comparison?
Anonymous
7/15/2025, 8:08:18 AM No.105911763
>>105905654
The absolute state. I am calling for total scriptfag death!
Anonymous
7/15/2025, 8:34:38 AM No.105911935
>>105906929
>old Exile games
Loved those games. Hated the shareware demon.

Hard to imagine his "story about" baby must be full grown now
Anonymous
7/15/2025, 9:15:07 AM No.105912259
>>105907326
>Literally read a book nigga.
Which ones?
Replies: >>105912699
Anonymous
7/15/2025, 9:15:21 AM No.105912261
How would you rewrite that?
Anonymous
7/15/2025, 9:23:07 AM No.105912328
>>105910714
Pirate is the first nepobaby in Blizzard by his own admission.
>>105910780
7 years in early access is a valid criticism deserving of mockery, exactly like yanderedev.
Replies: >>105912456
Anonymous
7/15/2025, 9:32:41 AM No.105912397
>>105905502 (OP)
Long story short, he's a nepo baby without a technical background that did non technical work his entire career at blizzard in various roles such as being a QA tester. He claims to be a hacker but the only verified activities he participated in were purely social engineering or group projects which do not prove he ever had to touch a line of code. He basically tries to yap his way into tricking retards at Blizzard into giving him their credentials. Those skills were pretty transferable onto the Internet micro e-celeb spheres where he frauded his way into becoming a reputable source of knowledge for juniors and kids still in school.
>faking a deep voice to sound more authoritative was funny but doubling down with the lie of a second puberty in your 30s when caught out was hysterical
This goes to show that you should only listen to people who've actually built stuff. Ideally you should see their code beforehand or see them competently write code live, something he never did btw.
The screenshots of his work might not even be his, but even if they are they show that he severely lacks the basic minimum knowledge required to work as a software engineer.
Anonymous
7/15/2025, 9:39:30 AM No.105912432
>>105905502 (OP)
Assuming he has excluded the 588,514,304 IPs from the private address space, this leaves only 3,706,452,992 IPs left to track so from a certain perspective it's pretty efficient
Anonymous
7/15/2025, 9:42:48 AM No.105912456
>>105910780
>>105912328
Yanderedev has pushed more updates in 6 months updates than his fraud did in years. He might be dogshit and retarded but he still tries. This guy can't code, can't hire a real dev and instead does fuck all with his "team". They got a fraction of the gameplay hours and looking at the code you can tell why. Things probably break every 5 minutes, adding a new level probably requires updating a dozen other files just to get it to work. Spaghetti code is somewhat understandable in old legacy code where retarded business requirements and product decisions over time fucked up the code base but even then we're pushed to clean up any file we touch. If you see 1000+ line classes with 500+ lines in a single method with no tests, go ahead and spend the day fixing that and adding code coverage. It's commendable but if you just want to add your 3 lines to get it over and done with, it's fine.
However if it's YOUR own game, your own personal project, something no one else really has a say in and without a fixed release date, you can't justify bad code, corner cutting or spaghetti nonsense. The screenshots I've seen aren't justifiable at all anyways, the sort of thing a child would write is far superior to whatever he tried.
Anonymous
7/15/2025, 9:52:33 AM No.105912508
>>105909576
the enum would be more for ensuring he actually gets the element he wants instead of fat-fingering 218 instead of 217.
Anonymous
7/15/2025, 9:54:46 AM No.105912516
>>105911038
If you do it that way, it makes it more difficult to serialize it to disk. Code like that tends to be used for save files and shit.
Depending on how the language chooses to do it, that could end up being a total disaster in terms of the amount of text serialized every time a save is triggered
Replies: >>105912535 >>105912602 >>105912682 >>105912720
Anonymous
7/15/2025, 9:56:26 AM No.105912527
>>105906929
if it doesn't make the computer explode its ok to write ugly stupid bricks of bullshit as long as its clear enough what they do
Anonymous
7/15/2025, 9:58:26 AM No.105912535
>>105912516
Oh, and if anyone is academically interested, the absolute worst save file I've seen in my life comes from the X series of games from Egosoft.
They just serialize all of the data structures directly into XML and save it to disk like that.
That means every single floating point number takes up it's full string representation, and there's tons of boiler plate for every object, and fully enumerated names everywhere
Anonymous
7/15/2025, 10:00:58 AM No.105912551
>>105907923
>>105911101
>>105908132
Big Oof notation is yikes.
First of all its asymptotic behavior,
second of all it is a function that maps from some relevant dimensionality like say the n in |R^n to algorithn complexity, most commonly not runtime.

That anon is correct in pointing out there is a finite number of IP addrsses. If that number n is not bigger than some N then the asymptotic behavior is not in effect so f(n) != O(g(n))
Replies: >>105912590
Anonymous
7/15/2025, 10:02:52 AM No.105912560
>>105906766
This, I watched that video by that brown faggot and it was maddening. Reminder that code numerophobia is a mental disease. No, not every number needs to be turned into a macro (that brown faggot even suggested turning every number into a variable before calling any function with them, lmao, and his retarded watchers were lapping it up).
Replies: >>105912691 >>105912691
Anonymous
7/15/2025, 10:03:16 AM No.105912564
>>105906766
20 years of game dev and this nigger doesn't know what a struct is
the absolute state (machine)
Replies: >>105912608 >>105912851
Anonymous
7/15/2025, 10:03:48 AM No.105912570
>>105906396
im bottom right
Anonymous
7/15/2025, 10:06:22 AM No.105912590
>>105912551
>That anon is correct in pointing out there is a finite number of IP addrsses. If that number n is not bigger than some N then the asymptotic behavior is not in effect so f(n) != O(g(n))
But that's still not what big-O measures. Yes it's a shit metric since x^2+1 is seen as slower than x+5*10^83, but it is what it is.
Replies: >>105912660
Anonymous
7/15/2025, 10:07:29 AM No.105912596
>>105909240
Nothing wrong with doing graphic operations on the CPU if it works well enough.
Replies: >>105912608
Anonymous
7/15/2025, 10:08:55 AM No.105912602
>>105912516
just write a serializer that loops over everything man
it takes 15 minutes.
Replies: >>105912609
Anonymous
7/15/2025, 10:09:29 AM No.105912605
grift() {
False = True
True = False
}
while False = True
do True
else
do False


This is how we used to do it at Blizzard and it was funny as fuck dude.
Anonymous
7/15/2025, 10:10:06 AM No.105912608
>>105912564
>the absolute state (machine)
giggled like a retard
>>105912596
>if it works well enough.
thats the issue, it doesn't
Anonymous
7/15/2025, 10:10:16 AM No.105912609
>>105912602
what, using reflection?
unless gamemaker is like python where it gives you access to __dict__ or javascript this is not a common thing to be able to do
Anonymous
7/15/2025, 10:11:07 AM No.105912612
START KILLING GAMES!!!
Anonymous
7/15/2025, 10:17:55 AM No.105912652
>storyline_array[M]
This is how a 12 year old coder thinks.

>"I'll just make each state a bitflag vector or a number, and put that in a big fixed length array/tuple! I save memory, and its O(1) efficient! And its like so easy to serialize, no le evil heckin pointers! I'll just save the entire array, bussin!"

Notice this anti-stopkillinggames corporate bootlocker doesn't even have a fucking enum indices to the array. This dumb nigga is literally using arr[18639] = 17 instead of arr[BILLY_THE_FARMER] = BILLY_ANGRY_WITH_PLAYER or whatever.

If he had opened a SINGLE book on topics like this he would know how terrible this abstraction is. to maintain this and make it testable you need an entire jeet farm.
Anonymous
7/15/2025, 10:19:14 AM No.105912660
>>105912590
You are retarded go read the definition
Replies: >>105912721
Anonymous
7/15/2025, 10:21:07 AM No.105912675
>>105906929
Most retarded post in the thread.
Anonymous
7/15/2025, 10:22:33 AM No.105912682
>>105912516
>It's hard
And? Just write a serialiser. If that's hard use ids.
Replies: >>105912720
Anonymous
7/15/2025, 10:24:37 AM No.105912691
>>105912560
yeah, that mystery meat guy couldn't add anything to the table because he has college, as in he can't think beyond what he read in some random books, usually written by nobodies who can't land a real job.
but this >>105912560 is just retarded.
that data should go to a .po and in the .po file you can have alternate story telling, translations, etc.
here's an example
https://raw.githubusercontent.com/CleverRaven/Cataclysm-DDA/refs/heads/master/lang/po/da.po
first msgid is here
https://github.com/CleverRaven/Cataclysm-DDA/blob/master/src/achievement.cpp#L354
see? it's easy, it's simple and it's maintainable.

supposedly this furryfag worked in the game industry for decades and all he can show as experience and skills is 1st year CS undergrad techniques.
He hasn't even read examples of what he's trying to build.
he is that incompetent.
Replies: >>105912700 >>105912723
Anonymous
7/15/2025, 10:25:45 AM No.105912699
>>105912259
Modern approach to (((language)))
Replies: >>105912861
Anonymous
7/15/2025, 10:25:48 AM No.105912700
>>105912691
>because he has college,
uhhh fuck.
...he has college level programming experience...
Anonymous
7/15/2025, 10:29:25 AM No.105912720
>>105912516
>>105912682
I decided to look up the docs for this language I'll never use and it seems like the right way to handle game state is to use the various struct functions that allow you to iterate and edit struct members

https://manual.gamemaker.io/monthly/en/GameMaker_Language/GML_Reference/Variable_Functions/Variable_Functions.htm#struct_functions
Anonymous
7/15/2025, 10:29:27 AM No.105912721
>>105912660
Give me the big-O for
>x^2
>x^3+x+52453455
>x+10^654
Go ahead, I bet you can't.
Replies: >>105912729
Anonymous
7/15/2025, 10:30:08 AM No.105912723
>>105907326
>This list is unwieldy, it's unchangeable monolith.
so is the plot of a video game

>>105912691
wait this retard works on CDDA? I love CDDA but it's one of the worst performing roguelikes I've ever seen in my life and doesn't even do any severely complicated processing. It's no dorf fort

besides, keeping text as "variables" for localization is not the same as being terrified of "magic numbers"
Anonymous
7/15/2025, 10:31:21 AM No.105912729
>>105912721
Do your own homework jeet
Anonymous
7/15/2025, 10:51:03 AM No.105912851
>>105912564
gamemaker got structs in 2020
Anonymous
7/15/2025, 10:52:23 AM No.105912861
>>105912699
What does that have to do w game programming
Replies: >>105913098
Anonymous
7/15/2025, 11:32:39 AM No.105913098
>>105912861
You change language for your preferred language you dumbfuck.
Replies: >>105913257
Anonymous
7/15/2025, 11:44:25 AM No.105913162
>>105905502 (OP)
If it works, it is
Anonymous
7/15/2025, 12:00:30 PM No.105913257
>>105913098
Really? I checked a few langs but none have any dedicated chapters on game programming.
Replies: >>105913623
Anonymous
7/15/2025, 12:10:19 PM No.105913332
Videogame code often ends up being some of the worst I’ve read. One time a dev on a project had a 10k line function for updating a player object. Never cleaned it up.
Makes it a bit weird reading all this obsessive critique about some game devs code. The real reality is you can have terrible code and still ship a reasonably successful project.
Replies: >>105913418
Anonymous
7/15/2025, 12:11:53 PM No.105913342
1729600753711787
1729600753711787
md5: 959c8ff016c6596cae252f664526665b🔍
>contrarian retards have such an urge to be contrarian they are now defending magic numbers ITT
I can't tell if it's just contrarianism or fucking jeet webshitters.
Replies: >>105913744
Anonymous
7/15/2025, 12:22:03 PM No.105913418
>>105913332
the problem is twofold
>every "game" "dev" thinks they're a """craftsman"""
>game code does so fucking little that you could do it in literally any way you want and performance is still acceptable because that 10k loc method to "update the player character" is only really doing a tiny bit of arithmetic

and to expand on the second point it's not even like it's a "the compiler will fix it" thing; if you're you're just doing 9+10 21,000 times that still takes a fraction of a second and the user will not notice nor care
Anonymous
7/15/2025, 12:54:45 PM No.105913623
>>105913257
>Video game programming is a subset of game development, is the software development of video games.
Now you understand that game programming isn't its own field but specialization of software development, knowing the basics of software engineering is expected from you.
Replies: >>105913669
Anonymous
7/15/2025, 12:57:38 PM No.105913641
>>105905725
Big O is completely useless once you actually finish your CS undergrad. Not a single person in real world industry measures in big O.
time.sleep(1000) is in O(1),brainlet
Replies: >>105913735
Anonymous
7/15/2025, 1:00:22 PM No.105913660
>>105908425
He got his job as blizzard because of his dad, not because he can do anything. Perfect nepo baby example.
Anonymous
7/15/2025, 1:01:32 PM No.105913669
>>105913623
You said to read an introductory book. Introductions normally don't handle subsets of only partially related subsets.
Replies: >>105913693
Anonymous
7/15/2025, 1:04:50 PM No.105913693
>>105913669
I'm saying that reading any book on computer engineering will teach you not to work like that. Not game programming, PROGRAMMING IN GENERAL
Replies: >>105913706
Anonymous
7/15/2025, 1:06:36 PM No.105913706
>>105913693
But the post you replied to initially was about the use in games.
Replies: >>105913732
Anonymous
7/15/2025, 1:10:34 PM No.105913732
>>105913706
Game use is different from general use how?
Replies: >>105913773
Anonymous
7/15/2025, 1:11:02 PM No.105913735
>>105913641
"real world industry" makes dogshit so I'm not sure how that's relevant
Anonymous
7/15/2025, 1:11:49 PM No.105913744
>>105913342
For me, it's not being a CS shitter who doesn't even know IEEE-754 by heart and being more of a mathfag. Once you take the "programming is just math n shiet" pill then one letter variables and constants make perfect sense, and all the mathlets with their 3 word variable names and their faggy macros for every single number can fuck off and die.
Replies: >>105914632
Anonymous
7/15/2025, 1:15:24 PM No.105913773
>>105913732
Well there's a reason it's a subset of an only partially connected field, isn't there?
Replies: >>105913822
Anonymous
7/15/2025, 1:23:03 PM No.105913822
>>105913773
And structural engineers are subset of engineers I guess they don't need to know physics.
How retarded are you, subset means all basics + more
Replies: >>105913849 >>105913855
Anonymous
7/15/2025, 1:28:41 PM No.105913849
>>105913822
big o notation is there to express how long something will take on a potentially infinitely large data set (or with a potentially infinitely long number of non-useful failures and subsequent retries)

if all your calculations are limited in scope (e.g. "I need to see if the player damaged the unit when they clicked the button") then it ceases to be a useful metric against actual calculation time in actual deployment
Anonymous
7/15/2025, 1:29:48 PM No.105913855
>>105913822
No, but they need to know special cases specific to their subset so if someone asks 'Are there special cases to this subset' you don't need to give an answer about the bigger set but something related to the subset or explain that there is no special case relating to the issue at hand.
A brain surgeon doesn't need to know how the digestive track works during a surgery in his field.
Replies: >>105913921
Anonymous
7/15/2025, 1:40:47 PM No.105913921
>>105913855
Yes, you need to know more than basics. This doesn't mean you can disregard basics.
Brainsurgeon most definitely knows basic surgical techniques.
Surgery anatomy and other shit I don't know about the field. Why do you expect software engineers that specialize in a field not know the basics?
Replies: >>105914504
Anonymous
7/15/2025, 2:48:30 PM No.105914368
coding nigger
coding nigger
md5: a4c4f015a5ca52664f1dc08519e095e5🔍
>>105905502 (OP)
nepopirate is a shit programmer, but some of the stuff is overblown.
the bulk of the game was initially created with game maker 1.4, which meant no structs or classes (but has enum), no boolean type (gml evaluates <= 0.5 as false, > as true) but it has true and false keyword macros. there are other limitations as well.
not really invested in the drama, but it revealed some programming fraudsters like coding jesus.
retard claims that raw values used as arguments like:
setColor(255,255,255);

are magic numbers.
Replies: >>105914594 >>105915064 >>105918539
Anonymous
7/15/2025, 3:05:50 PM No.105914504
>>105913921
>This doesn't mean you can disregard basics.
Special cases overwrite the basics in the case of special cases being applicable.
Replies: >>105914566
Anonymous
7/15/2025, 3:12:38 PM No.105914566
>>105914504
No you fucking retard. Nothing overwrites basics. Basics is how you understand what you are doing on a fundamental level. Something pirated or you understand. You are a prime example why you should go to college and why self thought programmers are a joke.
Replies: >>105914631
Anonymous
7/15/2025, 3:16:49 PM No.105914594
>>105914368
I looked it up, structs exist in 1.4 you can find threads about it on reddit from 10 years ago.
Maybe stop listening to a known liar and look shit up yourself?
Replies: >>105914712
Anonymous
7/15/2025, 3:18:49 PM No.105914610
cooked
Anonymous
7/15/2025, 3:20:50 PM No.105914631
>>105914566
>Nothing overwrites basics
Then there would be no special cases needed. Special cases by definition need to override the basics otherwise they would just be extensions. That's just cases, nothing special about them.
Replies: >>105914667
Anonymous
7/15/2025, 3:20:57 PM No.105914632
>>105913744
Dunning-Kruger on full display. You have never worked on serious software in your life.

Or you have, but unlike your boastful persona on 4chan you kept your autistic ideas to yourself and meekly adapted to the coding standards without complaining.
Replies: >>105915336
Anonymous
7/15/2025, 3:24:04 PM No.105914667
>>105914631
You are so fucking stupid it's unbelievable.
Can you give me an example of coding where you can disregard basics. I'll wait.
Replies: >>105914715
Anonymous
7/15/2025, 3:29:11 PM No.105914706
>>105906766
I almost thought this was bad then I realized each array item has its own value
seems more memory efficient than putting them all inside a nested dict under their respective category
Anonymous
7/15/2025, 3:29:50 PM No.105914712
1752585603122139
1752585603122139
md5: 25c5c8f4d6fa071dd40bfac2c2db9092🔍
>>105914594
i did look it up, you dumb fuck. there are no structs. only workarounds with enums, arrays, and gml's ds list.
>https://www.reddit.com/r/gamemaker/comments/726uhj/gms_14x_structures_can_i_create_structures/
Replies: >>105914750 >>105915002
Anonymous
7/15/2025, 3:30:22 PM No.105914715
>>105914667
Again, that's what special cases are for. I already gave you a clear example above in which following a special case (performing brain surgery) overrides the necessity for the basics (knowing how the digestive system works).
Replies: >>105914767
Anonymous
7/15/2025, 3:34:10 PM No.105914750
>>105914712
>Yes
>Has a link to this older thread
https://www.reddit.com/r/gamemaker/s/DWkiGZESQk
Replies: >>105914799
Anonymous
7/15/2025, 3:36:09 PM No.105914767
>>105914715
Give me an example in coding where I can disregard basics.
Tell me exactly when it's acceptable to abuse global variables.
Tell me exactly when it's acceptable to copy paste your code
Tell me exactly when it's acceptable to hard code values
You are a retard.
Replies: >>105914860 >>105915348
Anonymous
7/15/2025, 3:40:47 PM No.105914799
1752584350179856
1752584350179856
md5: 3ae65f8eb42f96d308f50b99805478fb🔍
>>105914750
nigger, do you even know how to read?
he put up a struct example in another language so the game maker people know what a struct looks like.
he literally says:
>In the context of making games, you can imagine something like this:
>you can imagine something like this:
>something like this
you are a legit, low iq retard.
Anonymous
7/15/2025, 3:47:46 PM No.105914860
>>105914767
>Give me an example in coding where I can disregard basics.
No, that's what you need to do for your argument.
Replies: >>105914954
Anonymous
7/15/2025, 3:51:22 PM No.105914890
>>105907326
> if you read a programming book it will tell you not to use flags to track story progress
I swear 90% of posters on this board are larpers, another 8 are bots. It's hilarious.
Replies: >>105914934 >>105914944 >>105915359
Anonymous
7/15/2025, 3:53:21 PM No.105914906
>>105906766
does gm not have hashtables or something
Anonymous
7/15/2025, 3:54:55 PM No.105914922
How many games have any of you shipped on Steam?
Anonymous
7/15/2025, 3:56:39 PM No.105914934
>>105914890
My bad, didn't see it was a list, not a map.
Anonymous
7/15/2025, 3:57:58 PM No.105914944
>>105914890
K&R The C programming language tells you to avoid magic numbers. What did you achieve here other than flagged yourself as a larper?.
Replies: >>105914959
Anonymous
7/15/2025, 3:59:01 PM No.105914954
>>105914860
My argument is that the pirate doesn't understand the basics of software development while cleaning to have 20 years of game dev experience.
Replies: >>105914976
Anonymous
7/15/2025, 3:59:20 PM No.105914959
>>105914944
read mf read
Replies: >>105914979
Anonymous
7/15/2025, 4:00:23 PM No.105914968
>>105905911
he was QA
Anonymous
7/15/2025, 4:01:07 PM No.105914976
>>105914954
Yeah that much is obvious but you replied to an anon asking if there is a usecase for writing it like that.
Replies: >>105914987
Anonymous
7/15/2025, 4:01:28 PM No.105914979
>>105914959
Started writing that before you made a correction nigga
Replies: >>105915023
Anonymous
7/15/2025, 4:02:51 PM No.105914987
>>105914976
No there isn't. If you have a simplest touring complete machine it would've been ducking wrong to write like this. There is no world where this is acceptable
Replies: >>105914994
Anonymous
7/15/2025, 4:03:01 PM No.105914990
>>105905888
>GML scripting
>compiler optimizations
Anonymous
7/15/2025, 4:03:14 PM No.105914994
>>105914987
Thanks that's all you had to say
Anonymous
7/15/2025, 4:04:06 PM No.105915002
>>105914712
NTA, but what a fucking niggerlicious language.
Using maps or lists as "workarounds" is insanely retarded and only a nocoder would ever use this slop.
Replies: >>105918369
Anonymous
7/15/2025, 4:07:07 PM No.105915023
>>105914979
tis fine :3 Yea, i dunno how you can do something like this without ever stopping to think "There's got to be a better way to do this"
Anonymous
7/15/2025, 4:13:23 PM No.105915064
>>105914368
>gml evaluates <= 0.5 as false, > as true
Excuse me? This has to be the stupidest lang ever. They dare to ask for subscription money for this shit?
Anonymous
7/15/2025, 4:18:38 PM No.105915096
are people actually defending this lying faggot?
Anonymous
7/15/2025, 4:41:05 PM No.105915261
>>105908037
i think it was ice-skate
Anonymous
7/15/2025, 4:52:40 PM No.105915336
>>105914632
Yes, the latter, except I do occasionally tell code reviewers at work to fuck off but somehow they don't listen. The worst are the ones in their late 20s who've only worked on one project and read a bunch of books, they're the most rigid insufferable cunts. Boomers are the chill ones who let me be.
Anonymous
7/15/2025, 4:54:43 PM No.105915348
>>105914767
>Tell me exactly when it's acceptable to hard code values
color definitions
Replies: >>105916400
Anonymous
7/15/2025, 4:55:45 PM No.105915359
>>105914890
this but unironically. why would you ever use flags? what is t his, 1977?>??
Replies: >>105915394
Anonymous
7/15/2025, 5:00:14 PM No.105915394
>>105915359
What's the alternative
Replies: >>105915423 >>105915431
Anonymous
7/15/2025, 5:04:06 PM No.105915423
READ NIGGA READ
READ NIGGA READ
md5: 19759dbe149a8d935005ee0b3234a366🔍
>>105915394
READ
A
FUCKING
BOOK
Replies: >>105915432
Anonymous
7/15/2025, 5:05:08 PM No.105915431
>>105915394
Switch is the most Performant
Replies: >>105915450
Anonymous
7/15/2025, 5:05:11 PM No.105915432
>>105915423
okay, clown, so you just said shit for the fun of it
Anonymous
7/15/2025, 5:08:04 PM No.105915443
I don't know who needs to hear this, but magic numbers and shitty function names don't matter in any capacity if you're working by yourself.

You shouldn't do it, because you shouldn't get into the habit of making unreadable garbage for your future self or future team members. But it really doesn't matter. Write in brainfuck if you want.
Replies: >>105915488 >>105918789
Anonymous
7/15/2025, 5:08:36 PM No.105915450
>>105915431
you don't mean an expression right
Anonymous
7/15/2025, 5:13:30 PM No.105915488
>>105915443
>don't matter in any capacity if you're working by yourself.
But he's the CEO of his shitty company that has employees
Replies: >>105915511
Anonymous
7/15/2025, 5:16:20 PM No.105915511
>>105915488
Based on a search, his employees are moderators and not software developers.
Replies: >>105915539
Anonymous
7/15/2025, 5:19:18 PM No.105915539
>>105915511
Well that makes him even more pathetic. Guess your point still stands then.
Anonymous
7/15/2025, 5:24:08 PM No.105915584
1743603292639008
1743603292639008
md5: 0f9a4fe2c6711d60467b458fa82e3ea2🔍
he's an active /pol/ browser, of course his code is going to be shit
Replies: >>105915980 >>105916166
Anonymous
7/15/2025, 5:31:36 PM No.105915655
>>105905502 (OP)
Must be a student of YandereDev
Replies: >>105916002
Anonymous
7/15/2025, 5:35:47 PM No.105915687
>>105910792
No, you said I was wrong because "books will tell you not to do this". That was the evidence that you provided for your claim, ie an appeal to authority. It's one of the most clear cut examples you will ever find.
Anonymous
7/15/2025, 5:39:32 PM No.105915714
>>105905888
now tell me which ip between 1.1. and 1.1.255.255 it's missing
Anonymous
7/15/2025, 5:45:01 PM No.105915755
imagine doing
if 1.1.1.[0...255]

when you can just do
>if 1.1.1
Anonymous
7/15/2025, 6:10:10 PM No.105915980
>>105915584
> things that never happened and a thread that thor probably created himself
this guy truly is a scumbag.
Anonymous
7/15/2025, 6:12:02 PM No.105916002
>>105915655
yanderedev had an excuse: he had never programmed anything in his life or used a game engine before. never once boasted about being le epic game dev. never thought i'd see the day someone would be worse than yanderedev and that day as finally arrived.
Replies: >>105916088
Anonymous
7/15/2025, 6:16:40 PM No.105916043
oh man so this guy got caught lying and now the internet is eating him alive
brutal
Anonymous
7/15/2025, 6:21:10 PM No.105916088
>>105916002
VVVVVVV (or however many Vs it is) is, admittedly by the game's author, one of the worst coded things he's ever seen now that he's been in the industry a while. it actually consists mostly of meme "just use a switch lol its more performant" anti-patterns and that guy had also made other things before making VVVVVVVVVVVVVVVVVVVVV
Replies: >>105916231 >>105916259
Anonymous
7/15/2025, 6:26:18 PM No.105916137
>>105909213
I am looking at the screenshot, pissnigger
Anonymous
7/15/2025, 6:29:29 PM No.105916166
>>105915584
>talks about the suicide being fake
>but nothing else in the 'popular tranny streamer suicide' pasta
What did he meme by this
Anonymous
7/15/2025, 6:36:06 PM No.105916231
>>105916088
wasn't it also just a """direct""" port from Flash AS2 by someone who didn't know how the fuck C++ worked
Replies: >>105916325
Anonymous
7/15/2025, 6:38:54 PM No.105916248
>>105906766
>overly commented fragments, that obviously were just him explaining something on screen to the audience
>a slightly more verbose booleans, to convey their intent and data types better
>"magic numbers", where it's stats of items or enemies and not actual constants
>implication that someone who published a game, and worked in the industry for years, doesn't know what a for loop is, and it isn't just to organize the id's with their descriptions
i was raging through the whole code jesus video, it's like duning kruger was a person.

the worst part, there's always a guy like that in every company.
Anonymous
7/15/2025, 6:40:56 PM No.105916259
>>105916088
funny thing is if you were to disassemble games produced over the last few decades you will find similar horror stories that went unnoticed or fucked with a game's performance so badly that it tanked in the market and was quickly forgotten about.
Replies: >>105916495 >>105916543
Anonymous
7/15/2025, 6:49:43 PM No.105916325
>>105916231
idk but i believe Baba Is You works that way
Anonymous
7/15/2025, 6:50:47 PM No.105916337
>>105905502 (OP)
>sans font in code editor
Anonymous
7/15/2025, 6:54:00 PM No.105916359
>>105905999
Replies: >>105916485
Anonymous
7/15/2025, 6:56:12 PM No.105916381
anyone have proof hes jewish? cause i have my suspicions
Anonymous
7/15/2025, 6:58:18 PM No.105916400
>>105915348
ah yes its much better to call actual vector3 numbers instead of "RAYWHITE"
Replies: >>105916495
Anonymous
7/15/2025, 7:06:10 PM No.105916479
totallyFineDontWorry
totallyFineDontWorry
md5: 1a4a7b61facea9f3f79da54d90f1a591🔍
aaaaah dead code / a placeholder

im going insane!
Anonymous
7/15/2025, 7:06:44 PM No.105916485
drm
drm
md5: 31cd4f88bd49a365be95480427b9496b🔍
>>105916359
op image is fake. it's a combination of >>105906766 and picrel, a.k.a. his hilarious anti-piracy "drm".
those hardcoded values in picrel are the values used by igggames when releasing cracked copies.
Replies: >>105916519
Anonymous
7/15/2025, 7:07:24 PM No.105916495
BowWow-Owl-Artwork
BowWow-Owl-Artwork
md5: 5e9dd9b0e58e18dbfafa6e54e0292b4d🔍
>>105916259
the zelda games infamously use flags in fucked up ways to control game progression/scene setup

they literally only stopped after Skyward Sword, in that you can do some shenanegains to put the game into a basically any plot/scene state you want by doing nonsense that results in you having control of link during attract mode (where the plot state and loaded scene are both turbo fucked up so they can do nicer camera pans with the weird mix of assets loaded). Twilight Princess has similar glitches. Wind Waker speedruns are built around it because the game is in one of a handful of major plot states and it very severely impacts map layouts and stuff, so going to places incompatible with the current state lets you get up to lots of goofy nonsense

ironically, OoT in all its fucked up glitchiness that's been found, doesn't use plot flags for very much other than saying "ok dont play this cutscene a second time"(and even then a lot of cutscene triggers ask about your inventory rather than the game/plot state) so there's not much you can do with them. i think the only current application is the flag for "player got caught by a gerudo once" gets cleared and recycled for something in the ganon tower collapse, i forget what but it does something very minor that ended up being important to a meme category like No Doors or something. most of the other "where are you in the plot" flags only influence stuff like weather effects

>>105916400
metroid prime did it. the color every boss flashes when hit is a base color modified just a teensy bit until the art team found it perfect, and some had to be changed in development as boss environments were changed slightly (lighting, fog, whatever; not technical changes just final art pass stuff)
Replies: >>105916537
Anonymous
7/15/2025, 7:09:10 PM No.105916519
>>105916485
i won't doubt that he thought this would actually work but game devs have specifically targeted certain warez groups with special effects before
Anonymous
7/15/2025, 7:10:00 PM No.105916526
>>105905817
>This is a conditional chain though so they will all be evaluated in sequence.
The number of evaluations doesn't change.
If you always make 1 function call or always make 10,000,000 functions calls, both are O(1). Big O is about the relationship between input size and operational complexity (eg, for every element in a list, are we checking against every other element in the same list? That's O(n^2)).
It's not even really defined here, since I don't think the size is variable in the first place.
Anonymous
7/15/2025, 7:11:58 PM No.105916537
>>105916495
you missed the point you define your color vector
idiotfcolor=r,g,b,a
drawidiot(idiotcolor)
your asying its great to juist use drawidiot(r,g,b,a) everywhere
Replies: >>105916782
Anonymous
7/15/2025, 7:12:27 PM No.105916543
>>105916259
don't google the valve leaks
Replies: >>105916637
Anonymous
7/15/2025, 7:21:28 PM No.105916637
>>105916543
What about the nintendo leaks? They seemed pretty uneventful when it comes to their comments
Replies: >>105916766
Anonymous
7/15/2025, 7:28:34 PM No.105916720
Execs and Elon look at this and go "wow, Indians can write this much code for 100 times less money, WOW GIVE ME A MILLION"
Anonymous
7/15/2025, 7:33:08 PM No.105916753
1725384642564143
1725384642564143
md5: 3fcfa013a7cb6b994da4e447399ef555🔍
>>105905888
>the compiler will change the program architecture from sequential if statements to a static array, an arbitrary function call on said array with the input and a different if statement
The absolute state of this board.
Replies: >>105916800
Anonymous
7/15/2025, 7:34:15 PM No.105916766
>>105916637
they were a boon to collectors/documenters but yeah nothing really inherently funny
Anonymous
7/15/2025, 7:35:54 PM No.105916782
>>105916537
>your asying its great to juist use drawidiot(r,g,b,a) everywhere
metroid prime did it, just more like

idiotfcolor=255,0,0,100
drawidiot(idiotcolor+(-12,4,6,-50)) //this dude is in a bright as hell area near some trees with blue flowers
Anonymous
7/15/2025, 7:37:01 PM No.105916800
>>105916753
binary search looks like this:
if (address < "1.1.1.128"){
if(address < "1.1.1.64"){
...
}else{ // 64 <= address < 128
...
}
}else{
...
}
c compilers do this optimization all the time.
Replies: >>105916862
Anonymous
7/15/2025, 7:37:56 PM No.105916810
shoutout to all my seething schizo /g/ niggas that hated Mald before it was cool. Your autistic archiving of this furry's past was just ahead of the times
Replies: >>105916972
Anonymous
7/15/2025, 7:41:44 PM No.105916848
>>105908277
Paraphrasing each line of code is not "documenting code".
Explaining that an 'if' statement is checking if something is true or not doesn't qualify as "good practice".
Code documentation should be limited to general project documentation, class and function documentation (parameters, return and general description), with the exception of exotic instruction blocks that are not so obvious to understand.

Ideally code should be fully understandable by itself. If it's not, maybe your coding convention is shit or incoherent. If the coding convention is good, maybe you just don't have the knowledge to read code, and you have no business reading it.
Replies: >>105917225
Anonymous
7/15/2025, 7:43:33 PM No.105916862
1664812204594579
1664812204594579
md5: 767f6ac63cbcc236763c8372955494e7🔍
>>105916800
Anonymous
7/15/2025, 7:44:27 PM No.105916868
>>105906209
um. acshually the size of the input is not constant. String compare is O(n) which will always make longer input strings take longer

here you go. I le optimized it to actually O(1)
int is_hacker(char* _ip, int n) {
char ip[16];
memset(ip, ' ', sizeof(ip));
strncpy(ip, _ip, n);

if (strcmp(ip, "1.1.1.1 ", 15) == 0) {
return 0; // not a hacker
} if (strcmp(ip, "1.1.1.2 ", 15) == 0) {
return 0; // not a hacker
} if (strcmp(ip, "1.1.1.3 ", 15) == 0) {
return 0; // not a hacker
} if (strcmp(ip, "1.1.1.4 ", 15) == 0) {
return 0; // not a hacker
} if (strcmp(ip, "1.1.1.5 ", 15) == 0) {
return 0; // not a hacker
} if (strcmp(ip, "1.1.1.6 ", 15) == 0) {
return 0; // not a hacker
} if (strcmp(ip, "1.1.1.7 ", 15) == 0) {
return 0; // not a hacker
} ...
}

but actually 15 byte string IPs will take the longest if you count like this so maybe it's still O(n) technically. I think you'd have to shuffle all the IPs randomly for it to not be O(n). funnily enough doing it in reverse will generate the first ever O(1/n) that I've ever encountered
Replies: >>105916961 >>105916971 >>105916977 >>105917331 >>105917350 >>105918724
Anonymous
7/15/2025, 7:45:13 PM No.105916874
>>105907211
what does this mean
magic numbers is an industry standard term for decades and decades and decades (also how long i'll rape you)
Replies: >>105917250
Anonymous
7/15/2025, 7:55:01 PM No.105916961
>>105916868
your parents should consider post-birth abortion if you mean this seriously
Anonymous
7/15/2025, 7:56:00 PM No.105916971
>>105916868
peak /g/
Anonymous
7/15/2025, 7:56:07 PM No.105916972
1730945911560494
1730945911560494
md5: 85d092d71c68c9ffc4864504a842ae21🔍
>>105916810
I mean if you really want to give credit where credit is due, /b/s "Patriotic Nigras" SL trolling group archived and doxed his retarded ass all the way back in 2007.
Which also means that 4chan has been laughing at this retard for nearly two decades now.
Anonymous
7/15/2025, 7:56:53 PM No.105916977
apu
apu
md5: 0db60e1fd8a8130dd1c616d201c0abaa🔍
>>105916868
cniles are so fucking stupid it's unreal
Anonymous
7/15/2025, 7:58:04 PM No.105916982
>>105906276
>the only post in the entire thread that actually understands why the OP code is bad
>it's some furfaggot
every time
Replies: >>105917093
Anonymous
7/15/2025, 8:11:06 PM No.105917093
>>105916982
yeah furries do often take obvious jokes/memes incredibly seriously
Anonymous
7/15/2025, 8:25:24 PM No.105917225
>>105916848
Did you even look at the screenshot?
Replies: >>105917302
Anonymous
7/15/2025, 8:26:08 PM No.105917233
>>105905725
>>105905791
>>105906209
speaking of big O, see
>>105917203
Anonymous
7/15/2025, 8:27:37 PM No.105917249
>>105908277
Comments literally make a codebase less maintainable.
Anonymous
7/15/2025, 8:27:42 PM No.105917250
>>105916874
Calling every number literal a magic number is a redditism because it's an easy generic rule for nocoders to pick up on (number = bad) and reddit likes shaming people. I wager you learned it in a reddit post, a blog, or a video essay and have never worked in the "industry"
Replies: >>105917515
Anonymous
7/15/2025, 8:32:00 PM No.105917302
>>105917225
Unfortunately yes.
Replies: >>105917315
Anonymous
7/15/2025, 8:33:59 PM No.105917315
>>105917302
This one? >>105906766
Replies: >>105917336
Anonymous
7/15/2025, 8:34:48 PM No.105917325
>>105906766
Why so many fucking comments? Can't teh code just be self-documenting?
Replies: >>105917332
Anonymous
7/15/2025, 8:35:28 PM No.105917331
>>105916868
>um. acshually the size of the input is not constant.
in this case it is because ips have a maximum size
Anonymous
7/15/2025, 8:35:37 PM No.105917332
>>105917325
kek
Anonymous
7/15/2025, 8:36:13 PM No.105917336
>>105917315
Yes, this should be put in a different file. Not disproving my point.
And I was mostly replying to >>105908277
Replies: >>105917359 >>105917902
Anonymous
7/15/2025, 8:36:59 PM No.105917350
>>105916868
>acshually the size of the input is not constant.
Yes anon, IP addresses scale infinitely and converting them from integers representing a bitmask into strings is faster than anything else. You should work for CISCO
Replies: >>105917366 >>105917367
Anonymous
7/15/2025, 8:38:00 PM No.105917359
>>105917336
>Yes, this should be put in a different file.
why?
Anonymous
7/15/2025, 8:39:12 PM No.105917366
>>105917350
>Yes anon, IP addresses scale infinitely
They do though. Do you know how many devices there are in India alone? Each one has its own IP. How do you think they get on the internet?
Anonymous
7/15/2025, 8:39:17 PM No.105917367
>>105917350
"1.1.1.1" is a shorter string that "111.111.111.111"
where's my 300k yearly salary for being a math major?
Replies: >>105917381 >>105917397
Anonymous
7/15/2025, 8:40:26 PM No.105917381
>>105917367
Size is O(1) in either case.
Replies: >>105917588
Anonymous
7/15/2025, 8:41:47 PM No.105917397
>>105917367
the IP 1.1.1.1 is not the string "1.1.1.1." it's the binary number 00000001000000010000000100000001 (or integer 16843009)

people like you are why every piece of technology today is a massive pile of hot garbage
Replies: >>105917588
Anonymous
7/15/2025, 8:43:51 PM No.105917422
>>105906766
WHY is he cooooding like he's making a video game for an NES cart and only has so many individual bits on a specific chip to work with?

Can't Joe just be an object with his own flags?
Replies: >>105917448
Anonymous
7/15/2025, 8:46:32 PM No.105917448
>>105917422
>objects
real life is not powershell you fucking cuck
Anonymous
7/15/2025, 8:53:38 PM No.105917515
>>105917250
never used reddit, been a software engineer for 30 years. yes obviously not every number in your program is a magic number.
Replies: >>105917562
Anonymous
7/15/2025, 8:57:55 PM No.105917562
1717643054919533
1717643054919533
md5: 528445f24517fce1b00706b7e7331b01🔍
>>105917515
>obviously not every number in your program is a magic number
thats wrong though
magic numbers are bad
use an enum
Replies: >>105917581
Anonymous
7/15/2025, 8:59:58 PM No.105917581
>>105917562
there is a reason you said
>magic numbers are bad
and not
>numbers are bad
it is because you too recognize that not every number is a magic number
Anonymous
7/15/2025, 9:00:24 PM No.105917588
>>105917381
we weren't talking about size

>>105917397
that wasn't the discussion. The discussion wasn't about whether if if (ip == '1.1.1.1') { is good code or not. it's obviously not and if you needed a mapping for every single ip the obvious answer is a trie
the discussion was whether OP was O(n) or O(1). It's technically O(n) because the input is a string, has variable length, and string compare is O(n) on its length. My post is technically O(1) since it uses a fixed size string
cope some more humorless faggot
Replies: >>105917689 >>105918674
Anonymous
7/15/2025, 9:08:11 PM No.105917688
>>105910630
ywnbaw
Replies: >>105918029
Anonymous
7/15/2025, 9:08:15 PM No.105917689
>>105917588
so you made it "technically" O(1) by making it slower, even though big O notation doesn't matter here because the string has a fixed (and EXTREMELY low) size, and call that better code

good job i guess, you answered a question no one asked with something that made everyone involved's lives worse
Replies: >>105917852 >>105918887 >>105918926
Anonymous
7/15/2025, 9:10:20 PM No.105917717
>>105905502 (OP)
You retards will believe anything if it has a picture of Pirate Software's face on it would you
Anonymous
7/15/2025, 9:10:29 PM No.105917718
Does AI code better than the average /g/entooman?

https://ohara.ai/
Anonymous
7/15/2025, 9:22:41 PM No.105917852
>>105917689
the size of the input string is not fixed. It has an upper limit and a lower limit. upper limit is 15 bytes and lower limit is 7 bytes
Replies: >>105917890
Anonymous
7/15/2025, 9:26:53 PM No.105917890
>>105917852
ranges are fixed

O-whatever on a database lookup matters when you have an abirtrary number of records

if you know you will never have more than 100, the actual measurable processing time matters more than how much it grows in complexity with number of records

your post is a perfect example. an O(1) solution doesnt magically make it faster, and in fact the easiest one to find made it worse than the O(n) equivalent because the actual operations being done are now slower
Replies: >>105917926 >>105918059
Anonymous
7/15/2025, 9:28:04 PM No.105917902
>>105917336
Check what >>105908277 was replying to.
Anonymous
7/15/2025, 9:30:15 PM No.105917926
>>105917890
all inputs for all algorithms are fixed size cause there's only so much memory on the system
Replies: >>105918294
Anonymous
7/15/2025, 9:40:56 PM No.105918029
>>105917688
Thank you
Anonymous
7/15/2025, 9:44:04 PM No.105918059
>>105917890
> erm. actually this code is O(1) size cause u32 has a fixed range of 0-4,294,967,295
void do_something(u32 size) {
void *ptr = malloc(size)
// ...
free(ptr)
}
Replies: >>105918294
Anonymous
7/15/2025, 10:08:51 PM No.105918294
>>105917926
just download more ram dude

>>105918059
>ip addresses expressed as strings can be zero length
Replies: >>105918447
Anonymous
7/15/2025, 10:13:54 PM No.105918346
>ip addresses are strings
bless your heart. never change, /g/
Anonymous
7/15/2025, 10:16:13 PM No.105918369
>>105915002
>only a nocoder would ever use this slop.
that is LITERALLY the target market for gamemaker. not having proper programming in it is bad but if anyone is a proper programmer they wouldnt be using gamemaker, they'd use some jap sdl library or some shit
Anonymous
7/15/2025, 10:22:47 PM No.105918447
>>105918294
>>ip addresses expressed as strings can be zero length
what does this have to do with anything
what are you even implying
Replies: >>105918547
Anonymous
7/15/2025, 10:29:00 PM No.105918539
>>105914368
i watched one of that guy's videos and the literal first thing he was complaining about was how the function calls (not the function prototypes, the CALLS) didn' have comments or something.
LMAO
immediately disregarded anything he said after. those types are literally doing the same thing they complain this pirate guy is doing (taking advantage of nocoders and retards who have no idea what he's talking about)
Anonymous
7/15/2025, 10:29:36 PM No.105918547
>>105918447
if an input is inherently limited then its O-whatever meme rating is irrelevant because the practical difference between being O(1) and O(n) is probably smaller than how long the takes to execute on the largest possible input

also you're a retarded cargo cultist for thinking that being O(whatever) is the only metric of how fast or slow code is, let alone general quality
Replies: >>105918607
Anonymous
7/15/2025, 10:35:23 PM No.105918607
>>105918547
>moving the goalposts
I accept your concession
Replies: >>105918651
Anonymous
7/15/2025, 10:39:52 PM No.105918651
>>105918607
bro you literally think IPs are strings.
Replies: >>105918674
Anonymous
7/15/2025, 10:41:38 PM No.105918674
>>105918651
you're simply too retarded to understand the discussion. see >>105917588
Replies: >>105918744
Anonymous
7/15/2025, 10:46:00 PM No.105918724
>>105916868
So from what I gather this was mostly a joke and autists are taking it literally? Sasuga /g/
Replies: >>105918887
Anonymous
7/15/2025, 10:47:39 PM No.105918744
>>105918674
see who you were replying to in the first place >>105906209
>Big O is not applicable here because the size of the input is constant
"constant" can refer to a range. big o is for stuff where it is truly arbitrary, i.e. can be infinitely large

if he was doing the same to process hostnames, then big o would matter because a hostname can be infinitely long (in theory; there's probably some ietf document saying otherwise but let's assume it's some wild west internal network with all bespoke software) an ip address has a maximum length and a fairly short one at that
Replies: >>105918777
Anonymous
7/15/2025, 10:50:31 PM No.105918777
>>105918744
wow this is the most dogshit take ever
> every single algorithm ever designed is O(1) cause the range is 0 to max ram on your machine
Replies: >>105918875
Anonymous
7/15/2025, 10:50:58 PM No.105918789
>>105915443
they absolutely matter. you aren't going to come back in a years time and look at your codebase and remember everything dumbass
Anonymous
7/15/2025, 10:59:47 PM No.105918875
>>105918777
what is bigint
what are files
Anonymous
7/15/2025, 11:00:21 PM No.105918884
this thread is fucking embarrassing

the ferret fucker is an embarrassment but most of you appear to be on the same level as not being as smart as you think you are as him
Anonymous
7/15/2025, 11:00:26 PM No.105918887
>>105918724
it's less of a joke and more of a shitpost. a solution that is technically correct and is technically O(1) but devoid of any sort of usefulness and in fact worse in so many ways that it truly does make the lives of everyone in the thread worse as a result like this guy said >>105917689
Replies: >>105918909
Anonymous
7/15/2025, 11:01:58 PM No.105918909
>>105918887
bbbut Big O is the only metric that matters! It's O(1) that means it's faster!!!!!!
Replies: >>105918916 >>105918930
Anonymous
7/15/2025, 11:02:38 PM No.105918916
>>105918909
I don't think anyone in this thread said that
Anonymous
7/15/2025, 11:03:37 PM No.105918926
software industry
software industry
md5: 4558c139bc187868b2f903c5b1d8353e🔍
>>105917689
>devoid of any sort of usefulness and in fact worse in so many ways that it truly does make the lives of everyone in the thread worse as a result
all tech is like this and has been since like 2010, maybe a bit before
Anonymous
7/15/2025, 11:03:51 PM No.105918930
>>105918909
the only metric that matters is how maintainable it is divided by time to market
Replies: >>105918945
Anonymous
7/15/2025, 11:04:55 PM No.105918945
>>105918930
the only metric that matters is how much money it makes once it hits market
Replies: >>105918957
Anonymous
7/15/2025, 11:06:12 PM No.105918957
>>105918945
profitability matters more than revenue
Replies: >>105918994
Anonymous
7/15/2025, 11:09:55 PM No.105918994
>>105918957
when your software is developed nearly for free and your few costs are reimbursed by the gubberment for importing "refugees", or you merely monetize the development cycle by streaming most of it, almost all revenue is profit
Replies: >>105919016
Anonymous
7/15/2025, 11:11:13 PM No.105919016
>>105918994
not if you have to spend a fuckton training gupta and rajesh to maintain your unreadable magic numbers
Replies: >>105919053 >>105919064
Anonymous
7/15/2025, 11:15:25 PM No.105919053
>>105919016
gupta and rajesh CREATE the magic numbers from whole cloth, bless their hearts
Anonymous
7/15/2025, 11:16:34 PM No.105919064
>>105919016
>IP addresses hard-assigned forever to the largest megacorps on the planet and the largest NATO member states are magic numbers
Anonymous
7/15/2025, 11:47:15 PM No.105919395
>>105906892
Based and Wildberger pilled
Anonymous
7/15/2025, 11:58:47 PM No.105919489
Toby fox literally programmed undertales dialogue boxes in a similar way to this but no one pretends to care because people like him, theres a lesson there
Replies: >>105919537
Anonymous
7/16/2025, 12:03:58 AM No.105919537
>>105919489
Toby Fox is also an oldschool Earthbound romhacker so he has an excuse to code like shit (earthbound is coded like shit, now imagine janky romhacking tools on top of that being your introduction to computer """science""")
Anonymous
7/16/2025, 12:28:20 AM No.105919776
>1 million view video
>Retards compare software vs hardware rendering without mentioning it
These niggers are exposing themselves as being almost as retarded as Maldavius