Joined December 2012
·

Jacek Tomaszewski

Poland
·
·

Yeah, but including full jQuery library in your web application just because you want to use $element.css('display', 'block') instead of native DOM functions like element.style.display = 'block' is silly.

jqLite, angular's helpers, angular's $http, angular's Promise and native DOM functions like document.querySelectorAll(selector) (available on every today's browser - IE8 isn't supported by Angular 1.3 anymore anyway) are often just enough and jQuery doesn't add anything new.

I agree jQuery might be useful but IMHO you should include it only when you don't care about your JS size (f.e. native crossplatform apps) or when you really need some of its' functions f.e. for some external libraries.

Posted to `rbenv shell` and fish over 1 year ago

Yeah, your way is better. The example is this and only this: rbenv. Ofcourse, unless you're not lazy as me, you can always write rbenv help.
Anyway, nevermind, the problem is unimportant.

Posted to `rbenv shell` and fish over 1 year ago

Well, yes, but even that, it triggers an error on switch command. f.e. switch $idontexist; end

Posted to `rbenv shell` and fish over 1 year ago

Minor bug: you can add [ (count $argv) -eq 0 ]; and set -l command '' at 32th line to prevent bug on invoking rbenv without an argument =P

Achievements
68 Karma
1,180 Total ProTip Views