3 ms·
Been thinking about learning to code, and a lot of people have recommended Python as a good language to begin with. Taking a look at this, should I be looking e
by gloves 11y ago
Been thinking about learning to code, and a lot of people have recommended Python as a good language to begin with. Taking a look at this, should I be looking elsewhere?
- orf 11y agoPython is an excellent language to begin with, you're reading this article wrong if it puts you off Python. There is drama around Python 2 or Python 3, but the answer is clear. Use Python 3 for new projects, use Python 2 when you have to (legacy projects).
- agumonkey 11y agoIt has nice features: - not large syntax - expressive overloaded keywords (in) - slice syntax that is easy on mind and eyes - nice set of builtin structure: lists, sets, dicts - with literals for all of them [], {}, {:} - lambda, generators, context (cute yet general way to ensure releasing resources, files, connections..) But as all languages, you can lose yourself, learn and write shitty code in it. Find idioms, https://duckduckgo.com/?q=raymond+hettinger+python&ia=videos https://duckduckgo.com/?q=raymond+hettinger+python&ia=videos <- hettinger likes to makes python code small and solid ps: I don't like it's oop syntax sometimes That said, I never learned so much about one language than by learning another one. All paradigms have at least one gem to discover.
- hodwik 11y agoIf you decide to learn Python, I'd suggest going through the Learn Python the Hard Way book. It's excellent.
- hodwik 11y agoWeirdest downvotes I've ever gotten.