[coding] # _

Recent Posts

The past 2016

published on
2016 年转眼间过去了, 不知不觉, 匆匆忙忙; 学习一门新语言 Kotlin 1.0 正式发布, 简洁, 实用, 不失优雅; package hello fun main(args: Array<String>) { println("Hello, world!") } Kotlin 1.0.x 可以看作是 Scala 简版; Kotlin 1.1 将是大放异彩的版本, 届时将迎来 Coroutines, Type aliases 等重大特性; 学习一门新框架 随 Kotlin 再次回到 JVM 世界, 学习 Spring Boot(以下简称 SB) 框架; SB 是 Spring 社区推出的微服务框架, 在 Spring 的基础上封装了微服务的要素, 是一个值得学习的微服务框架; Spring 的依赖注入到达崭新的高度, 配置强大, 灵活, 社区活跃, 2017 SB 将继续攻城略地; 放弃的语言 本打算深入 Rust 语言, 一方面自己没有偏系统底层的工作; 其次是这门语言的语法噪音太高了; Perl 被戏称为自带加密的语言, 于我而言 Rust 在这方面可与 Perl 匹敌了. Read More...

Conditional expressions in Postgres

published on
A simple example from Postgres offical documents: SELECT * FROM test; a --- 1 2 3 SELECT a, CASE WHEN a=1 THEN 'one' WHEN a=2 THEN 'two' ELSE 'other' END FROM test; a | case ---+------- 1 | one 2 | two 3 | other It is based on this form: CASE WHEN condition THEN result [WHEN ...] [ELSE result] END It is very convenient in aggregation functions, just think table foo below: Read More...

Emacs is a habit

published on
What is Emacs EMACS may stand for Editing MACroS, but it has some more creative definitions. Here they are. Emacs Makes A Computer Slow Emacs May Annihilate Command Structures Evenings, Mornings, And a Couple of Saturdays Ever Made A Control-key Setup? Elephantine Memory Absolutely Considered Sine que non Emacs Makers Are Crazy Sickos … My road to mutiny Interactive Mode I used Vim more than three years before Emacs, so I think I’m very familiar with it. Read More...


Note (1)

Tech (2)


2016 (1) database (1) editor (1) emacs (1) note (1) postgres (1) sql (1)