r/ruby • u/Edthal01 • Sep 21 '26
At my age, learning Ruby
I'm 78, and never having been a programmer or software engineer, I am starting to learn Ruby. I ha ve been using Huw Collingsworth "Little Book of Ruby". I am aso interspersing that with a different path: using Wirth's "Algortithms + Data Structures = Programs",
having the simple data structures and programs translated by Perplexity into Ruby to see how my 40 year old experiences with TurboPascal can be updated into Ruby. I think I am making progress.
220
Upvotes
19
u/WayneConrad Sep 21 '26
Hey, I wrote a lot of Turbo Pascal back in the day. Cool! I also self-studied from Wirth's book.
I think you'll like Ruby.
Thanks for bringing a smile to my face, you're on a cool mission.
17
u/Zestyclose-Turn-3576 Sep 21 '26
Nice. Do you have any projects in mind?
11
u/azimux Sep 21 '26
Awesome!! Welcome aboard! It's always a good age to join the Ruby party! š š
3
u/not_sure_if_crazy_or Sep 21 '26
That's awesome! What would you like to ultimately get into? Or is the path as great as the forest so far?
3
u/leftsaidtim Sep 21 '26
Thatās really cool ! Iād encourage you to publish what you find and discover. Either as posts here or on a small blog somewhere. Iāve always loved hearing about peopleās experience learning Ruby after having come from some other language.
3
u/Logical_Detective441 Sep 21 '26
Awesome, have fun!
3
u/levelbrook Sep 22 '26
Wirth's book is a great choice for this, and the translation exercise you are doing is closer to how working programmers learn a new language than most tutorials. One thing that will make the Pascal to Ruby jump click: almost everything in Ruby is a method call on an object, so where Wirth writes a procedure that takes a record, Ruby wants you to put that procedure inside the record's class. When a translated program feels awkward, that is usually the seam.
I have written Ruby professionally for about a decade, and the tool I would hand you is irb, the interactive prompt. Type a line, see the answer, no compile step. Wirth's chapters on sorting are perfect for it: paste in a small array, write the loop, watch it. Enjoy it, and post what you build.
3
u/jeffdill2 Sep 23 '26
I highly recommend Eloquent Ruby by Russ Olsen. It's one of the best tech books I've ever read, and it'll get you excited about Ruby.
3
u/_natic Sep 21 '26
Yes learn ruby! This is the best language to go for you right now. You will have fun and be able to wast build something
2
u/manewitz Sep 21 '26 edited Sep 21 '26
Welcome! Highly recommend Chris Pineās āLearn to Programā which is a great onboarding to the Ruby language assuming no prior knowledge.
2
u/petercooper Sep 22 '26 edited Sep 22 '26
You should check out Huw on YouTube as well BTW. He posts quite a bit of interesting stuff, particularly reflecting over a similarly long span of computing to yours.
He sorta fell out with me back in the day as I didn't give his book a very nice review (largely on stylistic reasons I care somewhat less about now!) but it's actually a perfect choice for this situation so keep on with it and he knows what he's talking about. I also have Wirth book (in two copies for some reason) and while it's a bit old-fashioned, the fundamentals still apply now more than ever! Programming Pearls is another you might like.
2
u/Only_Scientist_1772 Sep 23 '26
What are you going to build?
1
u/SilentEchoes Sep 21 '26
What's your favorite thing you've pieced together so far? Have a git repo or anywhere you're stashing code?
When you say making progress what's your goal?
1
u/SquiffSquiff Sep 21 '26
Curious, what caused you to choose Ruby?
1
u/Proudclad Sep 21 '26
Rubyās a good one! What did you do before if you donāt mind us asking? The field and your expertise in it might provide inspiration for a pet project
1
u/Alubsey Sep 22 '26
Turbo pascal. lol. How about some Perl n php with that
1
u/Blobstein_Ijay Oct 14 '26
imo the Wirth approach of working through algorithms and data structures is underrated for learning any new language. way better than just following tutorials. Ruby makes that kind of exploration pretty enjoyable too
1
u/Correct_Support_2444 Sep 21 '26
Thatās awesome! I think I have a Wirth book knocking around someplace. Turbo Pascal was my PC programming home for a long time.
1
u/FigureNo77 Sep 21 '26
ruby ganggg
1
u/kjmw Sep 22 '26
This is awesome and I love this! Ruby is super fun to play around with and build with.
1
u/Select_Bluejay8047 Sep 22 '26
That's nice!! Planning to retire at 50 but now I have to rethink.
1
u/fabianqs_dev Sep 22 '26
Of course, my friend, welcome! When you make the jump to Ruby on Rails, you'll be part of the family :)
0
u/jjopm Sep 21 '26
I'm actually 148 and just wrote my first line of code