Topic Archive

Best Practices

  • Single or double quotes in Python?

    ·

    ·

    3 min read

    Whatever you think about Twitter these days, it’s pretty handy for us developers to ask questions and get inputs 💡 Last week I asked about single vs double quotes in Python: I thought double quotes were a given, black – “The Uncompromising Code Formatter”, defaults to them and I personally find them pleasant to the eye. Until I read about a different formatter in Fluent Python (2nd ed) called blue (“a somewhat less uncompromising code formatter than black”) and its preference for single quotes: Given the goal of enforcing a “standard” coding style, blue is better than black because it follows…


  • Errors should never pass silently

    ·

    ·

    3 min read

    In this article some important anti-patterns regarding error handling and how to solve them making your code more Pythonic and easier to maintain.


  • Beautiful, idiomatic Python

    ·

    ·

    2 min read

    Transforming Code into Beautiful, Idiomatic Python is a must-watch to write more Pythonic code. In this post some highlights.