Live life to the fullest

my random thoughts and stories

Archive for the ‘Uncategorized’ Category

IE Auto-set ID Attribute

leave a comment »

Recently I stumble upon another glitch with IE. IE is well known as the most unstandard web browser on earth.

Consider this simple HTML code snippet

<input type="hidden" name="input" value="this is a secret message" />
<input type="text" id="input" value="you should see this if you use a sane browser" />
<input type="button" value="click me" onclick="doSomething()" />

<script language="javascript">
var doSomething = function() {
	var elem = document.getElementById('input');
	if (elem) alert(elem.value);

What do you expect to see when you run this? I expect to see an alert box with “you should see this if you use a sane browser” as the message. Apparently in IE you’ll see “this is a secret message”.

What happen exactly is that IE “cleverly” add an ID attribute to our input element (yes it only applies to input element) to be the same value as the NAME attribute. How did they decide this “clever” feature in the first place? Where is it documented? I guess it will remain a mystery to us. Maybe we should start a campaign to Kill IE (there’s already one for IE6

So next time you encounter a problem in IE you might want to check if it’s “IE Auto-set ID Attribute”.

Written by jecki

October 3, 2009 at 3:48 am

Posted in Uncategorized, Work

Tagged with ,

Is It OK to be Long Time Programmers?

with 5 comments

Have you ever count how many hours that you’ve used up for learning java? At what level do you claim yourself to be in java mastery? Do you feel that you’re newbie 2 years ago and still now?

That makes me think that if a programmer is expected to be a system analyst after 4 or 5 years from the day he began as programmer, as it is common in organization hierarchy, is really non sense. He is just starting to be a better programmer and now being ask to start again with another role. This is like killing something which is actually just start to blossom. I found a really nice principle that relate to this issue in one of the mailing list that I join. It says “In a Hierarchy Every Employee Tends to Rise to His Level of Incompetence.” Please read further about Peter Principle.

In my opinion software development is one of disciplines that need long time to master. There’s to much to learn to achieve good quality softwares. I don’t see any rationale to think that programmers must become a system analyst after 4 years, especially in the context where someone put programmers position under system analyst. This is one thing that I believe contribute to large numbers of failing projects, although I don’t have an evidence to show here.

Give me your opinions about this.

Written by jecki

May 30, 2008 at 2:36 pm

Posted in Uncategorized