Friday, 6 July 2007

Software Engineering Principles

As a software engineering student I pride myself on writing easy to follow, well thought out code. However, being rather vain, I don't like people to think that because the code appears simple, it was written by a simple person so sometimes I thrown in a one-liner, just to keep people awake... Here's todays one which I wrote by accident but decided to leave it in, I will comment it of course.

afl |= (0x1<<position) << ((fec_ptr->branch_position) ? 16 : 0);

meh, simple things....