avatar

Coderek's blog

Loneliness is the gift of life

其实ruby真的不容易学,因为它有太多非主流的东西了。今天我就来说说 ruby module. ruby module 的主要用途无非就是给function 分类,给其一个命名空间。 比如 module M def self.hello puts 'world' end end module N def self.hello puts '世界&…

Read more ››

Background material. Terminology - heads, branches, refs, and revisions Resetting Merging 2-way merging 1-way merging Special merges - already up to date, and fast-forward Deleted files during merg…

Read more ››

I've been thinking about this for quite some time. The very meaning of stopping time is to stop the movement of everything. Time and movement are two highly related concepts. If you want to slow dow…

Read more ››

I have written about VueJs's change detection before. Recently, I created a simplified version here. In my opinion, it's an exemplary usage of observer/observable pattern in the frontend. In this ar…

Read more ››

One task I finished recently was to optimize the loading time of table of content(ToC). ToC is the most important API we are using. Currently, it loads the entire table of content before the initiali…

Read more ››

An interesting task I was assigned recently was to fix the app in RTL mode. Our app is an react app built using webpack. When it's working in the RTL mode, the react app will be under <body dir='…

Read more ››

This is a study note about Python basics. (based on python 3.6) itertools Helper functions returns iterator. import itertools as it Infinite sequence count, cycle, repeat c = it.count(10) print(n…

Read more ››

This is a review on https://github.com/DDFE/DDFE-blog/issues/7 based on vue 2.0. (Courtesy of https://vuejs.org) In the original article, the author did talk about different participants of 2 way bi…

Read more ››

Having a proper way to manage complexity is crucially important in software development. It leads an established way of adding featurs and fixing bugs, so the software can grow as big as you wish wh…

Read more ››

We know that Angular uses component based architecture. Each component is an independent piece of UI that consists of its own state management, styles and templates. A component can be composed of …

Read more ››

1 2 3 4 5 6 7