DEV Community

Juma Shafara
Juma Shafara

Posted on

Do you always follow the SOLID principles when writing code?

SOLID principles are obviously very important as they enable you write very nice code, that allows for easy collaboration and development, but how often do you follow these principles

Top comments (1)

Collapse
 
clpsplug profile image
C. Plug

Since I code games, there are some cases where I do have to bend the principles but I try to adhere to it as much as possible.

Specifically, the part where I rarely bend SOLID principle is often close to infrastructure codes like file I/O and core logic, but I sometimes have to bend it as the level gets higher (this can be because of the game engine I happen to use at the time.)