Geronimo89.dk

A blog about me, my doings and everything I think deserves attention.

coding

Since I always was focussed on design I decided that my lousy skills needed some work on them. I started nosing around about the topic and found things I could use. The site freetechbooks.com offers a lot of free documents containing computer science and programming. The ebook I am reading right now is written as an introduction to programming with python. It’s called think like a computer scientist. After only 3 chapters I can tell it really helps understanding essentials. Moni and me are doing the php-q tutorial together and having some fun with that too. While writing this entry I found another easy and fun to learn language, it’s called ruby and you can try it online here. Python and Ruby are, as far as I could experience, following the KISS principe (keep it simple stupid).

Let’s have a short look at methods in ruby:

geronimo@Zero-1:~$ irb1.8
irb(main):001:0> def greetings(name)
irb(main):002:1> puts "Rise and shine #{name}..."
irb(main):003:1> end
=> nil
irb(main):004:0> greetings("sleepyhead")
Rise and shine sleepyhead...
=> nil

Give me the first comment

Comments are closed.