Tuesday, April 20th, 2010
Here is the secret to using GoTo in ANY programming language:
Yes, that’s right. You will be eaten by a raptor! So don’t use it!
Tags: c++, goto, humor, Programming
Posted in Programming, Tutorial | 1 Comment »
Thursday, February 18th, 2010
Since PHP5 was released, PHP programmers have been blessed with a decent support of object-oriented programming. With this ability many programmers have used classes in many if not all of their projects. A very common practice for OO programmers is to place each class in an includes folder. There have been many times when I have seen a config file full of includes and/or requires. They will include every class in their includes folder whether or not they use it in a particular script. This causes many unnecessary includes.
Tags: autoload, classes, oop, php, Programming
Posted in Programming, Tutorial | No Comments »
Wednesday, February 17th, 2010
This will show you how to include the Kwista Hint script which will allow you to generate automatic hints in your form’s input fields. Automatic hints, by our definition, are input fields that contain predefined text in the field that provide the user with a hint as to what should be typed in the field. These hints are usually gray, though the colors and font styles can be changed through CSS. When the user focuses on the field (e.g., they click on it) the hint text is removed and the style of the text goes back to normal. If the user doesn’t type anything in the field, or they erase what they type, and they click away from the field then the hint text is returned to the field.
(more…)
Tags: hints, input fields, javascript, jquery, Programming
Posted in Programming, Scripts, Web Tricks | No Comments »