8 July
Operator overloading is a programming language features that allows operators to act differently depending on the type of data they are operating on. Since OOP lets us create custom types (classes), there are plenty of opportunities to do useful and interesting code manipulations using operator overloading.
Read more …
5 July
Float is an often misunderstood CSS property, however when used properly it can be a very useful technique for implementing CSS layouts.
Quoting the CSS standards guide at the w3c website:
A float is a box that is shifted to the left or right on the current line.
…
This property specifies whether a box should float to the left, right, or not at all.
The float property pulls an element out of the normal flow and places it in either the left or right ends of the current line inside its containing block element. Other elements will then wrap around the floated element, providing they have enough space to do so (if the cumulative width of the elements is too wide, they will slide to the next line).
Read more …
3 July
Internet Explorer 6 (abbr. IE6) is the biggest thorne in a web developer’s behind at current times. This legacy browser, released almost 7 years ago, is known for its multitude of offenses on security and standards compliance and still has a sizeable user base to this day. Its market share makes it impossible for us developers to ignore it still, despite how much we would want to do just that.
Read more …
23 June
WARNING: The following contains unsanctioned HACKS to the Zend Framework. Use at your own discretion.
A big advantage to using the front controller in the Zend Framework is the ability to create nicely formatted urls. Instead of an ugly GET string we can pass parameters as slash delimited key -> value pairs. For example:
www.techfounder.com/index.php?post=passing_arrays&comment=3 can be replaced with www.techfounder.com/post/passing_arrays/comment/3
(On techfounder this is actually performed via mod_rewrite rules, but the principle is the same).
The implementation of the default router in the Zend Framework (Zend_Controller_Router_Rewrite) does not allow for passing arrays in this manner though, since previously set keys get overwritten if they are declared more than once. This is somewhere between semi-annoying to very annoying, so lets get straight to hacking it into submission.
Read more …
20 June
Left for dead by many, HTML resurfaced half a year ago when the w3 released a working draft for the next version of this markup language. The draft was recently updated and a document detailing the differences from the previous version was released as well.
Read more …