#single-responsibility

[ follow ]
Software development
fromInfoWorld
11 hours ago

A developer's guide to avoiding the brambles

Guard against unexpected states, keep each component single-responsibility, and apply pragmatic defensive practices to reduce bugs and misadventures in application development.
fromMathspp
1 month ago

Functions: a complete reference | Pydon't

Do not overcrowd your functions with logic for four or five different things. A function should do a single thing, and it should do it well, and the name of the function should clearly tell you what your function does. If you are unsure about whether some piece of code should be a single function or multiple functions, it's best to err on the side of too many functions. That is because a function is a modular piece of code, and the smaller your functions are, the easier it is to compose them together to create more complex behaviours.
Python
[ Load more ]