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.

Try Erlang, a hands-on tutorial

66 pointsby sdpalmost 15 years ago

9 comments

rednumalmost 15 years ago
Some notes after doing a few steps of tutorial:<p>- a simple command history feature in the shell would be really nice<p>- I wish the notification that I don't follow tutorial didn't appear there each time I try to play with the shell - well, I like the tutorial but I want to play on my own for a few moments, and this message is quite a distraction<p>- also, proceeding to next step of the tutorial could be done in some other way - e.g. I see logical operators and I try some of them, and they all disappear when i type one; it would be much easier for a newbie to learn some erlang if they stayed a bit longer on the screen<p>- there should be a 'back' button in some visible place too - e.g. next to clear window and reset - I can't find it at the moment<p>EDIT#1: formatting<p>EDIT#2: well, it seems that history is there - it just didn't work for some reason in my browser when I started. At the moment I am stuck in lists and tuples - whatever I do in 'Building a list' section I got a message it is not I am meant to do - is the tutorial bugged (or is it my browser again)?
评论 #1418989 未加载
uros643almost 15 years ago
Don't get me wrong, I respect these try-X efforts. But they have glaring annoyances (usually popping up in the name of Security) that are just begging me to open a good old-fashioned command-line REPL (but that's if I'm at my own computer).<p>For instance, in Try Erlang, io:format is out of reach, not to mention spawn. Same goes for Try Clojure: there doesn't appear to be a way to create threads.<p>Don't you think, given the languages we're talking about here, that these projects are self-handicapping from the start? (the seriousness of those security measures notwithstanding)<p>I'm getting the feeling that these online REPLs were created just to show that it's possible to do, not to address any practical concern or to highlight a strength of these languages.<p>Again, I don't mean to disparage the efforts of the authors. Just my $0.02
评论 #1420776 未加载
评论 #1419379 未加载
vmindalmost 15 years ago
Very nice so far. The online REPL tutorials are always a great opportunity to try something new quickly.<p>"Operations on integers (and floats) include addiction.." Just a rather amusing typo in one of the first sections.
评论 #1419043 未加载
roryokanealmost 15 years ago
It’s pretty annoying to have to type “.” after every expression. I’m sure there’s a reason for it in Erlang, but perhaps it would be better for the tutorial to automatically add it for you for the first few sections of the tutorial, until you learn what it really means, and come upon a situation where you finally don’t want it. At the very least, a clearer warning message than “syntax error” should be shown if you forget the dot, in one of those fading black rectangles.
评论 #1418585 未加载
fbualmost 15 years ago
I got a 503, anyone else does?
评论 #1418161 未加载
评论 #1418959 未加载
评论 #1418399 未加载
pronealmost 15 years ago
This video is also a great way to get up to speed on Erlang: <a href="http://www.youtube.com/watch?v=qyVvGjNjBOA" rel="nofollow">http://www.youtube.com/watch?v=qyVvGjNjBOA</a>
jacktangalmost 15 years ago
This is not exactly what was requested by the current tutorial step. Feel free to play with the shell, anyway.<p>Erlang R13B04 (erts-5.7.5) &#62; node(). "This functionality has been disabled for security reasons in tryerlang.org." &#62; q(). "This functionality has been disabled for security reasons in tryerlang.org." &#62; ls(). "This functionality has been disabled for security reasons in tryerlang.org." &#62;
rubyrescuealmost 15 years ago
first thing i did, lists:map(fun(X) -&#62; X * 2 end, lists:seq(1,100)), and it worked! very cool.<p>next thing i did: application:which_applications(), and that didn't work.
metamemeticsalmost 15 years ago
<i>Expressions using arithmetical operators<p>Operations on integers (and floats) include addiction</i>[sic]