This what I found after looking at the source code of a retarded online banking website, Oh yeah they have blocked the right-click so I couldn’t see the code. if ('BalanceMain' == id) { document.getElementById('BALANCE').style.color = "#ff6600"; document.getElementById('BALANCE').style.textDecoration = 'underline'; } else { document.getElementById('BALANCE').style.color = "#5d6063"; document.getElementById('BALANCE').style.textDecoration = 'none'; } if (id == 'HomeFileUpload') { [...] Read more – ‘CrapCode of the Day – JavaScript Edition’.
On the same subject of Measuring: Software organizations tend to reward programmers who (a) write lots of code and (b) fix lots of bugs. The best way to get ahead in an organization like this is to check in lots of buggy code and fix it all, rather than taking the extra time to get [...] Read more – ‘→ Measurement’.
Astonishing as it may seem, some developers like to commit changes to their version control system frequently to create the impression that they are hard at work. This only works if you are managed by the technically incompetent. In other words, it works more frequently than you would like. - The Mismeasure of a man, [...] Read more – ‘The Mismeasure of Man’.
The next tag/version of Hippo CMS will have an updated image browser. The images can now be displayed both as List or a Thumbnail Grid, see the screenshots below. The Grid View is implemented using simple css and ul tags. Here’s an example of the HTML/CSS that is used to convert a ul with images [...] Read more – ‘Hippo CMS Image Browser Update’.
The iPhone simulator’s method seems magically wonderful. Since the iPhone OS is MacOS, all the kernel APIs are the same. The natively-compiled frameworks, libraries, and display engine are built from the same source code, so you know they’re the same too. And your Mac’s CPU is a lot faster than the iPhone’s CPU, so the [...] Read more – ‘→ Why the iPhone Simulator is Awesome’.
Code re-use in CSS almost non-existent. File size in CSS just keeps getting bigger as we continue to modify it. CSS code is often too fragile. It can get ruined by the first person to touch it. via LukeW | An Event Apart: Object Oriented CSS. Read more – ‘→ Object Oriented CSS’.
A quick update on Easy Forms plugin for Hippo CMS – it is now updated and compatible with latest Hippo CMS Release 7.3. The 2.0 version artifacts are now available in the forge maven repository. I’ll provide the details on how to configure and create the Easy Forms in a following post, though it is [...] Read more – ‘Update: Easy Forms 2.0 for CMS 7.3’.
I’ve been sort of wanting to learn LISP for long time (~ 10 years). Now finally I got some chance to try that out. I’ve started reading On Lisp by Paul Graham along with Practical Common Lisp by Peter Seibel. I find them pretty invaluable in learning Lisp. It has been nearly 9 years since I’ve [...] Read more – ‘Common Lisp vs Java’.