2006/03/09

C++

Couldn't think of any proper title.
I started programming with Fortran. (Had some brush with Basic and Pascal, but nothing worth writing about.) I enjoyed Fortran enough. In fact, so much, that when I wanted to get some "advice" on whether I should be learning C from a senior (Ramkumar), my question was worded something like - 'Well, I can do most of my stuff with Fortran, right? No need to look into C, right?'

Hmm, somehow discovered some virtues of C. I did not know how to write functions in various files in Fortran, and how to re-use code, or how to dynamically allocate memory for interesting stuff. Maybe it was (or now, is) possible in Fortran. But I had absolutely no clues! But all that seemed easy in C. So, move over Fortran. Here's C ...

My final year project, where I did something related to Finite Element Analysis of structures, involved coding in C. And then, there was a numerical programming course, where I used C. So, I knew C somewhat by the time I graduated (undergraduate thing, that is)

Then, post-graduation time. As part of my Masters work, I developed HyParSuite. The first version was in C. HTML parsing code, stacks for storing elements, and all that stuff - all in C. I felt like an accomplished C coder! (Of course, the truth was no-where near that ... but feeling good about yourself is a good sign. It helps you be positive, and become better. So, my advice to anyone who cares - always carry a feeling of being one of the best! :))

Then, during one meeting with a friend - Mukul Joshi, who was another Masters student working under the same guide as mine - mumbled something about C++ and the power of templates. (Hrrmm ... he said something clearly, I suppose, but I felt he mumbled something. Because I couldn't make head nor tail of it!) But I liked the word - template. Sounded interesting - and felt like something that saved time. Indeed it is something of that kind, but for a first-timer to that word in the C++ context, the impact was spot on! I knew I had to learn C++.

And then, started the journey. I am not sure if I can capture all the new things I've discovered, or if I can, the sequence would be exactly right. But then, I am going to try.

Note: I had read quite a bit about OO principles, SmallTalk, and had done some Java programming too before this time.

0 Comments:

Post a Comment

<< Home