Lurker News
I've been a longtime member @ HN, but I haven't been a developer. In fact, my only HN submission has been one asking how to learn to code (http://news.ycombinator.com/item?id=820741). My cofounder and I decided to solve the problem by making a simple, interactive way to get started with Codecademy. We'd love your feedback. If you're interested in helping us to get more courses up (on any topic!), please send us an email at HN@codecademy.com.

Comments (232) 101 threads

Show all comments

Showing thread 33 of 101

Cushman1 reply#
Just FYI, since I assume it doesn't come up in the lessons, your REPL doesn't like objects that self-reference, even though it isn't trying to print them out.

  > o = {}
  > o.o = o
  ==> [object Object]
  ERROR: Maximum call stack size exceeded
This isn't totally unusual; `window` has several self-references, for example, and hangs for several seconds.
amasad1 reply#
@zds inspect.js should fix this issue, which was written by the Node people to inspect objects in the terminal and take care of circular references. I edited it to make it work on the web https://github.com/amasad/jsrepl/blob/master/util/inspect.js Just pass all results from eval to the inspect function and you'll get a nice pretty printed output!
zds#
thanks, amasad. looking into this now!