I have been a passionate student of the Python language for quite some time. With more than 6 years of experience working with Java [professional], combined with little experience with C ++ [hobbies], it’s fair to say that my perspective is deeply rooted in idioms generated by such statically typed, highly related languages. In short, I could say that the old-school style has a big influence on my programming style.
My reason for picking Python, not Ruby, was primarily a coincidence, since I got some of the work time, I could help using Python. it was 2 weeks, and everything was nothing more than a revolution! armed with w / IDLE and the Python Essential Reference , this was one revelation after another. it is like a classical physicist would feel if gravity ceased to exist!
In any case, I understand that for effective w / python it will take some time for real practical work. more than syntax, I feel this because of how my mind thinks. however, prepared just like me, there is one thing that bothers me quite a bit - python offers too many idioms to accomplish the same thing. For example, a list comprehension and a filter (...) apply (...) and eval (...) etc., while these idioms are not completely interchangeable, but I believe that their main goals overlap to a large extent, I understand that there should be basic performance indicators regarding their use. however, as a newbie, what's the best way to get into education and curb the distraction of the “n” ways to solve the same thing?
source share