DEV Community

Discussion on: Please stop using Ruby

Collapse
 
89885512495 profile image
Sony

sry...but do you think that this code is easy to understand:

vowelsCount = Hash['aeiou'.chars.map{|n| [ n, 0 ]}]
gets.chomp.chars.each{|n| vowelsCount[n] += 1 if vowelsCount.key?(n)}

I am doubt.

Collapse
 
thecodetrane profile image
Michael Cain

You can write unintelligible nonsense in any language, my dude. Ruby's focus is "developer happiness", and I feel that it delivers. If you prefer to make yourself miserable, Java will welcome you with open arms.