View Single Post
Old 12th December 2016, 19:47   #16  |  Link
captaiŋadamo
Guest
 
Posts: n/a
How is it bad practice? It's a bog-standard idiom that's been used for decades.

The funny thing is that people who complain about these idioms and then try to be smarter by rewriting them tend to introduce bugs in code that never existed before. "All code is crap except what I write."

Quote:
Originally Posted by feisty2 View Post
Using the pointer as an array is much saner and easier for programmers to read than doing it with the raw pointer arithmetic style.

"Along with bunch of bit wise operations", I was referring to crap like "&0xff0000, >>16",,,
A programmer who can't read the code is likely incompetent. I don't know a single programmer that I've ever worked with that would be tripped up by that line of code.

Last edited by captaiŋadamo; 12th December 2016 at 19:49.
  Reply With Quote