harttle.github.io icon indicating copy to clipboard operation
harttle.github.io copied to clipboard

Harttle Land 的源码和文章

Results 109 harttle.github.io issues
Sort by recently updated
recently updated
newest added

# Vim、Tmux、系统共用剪切板 | Harttle Land 在 Tmux 终端复用 中介绍过 Tmux 的使用,当你同时有系统剪切板、Tmux Clipboard、Vim Yank Buffer 时互相拷贝是不是很困难?本文介绍如何让它们共用一个剪切板。 [https://harttle.land/2017/06/23/vim-tmux-clipboard.html](https://harttle.land/2017/06/23/vim-tmux-clipboard.html)

# Effective C++ 21:需要返回对象时,不要返回引用 | Harttle Land 永远不要返回局部对象的引用或指针或堆空间的指针,如果客户需要多个返回对象时也不能是局部静态对象的指针或引用。 [https://harttle.land/2015/08/18/effective-cpp-21.html](https://harttle.land/2015/08/18/effective-cpp-21.html)

# Item 12:完整地拷贝对象 | Harttle Land 在一个成熟的面向对象的C++系统中,只有两种拷贝对象的方式:复制构造函数和赋值运算符。当重载拷贝函数时,首先要完整复制当前对象的数据(local data);然后调用所有父类中对应的拷贝函数。 [https://harttle.land/2015/08/01/effective-cpp-12.html](https://harttle.land/2015/08/01/effective-cpp-12.html)

# Effective C++ 9:在析构/构造时不要调用虚函数 | Harttle Land 父类构造期间,对虚函数的调用不会下降至子类。如果这并非你的意图,请不要这样做! [https://harttle.land/2015/07/27/effective-cpp-9.html](https://harttle.land/2015/07/27/effective-cpp-9.html)

# Item 5:那些被c++默默地声明和调用的函数 - Effective C++笔记 [http://harttle.land/2015/07/23/effective-cpp-5.html](http://harttle.land/2015/07/23/effective-cpp-5.html)

# Effective C++ 53:注意编译警告 | Harttle Land 请严肃对待所有warning,要追求最高warning级别的warning-free代码;但不要依赖于warning,可能换个编译器有些warning就不在了。 [https://harttle.land/2015/09/23/effective-cpp-53.html](https://harttle.land/2015/09/23/effective-cpp-53.html)

# Effective C++ 2:避免使用define | Harttle Land 尽量使用常量、枚举和内联函数,代替`#define`。 [https://harttle.land/2015/07/20/effective-cpp-2.html](https://harttle.land/2015/07/20/effective-cpp-2.html)

# JavaScript 方法的4种调用模式 | Harttle Land [http://harttle.land/2016/02/03/js-function-invocation.html](http://harttle.land/2016/02/03/js-function-invocation.html)

# 视口的宽高与滚动高度 | Harttle Land 很多场景下会需要在JavaScript中获取窗口或DOM元素的宽高,以及滚动高度。例如:实现滚动效果、创建全屏布局、动态绝对定位等等。本文就来介绍相关的DOM API:window.innerHeight, window.outerHeight,cl... [https://harttle.land/2016/04/24/client-height-width.html](https://harttle.land/2016/04/24/client-height-width.html)

# Bash 条件判断 | Harttle Land 其实本文不是介绍 条件分支语法 的,只介绍测试(test)语法,也就是说:本文只介绍如何写条件语法中的表达式。其实本文介绍的内容也并未针对 Bash,多数 Shell 都是适用的。与其他编程语言类似,if 的条件可以接受任何 表达式,计算为真就进入分... [https://harttle.land/2018/10/23/bash-test.html](https://harttle.land/2018/10/23/bash-test.html)