Joined June 2012
·

Joel Day

Senior Developer at Create.net
·
Brighton
·
·
·

Got any background articles on why it's bad to use git reset --hard HEAD ?

Effective! But I'm massively against this, would love to see the opposite of this, i.e. 'give user default access'.

Excellent addition, I personally use CMD+SHIFT+UP and CMD+SHIFT+DOWN for this functionality.

@silverstrike, indeed! I shall watch my vars from now on :P

Hah, actually my laptop doesn't have home and end keys so yes I use command + arrows, however when I'm using a usb keyboard I do find them useful, perhaps it's because I'm an ex-pc user?

I tend to just use;

var arr = ['a', 'b', 'c', 1, 2, 3, true, false, null, undefined];

for ( var n in arr ) {
      console.log( arr[n] );
}

I did a little benchmark against the solution by @silverstrike and the for in method came out faster each time.

Achievements
580 Karma
99,694 Total ProTip Views
Interests & Skills