top of page

My Code Doesn't Work and I Don't Know Why and Now Its Working and I Don't Know Why

  • Writer: Ajay Kedia
    Ajay Kedia
  • Jan 22, 2016
  • 4 min read

Under The Hood

That’s the funny thing about code, the website or program may work beautifully, it may run smoothly, and it may be absolutely beautiful on the front-end side (what the user sees). But, behind everything that makes it work it will have so many errors, and work around that barely work and that shouldn’t work, but do for some strange reason.

About 25% of the hours spent writing an application are spent figuring out ways the end user will do something wrong

Now, the 25% number may be less, may be more, depends on the developer and what you are doing. Everytime we build something, we have to sit back and think of how the end-user will end up fucking it up. What they will click on, what they will write, the phrasing of questions, the language used, and how what we write could be interpreted differently. If we wrote the code like how we would use the project, well then there will be so many issues because we know how the program works, and the end user doesn’t.

I(A Programmer) am not a PC repair man

I am the one who deals with algorithms and design principles, not the one who repairs a computer. We may know how the internal workings of a computer work, how code fits together. But, that does not mean we know how to fix hardware. That does not mean we know how to fix that issue you’re having with chrome that makes it crash everytime you open it, or why your computer is always overheating and the battery dying. Computers programmers, at the least know how to program computers, not fix them

Programming is thinking, not typing

Most of programming is spent sleeping, walking around, staring out the window, or doing anything else that helps you relax and think. Relaxing is a major key to programming, it’s not just sitting down and writing a thousand or more lines or code, and pushing out a program or app. We have to sit down, walk around, and just think. We need to think about how to come up with the concept, fix the issues with it, find a way to make it work, how it’s going to work. Relaxation is the only way we can fix the issues the best way we can.

Counting starts from zero, not one

This is important in every programmers life. Counting starts at 0 – your “1” is my “0”, your “10” is my “9”. The reason why this is because computer programming is all about efficiency, and even small improvements in efficiency can make big differences at scale.

Zero-based numbering or index origin = 0 [1][2] is a way of numbering in which the initial element of a sequence is assigned the index 0, rather than the index 1 as is typical in everyday non-programming circumstances.

Programmers are known as night-birds

Ever wondered why programmers are known as night-birds? Why we stay up all night? Because it allows us to get into the zone, it allows us to focus on one thing and not have to worry about being interrupted by someone – because they are all asleep. It’s a long stretch of the day where no one is up and no one is calling or trying to talk to us. It’s a great time to program, and think.

Sleeping with a problem, can actually solve it

If you have a problem you are told to sleep on it, forget it, put your mind at rest. But, with programmers its the go to way to solve the problem not because it gets us away from it, but because it for whatever reason helps us solve the problem with our code. Many times I have come across an issue, spent hours and hours of work on it, just trying to fix what should should be a simple problem with a simple fix. But, by going to sleep for 20 minutes, an hour, six hours, twelve hours, we can wake up and immediately know the answer to the problem.

A parent may kill its children if the task assigned to them is no longer needed

Not something you would like to hear someone say while out, now is it? (and if it is, you should seriously check into a mental health facility, or turn yourself into your local police department).

It’s not as gory as one would think, programs are written like a hierarchy. With the parent managing the processes below them.

When a parent no longer needs a child they kill it, meaning when a program no longer needs to do something (say send an email), they kill the connections to the server as its not needed, basically killing the

A programmers also have bad days but the worst day is when the program starts behaving abnormal even if it was working fine previously. We put all our efforts to solve the errors and exceptions but nothing happens. We got irritated, start searching on google but we don't get any supporting contents and even if we find something we stuck in some other issues. But later on, the same program starts working fine without changing anything. Only programmers know that feeling.


Seriously "I am a programmer and I have no life"

 
 
 

Comments


Featured Posts
Recent Posts
Archive
Search By Tags
Follow Us
  • Facebook Basic Square
  • Twitter Basic Square
  • Google+ Basic Square

copyright© all right reserved.  created by ajaykedia.

  • w-facebook
  • White LinkedIn Icon
  • Twitter Clean
  • White Blogger Icon
bottom of page