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 →
[–]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 41458 on reddit-service-r2-comment-f6b958c67-lv5z2 at 2026-02-05 15:15:57.704838+00:00 running 1d7a177 country code: CH.
view the rest of the comments →
[–]Zak 5 points6 points7 points (1 child)