For all you javascript users. I was stunned that i didn’t think of this earlier but you see to much programming causes blindness. But when i saw it it was so funny a had to share it:
You know how you write document.getElementById(‘some_object’).value, for the 10000 time.
This is my new insight:
function dog(id)
{
return document.getElementById( id );
}
so now i can write:
dog(‘some_object’).value
it makes my code so much shorter and it’s better readable too…