You are not logged in.
For a simple project to aid me in learning Ruby. I can read and read all I want, but until I actually come up with something to do with what I'm reading, its in one ear and out the other. Any suggestions?
Writing stories for a machine.
Offline
Try making frontends for stuff. Pretty good way to learn.
Offline
If you've written other programs in other language, re-writing them in the new language you're learning is a great way to learn.
Being able to move, copy, delete, parse files, write to files, and access the system are invaluable skills. Thats why I always hated writing rinky-dink "guess the random number" games because they where of no use to me. Whatever you do, write something thats useful to you. That way you'll find yourself going back from time to time to improve on it.
Offline
If you've written other programs in other language, re-writing them in the new language you're learning is a great way to learn.
Being able to move, copy, delete, parse files, write to files, and access the system are invaluable skills. Thats why I always hated writing rinky-dink "guess the random number" games because they where of no use to me. Whatever you do, write something thats useful to you. That way you'll find yourself going back from time to time to improve on it.
Wow, that was very intuitive... I never thought of it that way. Good call.
I agree with Penguin - the best thing to do is rewrite something from one language to another. Grab a python script, like DenyHosts and rewrite in it ruby (it'd actually be worth it, and it's not all that complicated, it checks a log file for regex matches and goes "ok, the count == 5, let's deny this one".
Offline
hmmm....
Sounds like fun! go ruby!
"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍
Offline
Ruby = Cooooolllll 8)
Mr Green
Offline
Nice post penguin, just wish I still had my old HD that had my old projects on it . Thanks for that denyhost script link, think I'll work on that.
Writing stories for a machine.
Offline
For a simple project to aid me in learning Ruby. I can read and read all I want, but until I actually come up with something to do with what I'm reading, its in one ear and out the other. Any suggestions?
If you are into webdev, work with RoR a bit. 8)
·¬»· i am shadowhand, powered by webfaction
Offline
I am planning on learning how to use Rails soon as I get a firm grasp of regulare Ruby usage. Want to make a blogging + webcomic script for a site aswell as create its forums in Ruby using rails. That's my complicated long term goal anyway.
Writing stories for a machine.
Offline
I'm pissed about Penguin taking my ideas and then everybody giving him credit for them. Lets see who taught Penguin Python. Who told him to rewrite an existing app? Who suggested making sure it is something useful?
Dusty
Offline
I'm pissed about Penguin taking my ideas and then everybody giving him credit for them. Lets see who taught Penguin Python. Who told him to rewrite an existing app? Who suggested making sure it is something useful?
Dusty
ROFL!
Offline
Hmm, I agree with Ruby being a bit hard to learn, because it doesn't have many useful examples, tutorials or -any- case studies. IMHO, learning by example is a very good way, as well as case studies. But when all you get to learn is making a fictive jukebox addressing issues regarding Ruby only, and not the problem you're trying to solve itself, it does add to make the learning curve a lot steeper.
Take the C++ book Thinking In C++. It's perhaps one of the best books I've read to date. Bruce Eckel uses examples like copying and modifiying files and such almost immediately. That's great.
I've been wanting to learn Ruby first, and then playing with RoR, but it's been near impossible, since I've had a hard time following the pickaxe (for you who don't know what it is, it's the most popular ruby book, freely available). I do know the Ruby On Rails book, also by Pragmatic Programmer's, is a very excellent book, but that's kind of beyond the point of getting a grasp of ruby before implementing it for, say, the web.
Ok, enough ranting, heh. THESE WERE ALL MY OPINIONS!
Offline
postlogic, if you want to learn ruby, I suggest "why's guide to ruby" as a first start.
I mean..it even has foxes!
http://www.poignantguide.net/ruby/
"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍
Offline
I have no idea why, but that book annoyed me on so many levels. I just got irritated trying to read it :-| I suppose it has a lot of good examples, but how good will that be if I can't read the descriptions without feeling the urge to stab the author to death with a bent paper clip?
Offline
rofl... ok.
point taken.
"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍
Offline
Ruby hard to learn :shock:
python now thats hard work lol
Mr Green
Offline
Not really. Dive into python is a great introduction to the language and only after about 4 days of reading that book I was able to make a useful script from scratch. Why's just got on my nerves aswell. After a while it stopped being funny and starting being annoying.
Writing stories for a machine.
Offline
I learned python in less than an hour..... taught it to Penguin in what, two days? ;-)
Dusty
Offline
Learn ruby then teach me . Though I'm reading through Mat's ruby user guide and its alot more concise and quick than the pickaxe.
Writing stories for a machine.
Offline
I learned python in less than an hour..... taught it to Penguin in what, two days? ;-)
Dusty
A whole hour lol .....
No Python & Ruby are easy to learn ,,,enjoy ;-)
Mr Green
Offline
enjoy yes, that is the most important part
Offline
The languages themselves arent really hard. It's using them that's the pain in the ass at times.
Offline
The languages themselves arent really hard. It's using them that's the pain in the ass at times.
I have to agree here - syntax isn't hard to learn. Especially if you already know one programming language. Your brain will morph knowledge you have to conform to a different ruleset - it's similar to looking at cars. Your brain has an idea of what a car looks like, and when you see a truck, your brain is able to manipulate the information you have and say 'hey this is the same thing, but with slight differences'
The real part of 'using' a language has to do with learning the libraries and intricacies of the language itself.
Offline
postlogic wrote:The languages themselves arent really hard. It's using them that's the pain in the ass at times.
I have to agree here - syntax isn't hard to learn. Especially if you already know one programming language. Your brain will morph knowledge you have to conform to a different ruleset - it's similar to looking at cars. Your brain has an idea of what a car looks like, and when you see a truck, your brain is able to manipulate the information you have and say 'hey this is the same thing, but with slight differences'
The real part of 'using' a language has to do with learning the libraries and intricacies of the language itself.
Well said!!
The thing that sucks is when you have been coding in one language for a while and switch to something else. Its so embarrassing to type curly braces in your python code, and it doesn't make you feel good when you type 'and' instead of && in your C or Java code either...
Dusty
Offline
The thing that sucks is when you have been coding in one language for a while and switch to something else. Its so embarrassing to type curly braces in your python code, and it doesn't make you feel good when you type 'and' instead of && in your C or Java code either...
I win this one... I put a "While .. Wend" loop in some C# code before (yeah, it's for work)
Offline