Hacker Newsnew | comments | show | ask | jobs | submit login
Guy writes 4000 lines of terrible code (chanarchive.org)
22 points by starpilot 976 days ago | 14 comments



Clicked in case this article is about me...

-----


Hilarious! I would rather read bad code than watch bad TV. It's still pablum, but at least it's my kind of pablum.

-----


    float x;
    float xx;
    float xxx;
    float xxxx;
    float xxxxx;
    float xxxxxx;
    float xxxxxxx;
    float xxxxxxxx;
    float xxxxxxxxx;
    float xxxxxxxxxx;
    float xxxxxxxxxxx;
    float xxxxxxxxxxxx;
    float xxxxxxxxxxxxx;
    float xxxxxxxxxxxxxx;
    float xxxxxxxxxxxxxxx;
    float xxxxxxxxxxxxxxxx;
    float xxxxxxxxxxxxxxxxx;
    float xxxxxxxxxxxxxxxxxx;
    float xxxxxxxxxxxxxxxxxxx;
    float xxxxxxxxxxxxxxxxxxxx;
lol

this guy has some serious patience, check out 2923 -- 3391

-----


Fun fact:

When I was editing this comment, Google Chrome helpfully asked me "This page is in Galician, Would you like to translate it?"

So my comment in Galician apparently is:

    float x;
    float xx;
    float xxx;
    float xxxx;
    float xxxxx;
    float XXXXXX;
    float XXXXXXX;
    float GRAPHOPRINT;
    float xxxxxxxxx;
    float xxxxxxxxxx;
    float xxxxxxxxxxx;
    float xxxxxxxxxxxx;
    float xxxxxxxxxxxxx;
    float xxxxxxxxxxxxxx;
    float xxxxxxxxxxxxxxx;
    float xxxxxxxxxxxxxxxx;
    float xxxxxxxxxxxxxxxxx;
    float xxxxxxxxxxxxxxxxxx;
    float xxxxxxxxxxxxxxxxxxx;
    float xxxxxxxxxxxxxxxxxxxx;
Weird

-----


That's hilarious! As someone who can understand Galician quite well (I speak both Spanish and Portuguese fluently and Galician is mostly transparent when you know those two) I can't fathom how Google Translate came up with that.

-----


So you are trying to tell me that XXXXXXXX in Galician doesn't mean Graphoprint!?

-----


Thought "how bad can it be" and left thinking that the world maybe is filled with bad programmers like this guy.

-----


This is probably not going to please you but I've seen worse than this. In production, at companies with big names. Programmers in isolation (no oversight or capable peers) will do the most terrible things.

And on a more positive note: he did write that code, is looking for help from people more capable and eventually will likely figure it out. Check back in a decade or so how he's doing, likely you'll be surprised. Writing terrible code and learning from it is a lot better than not writing code at all.

It's easy enough to forget that at some point in time we were all clueless newbies.

-----


Link to the code, because the article doesn't have it in a proper link: http://www.daniweb.com/software-development/cpp/threads/4409...

-----


Can't wait to see his Fizzbuzz implementation!

ಠ_ರೃ

-----


This has to be from a kid.

In another post from him he mentions a tutor. http://www.daniweb.com/software-development/cpp/threads/4412...

I blame the tutor.

-----


Here's a pastebin of the code: http://pastebin.com/jURSutxe

-----


I don't know... I think this is way to complex to be written by an idiot. Must be fake.

-----


Unroll all the things!

-----




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact

Search: