16 Nov '13, 5am

Weird things I am learning about include snake_case: and camelization #railsgirlsperth

camelize (first_letter = :upper) public By default, camelize converts strings to UpperCamelCase. If the argument to camelize is set to :lower then camelize produces lowerCamelCase. camelize will also convert ‘/’ to ‘::’ which is useful for converting paths to namespaces. " active_record ". camelize # => "ActiveRecord" " active_record ". camelize ( :lower ) # => "activeRecord" " active_record/errors ". camelize # => "ActiveRecord::Errors" " active_record/errors ". camelize ( :lower ) # => "activeRecord::Errors" Show source # File activesupport/lib/active_support/core_ext/string/inflections.rb, line 78 def camelize ( first_letter = :upper ) case first_letter when :upper then ActiveSupport :: Inflector . camelize ( self , true ) when :lower then ActiveSupport :: Inflector . camelize ( self , false ) end end

Full article: http://apidock.com/rails/String/camelize

Tweets

The Vim Learning Curve is a Myth

robots.thoughtbot.com 15 Nov '13, 5pm

The Vim Learning Curve is a Myth Ben Orenstein November 22, 2011 vim I've been speaking about and teaching people vim for ...

Intel Creates Internet of Things Group | EE Times

eetimes.com 15 Nov '13, 9pm

SAN JOSE, Calif. — Following in the footsteps of other tech giants such as Cisco Systems , Intel created a new Internet of...

Four Things You Should Know about Adding Batter...

renewableenergyworld.com 15 Nov '13, 7pm

There is a shortcoming with grid-tied photovoltaic (PV) energy systems of which owners are often unaware until an emergenc...

Four Things You Should Know about Adding Batter...

renewableenergyworld.com 15 Nov '13, 3pm

There is a shortcoming with grid-tied photovoltaic (PV) energy systems of which owners are often unaware until an emergenc...

(SgNA) OPINION: Learning to give in a kiasu soc...

Recent stories which feature people giving to individuals and various causes show a very different side of Singapore. If t...