Journal on 2021-05-07
Posted on 五 07 5月 2021 in Journal • Tagged with journal, blog
优秀程序设计的18大原则 Christopher Diggins 编程的最基本原则是避免重复。在程序代码中总会有很多结构体,如循环、函数、类等等。一旦你重复某个语句或概念,就会很容易形成一个抽象体。 与DRY原则相关。要记住,程序代码中每一个重要的功能,只能出现在源代码的一个位置。
Continue reading
Posted on 五 07 5月 2021 in Journal • Tagged with journal, blog
优秀程序设计的18大原则 Christopher Diggins 编程的最基本原则是避免重复。在程序代码中总会有很多结构体,如循环、函数、类等等。一旦你重复某个语句或概念,就会很容易形成一个抽象体。 与DRY原则相关。要记住,程序代码中每一个重要的功能,只能出现在源代码的一个位置。
Posted on 四 06 5月 2021 in Journal • Tagged with journal, blog
但愿不厌其烦,笔耕不辍 Coturn: https://github.com/coturn/coturn — refer to https://github.com/coturn/coturn/blob/master/INSTALL vi installdeps.sh source installd...
Posted on 二 04 5月 2021 in Journal • Tagged with journal, blog
今天是五四青年节,别人都觉得我已经不是青年了,我却知道,我依然是。虽然并不对时下流行的流行的歌曲和抖音等感兴趣,可是我依然有强烈的求知欲, 有渴望,有梦想,所以我依然是一个年青人。
Posted on 一 03 5月 2021 in Journal • Tagged with journal, blog
Posted on 日 02 5月 2021 in Journal • Tagged with journal, blog
Posted on 六 01 5月 2021 in Journal • Tagged with journal, blog
今天是五一劳动节,劳动最光荣,我劳动,我快乐,前提是要搞好身体,愿家人和自己都有一个健康的身心去迎接未来的挑战。 回想几年前生病的那段时间,在家休养时才感觉工作是多么的美好。
Posted on 六 24 4月 2021 in Journal • Tagged with journal, blog
The fundamental problem of poor leadership is often the leader's inability to set a clear and compelling direction or to capitalize of the energy,
Posted on 四 25 2月 2021 in Journal • Tagged with journal, blog
先看一下效果,你可以在这里亲自动手试试 https://www.fanyamin.com/webrtc/examples/media_stream.html WebRTC 中对媒体流 Media Stream 做了内置的支持,可以从电脑的摄像头,麦克风中捕获音频或视频流,
Posted on 二 16 2月 2021 in Journal • Tagged with journal, blog
Posted on 五 01 1月 2021 in Journal • Tagged with journal, blog
2020年,正当怀着对新的一年的憧憬整装待发,新冠疫情突然袭来,让每个人都措手不及,从武汉传来的消息让人惊诧,恐惧,揪心。 谁能料到, 2020 年我会从春节一直在家中待到8月,庆幸还能出门买个菜,大街上空空荡荡,间或看见几个人都戴着帽子和口罩。
Posted on 六 05 12月 2020 in Journal • Tagged with journal, blog
作为一个老程序员,长期工作在后端服务器的开发, 由于项目原因,最近会做一些前端 JavaScript 的开发,于是系统地学习了久违的 JavaScript, 第一感觉就是 Javascript 很丑陋。
Posted on 六 03 10月 2020 in Journal • Tagged with journal, blog
C 是一门古老的语言, C++在为C 引入了面向对象和泛型,也引入了许多的复杂性,例如多重继承,模板的特化,等等。同时 C++ 本身除了 STL 标准库,缺少高质量的并发和网络软件包,每个C++程序员或多或少都造过大大小小的轮子。
Posted on 三 30 9月 2020 in Journal • Tagged with journal, blog
发送数据也是一样,一个数据包可能只发送了一部分,剩余的放在缓冲区中在 socket 端口可写时通过 on_write 回调函数中继续发送。 这里缓冲区的设计就很有讲究,尽量避免不必要的内存分配和复制,以提高性能。
Posted on 六 19 9月 2020 in Journal • Tagged with journal, blog
应用程序十二要点是Heroku 所提出的一种用于构建软件即服务应用程序的方法学,参见 https://12factor.net, 解读如下 使用声明性格式进行设置自动化,以最小化新加入项目的开发者的时间和学习成本; 与底层操作系统之间保持简洁的契约,
Posted on 二 15 9月 2020 in Journal • Tagged with journal, blog
Posted on 六 29 8月 2020 in Journal • Tagged with journal, blog
Posted on 日 26 7月 2020 in Journal • Tagged with journal, blog
Posted on 五 17 7月 2020 in Journal • Tagged with journal, blog
随手翻翻,不乏真知灼见,不过毕竟知易行难,说起来容易,做起来难呀 修改软件的艺术 david scott bernstein 1. 成为特定领域专家 1. 在开发过程中探索 1. 帮助开发者理解为什么和为了谁 1. 描述你想要什么,而不是怎么做 1. 及时回答问题 1. 消除依赖 1.
Posted on 四 18 6月 2020 in Journal • Tagged with journal, blog
“Let life be beautiful like summer flowers and death like autumn leaves.” — Rabindranath Tagore 这大概是泰戈尔最有名的诗句,
Posted on 六 30 5月 2020 in Journal • Tagged with journal, blog
铁幕缓缓落下 Reviewed trump's statement today, it was like a battle letter. He found the scapegoat and would hold it tightly. A new cold war is coming.