Joined February 2012
·
Posted to
JavaScript Looper
over 1 year
ago
When using a for loop you'd probably cache the length inline and do this:
for (var i = 0, l = ary.length; i < l; i++) {
...
}
Posted to
Use ruby debugger when debugging RSpecs
over 1 year
ago
http://pryrepl.org/ - Pry allows you to drop into a full on REPL - inside the scope it was invoked in - during your tests by using binding.pry
instead of debugger
.
Posted to
Use Standard Competition Ranking for your leaderboards
over 1 year
ago
Ah, this is good to know! Shame MySQL doesn't have it.
Posted to
Don't overuse $(this)
over 1 year
ago
Don't overuse $(this)
, but do understand this
and what it scopes to when you do use it :)
Achievements
1,108 Karma
71,846 Total ProTip Views

Forked 50
Have a project with a thriving community of users that's been forked at least 50 times

Narwhal
Have at least one original repo where Clojure is the dominant language

Altruist
Increase developer well-being by sharing at least 20 open source projects

Mongoose 3
Have at least three original repos where Ruby is the dominant language

Bear
Have at least one original repo where Objective-C is the dominant language

Github Gameoff Participant
Participated in the Github Gameoff 2012 building a game based on git concepts of forking, branching, etc

Lemmings 100
Write something great enough to have at least 100 watchers of the project

Forked 20
Have an established project that's been forked at least 20 times

Mongoose
Have at least one original repo where Ruby is the dominant language

Kona
Have at least one original repo where CoffeeScript is the dominant language

Forked
Have a project valued enough to be forked by someone else

Raven
Have at least one original repo where some form of shell script is the dominant language

Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos

Python
Would you expect anything less? Have at least one original repo where Python is the dominant language

Nephila Komaci
Have at least one original repos where PHP is the dominant language

Charity
Fork and commit to someone's open source project in need
"Don't alter your history once it's published."
I think you're alright to do this if you're working in your own feature branch and are, say, tidying up a pull request you've been working on after making further changes.