Quantcast
Channel: SCN: Message List - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 7329

Re: Formula for calculating colors

$
0
0

So, it's 02:30 on the 1st October* and you've been called out from bed to fix that report that has to be on the boardroom table at 08:30. You're struggling to be awake never mind thinking about operator precedence. So which programmer are you going to thank? The one who wrote:

 

65536 * 129 + 256 * 255 + 120


or the one who wrote


(65536 * 129) + (256 * 255) + 120?


Sorry, this is a pet peeve. Just sayin'


Paul


*in the UK this would be April 1 and in Australia July 1.


Don't get me started on SELECT COLX = TOTAL!!! Aaaargh!!!! SELECT COLX AS TOTAL puhleeeeez


Viewing all articles
Browse latest Browse all 7329

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>