Share & let Share

Home

Log

Integer conversion with guarding

Ever wanted to convert a string to an integer while making sure that the result is zero when the string is empty. Well here is neat trick to do it in JavaScript. Warning: This works only for integers and I consider this code "too clever" and suggest you use more ...

Random Number Generator in JavaScript

A random number generator in JavaScript without using a Math.random function is a challenge to write. Much research has gone into the theoretical underpinnings of such a procedure but I have not been able to fathom any of it till now. That can be a future endeavour I suppose ...

jQuery Pagination Plugin

I was searching for some jquery plugins to do pagination without knowing anything about the content and which can also handle a lot of pages. My friend suggested a excellent one here. I liked the way it worked but had a hard time understanding the algorithm involved. Thus I decided ...

Programming and Relationships

The recent controversy about the missing semicolons in the Twitter's Bootstrap library had me thinking, we the developers, who do we code for? Do we code for our clients, our users? If you said yes to any of those you are right, but not completely.

Think about all the ...