41 karma · joined June 15, 2010
I doubt if there exist any solution to this. My point is, if we are talking about Clones, Moon, Rocket Science and HTML5, a simple thing like this is not possible even today. If CSS can offer margin: 0 auto; why can't it offer something to align elements vertically center? May be, margin: auto 0;???
@faramarz, once again, thank you very much for spending time on this.
Also about these emergency situations, can you think of the number of times, you actually received these kind of calls? In last 8 years, I can't think of any. And let's say, even if there were couple of them, I think it is unreasonable to consider that 0.001% probability. In that case, you already have enough from the above 5 points to worry about.
I didn't like the post title, though. Celebrate others' failures?
Another thing, JavaScript 1.7 has introduced block level scopes.. you can achieve that by using the 'let' keyword instead of 'var' to declare a variable. Although most browsers don't support it yet.
In your examples, just change the value of variable 'a' to 100 or 1000 and you will see the difference.