When not to apply programming principles
Sometimes applying programming principles can cause more harm than good. We shouldn’t just apply them dogmatically. Find out when, why and what to do about it.
Sometimes applying programming principles can cause more harm than good. We shouldn’t just apply them dogmatically. Find out when, why and what to do about it.
There are multiple reasons why code changes are error prone in programming. There is also a way to minimise the negative effects of changes.
Find out what side effects are, why they are dangerous and how to handle them.
What is abstraction, why do we need it and what are its dangers? Find out how to do it correctly and prevent issues.
What is separation of concerns and why do we need it for software that’s safe and easy to work with?
The principle of least knowledge is an essential software development principle. The less software knows, the easier it is to work with.
The principle of least astonishment is one of the fundamental principles in software development. Possibly the most important there is.
We need to keep in mind that software complexity increases exponentially with scale. Bad practices at a small level multiply when the project is larger.
One of the most important things we need to accomplish is to make software changes easy and safe. Propagating changes are a big obstacle to software development.’
This premise says that we must understand what we’re doing at all times. We can’t program by coincidence until we stumble upon something that works.