04 2020 档案

降低圈复杂度
摘要:降低圈复杂度 用functional的方式降低圈复杂度 用stl algorithm代替for loop https://blog.csdn.net/YyoulingL/article/details/84515924 "降低圈复杂度" https://zhuanlan.zhihu.com/p/29 阅读全文

posted @ 2020-04-29 19:42 cutepig 阅读(758) 评论(0) 推荐(0) 编辑

NW.js
摘要:NW.js https://stackoverflow.com/questions/36022891/is it possible to distribute a nwjs app as a single exe file) How to use nw package_folder_which_co 阅读全文

posted @ 2020-04-24 21:21 cutepig 阅读(230) 评论(0) 推荐(0) 编辑

boost serialization: intrusive and non-intrusive
摘要:boost serialization it has 2 modes: intrusive and non intrusive intrusive mode non intrusive mode How does boost impl the 2 modes? A: By function over 阅读全文

posted @ 2020-04-21 14:29 cutepig 阅读(167) 评论(0) 推荐(0) 编辑

grab设计难点
摘要:grab设计难点 Background 抓图模块要实现的几个目标 1. 并行处理,一边抓图一边处理 2. 图优化,以删除冗余操作 可是现在设计的api用起来没那么方便,具体体现在 1. 并行处理不完美,体现在用callback实现事件等待机制,这个callback有局限性 1. 无法超过64个事件( 阅读全文

posted @ 2020-04-13 19:20 cutepig 阅读(223) 评论(0) 推荐(0) 编辑

提高代码质量方法
摘要:提高代码质量方法 [TOC] 读书 模式、trick、“最佳实践”。原则,DRY. 设计模式相关书籍 Separation of concern, least knowledge/assumption 《Code Complete》 《Refactoring》 《Clean Code》 《think 阅读全文

posted @ 2020-04-13 18:29 cutepig 阅读(499) 评论(0) 推荐(0) 编辑

函数参数的讨论
摘要:函数参数的讨论 函数准则 无副作用准则 函数参数是不是越少越好, 1. 如果逻辑需要它们,那么它们也是必需的...只要正确地设置了格式并对其进行了注释以提高可读性, 长参数列表根本不会让我担心 2. 较大的参数列表 可能表明您的程序可能结构不正确 可能需要大量参数的 函数只是试图做太多事情 ,应该分 阅读全文

posted @ 2020-04-13 18:28 cutepig 阅读(246) 评论(0) 推荐(0) 编辑

redirect-windows-cmd-stdout-and-stderr-to-a-single-file
摘要:https://stackoverflow.com/questions/1420965/redirect windows cmd stdout and stderr to a single file You want: dir a.txt 2 &1 The syntax 2 &1 will redi 阅读全文

posted @ 2020-04-13 12:43 cutepig 阅读(149) 评论(0) 推荐(0) 编辑

rust 多文件工程
摘要:rust 多文件工程 调用另外一个文件testDefault里的函数 阅读全文

posted @ 2020-04-12 14:31 cutepig 阅读(1551) 评论(0) 推荐(0) 编辑

rust: 默认初始化,函数重载
摘要:rust: 默认初始化,函数重载 默认初始化 如下 函数重载 rust本身不支持函数重载,但是可以用泛型trait实现类似于重载的效果 如下, 阅读全文

posted @ 2020-04-12 14:29 cutepig 阅读(4172) 评论(0) 推荐(1) 编辑

VSCode如何格式化所有文件
摘要:VSCode如何格式化所有文件 You can use a extension called ”Format Files”. ”Use: Open command pallette (Ctrl+Shift+P) & enter "Format Files" Create keybinding to 阅读全文

posted @ 2020-04-10 21:11 cutepig 阅读(6081) 评论(0) 推荐(0) 编辑

*More C++ Idioms*
摘要:More C++ Idioms Table of Contents "[edit" ] Note: synonyms for each idiom are listed in parentheses. 1. "Address Of" " " 2. "Algebraic Hierarchy" " " 阅读全文

posted @ 2020-04-10 16:06 cutepig 阅读(205) 评论(0) 推荐(0) 编辑

# asio run vs poll
摘要:asio run vs poll discussions Using instead of is perfectly acceptable. The difference is explained in the "documentation" The poll() function may also 阅读全文

posted @ 2020-04-10 16:00 cutepig 阅读(225) 评论(0) 推荐(0) 编辑

vscode如何设置cpp代码格式
摘要:vscode如何设置cpp代码格式 How to customize your own coding style rule Please install your "VSCode" and Extension "C/C++ for Visual Studio Code" first I would 阅读全文

posted @ 2020-04-10 14:48 cutepig 阅读(1197) 评论(0) 推荐(0) 编辑

rust多线程和异步编程
摘要:rust多线程和异步编程 多线程 异步编程 rust // blocks the current thread until the provided future has run to // completion. Other executors provide more complex behav 阅读全文

posted @ 2020-04-10 13:58 cutepig 阅读(2135) 评论(0) 推荐(0) 编辑

Rust: VSCode debug设置
摘要:Rust: VSCode debug设置 前提 1. 切换到msvc toolchain by 步骤 Install Rust and VS Code This should go without saying. "Install Rust" "Install Visual Studio Code" 阅读全文

posted @ 2020-04-10 12:29 cutepig 阅读(3296) 评论(0) 推荐(0) 编辑

VSCode如何用快捷键清空terminal内容?
摘要:VSCode如何用快捷键清空terminal内容? https://stackoverflow.com/questions/48713604/how can i clear the terminal in visual studio code Open up the with Ctrl+K, Ctr 阅读全文

posted @ 2020-04-10 11:44 cutepig 阅读(6778) 评论(0) 推荐(0) 编辑

a-practical-guide-to-writing-technical-specs
摘要:[TOC] https://stackoverflow.blog/2020/04/06/a practical guide to writing technical specs/?utm_source=Iterable&utm_medium=email&utm_campaign=the_overfl 阅读全文

posted @ 2020-04-09 20:15 cutepig 阅读(298) 评论(0) 推荐(0) 编辑

完美转发
摘要:https://eli.thegreenplace.net/2014/perfect forwarding and universal references in c/ //https://www.zhihu.com/question/48367350 https://www.cnblogs.com 阅读全文

posted @ 2020-04-08 22:28 cutepig 阅读(116) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示