Code Instructions: Programming Styles
Programming Styles Over the years I've met many developers and got to know many different programming styles. Here are some of the odd ones. Do you know someone like that? Shotgun Programming It is a programming style where the developer tries random shots at the code. "Well, this method call is failing.... I'll try changing this parameter from false to true!" Then of course it doesn't work and the developer goes: "Well, maybe I could just comment out the whole method call!" and so on. It can go on forever until it works by pure chance or the developer is rescued by a peer who points the correct solution. A regular developer can go crazy in a few hours if he finds himself pairing with a shotgun programmer. It can drive you NUTS. Two shotgun programmers should never do pair programming together, because their destructive results are magnified when they work together. Programming by accident It is a mild form of Shotgun Programming, and it is surprising to see how common it is.Read full article from Code Instructions: Programming Styles
No comments:
Post a Comment