Beginners
1. Stretching - for beginners
OK, if you believe you're a beginner and need to worm-up, here's a list of tasks to do using ruby before start this book.
- String
- Print the following string
\x52\x75\x62\x79\x46\x75as it is, it should NOT be resolved to characters. - You have string
RubyFuconvert this string to an array (each character is an element).
- Print the following string
- Arrays
- You have the following array
["R", "u", "b", "y", "F", "u"]convert it to stringRubyFu. - You have the following array
["1", "2", "3", "4"], calculate the sum of all elements
- You have the following array
- Files and Folders
- Find all files ends with
.jpgor.pdfor.docxor.zipin your Downloads folder - Create folder called
ruby-testfuand copy all found files(from previous task) into it.
- Find all files ends with
- Network
- Create simple TCP server listening on port 3211. This server prints
date and time. - Create simple TCP client to connect to previous server and print what server send.
- Create simple TCP server listening on port 3211. This server prints
A good list of References under Beginners part.
2. Challenge Your Self!
There are some awesome website that push your programming skills via interactive way and I really encourage you to go through one or more of them.