« first day    last day (4938 days later) » 

4:14 AM
Is Python a good language to start with if I'm starting to learn programming?
 
I would say yes.
 
4:41 AM
Why is it better than something like Ruby for a beginner like me?
 
Well, this is an aesthetic judgment, but I'd say that it's more straight forward than ruby.
 
5:10 AM
This is a pretty good comparison between Python and Ruby: c2.com/cgi/wiki?PythonVsRuby
 
 
1 hour later…
6:19 AM
Hello world.
 
o/
 
6:56 AM
Sup peeps
 
 
1 hour later…
8:14 AM
@Dave @Nathan @Ryan Thanks!
 
 
5 hours later…
1:04 PM
gah
80% of the content makes me want to cringe
well, 80% of BlocksInPython really
class myList(list):
  def collect(self, f):
   return myList([f(e) for e in self])
imap is for wimps!
Also, the ruby equivent of [(x,y) for x in xrange(3) for y in xrange(3) if x != y] apparently is
a = []
0.upto 2 do |i|
  1.upto 2 do |j|
    a << [i,j] if i != j
  end
end
but you can write a=[];0.upto(2){|i|0.upto(2){|j|a<<[i,j] if i!=j}} which is better because it has less chars!
who woulda thunk? way to miss the point.
(yes, somebody had the grace of adding 3.times{|x| 3.times{|y| a << [x,y] if x != y }}, which is somewhat better but still imperative -- point is still lost)
"In Ruby, for loops are ugly and bug-prone." ...w-- wh-- who-- what? That can't possibly be true?
(the above @dave)
 

« first day    last day (4938 days later) »