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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Try Ruby

212 点作者 chrisbaglieri超过 13 年前

14 条评论

cppsnob超过 13 年前
Serious question: has anyone gotten anything out of these browser-based language playgrounds? I just don't think it's hard to download the real thing to try it, so I thought I'd ask if anyone has really been inspired by it.
评论 #3056491 未加载
评论 #3056100 未加载
评论 #3056756 未加载
评论 #3055635 未加载
评论 #3055985 未加载
droithomme超过 13 年前
Here's some things I was happy to find with this page:<p>1. up/down arrows scroll through buffer history<p>2. ctrl-a goes to beginning of edit-buffer and ctrl-e goes to end of edit buffer<p>Nice attention to detail that makes it a pleasure rather than a chore.
TheDahv超过 13 年前
I have never seen this before:<p>&#62;&#62; help<p>&#62;&#62; 2 + 6<p>&#60;!DOCTYPE html&#62; &#60;html&#62; &#60;head&#62; &#60;title&#62;The page you were looking for doesn't exist (404)&#60;/title&#62; &#60;style type="text/css"&#62; body { background-color: #fff; color: #666; text-align: center; font -family: arial, sans-serif; } div.dialog { width: 25em; padding: 0 4em; margin: 4em auto 0 auto; border: 1px solid #ccc; border-right-color: #999; border-bottom-color: #999; } h1 { font-size: 100%; color: #f00; line-height: 1.5em; } &#60;/style&#62; &#60;/head&#62;<p>&#60;body&#62; &#60;!-- This file lives in public/404.html --&#62; &#60;div class="dialog"&#62; &#60;h1&#62;The page you were looking for doesn't exist.&#60;/h1&#62; &#60;p&#62;You may have mistyped the address or the page may have moved.&#60;/p&#62;<p><pre><code> &#60;/div&#62; </code></pre> &#60;/body&#62; &#60;/html&#62;
评论 #3054086 未加载
stfu超过 13 年前
I have no Ruby skills at all, so I am probably within the "target group". One suggestion I would have is: It would be cool if there were some kind of putting-it-all-together-yourself thing at the end of each level. Just before the summary comes a little level-challenge where one would have to apply all the steps from the level combined. This would most likely mean going back to look up certain functions from the challenge, but prep one more for later when actually doing some coding on my own.
petercooper超过 13 年前
Hang on.. CodeSchool bought tryruby.org?
评论 #3057176 未加载
tryke超过 13 年前
Has it fallen down already? The rest of codeschool.com works but I get an "Application Error" when I go to Try Ruby.
评论 #3053901 未加载
danso超过 13 年前
Errr....this is not quite right:<p>&#62; [1,2,3].ea­ch{|v| puts v} =&#62; "123"<p>*edit: Assuming this is deployment/back-end related issues. I just tried the above again and got this:<p>[1,2,3].ea­­ch{|v| puts v} =&#62; #&#60;SyntaxError: Invalid char "\xC2" in expression. near line 1: "\xADch{|v| puts v}"&#62;
评论 #3054707 未加载
评论 #3056500 未加载
berseroku超过 13 年前
Nice work!, the chapter of the Popup.goto "<a href="http://google.com/" rel="nofollow">http://google.com/</a> doesnt work for me, any requirements (try in chrome, Firefox) for this module to work?. Thanks
评论 #3056194 未加载
madebylaw超过 13 年前
Great looking redesign! It'd be cool if someone added harder challenges (like CS algorithms or something) that you could use for programming interviews.
kaichanvong超过 13 年前
Anyone interested in working on a Python version?
abscondment超过 13 年前
Spawn More Overlords!
rajpaul超过 13 年前
i've never programmed ruby before, and i'm really enjoying the tutorial so far. i'm going to forward it to some non-programmer friends and see what they think.
hristov超过 13 年前
is ruby really that slow? The things has been trying to reverse my name for the last 5 min. And it is fake four letter name i gave it. I shudder to think what would happen if it were my real name.
评论 #3054225 未加载
评论 #3054378 未加载
评论 #3054713 未加载
评论 #3054600 未加载
wakaflokkaflame超过 13 年前
This thing is ass-awful.<p>require 'sele­nium/clien­t' =&#62; #&#60;NoMethodError: undefined method `require' for main:Object&#62; &#62; a = [] =&#62; [] &#62; (1..999999­999).each {|i| a &#60;&#60; i} =&#62; Danger! Danger! Your code took too long to run. It's like a turtle it's so slow. &#62; (1..999999­9).each {|i| a &#60;&#60; i} =&#62; Once, when waiting for some code to finish running, 3 angels visited Chris Barker and asked him to stop picking his nose
评论 #3054700 未加载