Think twice , code once! Image credit : — (http://hd.wallpaperswide.com/thumbs/think_twice_code_once-t2.jpg)

Think Twice Code Once!

Nilesh Jarad
Mobility
Published in
2 min readSep 9, 2016

--

Problems :-

We start implementation without thinking of abstraction or reusability . We even don’t bother to understand the clear requirement or system that we are implementing.

Working with system, designed by well abstraction is like rewarding.

Well design abstraction save massive work later.

If we work faster without thinking or told us to work faster then after some our implementation & we are in adversity.

Then we ask below questions to ourselves/colleague :-

  1. why ? we missed opportunity of code reuse.
  2. why ? because analysis is done by fools.
  3. why this happen ? because computer do, whatever told to do.
  4. Why ? we haven’t thought about this situation.
  5. why ? we haven’t followed rules/architecture.
  6. Why? we have not thought about abstraction etc.

So before code, the million dollar rule is, think twice code once and you will go far further from all above situations/questions.

We are programmer , yeah✌️ we are professional thinkers.

We are unable to sustain attention on one task more than 20 min, that makes us feel like drowsy. You can read below link

Solutions :-

  1. Choose good architecture and follow rules
  2. think about abstraction
  3. Think about code re-usability
  4. Use TDD refer series of post TDD in Android
  5. Analyse the requirement before starting implementation
  6. Write pseudo code / algorithm so you will get better problem solving skill , improve efficiency & clarity.
  7. To concentrate on single task do below when you feel drowsy
    i) Listen to favourite songs
    ii) Discuss with workmate
    iii) Read other stuff that excites you
    iv) Drink water take break.
    v) GO outside and have walk

Don’t blame computer or program they are most loyal to you they only obey what is told to do them.

I want you to ask questions 🤔

  1. What do you do, when you feel drowsy after long concentration ?’
  2. How you start your development ?
  3. Do you think your program has emotions 😉?

If you found this post is helpful, recommend it to others .

Please tap ,that below empty heart ❤ to make it filled ❤️ with your support . For further interesting stuffs, please follow me & Mobility (Publication).

--

--

Nilesh Jarad
Mobility

Android/iOS Developer, Stackoverflower , Reader & Open source lover. Reach me at nlshjarad7@gmail.com. Profile :- http://stackoverflow.com/users/4626831