Joined December 2011
·
Posted to
Node.js is not suitable for generic web projects (I)
over 1 year
ago
"Sorry for having to break it up into 5 parts, but apparently there's a limit on the text size somewhere..."
Yes and there is a good reason for that: Because this is a site for short tips and not a blogging engine. Sorry, I think I agree with your post but it just does not belong here...
Posted to
zsh vi-mode: no delay entering normal mode
over 1 year
ago
This has been bugging me for a while. Thanks a lot!
Posted to
DO NOT $('#foo a'); DO $('#foo').find('a');
over 1 year
ago
@burntime: I think your test should prepare a more realistic, i.e. much bigger DOM. If the original protip was right and $('#foo a') had a complexity of O(n) and the faster one O(1) than the difference would only show by having a big enough n.
Achievements
128 Karma
4,434 Total ProTip Views
24PullRequests Participant
Sent at least one pull request during the first 24 days of December 2014
Velociraptor
Have at least one original repo where Perl is the dominant language
24PullRequests Participant
Sent at least one pull request during the first 24 days of December 2013
Forked
Have a project valued enough to be forked by someone else
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Raven
Have at least one original repo where some form of shell script is the dominant language
Charity
Fork and commit to someone's open source project in need
You can also set the VISUAL variable to this so gvim is used for git commits and other CLI programs that start an editor