223 reputation
16
bio website
location
age
visits member for 2 years, 1 month
seen Oct 6 at 9:17

Jul
28
awarded  Commentator
Jul
28
comment JavaScript Combination Inheritance Pattern
You don't want to set a reference to the parent prototype, because both prototypes would be the same object. What if you want to add properties only to the child prototype? With Object.create you make a prototypical clone, in other words, a new object with its prototype set to the parent's prototype. This is a common idiom, and it is similar to assigning an instance but without calling the constructor function.
Jul
28
comment JavaScript Combination Inheritance Pattern
You want this Child.prototype = Object.create(Parent.prototype).
Mar
14
comment Does designing a method that changes the argument's (if was object) values a good practice?
A method implies a receiver. You'd model this as player.addLevelBy1() if I understand your question correctly.
Mar
4
awarded  Critic
Mar
2
comment Advantages and disadvantages of PHP/Ruby
I think it comes down to expressiveness vs deployment.
Jan
30
awarded  Yearling
Jan
29
revised Typical agreements for freelance development?
added 1 characters in body
Jan
29
revised Typical agreements for freelance development?
added 4 characters in body
Jan
29
revised Typical agreements for freelance development?
added 75 characters in body
Jan
29
answered Typical agreements for freelance development?
Jan
29
comment How many Angular Controllers and/or Directives is too many?
A tip is when you use ng-repeat check the track by option. Using it can improve performance.
Jan
26
comment Is it normal to look back on codes when coding?
Reading docs and searching Google is half our jobs.
Jan
20
revised Programming PHP without MVC, classes or framework: rewrite or continue on new features?
deleted 23 characters in body
Jan
20
awarded  Editor
Jan
20
revised Programming PHP without MVC, classes or framework: rewrite or continue on new features?
added 409 characters in body
Jan
20
awarded  Teacher
Jan
20
answered Programming PHP without MVC, classes or framework: rewrite or continue on new features?
Nov
28
awarded  Supporter
Oct
16
awarded  Scholar