Tuesday, November 19, 2013
Here We Go
I'm used to C style code where everything is private. I thought it was weird when learning it, and was frustrated. But learning programming right off the bat with everything private made it acceptable. I find it very foreign, and despite being easy to use, horrible that python is public. Python is not only public by default, but it has to be public. The best you can do to try to make something private in python is indicate that something should be treated a private, even though it is not. I would forgive python for making everything public by default if you could actually make things private! I can only image the troubles everyone in the class will have with adjusting to the real world of private programming if they are only coming form this Python background. I'm also used to the concept of properties. I've never really found the benefit of making all my variables properties. I remember glancing at my gr.12 friend's code at the lunch table in gr.9, seeing him only use properties. I often only see properties when digging down in libraries of code. Maybe after more coding I will one day jump on the property bandwagon.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment