Easy loop for every element of an array
There’s something bugging me with javascript for loop : the extra work to loop though all elements of an array. Suppose I want to alert each element of an array, there are three ways of doing it.
There’s something bugging me with javascript for loop : the extra work to loop though all elements of an array. Suppose I want to alert each element of an array, there are three ways of doing it.
I always loved and hated databases. When I was a younger programmer, I asked to switch to DB administrator and, thank God, they didn’t agree to let me mutate in a DBA. I ended up fired like 80% of the company (except the DBA). In fact, I wanted to be DBA because I thought I [...]
Everytime that I work on a new project, I’m always unsure about which way to execute javascript on page load.
JavascriptKata was created in the blog bubble. In a time when all you had to do was to create a blog, put ads on it and you were rich. It never was true. The ads on this blog gave me about 100$ in a year so I finally felt discouraged and left it for dead. [...]
Someone asked me : “I would like this site to automatically load a certain page (1-31) depending on what day of the month it is (1-31)”
I’m not a PHP guy and I like to use standards for the languages I’m using so this php.js thing is not for me at all. In fact, I really dislike PHP and though I use it often, there is no reason in the world I would want to use its syntax to write javascript.
Import [...]
I’m a big fan of jQuery. This librarie is just the best and simplest one around. I really noticed it when I wanted to get rid of jQuery in TimmyOnTime and try to use prototype.js instead, just to be more “rails-oriented” (that’s a pretty lame excuse don’t you think?)
Why I didn’t like prototype.js
There was not [...]
As you probably know, I’m a big fan of jQuery because it is more integrated with CSS than scriptaculous. Someone have made a new plotting plugin for jQuery called Flot and this is awesome. The examples are really looking good.
If you’re a javascripter, chances are that you coded an infamous javascript calendar in your life. I saw somewhere that at the moment of his death, an normal javascripter will have coded an average of 7.4 javascript calendar. If we estimate that there is 2.3 million javascripters in the world, it means that there will [...]
Gary Haran wrote stuff you should know about bookmarklet and answer the question that’s on everybody’s lips