TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Hello Ruby – Almost there

231 pointsby yorakalmost 10 years ago

12 comments

plumaalmost 10 years ago
I&#x27;m not sure whether Ruby is a good intro to programming.<p>It doesn&#x27;t have first-level functions, instead it has blocks (which can take parameters to serve the same use as functions but aren&#x27;t). What would syntactically be a reference to a method in other languages instead invokes the method with no arguments. It doesn&#x27;t have namespaced imports, instead its imports effectively behave like includes (i.e. the &quot;dump truck&quot; approach to imports). I could go on.<p>Ruby isn&#x27;t widely used in practice (although its users tend to be vocal and particularly prevalent in the web startup scene). Installing it requires some amount of care and technical knowledge (don&#x27;t even bother installing it with a Linux package manager -- you&#x27;re almost guaranteed to end up with the &quot;wrong version&quot; of ruby and rubygems).<p>I understand that Ruby programmers tend to be very emotionally invested in their programming language and that this book is probably written for Ruby programmers looking to teach their kids programming (using their favourite programming language) but it would be nice if there were well-written books aimed at a more general audience.<p>I&#x27;m not sure what the &quot;best&quot; first programming language is. JS has its merits -- it&#x27;s becoming increasingly important, can be used throughout the entire stack of a web application and all you need to try it out is a modern web browser. Python is a lot more straightforward to learn and has consistent and mostly unsurprising concepts that are generally very compatible with more mainstream languages (plus it was intentionally based on a language developed for beginners). If market use were the main concern you could probably argue for Java or C# (although I think starting with a class-based language locks you into the wrong mental model).<p>In any case, I don&#x27;t think Ruby is the best choice, even with its quirky community lore and the general emphasis on &quot;play&quot; and expressing yourself in code (although this seems to have died down a bit as the community matures).<p>I guess it depends on whether you want to teach programming as an art form and toy, or as a general skill (like maths, biology or chemistry). Both can be fun and entertaining but maybe I&#x27;m just getting old and cranky.
评论 #9996565 未加载
评论 #9995319 未加载
评论 #9995590 未加载
评论 #9995250 未加载
评论 #9995012 未加载
评论 #9995803 未加载
评论 #9997251 未加载
评论 #9995704 未加载
评论 #9995124 未加载
评论 #9997476 未加载
评论 #9998971 未加载
评论 #9997782 未加载
评论 #10000431 未加载
评论 #9995654 未加载
评论 #9994884 未加载
评论 #9999482 未加载
评论 #9997816 未加载
评论 #10006837 未加载
评论 #9997152 未加载
评论 #9998928 未加载
评论 #9996455 未加载
评论 #9995600 未加载
评论 #9995160 未加载
评论 #10006639 未加载
knivetsalmost 10 years ago
Looks great.<p>Recently, I was trying to wrap my head around eigenclass inheritance mechanisms and it was pretty tough. Not to mention the object model, where classes are also objects and the Object - Module - Class relationship. I wouldn&#x27;t recommend Ruby as a first language to anyone — it may look easy at first, but to grasp it, you need to invest much more time in future.
评论 #9994674 未加载
评论 #9994697 未加载
评论 #9994681 未加载
评论 #9994600 未加载
评论 #9994663 未加载
评论 #9994752 未加载
hopelessalmost 10 years ago
The character&#x27;s name is &#x27;Ruby&#x27; but I don&#x27;t expect the book itself to be any sort of introduction to ruby-the-language!<p>I&#x27;m a backer — I expect the book might contain some Ruby code because it&#x27;s pretty readable though I&#x27;m bothered either way. I am full expecting it&#x27;ll be an engaging story to teach my kids some of the concepts of programming, which have nothing to do with any particular language.
评论 #9999768 未加载
评论 #9996975 未加载
gregdalmost 10 years ago
What makes you think the book is ready? We&#x27;ve been told (KS backers) that the book isn&#x27;t shipping until October 2015. There is absolutely nothing that you&#x27;ve linked to to indicate that it&#x27;s ready.<p>Incidentally the book costs less at retail, then even the lowest tier of it&#x27;s Kickstarter campaign.
评论 #9995210 未加载
评论 #9998145 未加载
评论 #9995966 未加载
revskillalmost 10 years ago
I found Python&#x27;s rule of space and tab is the most confusing thing that will happen to a kid. They open a command prompt, then instead starting writing the real code, they have to &lt;space&gt;&lt;space&gt;, blahblah , &lt;enter&gt;&lt;space&gt;&lt;space&gt;... to do something that they hope to run. It&#x27;s a waste of time.
评论 #9995113 未加载
FilterSweepalmost 10 years ago
It&#x27;s all fun and games until the kids reach a gem dependency conflict that bundler doesn&#x27;t fix......
评论 #10006686 未加载
_swordalmost 10 years ago
I don&#x27;t believe the book is ready to ship yet, but I&#x27;m looking forward to when it is! I had the pleasure of working with Linda (author of this book) a few years back and she is really a wonderful person and I&#x27;m very happy for the initial success of Hello Ruby.
评论 #9999581 未加载
staticelfalmost 10 years ago
Cool book, I hope you will get some success with it. I don&#x27;t have a kid (yet) but I will maybe buy it as a gift as I live in one of the countries with publishers.
tigroferocealmost 10 years ago
Cool. Would you translate into other languages? Having kids speaking Italian I would be interested ;-)
评论 #9994619 未加载
评论 #9994717 未加载
x0almost 10 years ago
That book is absolutely beautiful.
juhqalmost 10 years ago
Torilla tavataan!
wyclifalmost 10 years ago
&quot;Its&quot; not &quot;its&#x27;&quot;, heads up.