2023 第 33 周
8/20/2023, 1:18:00 AM 2 min read
-
Having more than one way to do the same thing - Ruby
- Ruby 的关键字, 语法结构, global; ps: “operator” 在不同 context 下意义不同. 同一个 “operator” 会在不同 class 下单独定义. “operator” 相当于 method; 另外:=== 在 JavaScript 里表示两个操作符是否类型相同以及值相等,在 Ruby 里表示 instanceof:
String === 'a'
- 约定大于配置
- Receiver::method - 文档 Receiver
- What is the difference between include and require in Ruby?
- Ruby#Set
- Ruby operator
- 你见过哪些令你瞠目结舌的 Ruby 代码技巧? ps: Ruby 把 composition 作为方法内置
-
You have a faulty keyboard. Whenever you type a vowel on it (a,e,i,o,u,y), it reverses the string that you have written, instead of typing the character. Typing other characters works as expected. Given a string, return what will be on the screen after typing with your faulty keyboard. Ref. answer#code
-
没有学术的民主和思想的自由,科学就不能繁荣。
- aka: also known as; successor
-
长时间慢跑,会有效且直接地消耗内脏脂肪,是非常好的方法
- TTFB
- RailsConf 2023 - Functional Patterns in Ruby by John Crepezzi code: 1, 2, 3
// 动态语言 function use(Klass, args) { const C = function() {} C.prototype = new Klass(args) return C }
- 具备执行力是少数人才有的能力
- 🏃
- 拉黑
- Tag:
- 2023