Joined November 2012
·

Hrvoje Šimić

self
·
Zagreb, Croatia
·
·
·

start making aliases to change directories!

alias ..='cd ..'

It's the ALT key.

Posted to Prevent VIM write misfires over 1 year ago

Another one? Seventh post about it?

And again, I think using map <C-S> :w<CR> is a much better alternative.

Posted to Alias :W to :w in Vim over 1 year ago

I'm using this for the same problem: map <C-S> :w<CR>. This enables saving with Ctrl+S.
I'm also using map <C-Q> :qa!<CR>.
I find these two very useful.

Posted to Ruby Core Extends over 1 year ago

<3

Sharing opinions to give you some insight!

Posted to Ruby Core Extends over 1 year ago

I think you're reinventing the wheel here. You say that this is not the alternative to ActiveSupport, but they both share the same idea.
I've checked out the #stealth_delete source. There's the method in AS that provides the same functionality: http://api.rubyonrails.org/classes/Hash.html#method-i-except

I'm opinionated that you'll find a replacement (ruby or rails) for almost any functionality your gem supports. If not, you should consider opening up a pull request on AS and adding your desired functionality. This way, your code gets revived by Rails core team and you'll get a great feedback on your code quality.

Why opening up a pull request on AS instead of building your own gems?
Because rails devs are familiar with AS and I'm sure anyone would rather see the names of familiar methods, than from the new gem.

Do you share my opinion? :)

Posted to Ruby Core Extends over 1 year ago

What's the benefit of using this instead of ActiveSupport core extensions?

Achievements
150 Karma
3,249 Total ProTip Views