The power of toggle

I don't know if we've been missing out on deliberate API lovin' or that we're becoming dumber every minute because of too much work, or its just the love month? tongue ...but we've been missing the power of "toggle".

Toggle is [defined][1] as:

any instruction that works first one way and then the other; it turns something on the first time it is used and then turns it off the next time

Needless to say, toggle is very efficient for use with boolean values (defined by either true or false). Of course you might think its easy to implement, but this is an explicit example to illustrate on saving database reads and writes. Aside from that, you'll write a more elegant code. wink

Read the rest of this entry

Hi, I've been busy you know. wink If you don't know yet, this site and my blog codes are hosted in . I recently moved to Git and found that they have support for private Git repositories. Below are details of my last git push.

Maricris S. Nonato on 26 Mar
Commit: e734bd6878629223c5067326471d7ec0aac7d6e4

Updated display of ads and popular content