How do you ensure the code you write is maintainable and scalable for future updates?

Technical