Welcome to DU!
The truly grassroots left-of-center political community where regular people, not algorithms, drive the discussions and set the standards.
Join the community:
Create a free account
Support DU (and get rid of ads!):
Become a Star Member
Latest Breaking News
Editorials & Other Articles
General Discussion
The DU Lounge
All Forums
Issue Forums
Culture Forums
Alliance Forums
Region Forums
Support Forums
Help & Search
How To Write Unmaintainable Code
Came across this recently. It hurt. Both from laughing and from flashbacks.
https://github.com/Droogans/unmaintainable-code/blob/master/README.md]
InfoView thread info, including edit history
TrashPut this thread in your Trash Can (My DU » Trash Can)
BookmarkAdd this thread to your Bookmarks (My DU » Bookmarks)
5 replies, 4575 views
ShareGet links to this post and/or share on social media
AlertAlert this post for a rule violation
PowersThere are no powers you can use on this post
EditCannot edit other people's posts
ReplyReply to this post
EditCannot edit other people's posts
Rec (7)
ReplyReply to this post
5 replies
= new reply since forum marked as read
Highlight:
NoneDon't highlight anything
5 newestHighlight 5 most recent replies
How To Write Unmaintainable Code (Original Post)
Midnightwalk
Jan 2019
OP
flyingfysh
(1,990 posts)1. There is a book "Obfuscated C"
(for non-technical people: C is an old and important computer language)
There is (or was) a yearly contest to see who could write the most unreadable program in C. This books is a collection of some of the winners(?). It is worth a look.
FM123
(10,126 posts)2. My son got a big kick out of this! Alas, I am not very techie but generous about sharing great posts
gtar100
(4,192 posts)3. If you've got a file to read into the program,
name the variable representing the file "if". I was the lucky recipient of a series of scripts written in Tcl/Expect and the programmer did just that.
set if filename
Scratched my head for a bit until I finally realized what he'd done.
ManiacJoe
(10,136 posts)4. While that was fun to read,
fortunately most modern coding houses do not allow for any of that nonsense.
radhashetty
(7 posts)5. Thanks
Very good information. Thanks for sharing such interesting post.