From /usr/src/UPDATING on FreeBSD 7-STABLE:
Never 'assert' a statement with side effects!
Every once in awhile, while whisking away at a new batch of code, the best of your wit fails you and you plant the seed for what would be an epic, head-ache inducing bug by not following a good common practice you really ought to know better about.
- By zach at 06/03/2008 - 17:56
- zach's blog
- Login to post comments
- Read more
[C++] A functor abuse, but a cool abuse :D
Taken from http://www.boost.org/doc/html/program_options/tutorial.html, here's my “omigod why haven't I thought of this before” moment of the week:
// Declare the supported options.
po::options_description desc("Allowed options");
desc.add_options()
("help", "produce help message")
("compression", po::value(), "set compression level")
;
All I can say is: -_-)=b
- By gene at 01/19/2008 - 01:17
- gene's blog
- Login to post comments
Google Mobile Platform released
Google announced today his Mobile Phone platform... NTT DoCoMo is working with them, BTW. Details in here:
http://googleblog.blogspot.com/2007/11/wheres-my-gphone.html
http://feeds.feedburner.com/~r/OmMalik/~3/180103075/
The base for this new "OS" is Linux.
- By federico at 11/05/2007 - 20:09
- federico's blog
- Login to post comments
Python methods are not python functions
As much as python treats functions as first order objects analogous in most ways to any other new-style object, it is important to observe the fine differences between methods and functions, and in the process hopefully avoid a few edge case pitfalls.
Some fun facts to keep in mind:
- By zach at 10/29/2007 - 22:53
- zach's blog
- Login to post comments
- Read more
OpenMoko, an OS allternative to iPhone?
More details here:
http://www.openmoko.com/
Some blog talking about it:
http://troubledramblings.com/2007/10/06/the-open-source-iphone-alternative-openmoko-for-consumers/
- By federico at 10/11/2007 - 22:19
- federico's blog
- 1 comment
- Read more
