When should I use a loop instead of a built-in function?
I often solve a problem with a manual loop, only to discover later that the language already provides a built-in function or standard-library method for it. In general,…
I often solve a problem with a manual loop, only to discover later that the language already provides a built-in function or standard-library method for it. In general,…
I'm writing a Python application whose main job is computing hashes for files. The hashing algorithm may depend on both the file's properties, such as its MIME type,…
I have a Python list with one item per line and a short inline comment describing each item. For example: [ item1, # a comment item2, # another…
Tools such as Ruff, mypy, pytest, pytest-cov, pip-audit, CodeQL, and SonarQube can check syntax, types, tests, security, and various code-quality metrics. But are there tools that can assess…
I'm a recent computer science graduate, and I'm currently building an internal tool at work as the only technical member of the team (not the best situation, I…
I'm working on a project called Postepro, which aims to manage business workflows and internal operations. I'm looking to build scalable and maintainable software suitable for long-term use…
I'm currently working on a large project with extensive features, but I've noticed that some files have exceeded 1000 lines of code. I'm concerned about whether this could…
Hey everyone! I recently found a solution using DOM components that fits my project perfectly, but I'm wondering if this approach is generally regarded as good practice. It's…
I'm working on a medium-sized Python project and really want to make sure my code is both clean and maintainable. I've read about coding standards and principles like…
As web developers, we often encounter the challenge of creating applications that meet both current requirements and future needs for scalability and maintainability. I'd love to hear your…
I'm looking for advice on how to write code that is clean and maintainable. What practices or principles do you think are most important? Any personal experiences or…
As a computer science student who's primarily focused on backend development, I've learned that coding isn't just about making something function; it's about writing quality code too. Now…
I'm currently working on webhook handlers and I've been breaking down the logic into smaller, dedicated functions to enhance maintainability, readability, and ease of testing. Now, I'm left…