Programming without hacks/shortcuts is noob programming. Anyone can program. But the soul of programming is DEBUGGING.
I truly believe that to be a good programmer one should be a good debugger. Debugging require more experience than knowledge.
And there is famous quote which is worthy to share
the only source of knowledge is experience.
This blog will share some worthy hacks that must be followed. These hacks are one liner code snippets, or some really good shortcuts available in Android studio IDE and like that.
1. MULTIPLE SELECT AND EDITING:
[ CTRL + ALT + MOUSE 1]
The first time i saw the feature it was available in SUBLIME (if you are programming in LINUX, you must know it).
2. INSTANT UPPERCASE AND LOWER CASE:
[ enable CAPS LOCK & CTRL + ALT + U ]
make sure you have enabled caps lock.
3. TERNARY OPERATORS:
conditional statement that can be used to replace simple if else and enhance our laziness.
1 |
String my_result = some_string !=null ? doSomething(parameters) : null; |