Best of habrSeptember 2024

  1. 1
    Article
    Avatar of habrhabr·2y

    Python Clean Code: Stop Writing Bad Code — Lessons from Uncle Bob

    Transform messy, unorganized code into clean, readable, and maintainable Python code by applying key principles from Robert C. Martin's 'Clean Code'. Learn to use meaningful naming, modular functions, proper error handling, and consistent formatting to enhance your code quality. Avoid common pitfalls like excessive comments, code duplication, and side effects. Test-Driven Development (TDD) and Command Query Separation are also discussed as vital practices for robust code.

  2. 2
    Article
    Avatar of habrhabr·2y

    Kata Containers for Docker in 2024

    Kata Containers offer a secure way to run containers within isolated virtual machines. The post discusses alternatives to Docker-Machine and highlights Kata's usage on different Linux distributions. It explains the lack of pre-built packages for some distributions and provides a detailed guide on installing Kata Containers from source or pre-built binaries, emphasizing the importance of security updates and the process of setting up and running containers using Kata.

  3. 3
    Article
    Avatar of habrhabr·2y

    React Native Splash Screen — support for different themes

    The dev.family team shares a comprehensive guide on installing a splash screen in a React Native app with support for both light and dark themes. The guide includes step-by-step instructions for both iOS and Android platforms. It details the installation and configuration process using the react-native-splash-screen library and provides examples for handling different themes in app assets and layout configurations.