?

Log in

No account? Create an account
Python - Nick [entries|archive|friends|userinfo]
Nick

[ website | gagravarr.org ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

Python [Dec. 1st, 2003|12:37 pm]
Nick
[music |Levellers - 7 Chemically Free]

Today, I'm learning Python (well, apart from when I'm in meetings, doing SysAdmin tasks, writing cold fusion etc, but you get the idea). Current thoughts so far:

  • Indentation - still not convinced it solves more than it fixes
  • Lack of implicit calls to str() when building strings is most pesky (Java can do it, so why not python?) Doing '"foo %d bar" % myint' is just icky, and '"foo " + str(myint) + " bar"' is needlessly verbose
  • Access to inline documentation via __doc__ is very very cool. Shows Perl's POD stuff up as the muppet thing it is, and reminds you that JavaDoc just isn't quite there. Having tried to fake this sort of thing in Perl a few times, I can really see the advantages of it
  • The OO stuff isn't quite as "in your face" as I feared it might be (apart for point 2), so you can easily script in it without having to think quite as much as Java forces you to


Still not convinced it'll replace my current prefered languages (perl for scripting and small projects + small CGI, Java for big things and Cold Fusion for any medium to big web based stuff), but I'm approaching the learning of it with interest.
linkReply

Comments:
From: zihuatenejo
2003-12-01 05:31 am (UTC)
Still avoiding it so far, my second supervisor loves it though so I doubt I'll get away with it for much longer.
(Reply) (Thread)