4 ms·
Nice learning guide. On basic level Python is easy to learn, if already familiar with anything programming related. However, acquiring a practical idiom for Pyt
by zoomablemind 4y ago
Nice learning guide. On basic level Python is easy to learn, if already familiar with anything programming related. However, acquiring a practical idiom for Python code is not that trivial, in my experience. There are so many ways of expressing the same intent in Python, also the lack of explicit types eventually bites you where least expected. Also the whole domain of the double-underscore object-functions is like an "easter egg" left for someone to figure out.
I wish the learning guides early on centered on builing an "engineered" application. Covering the approaches to structring the application, user input processing, error handling, logging, dependencies, packaging etc. Such that the learners won't be left alone with a simple knowledge of syntax and basic operations.
Well, likely there are such guides already.
- molsongolden 4y agoHas anybody seen a good guide like the "engineered" application mentioned above?
- dangets 4y agoI'll give a plug for 'Cosmic Python'[0], it goes into detail of structuring larger python applications using hexagonal-ish architecture. I wouldn't recommend this approach for smaller services. [0] https://www.cosmicpython.com/book/preface.html https://www.cosmicpython.com/book/preface.html
- Pandabob 4y agoI'd personally like to see more python books like Cosmic Python, that delve into how to build enterprise applications with the language. Feels like an unserved market compared to all the python related data science books that are really popular. That said, at some point it starts to make sense to read open source repositories to pick up useful patterns.
- wildrhythms 4y agoI agree, and my belief is as soon as beginners get to the inevitable early hurdle of "ah well if you want to type a number into input() you have to cast it to an integer type..." the vague allusions to simplicity surrounding Python vanishes and you might as well have started with Java like most college curriculums do.
- leadingthenet 4y agoI fail to see what the argument is here. So Python is a strongly typed language with no (/little) implicit casting, therefore you might as well learn another a language that shares those supposed faults but is potentially more complicated in every other way, because...? Is having to explain namespaces, public vs private, static and so on just to get the most basic Java possible program off the ground on mostly the same level of complexity? Or do you just glance over those initially, like a complete beginner would for type casting an input in Python?