Comments on: Smalltalk habits in Python http://blog.amber.org/2004/12/07/smalltalk-habits-in-python/ Thoughts of a minor lunatic Wed, 21 Oct 2009 01:55:36 +0000 http://wordpress.org/?v=2.9.2 hourly 1 By: Ian Bicking http://blog.amber.org/2004/12/07/smalltalk-habits-in-python/comment-page-1/#comment-1370 Ian Bicking Unknown, 30 Nov -0001 00:00:00 +0000 http://amber.textdriven.com/2004/12/07/smalltalk-habits-in-python/#comment-1370 I think you are interpreting more intention behind this than actually exists. Python tends to be more imperative than Smalltalk, which leads to more lines. And a single method can serve many purposes given different keyword arguments, which isn't what you'd do in Smalltalk; a set of methods in Smalltalk often becomes one almost completely equivalent Python method. The UI probably is to blame as well. Methods are very distinct units in Smalltalk, but a little more vague in a file. If three things are always executed in sequence, it's a little annoying in Python if it's three methods. I think you are interpreting more intention behind this than actually exists.

Python tends to be more imperative than Smalltalk, which leads to more lines. And a single method can serve many purposes given different keyword arguments, which isn’t what you’d do in Smalltalk; a set of methods in Smalltalk often becomes one almost completely equivalent Python method.

The UI probably is to blame as well. Methods are very distinct units in Smalltalk, but a little more vague in a file. If three things are always executed in sequence, it’s a little annoying in Python if it’s three methods.

]]>
By: petrilli http://blog.amber.org/2004/12/07/smalltalk-habits-in-python/comment-page-1/#comment-1371 petrilli Unknown, 30 Nov -0001 00:00:00 +0000 http://amber.textdriven.com/2004/12/07/smalltalk-habits-in-python/#comment-1371 I disagree. For example, I have a method which builds up a data structure from some input. It has a lot of stages that it goes through linking it together, and to do that all in __init__ would be silly. Honestly, I think different people have different approaches, but I find that if I can hide certain things, the overall logic becomes much more obvious. I disagree. For example, I have a method which builds up a data structure from some input. It has a lot of stages that it goes through linking it together, and to do that all in init would be silly. Honestly, I think different people have different approaches, but I find that if I can hide certain things, the overall logic becomes much more obvious.

]]>