RSS 2.0 Feed
程序义诊
摘要:On August 9th, I posted the following problem on community.csdn.net, under VC/MFC 基础类: Problem: Write code to generate a bitmap rotated 90 degrees clockwise from the original bitmap, without using any graphics library. If you want to post your code here, write on your own, do not refer to anything else, no copy/paste, write your code here, review your code before submitting, and include how much time you spend. Add comments in English when possible. I want to see who can give a good enough answer. There have been lots of responses to this simple programming problem and some quite interesting discussions. Here is the......[阅读全文]

posted @ | Feedback (10) | Filed Under [ 程序义诊 ]

摘要:程序义诊开张几天, 无人问津. 终于邻国 Koye Li 送来了第一笔生意. 感激不尽. Koye Li's email and program fit perfectly to my submission requirement. The code is quite well written, but I still need to find problems as I promised to. So you can say it's 鸡蛋里挑骨头. Email from Koye Li Attached is a simple CSV parser class that I wrote for work a few days ago.  The problem that I had to deal with was to read in a simple CVS formatted file and then using those data and convert it to a special file format. Here's a simple explanation of my work, a line of input for the......[阅读全文]

posted @ | Feedback (24) | Filed Under [ 程序义诊 ]

摘要:Write programs is easy, write good, production quality code is hard. Two years ago, I gave my son, then 12, a C++ programming text book. He started to type in "#include ... main() ..." after a while. He can certain programs, but you would not expect him to write good code. It's like playing Weiqi(Go). It's so easy to put stones on the grids. Total amature and professional may put stones are the same place from time to time. But the amount of thinking and the degree of certainty is totally different between the two. At Microsoft, every line of production code......[阅读全文]

posted @ | Feedback (45) | Filed Under [ 程序义诊 ]