Thursday, April 06, 2006

The Spider of Doom

If you develop web application, how do you perform validations? Most developers I know will use client side JavaScript to do it and assume that the data will be correct when it reach the server. If you are doing that, have a look at this article from TheDailyWTF which explains the horror that happens when you take things for granted. Client side JavaScript is not reliable and will never be reliable. It only allow more conveniences to the user. However, there might still be some people who will argue and state that their application is not web application but is intranet application, so they can be assured that the users will be enabling their JavaScript. I immediately gave up debating when I hear this.

4 comments:

  1. Well... you can let them know even intranet users, still a lot dunno WTF is "JavaScript"... they will turn it off if they "heard" "turn on JavaScript" will potentially harm their machine :p. Btw, you have 2 "I Power Blogger" icons on your side bar, purposely?

    ReplyDelete
  2. I changed template before and somehow the two icons appear lor, and I didn't bother to fix it.

    ReplyDelete
  3. why give up so easily?

    ReplyDelete
  4. Of course the best is to have both client side and server side validations. But sometimes developers are lazy mah...

    Client side validations, the client can see, but for server side validations the client cannot see, so just skip it most of the time. :)

    ReplyDelete