Thursday, 31 March 2011

Summer/Spring?

Who would have known that the chilly night yesterday would be the last night of winter?

Today the sun is out the fog has cleared and the clouds are puffy once again!

We await the first sound of thunder!

Sunday, 13 March 2011

Bugs

Systematic bugs: Due to some misunderstanding of the syntax or grammar of the programming language.

Random Bugs: Your bugs that you didn't know about.
Defined as either problems WITH your thinking or problems that materialized from the process of turning thinking into code.

Problems with thinking just have to do with unclear thinking, or even misunderstanding your own thinking.
Problems from thinking to code have to be sorted out by making the process as transparent and traceable as possible without ambiguity, so that little issues all become apparent.

Debugging aids are not optional. They are actually necessary, yet in the coding frenzy we have to put everything down on the source files, we forget that we must be able to repeat all the thinking in its entirety. Now, some people are less prone to human errors, but given a long enough program, everyone will make errors.
Testing is useful only if you know what you're doing. While it closes the gap between actual results and desired results, it cannot be a substitute for transparency in the coding process.

Combining testing and the coding/documentation process gives you the ability to detect all types of bugs. If done perfectly.

Now, even documentation may fail, because even documentation may be wrong. In this case, we try to catch these errors early by debugging certain blocks of code completed. The time taken to find and fix the bug tends to be smaller in a smaller piece of code.

Printing everything out is a classical approach to detect run-time errors and if the program crashes, we get to know where it crashed.

I am trying to implement all this, starting with small coding projects.

These lessons were learned in a painstaking debugging effort, in which I know that these things are the minimum that must be done to make a program generally correct.

Tuesday, 21 December 2010

Turning leftist arguments around.

The left often claims that because the human systems are too complex today, it makes central planning NECESSARY.

Turn it on its head...

We can claim that because the human systems are too complex today, it makes central planning IMPOSSIBLE.

Wednesday, 15 December 2010

First final exams

The electrical engineering exam was pretty nasty compared to all the homework, midterm and past paper questions. The teaching group apparently believed that the past exams were too easy and decided to challenge us to see who knew their stuff best.
I knew my stuff, but I didn't always understand what I needed to do at that moment.

The CS exam was pretty easy, possibly too easy. I was expecting some programming challenges in there, but there was none, just a lot of program tracing. The teaching group were probably too happy when they made the exam.

I hope most people are like that.

Update:
My hypothesis came true. The mean of the CS exam was high and the standard deviation was huge. Grades really are going to be pointless.

Friday, 10 December 2010

wish there was a chat client that allowed...

having multiple conversations at once with the same person?

Monday, 6 December 2010

WikiLeaks

WikiLeaks is like memory leaks. The effort is on to expose government secrets concerning highly controversial issues so that the decision making processes the secrets are part of cannot be used, without compromising the processes. The goal is by impeding those processes, the conspiracies and its processes will run inefficiently and openly, such that everyone can understand and deal with them.

The impact of the leaks appears to be minor, despite the publicity. There remains the need for more leakers for the effort to succeed, and much more press emphasis.

The government response would be to reduce leaks, coverage of the leak's contents and attempting to contain the leaks and the damage they do. They may also decide to move ahead faster with their plans.

At the end of the day, it is up to society as a whole to react appropriately to the leaks, because no amount of secret information and press can change anything on its own.