Post Azct98OZ6yTJ41IIAC by raiderrobert@mastodon.social
(DIR) More posts by raiderrobert@mastodon.social
(DIR) Post #Azct92EQ1mn3woV6W0 by raiderrobert@mastodon.social
2025-10-25T12:00:50Z
0 likes, 1 repeats
I wish more software engineers would heed the Principle of Least Astonishment."A component of a system should behave in a way that most users will expect it to behave, and therefore not astonish or surprise users."The principle recognizes that cognitive load matters in software design to the other developers.1/
(DIR) Post #Azct98OZ6yTJ41IIAC by raiderrobert@mastodon.social
2025-10-25T12:00:50Z
0 likes, 0 repeats
When this principle is violated, developers struggle with:- functions that have side effects not suggested by their names- error codes that provide no useful information- APIs where similar operations have completely different interfaces- configuration that lives in unexpected places- architecture patterns that are inconsistentWhen systems behave as developers expect, they can focus on their actual work instead of figuring out how the system works.2/