Thread: Countdown Timer
View Single Post
  #4  
Old 12-05-2011, 01:23 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Gunderak View Post
And the reason I put them in quotation marks is because when assigning variables values if it's not a number you have to encase it in them, and it's just a habit now.
And it's not like it's going to affect the scripts processing time too dramaticly..
It's not about processing time, it's mostly about readability. Trust me on this. It makes it harder to look at a complicated script and understand it if you do that. Any scripter is going to assume you won't be manipulating it like it's a number since you've defined it as a string. You're also adding unnecessary coercion, which itself is a good enough reason not to do it.

This isn't code gallery material with an error like that in it. It teaches others very bad practices.
__________________
Reply With Quote