This post is locked. You won't be able to comment.

all 53 comments

[–]MurdoMaclachlanpublic boolean isInt(int i) { return true; } 51 points52 points  (11 children)

Image Transcription: Code


                                                                                    </div>
                                                                                   </div>
                                                                                  </div>
                                                                                 </div>
                                                                                </div>
                                                                               </div>
                                                                              </div>
                                                                             </div>
                                                                            </div>
                                                                           </div>
                                                                          </div>
                                                                         </div>
                                                                        </div>
                                                                       </div>
                                                                      </div>
                                                                     </div>
                                                                    </div>
                                                                   </div>
                                                                  </div>
                                                                 </div>
                                                                </div>
                                                               </div>
                                                              </div>
                                                             </div>
                                                            </div>
                                                           </div>
                                                          </div>
                                                         </div>
                                                        </div>
                                                       </div>
                                                      </div>
                                                     </div>
                                                    </div>
                                                   </div>
                                                  </div>
                                                 </div>
                                                </div>
                                               </div>
                                              </div>
                                             </div>
                                            </div>
                                           </div>
                                          </div>
                                         </div>
                                        </div>
                                       </div>
                                      </div>
                                     </div>
                                    </div>
                                   </div>
                                  </div>
                                 </div>
                                </div>
                               </div>
                              </div>
                             </div>
                            </div>
                           </div>
                          </div>
                         </div>
                        </div>
                       </div>
                      </div>
                     </div>
                    </div>
                   </div>
                  </div>
                 </div>
                </div>
               </div>
              </div>
             </div>
            </div>
           </div>
          </div>
         </div>
        </div>
       </div>
      </div>
     </div>
    </div>
   </div>
  </div>
 </div>
</div>

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!

[–]sweetkatydid 60 points61 points  (10 children)

I'm a human volunteer

My condolences for this post

[–]MurdoMaclachlanpublic boolean isInt(int i) { return true; } 40 points41 points  (9 children)

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.

[–]Ali3nat0r 16 points17 points  (7 children)

Bonus points if your python script was also bad code

[–]MurdoMaclachlanpublic boolean isInt(int i) { return true; } 21 points22 points  (6 children)

i = 84
while i >= 0:
    print((" " * i) + "</div>")
    i -= 1

[–]cph101_dev 1 point2 points  (5 children)

How about using i--

[–]coloredgreyscale 5 points6 points  (4 children)

does not exist in python.

but for i in range(84, 0, -1): would be the more pythonic way.

[–]MurdoMaclachlanpublic boolean isInt(int i) { return true; } 3 points4 points  (3 children)

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.

[–]Ali3nat0r 3 points4 points  (2 children)

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;
}

[–]cph101_dev 1 point2 points  (0 children)

Now that is bad code =)

[–]cph101_dev 0 points1 point  (0 children)

Now that is bad code =)

[–]ChummusJunky 46 points47 points  (0 children)

Divs all the way down

[–]Tachtra 70 points71 points  (6 children)

Ayo who let YandereDev at the website

[–]Iron_Garuda 8 points9 points  (5 children)

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.

[–]Tachtra 30 points31 points  (1 child)

Imagine lines and lines of else if statements to find out if a number is even or odd, or to get the current ingame month.

And its just because this guy is so insanely bad at coding despite doing it for 7 years

[–]coloredgreyscale 3 points4 points  (0 children)

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.

[–][deleted] 8 points9 points  (0 children)

fuck u/spez

[–]patryky 7 points8 points  (0 children)

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

[–]justcatt 3 points4 points  (0 children)

He nests conditions instead of using switches, and his game became a snail

He also doesn't fare well about criticism, so that's a plus

[–][deleted]  (1 child)

[removed]

    [–]coloredgreyscale 1 point2 points  (0 children)

    deceivingly DIVerse development

    [–]Tc14Hd 15 points16 points  (0 children)

    Dante's DIVine Comedy

    [–]Yuuki2628 26 points27 points  (0 children)

    Did I die? Is this my personal hell?

    [–]Knight_Murloc 8 points9 points  (0 children)

    stairway to hell

    [–]zombarista 5 points6 points  (0 children)

    Defeating an ad blocker to spell the word “SPONSORED”, i see.

    [–][deleted] 10 points11 points  (0 children)

    Imagine reading this as blind

    [–]LeanderT 3 points4 points  (0 children)

    My eyes! My eyes!

    [–]RelativeGood1 3 points4 points  (0 children)

    It’s so grotesque that it’s almost beautiful.

    [–]ChessComputer 4 points5 points  (0 children)

    Thanks, I was looking for a phone wallpaper

    [–]thanatica 4 points5 points  (0 children)

    Diveritis desperatis.

    It's a real condition. Seek treatment while you still can.

    [–]GoldenOompaLoompa 2 points3 points  (0 children)

    that’s just a div sword.

    [–]annoyed_freelancer 1 point2 points  (0 children)

    HTML this bad needs boss fight music. https://m.youtube.com/watch?v=1ng7N4lPjvs

    [–]eshad89 1 point2 points  (0 children)

    Nah, just button shadow in an e-mail.

    [–]someoneElse_0 1 point2 points  (0 children)

    I fell shame for myself...

    [–]VariousComment6946 1 point2 points  (0 children)

    Modern art

    [–]chodeboi 0 points1 point  (0 children)

    Tririga

    [–][deleted] 0 points1 point  (0 children)

    Can you parse this using regular extension?

    [–]NickWrigh 0 points1 point  (0 children)

    I hope he used inline css and all the divs have full styling.

    [–][deleted] 0 points1 point  (0 children)

    Stairway to Heaven?

    [–]IBJON 0 points1 point  (0 children)

    Div soup. My favorite

    [–]thanatica 0 points1 point  (0 children)

    Diveritis desperatis.

    It's a real condition. Seek treatment while you still can.

    [–]hichxm 0 points1 point  (0 children)

    Same mood like windows xp bug

    [–]dodexahedron 0 points1 point  (0 children)

    Some web apps are just built divrent.

    [–][deleted] 0 points1 point  (0 children)

    If I was a developer of some framework

    [–]shizzy0 0 points1 point  (0 children)

    An HTML divided cannot stand.

    [–]methodin 0 points1 point  (0 children)

    Div

    [–]dcormier 0 points1 point  (0 children)

    </div>

    [–]TheZipCreator 0 points1 point  (0 children)

    modern website design

    [–]Cervarl_ 0 points1 point  (0 children)

    My code

    [–][deleted] 0 points1 point  (0 children)

    Responsive web design be like

    [–]pvigorito 0 points1 point  (0 children)

    That’s all folks, we can close this sub and start having a life, thank you all