TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Hello Ruby – Almost there

231 点作者 yorak将近 10 年前

12 条评论

pluma将近 10 年前
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 未加载
knivets将近 10 年前
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 未加载
hopeless将近 10 年前
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 未加载
gregd将近 10 年前
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 未加载
revskill将近 10 年前
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 未加载
FilterSweep将近 10 年前
It&#x27;s all fun and games until the kids reach a gem dependency conflict that bundler doesn&#x27;t fix......
评论 #10006686 未加载
_sword将近 10 年前
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 未加载
staticelf将近 10 年前
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.
tigroferoce将近 10 年前
Cool. Would you translate into other languages? Having kids speaking Italian I would be interested ;-)
评论 #9994619 未加载
评论 #9994717 未加载
x0将近 10 年前
That book is absolutely beautiful.
juhq将近 10 年前
Torilla tavataan!
wyclif将近 10 年前
&quot;Its&quot; not &quot;its&#x27;&quot;, heads up.