Community Member Profile
- Profile: /members/8052-Rob-Mills.htm
- URL: http://www.robmills.me/
- Comments: 3
- Points: 30
Recent Blog Comments By Rob Mills
-
Your Javascript Constructor Logic May Break Prototypal Inheritance
Posted on Apr 28, 2011 at 10:55 AM
I can definitely see how the second example breaks the initialization process but I don't see a reason to return a different object inside a constructor. Seems like it's inefficient because by using the new keyword with your constructor JavaScript will actually create an object that is passed to... read more »
-
I Finally Understand The Finally Part Of A Try/Catch Control Statement
Posted on Apr 1, 2011 at 8:49 PM
I was going to say basically what @Henrique Feijo said. I use the finally in server-side code for closing database connections and streams. You wouldn't want to leave a connection open if a command happens to fail and sometimes you don't have a need to handle the exception at that point so just h... read more »
-
Using Slice(), Substring(), And Substr() In Javascript
Posted on Mar 28, 2011 at 2:29 PM
This is good information. I was mistakenly using substring since it was named the same as other languages but since I was expecting the behavior from substr I had to perform a calculation to pass the correct arguments. Thanks for this!... read more »



