Favourite Quote :P

Justifications are the way of the world

Saturday, January 15, 2011

Programming?? Whoa!!

This one day I was trying to explain the concepts of computer programming to a civil engineering student. I was so lost ...  this girl wasn't getting anything at all. That was when I hit upon a new way of looking at programming. It is simple problem solving.

Consider this example. You are given a problem: 


What you have are the following:

  1. A list of numbers represented as myArray(1, 2, 3, 4, 5)
  2. You have only a certain words (and characters) to express yourself:
  3. while
  4. print
  5. "(" and ")"
  6. "{" and "}"

 etc .. (You would only need a few more).
Write down the steps to find the sum of all the numbers in the list, given certain ways of defining which steps are to be executed multiple times and so on.

If programming had been explained like this to me when i first learnt it, it might be that I would have looked at programming in a totally different light. :)

Sunday, June 20, 2010

Geany: Nice little package.

I was searching for a small, neat html editor (for Linux) and I tried a few and found this one to suite my needs very nicely. It is definitely worth a try if you require a small package, with uncluttered interface, and only a few handy features like syntax highlighting, code folding, auto-closing of tags, variable and function lists, a small neat navigator panel, just a little bit of code hinting (not popups for every two keystrokes as in dreamweaver), a simple project management system etc. Geany supports quite a few languages and is actualyy and IDE, useful for other programming too. I find it very comfortable for my use. It doesnt have WYSIWYG editor though and newbies might find it featureless.

Friday, June 11, 2010

Walk in the morning?

Today something occured to me. I'm an Indian, a Tamil. Most people in my place hire maids to help clean up their houses and tidy up other things. This is point one.

I was also reading a book which stated that obesity is a big problem now.

Here too, quite a few are obese with big round tummies, especially people between 40 to 50 years of age. ( higher too, but the fattening usually begins within the mentioned period ).

Most of these people are not educated about the obesity problem, how it affects their life and they do not bother to take time off to think about it.

Awareness is on the rise and some realise the problems obesity causes and take steps to trim down. They walk or jog in the morning. And they know that the process is definitely not what we call sugary. It requires effort. But knowing the problems of obesity these people somehow take this effort and sweat a bit.

Coming back to point one. If these people could put the same effort into the cleaning up of their homes, they would burn calories and also save a bit of money. And they could cut off their walks.

Blog???

I have no idea what I'm going to put in this blog.