Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
sha-i2067ySorry, this isn't a new idea but certainly a good philosophy. Think about the libraries you use...
-
iAmNaN71317yThat is what I used to do waaay back in my C days. It made moving to OOP and C++ a natural.
-
When translated to OOP this is called Single Responsibility Principle. Google for SOLID principles. I think it's a must read for any developer.
-
umnikos9667y@Krokoklemme If it was, then why so many people are complaining that they don't understand their own code??
Related Rants
!rant
I figured out a way to make your code readable!
The main idea: make everything into a function. Each function should be small and you should gradually use past functions to build future functions.
Depending on the language and the size of your code you should make your functions with different sizes, but always keep them small.
This function splitting allows for debugging small parts of your code, avoids repetition and abstracts your code, each making it more readable.
undefined
!rant
code
readable