If you don’t know what ternary operators are then you are missing out! The day I learned about ternary operators I nearly passed out. There are so many wasted lines of code if you don’t know about them. This is what a standard if ... else ... statement looks like using C, Obj-C, C++, C#, Java, or JavaScript:
Read the rest of this entry »
Colon syntax is another way to style your PHP code. Instead of using curly braces you use colons. Below I have included an example of a couple different curly brace styles and also each statement using the colon syntax. I don’t know of any performance benefits or loss to using this syntax over any other. Please comment here if you have any more information about its affects on performance.
Read the rest of this entry »
When I started programming I only learned about do ... while statements and I didn’t know about while statements. There are some times when my code would’ve been a lot cleaner if I had known about while statements. To save you all the trouble of what I had to go through I’m writing this post. For those of you who already know the difference between while and do ... while I have included a little-known trick that may interest you. Just skip on down to the bottom.
Read the rest of this entry »
Posted by : David S. in (Other)
I’m proud of our online community for making progress in ridding ourselves of Internet Explorer. Microsoft’s heavy grasp has made it difficult for the masses of internet users to notice myriad of other, faster, more reliable browsers. Firefox has made a great deal of progress to get us where we are. But now, even Firefox is leveling off as Google’s Chrome increases rapidly every month. As of August 2009, Chrome has increased its market share by 89%, from 3.6 to 6.8.

Source: http://www.w3counter.com/trends
Read the rest of this entry »
Posted by : Chris London in (For Fun)
Use the following input boxes to translate to or from letters to binary.
Read the rest of this entry »