4 ms·
A lot of these seem to be Microsoft technologies like C# or SQL server. Is that because the owner is more familiar with the MS stack? Or do MS devs have more to
by tkellogg 13y ago
A lot of these seem to be Microsoft technologies like C# or SQL server. Is that because the owner is more familiar with the MS stack? Or do MS devs have more to complain about?
- danabramov 13y agoFrom my experience, such code is not specific to MS technologies, but is indeed often found in “enterprisey” code, a lot of which just happens to be in Java and C#. And enterprisey code is like that because it's often outsourced to the lowest bidder. I once had to print a method that took 50 pages of paper, so I could understand what it does, and after 15 minutes I realized it's the same 60 lines repeated over and over with different conditions. The guy who wrote it had no idea he could have extracted a method.
- guardian5x 13y agoJust curious: Why does printing it on paper helps you to understand code better than reading it on screen?
- zentiggr 13y agoEvery once in a while you find code whose control structures are wrapped around a ton of working code... paging up and down to try to grok the entire structure pagefaults my short term memory badly enough that having it all visible at once is the only workaround. Sometimes, if you're really lucky, the blocks of working code don't modify their own conditionals, and you can 'fold' them and just look at the if's and loops...
- pseut 13y agoFor me, the ability to spread the paper across a table and look at many different parts of the code simultaneously. It's like having a giant high resolution monitor. Also, faster and more flexible annotation (drawings, etc), but that's secondary.
- MartinCron 13y agoI've only had to print terrible code to understand it. I think it's a way to leverage the spatial part of your brain more directly.... where was that part of this huge method that did that... oh, it's top left.
- walshemj 13y agoBecause if you can find a room with enough table space you can lay out all of the code at once instead of having to jump back and forward on a small screen. A 4x6 table has far more surface area than even the biggest multi monitor set up
- danabramov 13y agoIt helps to understand the structure. I was looking for repetitions (and luckily I found a lot), but I needed to look out for things that change between repetitions. I just found the picture I took that day. The boxing gloves just happened to be in the same conf room. http://i.imgur.com/bQCA08C.jpg http://i.imgur.com/bQCA08C.jpg
- hamburglar 13y agoLooking as close as I can at those printouts, my only reaction is, "that's CODE?!" Good lord.
- morganherlocker 13y agoI replaced an old AS400 system from the 70s as one of my first gigs. It was 50k lines of incomprehensible RPG code. I would often have to print out the code, steal a conference room, lay out all the pages, and go to town with a bunch of highlighters to tell what the hell was going on. On the plus side, the code still had comments for the punchcard numbers, so it was pretty easy to keep the pages in order :)
- ep103 13y agoThis is my life.
- philliphaydon 13y agoI'm not the owner, but I know the owner of the site. It's mostly C# / SQL because he is a .NET developer and so its only really been shared among other .NET devs. It's not meant to be specific to any language. It's just funny shit people have written. I submitted a few from old code I wrote like 5 years ago. Its all good fun :)