搜尋此站:

2006-11-28

C Programming

Just read an article entitled "Die, C, die! 5 reasons to UN-learn C", in which the author tried to discourage developers from using C.

Somehow I agree with him, C is really one of the dirtiest programming languages I have ever met. The pointers allow direct access to the process memory so freely that those constraints defined in the language is useless. Not only C itself is dirty, but also the C programmers. They like to use fancy ways to write their codes and make excessive use of those so called "optimization tweaks" (as mentioned in point #4 in the article) to make their programs run a little bit faster. Source codes become very unreadable. However some programmers really enjoy the dirtiness of C. Sometimes I am one of them. Recalling the time and effort I have spent on making my codes a few lines shorter and run a few milliseconds faster, even when I am in a big hurry to meet the deadlines of submitting the homework assignments. Ha... really a funny time. I also enjoy the craziness of those submissions to the IOCCC. Those authors are really crazy, if you know C programming, and have plenty of time, do go to the official website and read some codes, and your will probably get a "O"-mouth.

Yet C and C programmers are so dirty, I still think C is one of the programming languages that every real programmers should know. You will get a much better understanding to programming if you can manage C well. You will also be able to learn those "modern" programming languages like C# and Java faster with the C background. Just try to avoid the dirty stuff you learned from C programming, it is really no harm to keep them as part of your knowledge. Anyway you cannot un-learn them like deleting files in a computer. Once you learn something, you know it.

No comments:

Post a Comment

HTML Tags allowed (e.g. <b>, <i>, <a>)