第一次写一年的总结,第一个感觉就是,时间过得真的很快,不知不觉已经到了大三上学期的结束,下学期就要开始找实习了,马上是要出来工作的人了,可我还总像是长不大。
Little 2014 Background
2014 年 6,7 月份进入 TopView 工作室,开始了前端的学习。我很幸运我找不到我喜欢的东西,我喜欢的东西却找到了我。2014 年的暑假师兄师姐叫我自己做一些 “项目” 来把自己学习的东西用起来,我就和同届的后台章杰同学一起做了一个仿照微博的页面,学会了简单地运用 HTML, CSS 和 jQuery,还有前后台交接的问题
继续阅读 »
| Item | Java | Python | Go | Javascript |
|:-----------------|:-----------------|:------------|:--------------------|:-----------|
|type | String | str/unicode | string | N/A |
|package | import String | primitive |
继续阅读 »
3 个月没更了,忙毕业的各种东西都是借口,是的,我颓了。赶在 2016 的尾巴,总结一下。
2016 is all about internship.
Interview
从上一年的暑假开始,就开始了面试的准备,主要是对一些知识点、面试题的总结,prepare-for-interview 的确在我笔试和面试的过程中给予了一些帮助。
继续阅读 »
What's Singleton, What Singleton for
单体就是一个只实例化一次的对象,他可以用来
划分命名空间,减少全局变量的数目
可以用分支来封装浏览器之间的差异
可以把代码组织得更为一致,从而更容易维护
继续阅读 »
|Set | Java | Python | Go |
|:--------|:-----------------------|:----------|:----------|
|type | Set, HashSet, etc | set | N/A |
|package | import Set | primitive | N/A |
|mutable | Y | Y | N/A |
继续阅读 »
Type determination
java interface query:
interfaceDemo instanceof InterfaceDemo
subClassInstance instanceof ParentClass
python
isinstance
golang interface query:
value, ok := element.(T) element is interface var, T is base type
switch value := element.(type)
继续阅读 »
Description:
The target of this JIRA is to offer the allocation slack resources to the framework. Here're the key points of this design:
继续阅读 »
Golang
看了几天golang, 蛋疼的把以前一个PY的日志处理程序,用golang重写了, 很简单的一个小程序. 用golang重写涉及到, 一些自有特定的string类型的日志, 先是转换成json, 用到simplejson模块, json, err := simplejson.Loads(subStr),
后面发现用map类型实现, 会更优雅一点:
byt := []byte(subStr)
var dat map[string]interface{}
if err:= json.Unmarshal(byt, &dat); err != nil{
panic(err)
继续阅读 »
这里记录的是现在所在游戏的cpp代码里的, 关于事件调度和触发的源码分析.
EventDispatcher 是一个事件调度者
Event 事件基类
EventReceiver 所有需要接收世界的对象的基类, 它们都对EventReceiver做继承. 并重写RecieveEvent方法.
继续阅读 »