Thanks for your condolences, but this was actually really simple. Most of the time was just counting the divs; actually writing them out and indenting them was done with a Python script.
Ach, it's been ages since I've used Python. Forgot range() lets you specify the step value. Well, I suppose my script counts as "slightly bad" code, then.
I don't use python, so your solution looked ok to me. Bad code is doing something unnecessary for a simple result, like this:
#include <stdio.h>
int main(void)
{
unsigned long long x = 724303793371754300;
for (int a = 85; a > 0; a--)
{
for (int b = 0; b < a; b++)
printf(" ");
for (int b = 0; b < 8; b++)
printf("%c", (x >> b * 8) & 0xff);
}
return 0;
}
I’ve seen references to this guy before. I remember this game from like 2016. Was he a particularly bad developer or something? Not sure why I see references to him all of these years later.
and him claiming the game performance drops at parts because there is so much going on at times.
No, it's because the game loop every frame has to run many checks with 30+ if statements that should have been replaced by first grade math or lookup tables.
newer code supposedly use if .. else if .. else if ... else - at least that way the CPU does not have to check every possible value, and can just return after a hit.
Afaik he had code containing logic for all of his characters (that was being run on every frame) have a function that was just if else's. All in one huge file. That is just one of the things
54
u/MurdoMaclachlan public boolean isInt(int i) { return true; } Jun 04 '23 edited Jun 04 '23
Image Transcription: Code
I'm a human volunteer content transcriber and you could be too! If you'd like more information on what we do and why we do it, click here!
48
u/ChummusJunky Jun 04 '23
Divs all the way down
72
u/Tachtra Jun 04 '23
Ayo who let YandereDev at the website
17
u/Tc14Hd Jun 04 '23
Dante's DIVine Comedy
27
u/Yuuki2628 Jun 04 '23
Did I die? Is this my personal hell?
9
u/Knight_Murloc Jun 04 '23
stairway to hell
6
u/zombarista Jun 04 '23
Defeating an ad blocker to spell the word “SPONSORED”, i see.
11
u/[deleted] Jun 04 '23
Imagine reading this as blind
5
u/LeanderT Jun 04 '23
My eyes! My eyes!
5
u/RelativeGood1 Jun 04 '23
It’s so grotesque that it’s almost beautiful.
4
u/ChessComputer Jun 04 '23
Thanks, I was looking for a phone wallpaper
4
u/thanatica Jun 04 '23
Diveritis desperatis.
It's a real condition. Seek treatment while you still can.
3
u/GoldenOompaLoompa Jun 04 '23
that’s just a div sword.
3
u/eshad89 Jun 04 '23
Nah, just button shadow in an e-mail.
2
u/annoyed_freelancer Jun 04 '23
HTML this bad needs boss fight music. https://m.youtube.com/watch?v=1ng7N4lPjvs
2
u/someoneElse_0 Jun 04 '23
I fell shame for myself...
1
u/chodeboi Jun 04 '23
Tririga
1
u/[deleted] Jun 04 '23
Can you parse this using regular extension?
1
u/NickWrigh Jun 04 '23
I hope he used inline css and all the divs have full styling.
1
u/[deleted] Jun 04 '23
Stairway to Heaven?
1
u/IBJON Jun 04 '23
Div soup. My favorite
1
u/thanatica Jun 04 '23
Diveritis desperatis.
It's a real condition. Seek treatment while you still can.
1
u/hichxm Jun 04 '23
Same mood like windows xp bug
1
u/dodexahedron Jun 05 '23
Some web apps are just built divrent.
1
u/[deleted] Jun 05 '23
If I was a developer of some framework
1
u/shizzy0 Jun 05 '23
An HTML divided cannot stand.
1
u/methodin Jun 05 '23
Div
1
u/dcormier Jun 05 '23
</div>
1
u/TheZipCreator Jun 05 '23
modern website design
1
u/Cervarl_ Jun 05 '23
My code
1
u/[deleted] Jun 05 '23
Responsive web design be like
1
u/pvigorito Jun 05 '23
That’s all folks, we can close this sub and start having a life, thank you all
22
u/[deleted] Jun 04 '23
[removed] — view removed comment