blog.sowatchasayin

Rails etc.

「開発者のキャリアプラン」は会社にとって損なだけ?

「アーキテクト」や「マネジメント」を目指すべきとされるキャリアプランに対して「ただいいものを作りたい」って答えると…上司が嫌な顔をする。そんなの無視するか、じゃなきゃ辞めちまえ、という反論に対して…

and this takes me to my second point - does this actually damage the organisation because people start leaving or, worse, playing political games, feeling stressed or distracted by the things they have to do in order to live up to the career structure

そう、誰かが辞めることは会社とって損害だと。

Weblogs Forum - Do Career Plans for Developers Actually Damage an Organisation?

Enumerable.all?は空だと常にtrueを返す

ううむ…空集合の全てって一体何だ?

irb(main):001:0> [].all?{false}
=> true
irb(main):002:0> [1].all?{false}
=> false


そして、安易なソリューション。

class Array
def not_empty_and_all?(&block)
return false if self.empty?
self.all? &block
end
end


Enumerable - Rubyリファレンスマニュアル

Author

Fujimura Daisuke
http://fujimuradaisuke.com

Labels