Search This Blog

Friday, July 16, 2010

Integration and Working with Different Technology:

Last couple of months I am working with different technology. We always start the learning process from the IDE of the new technology except C and C++.

I am well versed with Java technology, so always thing all the new requirement in the point of Class & Objects. So I can able to handle the any object programming language(last I worked are VC++,QT-Nokia).

But when it’s come to the structured programming language (I have idea about C Programming language up to pointers), we have to face lot of trouble (not trouble its challenge for New Generation Programmer) while compiling and Runtime. If you have studied about the compiler design of C than you can trouble shoot the issue within a couple of minutes.

While Doing code for Device oriented operation I have struggle lot.

New Challenges raise when I was working with C Program are:

1. Top down approach Compiler Design- If I have to use a function within Main of C program ,function definition should be above the Main function.

Eg: Wrong Way:

Main(){ function1()} function1(){println(“Wrong Way Cause Compile time Error.”);}

Correct Way:

function1(){println(“Wrong Way Cause Compile time Error.”);}

Main(){ function1()}

2. Statement Parsing: In C program we all know parsing of the Statement start from Right to Left parser

Statements: printf(“I am calling a Method::”+methodA()); if any errors are caused in methodA we wont get the print statement in Console.

3. Memory Allocation for The array: If any illegal access of the array value will quit the Program with the error message “Segmentation fault”. Not like Java Says array index out of bound exception.

4. Compiling the same code with Different Compiler: If you compile a code in windows(Create a file) with Turbo C compiler to run and Same code in linux again we have to use the gcc compiler.

5. Including Library: Add the Library file in different OS again is the pain full work but we can learn how the system will work.

6. Header and Definition(In C++ very different from Java): Always Separate file to keep the Variable and Method visibility in Header.Definition in .cpp file what the hell is.

7. What about File Handling:: No file Object only positive Integer will return if a file is opened successfully.

My conclusion (Idea for New generation Programmer)is while learning and working with new programming language at lease have bird eye view on compiler design and best programming way document. Refer only official blogs .

What about VC++ I will explain in next article because its Microsoft product with lot of Framework and Service pack challenges.

No comments:

Post a Comment