Future of "C"

View Poll Results: Will C die like Pascal and Fortran
Yes 0 0%
No 4 40.00%
Yes, but atleast after 10 years 1 10.00%
No atleast another 5 years 0 0%
C will remain for specialized areas forever (<=20 years) 5 50.00%
Can't Say 2 20.00%
Multiple Choice Poll. Voters: 10. You may not vote on this poll

Reply

Join Date: Jul 2007
Posts: 7
Reputation: WangVS is an unknown quantity at this point 
Solved Threads: 0
WangVS WangVS is offline Offline
Newbie Poster

Re: Future of "C"

 
0
  #11
Jul 30th, 2007
It's a common misconception that C and C++ are good languages for business applications. They are most decidedly not. They are good and useful for GUI front ends and a host of non-business apps. COBOL remains the premier business language. Aside from being easy to write and easy to read, COBOL generally does not make pointers available to the programmer, so one of the most common sources of bugs in C and C++ -- uninitialized and badly set pointers -- doesn't exist in COBOL.

Another interesting difference is that at least in some mainframes, code and data are in different address spaces, and code is not modifiable in memory. That eliminates another source of countless problems in C and C++ -- that C promotes code being in modifiable memory and promotes code being located at higher memory addresses than data, hence the buffer overrun exploits in which too-large data items are designed to overwrite memory up to and including executable code. In the mainframes I work with, that can't be done.

Another weakness of the C genre for business is that C likes to sling around strings whose lengths are defined only by a terminating null. This contributes to things like buffer overruns since the fastest and easiest way to write code ignores the sizes of data items. In most truly high-level languages the data items are typed and defined, and their lengths figure into the compilation of code. In COBOL, move a 200-char item into a 100-char item and automatically it will be truncated at 100 chars. Move a 100-char item into a 200-char display item and the additional space will automatically be blank-filled.

Although it's possible to have uninitialized variables in COBOL, it's not generally possible to have uninitialized or incorrectly set pointers because pointers are entirely internal, not available to programmers to misuse.
Last edited by WangVS; Jul 30th, 2007 at 8:18 pm. Reason: typo
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 16,253
Reputation: jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all 
Solved Threads: 542
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

Re: Future of "C"

 
0
  #12
Jul 30th, 2007
Originally Posted by WangVS View Post
COBOL remains the premier business language.
I said that earlier.

Originally Posted by jbennet View Post
Fortran and cobol still have like a 80% share of the mainframe market
If i am helpful, please give me reputation points.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the IT Professionals' Lounge Forum
Thread Tools Search this Thread



Tag cloud for IT Professionals' Lounge
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC