Re:Every language fixes something - a DiGraph - just for fun
by thurn on Thursday July 28, 2011 @01:00PM
(#2817738)
I don't understand this code. In the Ruby example, mouse_x() appears to be a method on the current object, in the Python one it's a method on some other object (a module named "processing"?). Since the code examples are the same, I'd say whichever language I'm wrong about is the less clear one.
[ Parent
| on HN ]
Re:Every language fixes something - a DiGraph - just for fun
by kragen on Thursday July 28, 2011 @01:59PM
(#2818057)
Yes. I don't have a Python version of Processing, so I thought about how the Processing API would best be exposed in Python — and it would probably be by calling functions exported by a module named "processing", rather than by inheriting your class from processing.App. So you're right about both languages.