Joined July 2012
·
79f39dbd7c90349087908bb13ab8fb55

Héliton Nordt

Web Developer at hnordt.com
Web Developer
hnordt.com
·
Brazil
·
·

Posted to Infographic on Node.js over 1 year ago

Can Node kill Ruby for new web apps?

You are right lautarodragan, it's called DRY principle.

I think I expressed myself wrong, what I meant is that in some cases the Copy & Paste is useful, not necessarily to copy all the code.

For example, if you have declared averybigvar it's best to copy & paste to avoid typo like avrybigvar.

(PS: I've updated my tip)

Posted to Pretty Print over 1 year ago

Amazing tip!

Posted to Chaining methods in PHP over 1 year ago

Cool!

I think it worth noting that for JavaScript it works the same way:

(dahm it, indentation don't works in comments)

function setEmail(email)
{
     return this;
}

Aslo for CoffeeScript:

setEmail = (email) ->
     @
Achievements
1,195 Karma
121,384 Total ProTip Views