Programming Principles They Don???t Teach You In School

From my experience as a first year undergraduate student, and listening to seniors’ experiences, Schools and Colleges teach you how to program and also the required Math such as Discrete Mathematics and Calculus. But when you leave university and enter the industry, there are concepts and principles you must know to have an easy transition. We will discussing about KISS, DRY and SOLID principles.

Photo by Ivan Aleksic on Unsplash

KISS Principle

Keep It Simple, Stupid!

Oftentimes, you will find yourself working together in a team. A group of developers working on different aspects of the project. If you were to switch over and work on someone else’s code, would you like to see a messy code without any comments, or variables? Or would like to see a nicely documented code that explains that part of the project well? Obviously the latter.

If you are writing a very complex program, and say you fall sick. You revisit your project after a week when you recovered. Of course you would lose the flow of programming, but would you like to come and see a code which you don’t understand anymore? Or see something that you can understand slightly to begin with? Again, the latter.

Click Here