﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-mysileng-随笔分类-学习方法与路线</title><link>http://www.cppblog.com/mysileng/category/20568.html</link><description /><language>zh-cn</language><lastBuildDate>Fri, 26 Sep 2014 14:02:45 GMT</lastBuildDate><pubDate>Fri, 26 Sep 2014 14:02:45 GMT</pubDate><ttl>60</ttl><item><title>linux后台开发必看书籍 </title><link>http://www.cppblog.com/mysileng/archive/2014/07/25/207807.html</link><dc:creator>鑫龙</dc:creator><author>鑫龙</author><pubDate>Fri, 25 Jul 2014 12:29:00 GMT</pubDate><guid>http://www.cppblog.com/mysileng/archive/2014/07/25/207807.html</guid><wfw:comment>http://www.cppblog.com/mysileng/comments/207807.html</wfw:comment><comments>http://www.cppblog.com/mysileng/archive/2014/07/25/207807.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/mysileng/comments/commentRss/207807.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/mysileng/services/trackbacks/207807.html</trackback:ping><description><![CDATA[<p><span style="font-size: 18px"><strong><span style="font-size: 24px">程序设计类</span></strong></span><span style="font-size: 18px"><br /></span><span style="font-size: 13px">《C++ PRIMER》<br /><span style="font-size: 13px">《STL源码解析》</span></span></p><span style="font-size: 18px"></span>
<p><br /><strong><span style="font-size: 24px">系统编程类</span></strong><br />《UNIX环境高级编程》W.Richard Stevens：非常经典的书。虽然初学者就可以看，但是事实上它是《Unix Network Programing》的一本辅助资料。国内的翻译的《UNIX环境高级编程》的水平不怎么样，现在有影印版，直接读英文比读中文来得容易。<br />《Unix网络编程卷二》Unix网络编程卷第二卷没有涉及网络的东西，主要讲进程间通讯和Posix线程。</p>
<p><br /><br /><strong><span style="font-size: 24px">网络编程类</span></strong><br />《Unix网络编程》第一卷讲BSD Socket网络编程接口和另外一种网络编程接口的，不过现在一般都用BSD Socket，所以这本书只要看大约一半多就可以了。<br />《TCP/IP详解》一共三卷，卷一讲协议，卷二讲实现，卷三讲编程应用，也很经典的。<br />《用TCP/IP进行网际互连》一共三卷，内容讲解十分精彩。卷一讲原理，卷二讲实现，卷三讲高级协议。感觉上这一套要比Stevens的那一套要好，就连Stevens也不得不承认它的第一卷非常经典。事实上，第一卷即使你没有一点网络的知识，看完以后也会对网络的来龙去脉了如指掌。第一卷中还有很多习题也设计得经典和实用，因为作者本身就是一位教师，并且卷一是国外研究生的教材。习题并没有答案，留给读者思考，因为问题得答案可以让你成为一个中级的Hacker，这些问题的答案可以象Douglus索取，不过只有他只给教师卷二我没有怎么看，卷三可以作为参考手册，其中地例子也很经典。<br />《<!--StartFragment -->Linux 多线程服务端编程：使用 muduo C++ 网络库》 </p>
<p><br /><strong><span style="font-size: 24px">Linux系统管理类</span></strong><br />《linux系统管理手册》<br />《LINUX与UNIX SHELL编程指南》<br />《Advanced Bash Scripting Guide》</p>
<p><br /><strong><span style="font-size: 24px">系统内核类</span></strong><br />《Linux内核代码情景分析》<br />《深入Linux内核源码》</p>
<p><br /><strong><span style="font-size: 24px">面向对象设计类</span></strong><br />《设计模式》<br />《敏捷软件开发：原则、模式与实践》<br />《敏捷项目管理》</p>
<p><br /><span style="font-size: 24px"><strong>内功修炼类</strong></span><br />《操作系统：设计与实现（第二版）》<br />《操作系统概念》<br />《数据结构与算法-面向对象的C++设计模式》<br />《编译原理》国防陈火旺<br />《离散数学及其应用》<br />《计算机组织与体系结构?性能分析》<br />《深入理解计算机系统》【美】Randal E. Bryant David O'Hallaron著v</p><img src ="http://www.cppblog.com/mysileng/aggbug/207807.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/mysileng/" target="_blank">鑫龙</a> 2014-07-25 20:29 <a href="http://www.cppblog.com/mysileng/archive/2014/07/25/207807.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>程序员技术练级攻略</title><link>http://www.cppblog.com/mysileng/archive/2013/06/20/201185.html</link><dc:creator>鑫龙</dc:creator><author>鑫龙</author><pubDate>Thu, 20 Jun 2013 14:59:00 GMT</pubDate><guid>http://www.cppblog.com/mysileng/archive/2013/06/20/201185.html</guid><wfw:comment>http://www.cppblog.com/mysileng/comments/201185.html</wfw:comment><comments>http://www.cppblog.com/mysileng/archive/2013/06/20/201185.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/mysileng/comments/commentRss/201185.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/mysileng/services/trackbacks/201185.html</trackback:ping><description><![CDATA[<p style="margin: 0px 0px 10px; padding: 0px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;">月光博客6月12日发表了《<a href="http://www.williamlong.info/archives/2700.html" target="_blank" style="color: #2970a6; text-decoration: initial;">写给新手程序员的一封信</a>》，翻译自《<a href="http://blog.akash.im/an-open-letter-to-those-who-want-to-start" target="_blank" style="color: #2970a6; text-decoration: initial;">An open letter to those who want to start programming</a>》，我的朋友（他在本站的id是<a href="http://coolshell.cn/?author=3" target="_blank" style="color: #2970a6; text-decoration: initial;">Mailper</a>）告诉我，他希望在酷壳上看到一篇更具操作性的文章。因为他也是喜欢编程和技术的家伙，于是，我让他把他的一些学习Python和Web编程的一些点滴总结一下。于是他给我发来了一些他的心得和经历，我在把他的心得做了不多的增改，并根据我的经历增加了&#8220;进阶&#8221;一节。<strong>这是一篇由新手和我这个老家伙根据我们的经历完成的文章</strong>。</p><p style="margin: 0px 0px 10px; padding: 0px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;">我的这个朋友把这篇文章取名叫Build Your Programming&nbsp;Technical&nbsp;Skills，我实在不知道用中文怎么翻译，但我在写的过程中，<strong>我觉得这很像一个打网游做任务升级的一个过程，所以取名叫&#8220;技术练级攻略&#8221;，题目有点大，呵呵，这个标题纯粹是为了好玩</strong>。<strong>这里仅仅是在分享Mailper和我个人的学习经历。</strong>（注：省去了我作为一个初学者曾经学习过的一些技术(今天明显过时了)，如：Delphi/Power builder，也省去了我学过的一些我觉得没意思的技术Lotus Notes/ActiveX/COM/ADO/ATL/.NET &#8230;&#8230;）</p><h4>前言</h4><p style="margin: 0px 0px 10px; padding: 0px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;">你是否觉得自己从学校毕业的时候只做过小玩具一样的程序？<wbr>走入职场后哪怕没有什么经验也可以把以下这些课外练习走一遍（朋友的抱怨：学校课程总是从理论出发，<wbr>作业项目都看不出有什么实际作用，不如从工作中的需求出发）</p><p style="margin: 0px 0px 10px; padding: 0px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;">建议：</p><ul style="margin: 0px; padding: 0px 0px 10px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;"><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">不要乱买书，不要乱追新技术新名词，<wbr>基础的东西经过很长时间积累而且还会在未来至少10年通用。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">回顾一下历史，看看历史上时间线上技术的发展，你才能明白明天会是什么样。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">一定要动手，例子不管多么简单，<wbr>建议至少自己手敲一遍看看是否理解了里头的细枝末节。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">一定要学会思考，思考为什么要这样，而不是那样。还要举一反三地思考。</li></ul><p style="margin: 0px 0px 10px; padding: 0px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;"><strong>注</strong>：你也许会很奇怪为什么下面的东西很偏Unix/Linux，这是因为我觉得Windows下的编程可能会在未来很没有前途，原因如下：</p><p style="margin: 0px 0px 10px; padding: 0px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;"></p><ul style="margin: 0px; padding: 0px 0px 10px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;"><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">现在的用户界面几乎被两个东西主宰了，1）Web，2）移动设备iOS或Android。Windows的图形界面不吃香了。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">越来越多的企业在用成本低性能高的Linux和各种开源技术来构架其系统，Windows的成本太高了。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">微软的东西变得太快了，很不持久，他们完全是在玩弄程序员。详情参见《<a title="Windows编程革命简史" href="http://coolshell.cn/articles/3008.html" target="_blank" style="color: #2970a6; text-decoration: initial;">Windows编程革命史</a>》</li></ul><p style="margin: 0px 0px 10px; padding: 0px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;">所以，我个人认为以后的趋势是前端是Web+移动，后端是Linux+开源。开发这边基本上没Windows什么事。</p><h4>启蒙入门</h4><p style="margin: 0px 0px 10px; padding: 0px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;"><strong>1、 学习一门脚本语言，例如Python/Ruby</strong></p><p style="margin: 0px 0px 10px; padding: 0px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;">可以让你摆脱对底层语言的恐惧感，脚本语言可以让你很快开发出能用得上的小程序。实践项目:</p><ul style="margin: 0px; padding: 0px 0px 10px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;"><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">处理文本文件，或者csv (关键词 python csv, python open, python sys) 读一个本地文件，逐行处理（例如 word count，或者处理log）</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">遍历本地文件系统 (sys, os, path)，例如写一个程序统计一个目录下所有文件大小并按各种条件排序并保存结果</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">跟数据库打交道 (python sqlite)，写一个小脚本统计数据库里条目数量</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">学会用各种print之类简单粗暴的方式进行调试</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">学会用Google (phrase, domain, use reader to follow tech blogs)</li></ul><p style="margin: 0px 0px 10px; padding: 0px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;">为什么要学脚本语言，因为他们实在是太方便了，很多时候我们需要写点小工具或是脚本来帮我们解决问题，你就会发现正规的编程语言太难用了。</p><p style="margin: 0px 0px 10px; padding: 0px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;"><strong>2、 用熟一种程序员的编辑器(不是IDE) 和一些基本工具</strong></p><ul style="margin: 0px; padding: 0px 0px 10px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;"><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">Vim / Emacs /&nbsp;Notepad++，学会如何配置代码补全，外观，外部命令等。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">Source Insight (或 ctag)</li></ul><p style="margin: 0px 0px 10px; padding: 0px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;">使用这些东西不是为了Cool，而是这些编辑器在查看、修改代码/配置文章/日志会更快更有效率。</p><p style="margin: 0px 0px 10px; padding: 0px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;"><strong>3、 熟悉Unix/Linux Shell和常见的命令行</strong></p><ul style="margin: 0px; padding: 0px 0px 10px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;"><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">如果你用windows，至少学会用虚拟机里的linux， vmware player是免费的，装个Ubuntu吧</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">一定要少用少用图形界面。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">学会使用man来查看帮助</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">文件系统结构和基本操作 ls/chmod/chown/rm/find/ln/cat/mount/mkdir/tar/gzip &#8230;</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">学会使用一些文本操作命令 sed/awk/grep/tail/less/more &#8230;</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">学会使用一些管理命令 ps/top/lsof/netstat/kill/tcpdump/iptables/dd&#8230;</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">了解/etc目录下的各种配置文章，学会查看/var/log下的系统日志，以及/proc下的系统运行信息</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">了解正则表达式，使用正则表达式来查找文件。</li></ul><p style="margin: 0px 0px 10px; padding: 0px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;">对于程序员来说Unix/Linux比Windows简单多了。（参看我四年前CSDN的博文《<a href="http://blog.csdn.net/haoel/article/details/1533720" target="_blank" style="color: #2970a6; text-decoration: initial;">其实Unix很简单</a>》）学会使用Unix/Linux你会发现图形界面在某些时候实在是太难用了，相当地相当地降低工作效率。</p><p style="margin: 0px 0px 10px; padding: 0px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;"><strong>4、 学习Web基础（HTML/CSS/JS) + 服务器端技术 (LAMP)</strong></p><p style="margin: 0px 0px 10px; padding: 0px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;">未来必然是Web的世界，学习WEB基础的最佳网站是<a href="http://www.w3school.com.cn/" target="_blank" style="color: #2970a6; text-decoration: initial;">W3School</a>。</p><ul style="margin: 0px; padding: 0px 0px 10px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;"><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">学习HTML基本语法</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">学习CSS如何选中HTML元素并应用一些基本样式（关键词：box model）</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">学会用 &nbsp;Firefox + Firebug 或 chrome 查看你觉得很炫的网页结构，并动态修改。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">学习使用Javascript操纵HTML元件。理解DOM和动态网页（<a href="http://oreilly.com/catalog/9780596527402" target="_blank" style="color: #2970a6; text-decoration: initial;">http://oreilly.com/catalog/9780596527402</a>) 网上有免费的章节，足够用了。或参看&nbsp;<a href="http://www.w3school.com.cn/htmldom/index.asp" target="_blank" style="color: #2970a6; text-decoration: initial;">DOM</a>&nbsp;。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">学会用 &nbsp;Firefox + Firebug 或 chrome 调试Javascript代码（设置断点，查看变量，性能，控制台等）</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">在一台机器上配置<a href="http://coolshell.cn/articles/www.apache.org" target="_blank" style="color: #2970a6; text-decoration: initial;">Apache&nbsp;</a>或&nbsp;<a href="http://coolshell.cn/articles/nginx.net" target="_blank" style="color: #2970a6; text-decoration: initial;">Nginx</a></li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">学习<a href="http://coolshell.cn/articles/www.php.net" target="_blank" style="color: #2970a6; text-decoration: initial;">PHP</a>，让后台PHP和前台HTML进行数据交互，对服务器相应浏览器请求形成初步认识。实现一个表单提交和反显的功能。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">把PHP连接本地或者远程数据库 MySQL（MySQL 和 SQL现学现用够了）</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">跟完一个名校的网络编程课程（例如：<a href="http://www.stanford.edu/~ouster/cgi-bin/cs142-fall10/index.php" target="_blank" style="color: #2970a6; text-decoration: initial;">http://www.stanford.edu/~ouster/cgi-bin/cs142-fall10/index.php</a>&nbsp;) 不要觉得需要多于一学期时间，大学生是全职一学期选3-5门课，你业余时间一定可以跟上</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">学习一个javascript库（例如jQuery 或 ExtJS）+ &nbsp;Ajax (异步读入一个服务器端图片或者数据库内容）+JSON数据格式。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">HTTP: The Definitive Guide 读完前4章你就明白你每天上网用浏览器的时候发生的事情了(proxy, gateway, browsers)</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">做个小网站（例如：一个小的留言板，支持用户登录，Cookie/Session，增、删、改、查，上传图片附件，分页显示）</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">买个域名，租个空间，做个自己的网站。</li></ul><h4>进阶加深</h4><p style="margin: 0px 0px 10px; padding: 0px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;"><strong>1、 C语言和操作系统调用</strong></p><ul style="margin: 0px; padding: 0px 0px 10px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;"><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">重新学C语言，理解指针和内存模型，用C语言实现一下各种经典的算法和数据结构。推荐《<a href="http://product.china-pub.com/197050" style="color: #2970a6; text-decoration: initial;">计算机程序设计艺术</a>》、《<a href="http://product.china-pub.com/31701" target="_blank" style="color: #2970a6; text-decoration: initial;">算法导论</a>》和《<a href="http://product.china-pub.com/209243" target="_blank" style="color: #2970a6; text-decoration: initial;">编程珠玑</a>》。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">学习<a title="（麻省理工免费课程）计算机科学和编程导论" href="http://coolshell.cn/articles/3723.html" target="_blank" style="color: #2970a6; text-decoration: initial;">（麻省理工免费课程）计算机科学和编程导论</a></li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">学习<a title="（麻省理工免费课程）C语言内存管理和C++面向对象编程" href="http://coolshell.cn/articles/2474.html" target="_blank" style="color: #2970a6; text-decoration: initial;">（麻省理工免费课程）C语言内存管理</a></li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">学习Unix/Linux系统调用（<a href="http://product.china-pub.com/30181" target="_blank" style="color: #2970a6; text-decoration: initial;">Unix高级环境编程</a>），，了解系统层面的东西。</li><ul style="margin: 0px; padding: 0px 0px 10px;"><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">用这些系统知识操作一下文件系统，用户（实现一个可以拷贝目录树的小程序）</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">用fork/wait/waitpid写一个多进程的程序，用pthread写一个多线程带同步或互斥的程序。多进程多进程购票的程序。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">用signal/kill/raise/alarm/pause/sigprocmask实现一个多进程间的信号量通信的程序。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">学会使用gcc和gdb来编程和调试程序（参看我的《<a href="http://coolshell.cn/articles/blog.csdn.net/haoel/article/details/2879" target="_blank" style="color: #2970a6; text-decoration: initial;">用gdb调试程序</a>》）</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">学会使用makefile来编译程序。（参看我的《<a href="http://coolshell.cn/articles/blog.csdn.net/haoel/article/details/2886" target="_blank" style="color: #2970a6; text-decoration: initial;">跟我一起写makefile</a>》）</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">IPC和Socket的东西可以放到高级中来实践。</li></ul><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">学习Windows SDK编程（<a href="http://product.china-pub.com/52880" target="_blank" style="color: #2970a6; text-decoration: initial;">Windows 程序设计&nbsp;</a>，<a href="http://product.china-pub.com/3804" target="_blank" style="color: #2970a6; text-decoration: initial;">MFC程序设计</a>）</li><ul style="margin: 0px; padding: 0px 0px 10px;"><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">写一个窗口，了解WinMain/WinProcedure，以及Windows的消息机制。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">写一些程序来操作Windows SDK中的资源文件或是各种图形控件，以及作图的编程。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">学习如何使用MSDN查看相关的SDK函数，各种WM_消息以及一些例程。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">这本书中有很多例程，在实践中请不要照抄，试着自己写一个自己的例程。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">不用太多于精通这些东西，因为GUI正在被Web取代，主要是了解一下Windows 图形界面的编程。@<a title="virushuo" href="http://twitter.com/#!/virushuo" data-user-id="49913" style="color: #2970a6; text-decoration: initial;">virushuo</a>&nbsp;说：&#8220;&nbsp;我觉得GUI确实不那么热门了，但充分理解GUI工作原理是很重要的。包括移动设备开发，如果没有基础知识仍然很吃力。或者说移动设备开发必须理解GUI工作，或者在win那边学，或者在mac/iOS上学&#8221;。</li></ul></ul><p style="margin: 0px 0px 10px; padding: 0px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;"><strong>2、学习Java</strong></p><ul style="margin: 0px; padding: 0px 0px 10px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;"><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">Java 的学习主要是看经典的Core Java 《<a href="http://product.china-pub.com/208978" target="_blank" style="color: #2970a6; text-decoration: initial;">Java 核心技术编程</a>》和《<a href="http://product.china-pub.com/34838" target="_blank" style="color: #2970a6; text-decoration: initial;">Java编程思想</a>》（有两卷，我仅链了第一卷，足够了，因为Java的图形界面了解就可以了）</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">学习JDK，学会查阅Java API Doc&nbsp;<a href="http://download.oracle.com/javase/6/docs/api/" style="color: #2970a6; text-decoration: initial;">http://download.oracle.com/javase/6/docs/api/</a></li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">了解一下Java这种虚拟机语言和C和Python语言在编译和执行上的差别。从C、Java、Python思考一下&#8220;跨平台&#8221;这种技术。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">学会使用IDE Eclipse，使用Eclipse 编译，调试和开发Java程序。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">建一个Tomcat的网站，尝试一下JSP/Servlet/JDBC/MySQL的Web开发。把前面所说的那个PHP的小项目试着用JSP和Servlet实现一下。</li></ul><div style="margin: 0px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;"><strong>3、Web的安全与架构</strong></div><div style="margin: 0px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;"><ul style="margin: 0px; padding: 0px 0px 10px;"><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">学习HTML5，网上有很多很多教程，以前<a href="http://coolshell.cn/" target="_blank" style="color: #2970a6; text-decoration: initial;">酷壳</a>也介绍过很多，我在这里就不罗列了。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">学习Web开发的安全问题（参考<a title="新浪微博的XSS攻击" href="http://coolshell.cn/articles/4914.html" target="_blank" style="color: #2970a6; text-decoration: initial;">新浪微博被攻击的这个事</a>，以及<a href="http://guides.rubyonrails.org/security.html" target="_blank" style="color: #2970a6; text-decoration: initial;">Ruby的这篇文章</a>）</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">学习HTTP Server的rewrite机制，Nginx的反向代理机制，<a href="http://en.wikipedia.org/wiki/Fast_CGI" target="_blank" style="color: #2970a6; text-decoration: initial;">fast-cgi</a>（如：<a href="http://php-fpm.org/" target="_blank" style="color: #2970a6; text-decoration: initial;">PHP-FPM</a>）</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">学习Web的静态页面缓存技术。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">学习Web的异步工作流处理，数据Cache，数据分区，负载均衡，水平扩展的构架。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;"><strong>实践任务：</strong></li><ul style="margin: 0px; padding: 0px 0px 10px;"><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">使用HTML5的canvas 制作一些Web动画。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">尝试在前面开发过的那个Web应用中进行SQL注入，JS注入，以及XSS攻击。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">把前面开发过的那个Web应用改成构造在Nginx + PHP-FPM + 静态页面缓存的网站</li></ul></ul></div><p style="margin: 0px 0px 10px; padding: 0px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;"><strong>4、学习关系型数据库</strong></p><ul style="margin: 0px; padding: 0px 0px 10px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;"><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">你可以安装MSSQLServer或MySQL来学习数据库。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">学习教科书里数据库设计的那几个范式，1NF，2NF，3NF，&#8230;&#8230;</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">学习数据库的存过，触发器，视图，建索引，游标等。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">学习SQL语句，明白表连接的各种概念（参看《<a title="图解SQL的Join" href="http://coolshell.cn/articles/3463.html" style="color: #2970a6; text-decoration: initial;">SQL &nbsp;Join的图示</a>》）</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">学习如何优化数据库查询（参看《<a title="MySQL性能优化的最佳20+条经验" href="http://coolshell.cn/articles/1846.html" style="color: #2970a6; text-decoration: initial;">MySQL的优化</a>》）</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;"><strong>实践任务</strong>：设计一个论坛的数据库，至少满足3NF，使用SQL语句查询本周，本月的最新文章，评论最多的文章，最活跃用户。</li></ul><p style="margin: 0px 0px 10px; padding: 0px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;"><strong>5、一些开发工具</strong></p><ul style="margin: 0px; padding: 0px 0px 10px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;"><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">学会使用SVN或Git来管理程序版本。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">学会使用JUnit来对Java进行单元测试。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">学习C语言和Java语言的coding standard 或 coding guideline。（我N年前写过一篇关C语言非常简单的文章&#8212;&#8212;《<a href="http://blog.csdn.net/haoel/article/category/9200/2" target="_blank" style="color: #2970a6; text-decoration: initial;">编程修养</a>》，这样的东西你可以上网查一下，一大堆）。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">推荐阅读《<a href="http://product.china-pub.com/28351" target="_blank" style="color: #2970a6; text-decoration: initial;">代码大全</a>》《<a href="http://product.china-pub.com/196374" target="_blank" style="color: #2970a6; text-decoration: initial;">重构</a>》《<a href="http://product.china-pub.com/196266" target="_blank" style="color: #2970a6; text-decoration: initial;">代码整洁之道</a>》</li></ul><h4>高级深入</h4><p style="margin: 0px 0px 10px; padding: 0px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;"><strong>1、C++ / Java 和面向对象</strong></p><p style="margin: 0px 0px 10px; padding: 0px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;">我个人以为学好C++，Java也就是举手之劳。但是C++的学习曲线相当的陡。不过，我觉得C++是最需要学好的语言了。参看两篇趣文&#8220;<a title="C++ 程序员自信心曲线图" href="http://coolshell.cn/articles/2287.html" target="_blank" style="color: #2970a6; text-decoration: initial;">C++学习信心图</a>&#8221; 和&#8220;<a title="&#8220;21天教你学会C++&#8221;" href="http://coolshell.cn/articles/2250.html" target="_blank" style="color: #2970a6; text-decoration: initial;">21天学好C++</a>&#8221;</p><ul style="margin: 0px; padding: 0px 0px 10px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;"><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">学习<a title="（麻省理工免费课程）C语言内存管理和C++面向对象编程" href="http://coolshell.cn/articles/2474.html" target="_blank" style="color: #2970a6; text-decoration: initial;">（麻省理工免费课程）C++面向对象编程</a></li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">读我的 &#8220;<a title="如何学好C++语言" href="http://coolshell.cn/articles/4119.html" target="_blank" style="color: #2970a6; text-decoration: initial;">如何学好C++</a>&#8221;中所推荐的那些书至少两遍以上（如果你对C++的理解能够深入到像我所写的《<a href="http://blog.csdn.net/haoel/article/details/1948051" target="_blank" style="color: #2970a6; text-decoration: initial;">C++虚函数表解析</a>》或是《<a href="http://blog.csdn.net/haoel/article/details/3081328" target="_blank" style="color: #2970a6; text-decoration: initial;">C++对象内存存局</a>（<a href="http://blog.csdn.net/haoel/article/details/3081328" target="_blank" style="color: #2970a6; text-decoration: initial;">上</a>）（<a href="http://blog.csdn.net/haoel/article/details/3081385" target="_blank" style="color: #2970a6; text-decoration: initial;">下</a>）》，或是《<a href="http://blog.csdn.net/haoel/article/details/1388498" target="_blank" style="color: #2970a6; text-decoration: initial;">C/C++返回内部静态成员的陷阱</a>》那就非常不错了）</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">然后反思为什么C++要干成这样，Java则不是？你一定要学会对比C++和Java的不同。比如，Java中的初始化，垃圾回收，接口，异常，虚函数，等等。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;"><strong>实践任务：</strong></li><ul style="margin: 0px; padding: 0px 0px 10px;"><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">用C++实现一个BigInt，支持128位的整形的加减乘除的操作。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">用C++封装一个数据结构的容量，比如hash table。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">用C++封装并实现一个智能指针（一定要使用模板）。</li></ul><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">《<a href="http://product.china-pub.com/25961" target="_blank" style="color: #2970a6; text-decoration: initial;">设计模式</a>》必需一读，两遍以上，思考一下，这23个模式的应用场景。主要是两点：1）钟爱组合而不是继承，2）钟爱接口而不是实现。（也推荐《<a href="http://product.china-pub.com/27862" style="color: #2970a6; text-decoration: initial;">深入浅出设计模式</a>》）</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;"><strong>实践任务：</strong></li><ul style="margin: 0px; padding: 0px 0px 10px;"><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">使用工厂模式实现一个内存池。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">使用策略模式制做一个类其可以把文本文件进行左对齐，右对齐和中对齐。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">使用命令模式实现一个命令行计算器，并支持undo和redo。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">使用修饰模式实现一个酒店的房间价格订价策略&#8212;&#8212;旺季，服务，VIP、旅行团、等影响价格的因素。</li></ul><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">学习STL的用法和其设计概念 &nbsp;- 容器，算法，迭代器，函数子。如果可能，请读一下其源码。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;"><strong>实践任务：</strong>尝试使用面向对象、STL，设计模式、和WindowsSDK图形编程的各种技能</li><ul style="margin: 0px; padding: 0px 0px 10px;"><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">做一个贪吃蛇或是俄罗斯方块的游戏。支持不同的级别和难度。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">做一个文件浏览器，可以浏览目录下的文件，并可以对不同的文件有不同的操作，文本文件可以打开编辑，执行文件则执行之，mp3或avi文件可以播放，图片文件可以展示图片。</li></ul><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">学习C++的一些类库的设计，如： MFC（看看候捷老师的《<a href="http://product.china-pub.com/3565" target="_blank" style="color: #2970a6; text-decoration: initial;">深入浅出MFC</a>》） ，Boost, ACE, &nbsp;CPPUnit，STL （STL可能会太难了，但是如果你能了解其中的设计模式和设计那就太好了，如果你能深入到我写的《<a href="http://blog.csdn.net/haoel/article/details/24058" target="_blank" style="color: #2970a6; text-decoration: initial;">STL string类的写时拷贝技术</a>》那就非常不错了，ACE需要很强在的系统知识，参见后面的&#8220;加强对系统的了解&#8221;）</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">Java是真正的面向对象的语言，Java的设计模式多得不能再多，也是用来学习面向对象的设计模式的最佳语言了（参看<a title="JDK里的设计模式" href="http://coolshell.cn/articles/3320.html" target="_blank" style="color: #2970a6; text-decoration: initial;">Java中的设计模式</a>）。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">推荐阅读《<a href="http://product.china-pub.com/195040" style="color: #2970a6; text-decoration: initial;">Effective Java</a>》 and 《<a href="http://product.china-pub.com/197212" style="color: #2970a6; text-decoration: initial;">Java解惑</a>》</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">学习Java的框架，Java的框架也是多，如Spring,&nbsp;Hibernate，Struts 等等，主要是学习Java的设计，如IoC等。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">Java的技术也是烂多，重点学习J2EE架构以及JMS， RMI, 等消息传递和远程调用的技术。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">学习使用Java做Web Service （<a href="http://download.oracle.com/docs/cd/E17802_01/webservices/webservices/docs/2.0/tutorial/doc/" target="_blank" style="color: #2970a6; text-decoration: initial;">官方教程在这里</a>）</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;"><strong>实践任务：&nbsp;</strong>尝试在Spring或Hibernate框架下构建一个有网络的Web Service的远程调用程序，并可以在两个Service中通过JMS传递消息。</li></ul><p style="margin: 0px 0px 10px; padding: 0px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;">C++和Java都不是能在短时间内能学好的，C++玩是的深，Java玩的是广，我建议两者选一个。我个人的学习经历是：</p><ul style="margin: 0px; padding: 0px 0px 10px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;"><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">深究C++（我深究C/C++了十来年了）</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">学习Java的各种设计模式。</li></ul><p style="margin: 0px 0px 10px; padding: 0px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;"><strong>2、加强系统了解</strong></p><p style="margin: 0px 0px 10px; padding: 0px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;">重要阅读下面的几本书：</p><ul style="margin: 0px; padding: 0px 0px 10px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;"><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">《<a href="http://product.china-pub.com/197413" target="_blank" style="color: #2970a6; text-decoration: initial;">Unix编程艺术</a>》了解Unix系统领域中的设计和开发哲学、思想文化体系、原则与经验。你一定会有一种醍醐灌顶的感觉。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">《<a href="http://product.china-pub.com/196770" target="_blank" style="color: #2970a6; text-decoration: initial;">Unix网络编程卷1，套接字</a>》这是一本看完你就明白网络编程的书。重要注意TCP、UDP，以及多路复用的系统调用select/poll/epoll的差别。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">《<a href="http://product.china-pub.com/35" target="_blank" style="color: #2970a6; text-decoration: initial;">TCP/IP详解 卷1:协议</a>》- 这是一本看完后你就可以当网络黑客的书。了解以太网的的运作原理，了解TCP/IP的协议，运作原理以及如何TCP的调优。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;"><strong>实践任务：</strong></li><ul style="margin: 0px; padding: 0px 0px 10px;"><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">理解什么是阻塞（同步IO），非阻塞（异步IO），多路复用（select, poll, epoll）的IO技术。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">写一个网络聊天程序，有聊天服务器和多个聊天客户端（服务端用UDP对部分或所有的的聊天客户端进Multicast或Broadcast）。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">写一个简易的HTTP服务器。</li></ul><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">《<a href="http://product.china-pub.com/196859" target="_blank" style="color: #2970a6; text-decoration: initial;">Unix网络编程卷2，进程间通信</a>》信号量，管道，共享内存，消息等各种IPC&#8230;&#8230; 这些技术好像有点老掉牙了，不过还是值得了解。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;"><strong>实践任务：</strong></li><ul style="margin: 0px; padding: 0px 0px 10px;"><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">主要实践各种IPC进程序通信的方法。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">尝试写一个管道程序，父子进程通过管道交换数据。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">尝试写一个共享内存的程序，两个进程通过共享内存交换一个C的结构体数组。</li></ul><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">学习《<a href="http://product.china-pub.com/209058" target="_blank" style="color: #2970a6; text-decoration: initial;">Windows核心编程</a>》一书。把CreateProcess，Windows线程、线程调度、线程同步（Event, &nbsp;信号量，互斥量）、异步I/O，内存管理，DLL，这几大块搞精通。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;"><strong>实践任务：</strong>使用CreateProcess启动一个记事本或IE，并监控该程序的运行。把前面写过的那个简易的HTTP服务用线程池实现一下。写一个DLL的钩子程序监控指定窗口的关闭事件，或是记录某个窗口的按键。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">有了多线程、多进程通信，TCP/IP，套接字，C++和设计模式的基本，你可以研究一下ACE了。使用ACE重写上述的聊天程序和HTTP服务器（带线程池）</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;"><strong>实践任务：</strong>通过以上的所有知识，尝试</li><ul style="margin: 0px; padding: 0px 0px 10px;"><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">写一个服务端给客户端传大文件，要求把100M的带宽用到80%以上。（注意，磁盘I/O和网络I/O可能会很有问题，想一想怎么解决，另外，请注意网络传输最大单元MTU）</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">了解BT下载的工作原理，用多进程的方式模拟BT下载的原理。</li></ul></ul><p style="margin: 0px 0px 10px; padding: 0px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;"><strong>3、系统架构</strong></p><ul style="margin: 0px; padding: 0px 0px 10px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;"><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">负载均衡。HASH式的，纯动态式的。（可以到Google学术里搜一些<a href="http://scholar.google.com.hk/scholar?q=%E8%B4%9F%E8%BD%BD%E5%9D%87%E8%A1%A1&amp;hl=zh-CN&amp;as_sdt=0&amp;as_vis=1&amp;oi=scholart" target="_blank" style="color: #2970a6; text-decoration: initial;">关于负载均衡的文章</a>读读）</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">多层分布式系统 &#8211; 客户端服务结点层、计算结点层、数据cache层，数据层。J2EE是经典的多层结构。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;"><a href="http://en.wikipedia.org/wiki/Content_delivery_network" target="_blank" style="color: #2970a6; text-decoration: initial;">CDN系统</a>&nbsp;&#8211; 就近访问，内容边缘化。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;"><a href="http://en.wikipedia.org/wiki/Peer-to-peer" target="_blank" style="color: #2970a6; text-decoration: initial;">P2P式系统</a>，研究一下BT和电驴的算法。比如：<a href="http://en.wikipedia.org/wiki/Distributed_hash_table" target="_blank" style="color: #2970a6; text-decoration: initial;">DHT算法</a>。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">服务器备份，双机备份系统（Live-Standby和Live-Live系统），两台机器如何通过心跳监测对方？集群主结点备份。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;"><a href="http://en.wikipedia.org/wiki/Virtualization" target="_blank" style="color: #2970a6; text-decoration: initial;">虚拟化技术</a>，使用这个技术，可以把操作系统当应用程序一下切换或重新配置和部署。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">学习<a href="http://thrift.apache.org/" target="_blank" style="color: #2970a6; text-decoration: initial;">Thrift</a>，二进制的高性能的通讯中间件，支持数据(对象)序列化和多种类型的RPC服务。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">学习<a href="http://hadoop.apache.org/" target="_blank" style="color: #2970a6; text-decoration: initial;">Hadoop</a>。Hadoop框架中最核心的设计就是：MapReduce和HDFS。MapReduce的思想是由Google的一篇论文所提及而被广为流传的，简单的一句话解释MapReduce就是&#8220;任务的分解与结果的汇总&#8221;。HDFS是Hadoop分布式文件系统（Hadoop Distributed File System）的缩写，为分布式计算存储提供了底层支持。</li><li style="margin: 0px; padding: 0px 0px 0px 20px; list-style-position: inside;">了解<a href="http://en.wikipedia.org/wiki/NoSQL" target="_blank" style="color: #2970a6; text-decoration: initial;">NoSQL数据库</a>（有人说可能是一个<a title="那些炒作过度的技术和概念" href="http://coolshell.cn/articles/3609.html" target="_blank" style="color: #2970a6; text-decoration: initial;">过渡炒作的技术</a>），不过因为超大规模以及高并发的纯动态型网站日渐成为主流，而SNS类网站在数据存取过程中有着实时性等刚性需求，这使得目前NoSQL数据库慢慢成了人们所关注的焦点，并大有成为取代关系型数据库而成为未来主流数据存储模式的趋势。当前NoSQL数据库很多，大部分都是开源的，其中比较知名的有：MemcacheDB、Redis、Tokyo Cabinet(升级版为Kyoto Cabinet)、Flare、MongoDB、CouchDB、Cassandra、Voldemort等。</li></ul><p style="margin: 0px 0px 10px; padding: 0px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;">写了那么多，回顾一下，觉得自己相当的有成就感。希望大家不要吓着，我自己这十来年也在不断地学习，今天我也在学习中，人生本来就是一个不断学习和练级的过程。<strong>不过，一定有漏的，也有不对的，还希望大家补充和更正</strong>。（<span style="color: #cc0000;"><strong>我会根据大家的反馈随时更新此文</strong></span>）欢迎大家通过我的微博（<a href="http://weibo.com/haoel" target="_blank" style="color: #2970a6; text-decoration: initial;">@左耳朵耗子</a>）和twitter（@<a href="http://twitter.com/haoel" target="_blank" style="color: #2970a6; text-decoration: initial;">haoel</a>）和我交流。</p><p style="margin: 0px 0px 10px; padding: 0px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;"><em><strong>&#8212;&#8211; 更新 &nbsp;2011/07/19 &#8212;&#8211;</strong></em></p><p style="margin: 0px 0px 10px; padding: 0px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;">1）有朋友奇怪为什么我在这篇文章开头说了web+移动，却没有在后面提到iOS/Android的前端开发。因为我心里有一种感觉，移动设备上的UI最终也会被Javascript取代。大家可以用iPhone或Android看看google+，你就会明白了。</p><p style="margin: 0px 0px 10px; padding: 0px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;">2）有朋友说我这里的东西太多了，不能为了学习而学习，我非常同意。我在文章的前面也说了要思考。另外，千万不要以为我说的这些东西是一些新的技术，这份攻略里95%以上的全是基础。而且都是久经考验的基础技术。即是可以让你一通百通的技术，也是可以让你找到一份不错工作的技术。</p><p style="margin: 0px 0px 10px; padding: 0px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;">3）有朋友说学这些东西学完都40了，还不如想想怎么去挣钱。我想告诉大家，一是我今年还没有40岁，二是学无止境啊，三是我不觉得挣钱有多难，难的是怎么让你值那么多钱？无论是打工还是创业，是什么东西让你自己的价值，让你公司的价值更值钱？别的地方我不敢说，对于互联网或IT公司来说，技术实力绝对是其中之一。</p><p style="margin: 0px 0px 10px; padding: 0px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;">4）有朋友说技术都是工具，不应该如此痴迷这句话没有错，有时候我们需要更多的是抬起头来看看技术以外的事情，或者是说我们在作技术的时候不去思考为什么会有这个技术，为什么不是别的，问题不在于技术，问题在于我们死读书，读死书，成了技术的书呆子。</p><p style="margin: 0px 0px 10px; padding: 0px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;">5） 对于NoSQL，最近比较火，但我对其有点保守，所以，我只是说了解就可以。对于Hadoop，我觉得其在分布式系统上有巨大的潜力，所以需要学习。&nbsp;对于关系型数据库，的确是很重要的东西，这点是我的疏忽，在原文里补充。</p><p style="margin: 0px 0px 10px; padding: 0px; color: #555555; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 22px;"><span style="font-size: 12pt;"><strong>（全文完，转载时请注明作者和出处）</strong></span></p><div style="margin: 15px 0px 0px; font-family: Arial, Verdana, 'BitStream vera Sans', Tahoma, Helvetica, sans-serif; line-height: 22px; font-size: 11px; color: #cc0000;"><p align="center" style="margin: 0px 0px 10px; padding: 0px;"><strong>（转载本站文章请注明作者和出处&nbsp;<a href="http://coolshell.cn/" style="color: #2970a6; text-decoration: initial;">酷壳 &#8211; CoolShell.cn</a>&nbsp;，请勿用于任何商业用途）</strong></p></div><img src ="http://www.cppblog.com/mysileng/aggbug/201185.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/mysileng/" target="_blank">鑫龙</a> 2013-06-20 22:59 <a href="http://www.cppblog.com/mysileng/archive/2013/06/20/201185.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>