blog’s amazing Rotating Header Image

Posts from ‘November, 2009’

Why You Should Replace ENUM With Something Else

There are many developers who prefer using ENUM in MySQL, which seems to be a viable choice many times. However it’s important to take care as…

ENUM requires a rebuild of the table when adding a value to the middle of the set.
ENUM values are ordered in the order they’re added to the database
ENUM values do [...]

Google Closure: How not to write JavaScript

Dmitry Baranovskiy, the creator of the Raphaël and gRaphaël JavaScript libraries has serious criticism against the Google Closure JS library.
According to Dmitry:

“It’s a JavaScript library written by Java developers who clearly don’t get JavaScript.”
poorly optimized loops and unoptimized switch statements
memory caching with unlimited size: “I’m not sure what this pattern is called in Java, but [...]

Active Desktop replacement with Adobe AIR

Interested in simulating XP’s Active Desktop without Active Desktop? We’ve had taken the challenge!
Why?
One of our clients wanted a central web application running on the desktop which provides nearly realtime business information for more than a hundred users in a company. After some discussion with the company’s IT staff we’ve chosen Active Desktop as all [...]

Five Tips To Make Good Object-Oriented Code Better – Brandon Savage

Brandon Savage has some great tips regarding coding OOP:

“Use Objects. Lots of Objects”
“Use Interfaces To Make APIs Predictable”
Use Dependency Injection”
“Composition Over Inheritance”
“Create Loosely Coupled Classes”

As you can see it’s absolutely not rocket science nor these are new invetions: these rules simply help to avoid typical OOP pitfalls and keep your applications well structured.

Google releases Closure, the tools behind the JS geniuses

Google released Closure, the library and toolset that powers Docs and other Google products.
Closure includes:

Closure Compiler – removes dead code and rewrites and minimizes what’s left, checks syntax, variable references and types, and warns about common JavaScript pitfalls.
Closure Library – a JS library with widgets, controls, lower-level utilities for DOM manipulation, server communication, animation, data [...]