Deprecated: Assigning the return value of new by reference is deprecated in /home/techmasa/public_html/wp-content/plugins/sem-cosmos-link/sem-cosmos-link.php on line 90

Deprecated: Assigning the return value of new by reference is deprecated in /home/techmasa/public_html/wp-content/plugins/sem-recent-posts.php on line 942

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/techmasa/public_html/wp-content/plugins/sem-cosmos-link/sem-cosmos-link.php:90) in /home/techmasa/public_html/wp-content/plugins/wordpress-automatic-upgrade/wordpress-automatic-upgrade.php on line 121

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/techmasa/public_html/wp-content/plugins/sem-cosmos-link/sem-cosmos-link.php:90) in /home/techmasa/public_html/wp-content/plugins/wordpress-automatic-upgrade/wordpress-automatic-upgrade.php on line 121
TechMasala - Technology Spice Rack » 2006 » October » 27

Archive for October 27, 2006

Interesting question

A recent article on java.net had this interesting question “Why Do Pointless if Statements Even Compile?“.  I went through the article as well as the comments made by readers.  It is a good one, made me think and the question seems to be really valid and not at all a stupid question.  I think it would be all the more costly to do a check in the compiler rather than just allow it as it is syntactically right.  The only time this would produce a side effect is when the if condition does not have an else. Otherwise putting an else would throw a compilation error “else without if”. Following a coding standard and using code check utilities like checkstyle can also help. Nevertheless it is an interesting question.


Deprecated: Function ereg_replace() is deprecated in /home/techmasa/public_html/wp-content/plugins/sociable/sociable.php on line 64
Blink this Interesting question at blinklist.com    Bookmark Interesting question at blogmarks    Bookmark Interesting question at del.icio.us    Digg Interesting question at Digg.com    Fark Interesting question at Fark.com    Bookmark Interesting question at Furl.net    Bookmark Interesting question at NewsVine    Bookmark Interesting question at reddit.com    Bookmark Interesting question at Simpy.com    Bookmark Interesting question at Spurl.net    Bookmark Interesting question with wists    Bookmark Interesting question at YahooMyWeb

Comments      Cosmos


Creative Commons License  This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.