Bad Code Can Be Written In Any Language

There are at least 5 types of BadCode:
1. Code that does not do what it is intended to do.
2. Code that does not perform as fast as it could.
3. Code that is not easily understandable.
4. Code that does not pick the Right Tool for the Job.

Where is it specified what the code is intended to do?
1. Code with explicitly Intention Revealing Names. This requires a high level of abstraction to be useful.
2. In Unit Tests.
3. In Acceptance Tests.
4. In my head. This is not a Good Thing.
5. In a functional specification. This is not a Good Thing either, if there are no corresponding Unit Tests or Acceptance Tests.

Bad Code Can Be Written In Any Language because we code in our heads, not in our machines – Programming Is in the Mind. Therefore, bad code is caused by bad thinking, and we can think badly regardless of our tools or the means of expression. No language can actually guide the programmer's thinking to the point that only good code can be produced. At best, such a language would lose most of its generality. More likely, restricting the language to eliminate bad code is probably equivalent to (or perhaps even more difficult than) proving a program's correctness. Perhaps it is even equivalent to solving the Halting Problem. I don't know. I certainly do not expect any such capability to ever be available.

There are so many such good resources from developer/coder point of view in the following link, do have a look.
http://c2.com/cgi/wiki?ProgrammingIsInTheMind

A chat with GOD

God Pinged Me ……..

This is an excellent conversation between 'God' and the unknown 'Me'.
I don't know as to who has been the composer of such an interesting and captivating conversation ; but has he/she has definitely put in good amount of thought into crafting the same.

Those who don't believe in God, may also find it worth reading once. Enjoy and Think !

God: Hello. Did you call me?
Me: Called you? No.. Who is this?

God: This is GOD. I heard your prayers. So I thought I will chat.
Me: I do pray. Just makes me feel good. I am actually busy now. I am in the midst of something.
God: What are you busy at? Ants are busy too.
Me: Don't know. But I can't find free time. Life has become hectic. It's rush hour all the time.
God: Sure. Activity gets you busy. But productivity gets you results.
Activity consumes time. Productivity frees it.
Me: I understand. But I still can't figure out. By the way, I was not expecting YOU to buzz me on instant messaging chat.
God: Well I wanted to resolve your fight for time, by giving you some clarity. In this net era, I wanted to reach you through the medium you are comfortable with.

Me: Tell me, why has life become complicated now?
God: Stop analyzing life. Just live it. Analysis is what makes it complicated.

Me: why are we then constantly unhappy?
God: Your today is the tomorrow that you worried about yesterday. You are worrying because you are analyzing. Worrying has become your habit. That's why you are not happy.

Me: But how can we not worry when there is so much uncertainty?
God: Uncertainty is inevitable, but worrying is optional.

Me: But then, there is so much pain due to uncertainty.
God: Pain is inevitable able, but suffering is optional.

Me: If suffering is optional, why do good people always suffer?
God: Diamond cannot be polished without friction. Gold cannot be purified without fire. Good people go through trials, but don't suffer. With that experience their life become better not bitter.

Me: You mean to say such experience is useful?
God: Yes. In every term, Experience is a hard teacher. She gives the test first and the lessons afterwards.

Me: But still, why should we go through such tests? Why can't we be free from problems?
God: Problems are Purposeful Roadblocks Offering Beneficial Lessons (to) Enhance Mental Strength. Inner strength comes from struggle and endurance, not when you are free from problems.

Me: Frankly in the midst of so many problems, we don't know where we are heading..
God: If you look outside you will not know where you are heading. Look inside. Looking outside, you dream. Looking inside, you awaken. Eyes provide sight. Heart provides insight.

Me: Sometimes not succeeding fast seems to hurt more than moving in the right direction. What should I do?
God: Success is a measure as decided by others. Satisfaction is a measure as decided by you. Knowing the road ahead is more satisfying than knowing you road ahead. You work with the compass. Let others work with the clock.

Me: In tough times, how do you stay motivated?
God: Always look at how far you have come rather than how far you have to go. Always count your blessing, not what you are missing.

Me: What surprises you about people?
God: When they suffer they ask, "why me?" When they prosper, they never ask "Why me". Everyone wishes to have truth on their side, but few want to be on the side of the truth.

Me: Sometimes I ask, who am I, why am I here. I can't get the answer.
God: Seek not to find who you are, but to determine who you want to be. Stop looking for a purpose as to why you are here. Create it. Life is not merely a process of discovery but a process of co-creation. You are my co-creator.

Me: How can I get the best out of life?
God: Face your past without regret. Handle your present with confidence.
Prepare for the future without fear.

Me: One last question. Sometimes I feel my prayers are not answered.
God: There are no unanswered prayers. At times the answer is NO.

Me: Thank you for this wonderful chat.
God: Well. Keep the faith and drop the fear. Don't believe your doubts and doubt your beliefs. Life is a mystery to solve not a problem to resolve. Trust me. Life is wonderful if you know how to live. "Life is not measured by the number of breaths we take but by the moments that took our breath away!