Hungarian - is that like getting it "french"?
In the past few years I have discovered many starting to use Hungarian notation like names in Java and just today I also saw some in Python. For instance the author of Tapestry, a framework I just love, tend to use I as a prefix of all interfaces like IMyInterface. Is this a good idea? I haven't just yet decided for myself - normally I, myself, would not do that in java, as I find it is not neccessary and I do not want the end-user (if it is API code) to know the difference between my interfaces and actual implementing classes, but still - it doesnt really matter. I guess it's a matter of like.
A tiny note about Python, now - I still learning so bare with me but its just doesnt seem easy to implement API's in Python (perhaps generally in dynamically types languages). I was playing around with twisted today (great framework by the way) and wanted to extend the base Protocol class but I didn't know which methods to implement or override and the documentation is kinda hard for me to read coming from the Java world. In Java you DONT have this kinda problem (even as a novice Java programmer) as your IDE (or Java compiler) will TELL you what methods you have to override or implement. Well - I guess its just one of those things I'll have to get used to....
0 Comments:
Post a Comment
<< Home