. Code isn’t as clean as you think The majority of us put - TopicsExpress



          

. Code isn’t as clean as you think The majority of us put faith in bits of technology you don’t quite understand – be it committing your life to a 747, or your dirty pics to Snapchat’s auto-delete. :) When you do you generally tend to assume that the code’s been scrupulously examined by teams of caffeine-fuelled programmers, with most of the niggling little bugs found and nixed. The truth seems to be quite the opposite. One Quora user pointed out that buried within the source code for Java, one of the internet’s fundamental bits of code, is this gem: /** * This method returns the Nth bit that is set in the bit array. The * current position is cached in the following 4 variables and will * help speed up a sequence of next() call in an index iterator. This * method is a mess, but it is fast and it works, so don’t f*ck with it ! lol */ private int _pos = Integer.MAX_VALUE; It just goes to show that even programmers rush things to get home for the next installment of Game of Thrones sometimes ............. Lmao
Posted on: Thu, 28 Aug 2014 02:11:24 +0000

Trending Topics



Recently Viewed Topics




© 2015