Skip to content

Instantly share code, notes, and snippets.

@mgpradeepa
Last active November 4, 2022 00:41
Show Gist options
  • Save mgpradeepa/873d1a7db183de3c58e3d52a50a2ef00 to your computer and use it in GitHub Desktop.
Save mgpradeepa/873d1a7db183de3c58e3d52a50a2ef00 to your computer and use it in GitHub Desktop.
Single responsibility to single method
No more than 10 lines of code in a method.
when ever you see extract it right away
have your code comments on the way
use shortcuts on your side
IntelliJ is the best ide to slide
move the responsibility to the classes of its own
let all the functionalities sit under a single gown
there are 3 types of classes
entities, VOs and containers
let your code be like a poem
then sing the above song ahem ahem
single lines for every switch
learn how to clear the cross stitch
love your reader who does not code
practice for ever learn to decode
when you see in IDE Grey/Red/Yellow/Blue/Green
Alt+Enter is for your clean
for a class or a method if you don't find any good name
prefer to jump on possible blames :P
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment