How do you balance performance, readability, and maintainability when writing code? #127701
Replies: 4 comments
-
Hey @rashi24-p Interesting question. Depends on the programming language to a degree. Short answer
Context on Maintainability and ReadabilityFor most programming languages there is a set of guidelines how to write readable code. Some are aesthetics, e.g. how to write documentation or MaintainabilityAbstraction is key here. Let's say you have three ways to produce a car. class BaseProductionCar:
def produce():
return None You implement each of the three productions as a class, defining the This is a relevant example in many ways. Consider AI models. You interface often with them with a text box. But behind this text box the models are trained repeatedly or even swapped out. This, to a degree at least, insulates one change (in the implementation) from the rest of the system. |
Beta Was this translation helpful? Give feedback.
-
Steps to maintain readability, performance and maintainability in short1. Readability
2. Maintainability
3. Performance
To balance them I would suggest you to focus on readability and maintability while writing code and work on performance part in the testing phase. I would optimize code after I have ensured that the first 2 categories are well worked on. |
Beta Was this translation helpful? Give feedback.
-
Hey @rashi24-p, welcome to the GItHub Community! You've got some great answers from @CopperEagle & @YuheshPandian - if they were helpful, please feel encouraged to mark one as the answer or let us know if you have other questions 😄 |
Beta Was this translation helpful? Give feedback.
-
Use modern Vanilla CSS features (variables, nesting) , follow easy to read naming conventions. |
Beta Was this translation helpful? Give feedback.
-
Body
Provide me answer in point, ease to understand!
Guidelines
Beta Was this translation helpful? Give feedback.
All reactions