news.volyx.in

I'm switching to Python and actually liking it (cesarsotovalero.net)

469 points by cesarsotovalero · 378 days ago · 695 comments on HN

Article summary

The article discusses the author's experience with switching to Python and their positive impressions of the language, particularly in the context of AI applications. The author highlights the improvements in Python's ecosystem, libraries, and tools, making it a more enjoyable language to work with. The article also delves into the author's preferred tools and workflows for building production-ready Python applications. The author shares their project structure, Python toolbox, and infrastructure management approaches.

Main themes

  • Python ecosystem and development
  • Legacy features and syntax
  • macOS and Python installation
  • Magic methods and alternative APIs
  • Language choice and versatility
  • Development workflows and tools
  • Beginner-friendliness and convenience

What commenters say

  • Some commenters disagree with the author's view that Python's legacy features, such as __init__ and __new__, are ugly and should be hidden.
  • The removal of Python from macOS is seen as a positive development by some, as it allows developers to install and manage their own versions of Python.
  • Others argue that having Python pre-installed on macOS was convenient for beginners and casual users.
  • The use of magic methods in Python is defended as a necessary and useful feature, despite some finding it visually unappealing.
  • Alternative APIs, such as @dataclass and Pydantic, are seen as viable options for those who dislike Python's built-in syntax.
  • Some commenters believe that Python's syntax and features are not as important as the ease of use and versatility of the language.
  • The idea that Python is the 'second best language' for many tasks is disputed, with some arguing that it is often the first choice for many applications.
  • The importance of having control over the version of Python installed on a system is emphasized by some commenters.