--- On Tue, 10/7/08, Jeff Findley wrote: > From: Jeff Findley > Subject: Re: [EE] Self documenting code vs. Comments > To: piclist@mit.edu > Date: Tuesday, October 7, 2008, 6:41 PM > "Vitaliy" wrote in > message > news:018101c9285c$8d54d8a0$6f02a8c0@ws11... > > I use the same exact trick with the variables. :) And > I prefer not to use > > shorthand notation, I like: > > > > myVar = myVar + 5; > > > > instead of: > > > > myVar += 5; > > This is a religious argument. I prefer the latter since > it's standard C/C++ > and saves on typing. > > However, I'll usually stick with one C > "shortcut" per line of code. When > you start combining too many of these shortcuts on one line > of code, it can > be bewildering for someone new to understand what's > going on. > I tend to write expressive C code at times. Still it depends who is going to inherit the code in the future. If it is for maintenance keep rich expression low... John -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist