技术宅,fat-man

增加语言的了解程度可以避免写出愚蠢的代码

导航

#

[置顶] 书籍列表

摘要: http://book.douban.com/subject/1237118/http://product.china-pub.com/60896http://product.china-pub.com/48927http://book.douban.com/subject/1230031/http... 阅读全文

posted @ 2013-09-27 09:55 codestyle 阅读(261) 评论(0) 推荐(0) 编辑

#

[置顶] 杂记

摘要: http://www.csdn.net/article/2013-09-11/2816908-iOS-dev-toolseditorshttp://xmuzyq.iteye.com/blog/1942376source insight 3.5注册码SI3US-361500-17409http://www.oschina.net/p/grok?from=rssGROK python语义分析算法概论http://ishare.iask.sina.com.cn/f/34931346.html牛叉的大胡子,等我老了,也留这么一把大胡子http://www.ituring.com.cn/article/ 阅读全文

posted @ 2013-09-13 17:37 codestyle 阅读(278) 评论(0) 推荐(0) 编辑

2015年6月26日 #

模拟DLL加载

摘要: #include #include #include typedef int (*PFUNC)(int,int);typedef struct{ int Position; int Length;}Fun;typedef struct{ int num; Fun *pFun;... 阅读全文

posted @ 2015-06-26 17:45 codestyle 阅读(459) 评论(0) 推荐(0) 编辑

2015年6月24日 #

swift版本hello

摘要: import UIKitclass ViewController: UIViewController { @IBOutlet var button : UIButton? //var alertView:UIAlertView? override func viewDidL... 阅读全文

posted @ 2015-06-24 02:06 codestyle 阅读(238) 评论(0) 推荐(0) 编辑

2015年6月14日 #

bat写的自动部署脚本

摘要: windows7的机器上重启服务需要关闭UAC::编译部署项目echo offecho 1. GatewayAdaptorecho 2. LogicServiceecho 3. MessagePushAdapterecho 4. PhoneAdaptorecho 5. StatusServicese... 阅读全文

posted @ 2015-06-14 17:04 codestyle 阅读(710) 评论(0) 推荐(0) 编辑

2015年6月13日 #

代码可读性的改良

摘要: 首先, 有这样的代码,逻辑是没错的,但是长而且可读性不好:message = subAction == "add" ? String.format(format, contentMap.get("owner"), contentMap.get("ownerHomeName")) :... 阅读全文

posted @ 2015-06-13 13:22 codestyle 阅读(554) 评论(0) 推荐(0) 编辑

2015年5月17日 #

php的post和get方法

摘要: $value) { $fields_string .= $key.'='.$value.'&'; } rtrim($fields_string,'&'); //open connection $ch = curl_init(); //set the url, number o... 阅读全文

posted @ 2015-05-17 18:45 codestyle 阅读(537) 评论(0) 推荐(0) 编辑

2015年4月10日 #

重构代码

摘要: function sync_dept_delete($dept_info, $sir_domain, $dept_id = 0){ // 查出域名对应的id if($dept_id == 0 || $dept_id == ""){ $dept_id = Check_Addr... 阅读全文

posted @ 2015-04-10 19:13 codestyle 阅读(355) 评论(0) 推荐(0) 编辑

2015年4月9日 #

17款code review工具

摘要: 本文是码农网原创翻译,转载请看清文末的转载要求,谢谢合作!好的代码审查器可以大大地帮助程序员提高代码质量,减少错误几率。虽然现在市场上有许多可用的代码审查工具,但如何挑选也是一个艰巨的任务。在咨询过有关专家的建议和意见之后,我们罗列出了以下17款最佳的代码审查工具。1)CodeStrikerCode... 阅读全文

posted @ 2015-04-09 11:56 codestyle 阅读(19891) 评论(0) 推荐(2) 编辑

2015年3月19日 #

ubuntu安装svn manager

摘要: 环境:系统ubuntu14.040. 更新软件库sudo apt-get updatesudo apt-get upgrade -y1. 安装apache,svn,svn的apache模块sudo apt-get install apache2 subversion libapache2-svnsu... 阅读全文

posted @ 2015-03-19 12:56 codestyle 阅读(403) 评论(0) 推荐(0) 编辑

2015年1月20日 #

JavaScript: top对象

摘要: 一般的JS书里都会在讲框架集的时候讲top,这会让人误解,认为top对象只是代表框架集,其实top的含义应该是说浏览器直接包含的那一个页面对象,也就是说如果你有一个页面被其他页面以iframe的方式包含了,无论包含的层级是什么,都可以用top访问最外层的哪一个页面,因为这个页面被浏览器直接包含,这个... 阅读全文

posted @ 2015-01-20 20:47 codestyle 阅读(9782) 评论(1) 推荐(0) 编辑

JavaScript的OOP编程2

摘要: 我做了一个observer的设计模式实现version1// --------------------------------------------------function Subject(){}Subject.prototype.add = function(obj){ if(type... 阅读全文

posted @ 2015-01-20 12:52 codestyle 阅读(221) 评论(0) 推荐(0) 编辑