Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

note to self: stay the fuck away from the Polish social insurance administration domain.


I opened a file with C code. I expected you know, the regular stuff, includes, functions, etc. Instead the first line was already a statement, followed by 5k lines of statements.

There was a huge function that had to be split in no less than three separate files and then pulled in with #include directly into function body. These were #included in multiple other places, for greater obfuscation effect.

I opened another file (this time .NET), still same application, though... I jumped with my editor into middle of roughly 25k LoC of code... to be faced with empty screen. A bit surprised, I started dragging the scroll bar and then suddenly the code started showing on the right side of the screen... There was a span of roughly 15k LoC that was indented so much it was off the screen.


Scrolling out into the expanse like that showed you have the mind of an explorer. And you were rewarded by discovering code never before seen by civilised man.


The IDE that took part in writing that code was too ashamed of it and indented it out of the right side of the screen so it never again has to render these appalling statements.


I would LOVE to work on this code. Of course not for a boss who wants features yesterday - just to be left alone to refactor it slowly and make it beautiful. Like those people who will unravel tangles of thread into neat balls for free and mail it back if you send it to them.


Any chance this was machine generated?


Well, whatever the case, it was generated by tools.


No, it was not machine generated, at least not in conventional sense.

This was written by team of drone developers from specification written by a team of drone analysts.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: