I’ve Just updated the website from 2.8.4 to 2.9.1 and updated all the plug-ins too. I also updated the contact page with some links to public profiles.
People have been poking me to update this website more regularly so I’m trying to think of things to write about. Projects have kind of gone on hold again since I’ve moved and started work, will hopefully get on with some soon. In the meantime I’m considering just writing about some general programming tips/tricks/oddities I’ve come across.
In light of that here’s a random code snippet I read recently. Also I want to test this new formatting plug-in I installed.
1 2 3 4 5 6 7 8 9 10 | #include <stdio.h> int main() { int x = 10; while( x-->0 ) // x goes to 0 { printf("%d ", x); } } |
Output: 9 8 7 6 5 4 3 2 1 0
It’s a little neat way of using “-->” as a “go down to” operator. In reality it’s not a single operator obviously, it’s just syntactically equivalent to ((x--) > 0). Pretty nice all the same though.
Anyway that’s all for now. Will try to think of something else (possibly less random) to post soon.