Posted by : Chris London in (Programming, Tutorial)

Ternary Operators

Tagged Under : , , ,

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 »

Posted by : Chris London in (Programming, Tutorial)

Colon Syntax in PHP

Tagged Under : , ,

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 »

Posted by : Chris London in (Programming, Tutorial)

Do While vs While

Tagged Under : , , , ,

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 : Chris London in (For Fun, Scripts)

Binary Clock Widget Box

Tagged Under : , ,

We’ve created a widgetbox widget for the binary clock. You can now place our binary clock on any website out there!

Widgetbox

Our widget has been approved by widget box: http://www.widgetbox.com/widget/kwista-binary-clock

Get the widget

Demo

Posted by : Chris London in (Scripts)

WordPress Binary Clock Widget Plugin

Tagged Under : , ,

This is a free wordpress plugin that you can use on your wordpress site to display a binary clock in your sidebar!

Read the rest of this entry »