Wednesday, January 22, 2014

OOP between Python and Objective-C

The basic idea of OOP, object and method is same in Python and Objective-C. But there is some difference between them.

Similar to Java, Obj-c divided a class into public and private part strictly. Other functions can use only public method and property of the class, while in Python, everything in fact is public. 
In obj-c method and property are called in different syntax. [object message] is used for a method, and object.property is for a property. However, in python it seems that the only difference is that properties do not have the brackets behind it. 

But I assume that for my knowledge about the both language is far from enough, there are much more difference within them. By Why Objective-C is “weird” for the contemporary programmers, Python is more c++-like while obj-c learns more from small talk. 

Monday, January 20, 2014

Aloha World!

So this is my blog of programming. I may not go further into programming, which means I may not maintain this nice little web page, however, I can guarantee you at least three essays, for it is required by my course. Also, if you can find it, I also have a abandoned blog at blogger.com, written in Chinese, and it's funny to read those articles where I tried hard to make simple things sophisticated. I hope I will not do that again here.
And that's it.