技术宅,fat-man

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

导航

06 2015 档案

模拟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 阅读(465) 评论(0) 推荐(0)

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

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

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

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

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

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