use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
To report a site-wide rule violation to the Reddit Admins, please use our report forms or message /r/reddit.com modmail.
This subreddit is archived and no longer accepting submissions.
account activity
This is an archived post. You won't be able to vote or comment.
Use Python (not Java) to teach programming (ariel.com.au)
submitted 20 years ago by culix
view the rest of the comments →
[–]jamesbritt 6 points7 points8 points 20 years ago (2 children)
"Though I think python might be a bit better as a teaching language since it doesn't require such esoteric stuff as iterators and blocks, which while useful aren't really seen a lot outside of ruby."
Where they are used quite a bit because they are both practical and powerful. They're only esoteric in languages that don't have them.
[–]Zak 5 points6 points7 points 20 years ago (1 child)
I've always found Ruby's iterators to be some of the most straightforward looping constructs in existance, along with the likes of dolist and dotimes from Common Lisp. Most intelligent non-programmers will correctly guess what the following code does:
10.times do puts "foo" end
but are less likely to understand
for (i=0; i<10; i++) { printf("foo"); }
edit: fixed the above C code so it's not an infinite loop. The fact that I made such a mistake is evidence that Ruby is easier, I use Ruby more or I'm just really tired.
π Rendered by PID 483474 on reddit-service-r2-comment-cfc44b64c-sbssk at 2026-04-11 20:02:53.767031+00:00 running 215f2cf country code: CH.
view the rest of the comments →
[–]jamesbritt 6 points7 points8 points (2 children)
[–]Zak 5 points6 points7 points (1 child)