| fragglet ( @ 2006-03-31 15:54:00 |
Python troll
15:31 <Jon> holy smokes python's join approach is weird
15:35 <fraggle> ?
15:36 <Jon> well I'm used to join(glue,pieceS)
15:36 <Jon> (procedural)
15:36 <Jon> or array.join(glue)
15:36 <Jon> OO
15:36 <Jon> python is
15:36 <Jon> glue.join(pieceS)
15:37 <Jon> so join and split are both string methods
15:41 <fraggle> yeah thats fucked up
15:42 <fraggle> doesnt make any sense
15:42 <fraggle> python kind of annoys me a bit with things like that
15:42 <fraggle> like "print" doesnt seem to be a function for example
15:43 <fraggle> what the hell is with that
15:43 <Jon> heh
15:43 <fraggle> so the syntax for printing to the screen is different for printing to a file or pipe
15:43 <Jon> what's with being an OO language and having len(foo) instead of foo.length
15:43 <Jon> even worse,
15:43 <fraggle> unlike in ruby where its just puts "foo", pipe.puts "foo"
15:43 <Jon> class foo:
15:43 <Jon> \tdef __init__(self):
15:44 <Jon> ^^^ explicit self arg?!?!
15:44 <fraggle> yes god thats so shit
15:44 <fraggle> len() is horrible
15:44 <Jon> hehe
15:44 <fraggle> the explicit self argument is another thing thats utterly braindamaged too
15:44 <Jon> python has nice list comprehensions, lambda expressions and higher order functions, though
15:44 <Jon> yeah explicit self is unbelievable
15:45 <fraggle> seriously with the self thing i find it hard to believe so many people take python seriously
15:46 <fraggle> the funny thing about len(foo) is that it just calls foo.__len__ anyway
15:46 <fraggle> wtf is the point
15:47 <fraggle> oh and another thing
15:47 <fraggle> magic naming
15:47 <fraggle> by default all variables belonging to an object are public
15:47 <fraggle> the way to make them private is to add a '_' to the start of their name
15:49 <fraggle> whereas in ruby object variables are always private but there is syntactic sugar to add accessor methods
15:49 <fraggle> so much nicer
15:50 <fraggle> i have to wonder sometimes how much prior programming experience guido van rossum actually had when he started python
15:31 <Jon> holy smokes python's join approach is weird
15:35 <fraggle> ?
15:36 <Jon> well I'm used to join(glue,pieceS)
15:36 <Jon> (procedural)
15:36 <Jon> or array.join(glue)
15:36 <Jon> OO
15:36 <Jon> python is
15:36 <Jon> glue.join(pieceS)
15:37 <Jon> so join and split are both string methods
15:41 <fraggle> yeah thats fucked up
15:42 <fraggle> doesnt make any sense
15:42 <fraggle> python kind of annoys me a bit with things like that
15:42 <fraggle> like "print" doesnt seem to be a function for example
15:43 <fraggle> what the hell is with that
15:43 <Jon> heh
15:43 <fraggle> so the syntax for printing to the screen is different for printing to a file or pipe
15:43 <Jon> what's with being an OO language and having len(foo) instead of foo.length
15:43 <Jon> even worse,
15:43 <fraggle> unlike in ruby where its just puts "foo", pipe.puts "foo"
15:43 <Jon> class foo:
15:43 <Jon> \tdef __init__(self):
15:44 <Jon> ^^^ explicit self arg?!?!
15:44 <fraggle> yes god thats so shit
15:44 <fraggle> len() is horrible
15:44 <Jon> hehe
15:44 <fraggle> the explicit self argument is another thing thats utterly braindamaged too
15:44 <Jon> python has nice list comprehensions, lambda expressions and higher order functions, though
15:44 <Jon> yeah explicit self is unbelievable
15:45 <fraggle> seriously with the self thing i find it hard to believe so many people take python seriously
15:46 <fraggle> the funny thing about len(foo) is that it just calls foo.__len__ anyway
15:46 <fraggle> wtf is the point
15:47 <fraggle> oh and another thing
15:47 <fraggle> magic naming
15:47 <fraggle> by default all variables belonging to an object are public
15:47 <fraggle> the way to make them private is to add a '_' to the start of their name
15:49 <fraggle> whereas in ruby object variables are always private but there is syntactic sugar to add accessor methods
15:49 <fraggle> so much nicer
15:50 <fraggle> i have to wonder sometimes how much prior programming experience guido van rossum actually had when he started python