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.

Have I broken Try Ruby?

4 pointsby lexy0202almost 13 years ago
Go to http://tryruby.org/ and open the network inspector.<p>Run `a = []` - and you should get 200 OK.<p>Run `a &#60;&#60; a` - and you get a 500 internal server error.<p>Normally the sandbox will handle a problem by some kind of exception or text warning (e.g. on timeout), but it can't even handle the request.. so have I broken it?<p>Inspired by this video from a guy who works on the sandbox: http://www.youtube.com/watch?v=6XxCOYco3Eg

2 comments

maytcalmost 13 years ago
Its an infinite loop. However it seems that the sandbox have some way to detect an infinite loop with while loops, etc. However this is probably an edge case they have missed.<p>Good catch!
评论 #4354445 未加载
patrickmclarenalmost 13 years ago
Yep, looks like it. Be pragmatic about it, send them an email -- gregg@envylabs.com , or tweet them @codeschool .
评论 #4354432 未加载