- Joined
- Jan 8, 2025
Code sperg but what retard in the Gamemaker dev team decided that "<= 0.5" being falsey was good language design? Are they retarded? Did Maldavius Figtree social engineer his way onto the Gamemaker dev team???
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Code sperg but what retard in the Gamemaker dev team decided that "<= 0.5" being falsey was good language design? Are they retarded? Did Maldavius Figtree social engineer his way onto the Gamemaker dev team???
binary is just a representation of numbers. Same with hex (which is what you'd actually use at that low level)Which is why I said it's required for any input or output of values other than binary. 2 + 2 is impossible without data types, you'd have to type 10 <whatever the ISA op code for addition is> 10. And don't even think of typing characters.
I can easily see a reason for that being that comparing reals with just == 0 wouldn't work, as you can easily have very small leftover from floating point imprecision. And so, where to set a good breakpoint for when it becomes truthy? 0.5 seems like a decent enough point to set it as, as you can then just round the number.Code sperg but what retard in the Gamemaker dev team decided that "<= 0.5" being falsey was good language design? Are they retarded? Did Maldavius Figtree social engineer his way onto the Gamemaker dev team???
can someone explain the difference in self explaining code and commented code in a way a small autistic child could understand? I want to understand but this is like....I don't want to say 100% out of my depth, but at the edges of my understanding."self explaining code is dogshit practice"
Self-documenting code:can someone explain the difference in self explaining code and commented code in a way a small autistic child could understand? I want to understand but this is like....I don't want to say 100% out of my depth, but at the edges of my understanding.
if(is_mald_gay) {
printf("What a fag");
} else {
printf("Here, let me fix that for you");
is_mald_gay = true;
}
if(global_array[3991] == 82) {
function_1113(arg_decrypt("a8udfaosofjoasd", 881));
} else {
global_array[3991] = 82;
function_1113(arg_decrypt("8ausdfas9df8a", 666));
}
oooooh....so its like, a function is called "bleeding state" and then any time it shows in code again, literally anywhere, it says "bleeding state failed to inflict : invalid target"? rather than "function1234 crashed"????Maldavius Figtree code:
Can we normalize beating people who do this whole "I'm going to give my take on a COMPLEX issue and NOT bother to do basic research"?Update:
they are good questions. self explaining code isnt the whole deal of course, sometimes for more complex functions and those with less context you still would use comments (so someone without the context can follow what's happening). a dev should also document their codesorry if these seem stupid questions, most I've ever done was TINY code edits.
Comments rot very fast. If you ensure that you have proper function, params, variable, type names it should be reasonably easy to understand what's going on.can someone explain the difference in self explaining code and commented code in a way a small autistic child could understand? I want to understand but this is like....I don't want to say 100% out of my depth, but at the edges of my understanding.
Optional<Error> doSomeShit(User user)
{
if (not isAuthorized(user)
{
return Error("unauthorized");
}
// DO SHIT HERE
}
void doSomeShit(int user)
{
authorization_true = global.user_info[user][1];
if(authorization_true == 0)
{
return;
}
// DO SHIT HERE
}
// Takes authorization info from user entry in user_info array.
authorization_true = global.user_info[user][1];
The idea is that you should be able to understand what the code does at a glance, with as little comments as possible. Provided you know the language and the general context.oooooh....so its like, a function is called "bleeding state" and then any time it shows in code again, literally anywhere, it says "bleeding state failed to inflict : invalid target"? rather than "function1234 crashed"????
if(mald_is_gay) {...}
means, but when you have a if(array[8382]) {...}
you either need to add a comment (which is a waste of space, and adds additional maintenance cost, because now have to keep code and comments in sync when you want to modify something), or worse, start searching WTF array[8382]
even is in case there are no comments.He's clearly using GameMaker/GML because it's a beginner's tool (and Undertale of course). It's a very verbose language to the point where functions literally explain themselves akin to JavaScript. Which is fine, JS/GML are beginner languages, verbosity is good, but that means comments aren't necessary or even really supposed to be used. If we were using C(++) or some other low-level language, then sure, I wouldn't know what the fuck "0c >> 5a" means without comments.self explaining code isnt the whole deal of course, sometimes for more complex functions and those with less context you still would use comments
"Window_set_size()" - "Script_execute()" - "Draw_sprite()" "Object_get_name()" "Instance_destroy()"
new String("What am I supposed to do for you?").startsWith("What").endsWith("you?").includes("supposed").match(/to do/g);
Working on something all night doesn't mean you got any progress done. I've worked on singular functions for hours on end during the night, I'm sure all he did was add dialogue into his massive fucking array with comments and called it a day.
Please explain why you failed at using a grid, please explain why you have the most atrocious button ever made in existence, please explain why you have separator classes yet still use br's, please explain why you apparently don't give a flying fuck about mobile users despite your audience being thumb-sucking phone-faggots, please explain as to why you don't use multiple pages, please explain what "p" tags are (you don't know), please explain why all of these problems are present on your fucking homepage about coding.
He uses it for padding, not new line. New line would imply he's using a paragraph element, WHICH HE NEVER FUCKING USES. He doesn't even know what he's mocking."I loving using <br> for new line", but isn't that really what <br> is for? I don't know how that's a mocking
I have no idea how to code, but why wouldn't you use the easier languages? Is it like a power user thing where you can get more done with C or something?Which is fine, JS/GML are beginner languages,
You can get into lower-level systems. JavaScript is a high-level language, you don't need it to talk specific bits of RAM, it handles it for you, but this comes at the cost of performance and control.Is it like a power user thing where you can get more done with C or something?
This might not be the place for it, but all this shit about PirateSoftware made me actually wanna take up coding myself. Not for game development or anything, but just as a skill or something. Are there websites or anything where someone with fuck all experience can learn coding? A part of me wants to understand it, if only to code something better than that fucking prick Thor.He's clearly using GameMaker/GML because it's a beginner's tool (and Undertale of course). It's a very verbose language to the point where functions literally explain themselves akin to JavaScript. Which is fine, JS/GML are beginner languages, verbosity is good, but that means comments aren't necessary or even really supposed to be used. If we were using C(++) or some other low-level language, then sure, I wouldn't know what the fuck "0c >> 5a" means without comments.
Example GML functions:
AppleScript:"Window_set_size()" - "Script_execute()" - "Draw_sprite()" "Object_get_name()" "Instance_destroy()"
Example JS functions:
JavaScript:new String("What am I supposed to do for you?").startsWith("What").endsWith("you?").includes("supposed").match(/to do/g);
I know this might be the most retarded advice I can give but get into web development. Easy to get into, and if you're ever like "I want to get into games actually", there are 2D and 3D engines made for video game web development. The fact that it is in a browser then also allows you to distribute it to everyone with a phone or computer. When you do get into more than just static webpages and use JavaScript, you actually learn a language that's used in the world instead of being stuck with something like GML. Following any tutorial on the web makes you a better website developer than Mald so no need to worry about specifics.This might not be the place for it, but all this shit about PirateSoftware made me actually wanna take up coding myself. Not for game development or anything, but just as a skill or something. Are there websites or anything where someone with fuck all experience can learn coding? A part of me wants to understand it, if only to code something better than that fucking prick Thor.
khan academy and coursera have good courses for someone who knows nothing. after you get your feet wet and get started on it, try and code a solution that would automate something you do day by day. usual suspects are a weather or fitness appAre there websites or anything where someone with fuck all experience can learn coding?
web development is great. programming is this massive field, no specific area sucks so long as youre having a good time and/or making money off itI know this might be the most retarded advice I can give but get into web development.
Not for game development or anything, but just as a skill or something.
Web development, for all the memes, is a pretty good way to start learning about code. Since javascript is a very lax language and web development has been optimized in terms of creating an easy and fast testing enviroment that works anywhere, you don't need to know a lot to get an app working, just a core idea.I know this might be the most retarded advice I can give but get into web development.
You literally can, though. Data types are an abstraction at the programming language level, in assembly you only have signedness and widths (halfword, word, etc.)Without data types you cannot type those characters, assemble it into an object file, and link the .o into an executable. They are the translation layer between the letters and numbers we as humans use and the binary the computer uses.
add $a0, $a0, 5
ooooooss sssttttt iiiiiiii iiiiiiii
100000ss sssttttt iiiiiiii iiiiiiii
$a0
is register 4):10000000 11000110 iiiiiiii iiiiiiii
10000000 11000110 00000000 00000111
0x80c60005
lh $a0, (address)
add $a0, $a0, 5
sh $a0, (address)
lb
, lbu
, lh
, lhu
or lw
, which differ in the width of the value they load and whether they're treated as a signed or an unsigned number. Nobody gives a fuck whether it's an enum or an integer. More or less the only part that's relevant is the size of the variable.0x80c60005
anywhere in memory (maybe aligned to 4 bytes), set the instruction pointer to it, and it'll increment $a0
by 5. (To be fair, I'm ignoring whether it needs to be little- or big endian, both within the instructions and whether the final encoded instruction needs to be LE or BE.)BUTTGNOMEAAAAAAAAAAAAAAAAAAAAAAAAAAAAA[assembled payload bytes]
. The data type is a string, and yet, you ensure it gets interpreted as code (via some additional finangling, for example by overwriting the saved return address with the address your payload code ends up being loaded at. If I wrote that out the post would be twice as long at least.)Lower-level languages are usually also a pain in the ass to actually read, in my opinion.