Post by rubina9898 on Dec 21, 2023 3:40:15 GMT
Unctions and classes. Empathetic code is code without complicated dependencies consistent with good practices such as the already mentioned SOLID KISS and DRY. Such code can also use design patterns but in a reasonable and responsible way. Empathy in programming also means consistency using a uniform style conventions and solutions in the code. Empathetic code is tested code. However the mere existence of tests is not enough. Tests should be stable fast easy to expand and maintain and actually test a given piece of code.
Test not only main paths but also edge cases possible errors and other cases that deserve to be tested. Empathetic code is documented code. You may want to consider adding Phone Number List documentation for key system elements. Also consider documenting key components and aspects of the system. Diagrams will be particularly useful you can use for example diagrams prepared in Mermaid . Much more important however is proper documentation of changes added to the code repository. Each commit added to the repository contains a message. Make sure it contains all the necessary information.
Summary I really wanted to avoid complaining about how bad and bad these programmers are. My goal was to contribute to building projects full of empathetic programmers. I hope this post has sparked some thoughts and reflections in you. If so I encourage you to share it wherever you see fit. Let me know in the comments if empathy in code is important to you and what empathetic code means to you.
Test not only main paths but also edge cases possible errors and other cases that deserve to be tested. Empathetic code is documented code. You may want to consider adding Phone Number List documentation for key system elements. Also consider documenting key components and aspects of the system. Diagrams will be particularly useful you can use for example diagrams prepared in Mermaid . Much more important however is proper documentation of changes added to the code repository. Each commit added to the repository contains a message. Make sure it contains all the necessary information.
Summary I really wanted to avoid complaining about how bad and bad these programmers are. My goal was to contribute to building projects full of empathetic programmers. I hope this post has sparked some thoughts and reflections in you. If so I encourage you to share it wherever you see fit. Let me know in the comments if empathy in code is important to you and what empathetic code means to you.