Simple Code Sky

As the word in the movie of《catch me if you can》—— "To the moon".


  • Home

  • Archives

  • Search

Golang 源码导读 —— channel

Posted on 2019-07-02 | Views:

01.chan 的数据结构:golang 中 chan 的源码在 src/runtime/chan.go 文件中,hchan 则为 chan 的结构体 hchan:type hchan struct { qcount uint // 当前缓存数据的总量 dataqsiz ...

Read more »

Learning English grammar hard.

Posted on 2019-03-18 | Edited on 2019-03-21 | Views:

所有的句子都是 简单句、并列句、复合句 这三种类型 从句名词性从句主要作用是将一个句子降级成名词,因为一个句子只能有一个谓语动词,用作连接句子 主语从句:That he like football surprised us. 名词(主语):That he like及物动词(谓语):surprised ...

Read more »

 Longest Substring Without Repeating Characters —— leet code 每天一练

Posted on 2019-03-15 | Views:

问题描述Given a string, find the length of the longest substring without repeating characters. Example 1:Input: "abcabcbb"Output: 3 Explanation: ...

Read more »

Add Two Numbers —— leet code 每天一练

Posted on 2019-03-14 | Edited on 2019-03-15 | Views:

问题描述You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes co ...

Read more »

Two Sum —— leet code 每天一练

Posted on 2019-03-12 | Views:

问题描述:Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would hav ...

Read more »

React-Native 源码学习

Posted on 2019-01-30 | Views:

其他笔记OC 利用 RunLoop 实现线程队列调用事件# RCTMessageThread.mmRCTMessageThread::RCTMessageThread(NSRunLoop *runLoop, RCTJavaScriptCompleteBlock errorBlock) : m_cf ...

Read more »

Redux 学习笔记

Posted on 2018-12-05 | Views:

Action 就是一个描述“发生了什么”的普通对象。比如:{ type: 'LIKE_ARTICLE', articleId: 42 } reducer 是一个纯函数,接收旧的 state 和 action,返回新的 state。(previousState, action) = ...

Read more »

JavaScript学习笔记

Posted on 2018-11-07 | Edited on 2019-01-11 | Views:

JavaScript 是一门基于原型的语言,不存在类与实例的区别,因为它只有对象。基于原型的语言具有所谓原型对象的概念。原型对象可以作为一个模板,新对象可以从中获得原始的属性。任何对象都可以指定其自身的属性,既可以是创建时也可以在运行时创建。而且,任何对象都可以作为另一个对象的原型,从而允许后者共享 ...

Read more »

面向对象:设计中的思考

Posted on 2018-08-14 | Edited on 2018-09-04 | Views:

设计模式说白了,就是接口编程与组合对象所延伸出来得变异。d 如何设计接口?学会针对接口编程,而不是针对实现编程设计接口需传入某类型变量的时候,不将变量声明为某个特定得具体类的实例对象,而是让它遵从抽象类所定义的接口。如下:比如我们现在需要设计一个 doSomething 接口,需要接受一个变量,去为 ...

Read more »

线程池

Posted on 2018-04-24 | Edited on 2018-06-26 | Views:

动态创建子线程来实现服务器有以下缺点: 动态创建进程(或线程)是比较耗费时间的,这将导致较慢的客户响应。 动态创建的子进程(或子线程)通常只用来为一个客户服务(除非我们做特殊的处理),这将导致系统上产生大量的细微进程(或线程)。进程(或线程)间的切换将消耗大量CPU时间。 动态创建的子进程是当前进 ...

Read more »
123
何劍聪

何劍聪

iOS|C++|Unix|伪知识份子
27 posts
13 categories
23 tags
RSS
GitHub E-Mail 简书
Links
  • 曾供职于 4399Game
  • 现供职于 YY Inc.
  • Contact Me
© 2015 – 2019 何劍聪
Powered by Hexo v3.7.0
|
Theme – NexT.Mist v7.0.1