簡評十七

你可以沒有熱情,但不應該自我設限

過濾新技術:

  • 這個技術解決了甚麼痛點?
  • 跟同類型技術相比,有甚麼優缺點?
  • 能解決我目前會碰到的問題嗎?還是帶來更多技術債?
    通常這樣的過濾花不到你十分鐘,看個Demo、幾行程式碼、Benchmark,大概就可以略知一二了

三種技術

  • Design Pattern / Coding Style:這種比較抽象高大上,不是很好理解但是念通了對自己程式設計功力會大幅提升
  • 公用函式庫 / 框架:實戰的時候可以省掉很多手工,無聊可以看看原碼看人家怎麼實作的,萬一哪天想勤快一點自幹也知道該從何下手
  • 流程自動化 / 優化:看團隊看個人看需求,當用則用,最高原則是你是用這些來幫你省事而不是自添麻煩的

Docker Volumes: An Introduction

Why docker volumes is better than bind mount

  • Volumes are easier to back up or migrate than bind mounts.
  • You can manage volumes using Docker CLI commands or the Docker API.
  • Volumes work on both Linux and Windows containers.
  • Volumes can be more safely shared among multiple containers.
  • Volume drivers allow you to store volumes on remote hosts or cloud providers, to encrypt the contents of volumes, or to add other functionality.
  • A new volume’s contents can be pre-populated by a container.

How To Avoid Embarrassing Yourself In An Argument

  • Realize what is going on before too late
  • There are word indicate other are going to attack you
    • Passive attack: use words to indicate you did sth wrong implicitly
    • “So you are saying” trap
      • 引你講D你唔係咁諗嘅野,之後attack
      • over simplify and mischaracterize what you are saying
      • solution:
        • Just repeat what you are saying, don’t simplify it
    • “Assuming the sale” technique
      • Solution:
        • identify the hidden assumption
    • The smash technique
      • Attacker keep asking a series of questions
      • 同時講2樣野,當你答漏左其中一樣,就會俾人以為你承認左其中一樣
      • Solution:
        • slow down the conversation, listen each question with patient and carefully
        • handle one question one time
    • Tips to debate with attackers
      • Don’t need to change others mind in arguement
      • Don’t strawmen attacker’s idea even they do it to you
      • Need to make sure they can understand you visual imagery
        • 想像到個畫面可以令人更易理解
      • Show them already agree with you
      • Addressing the emotional concern

So You Want To Be a Senior Developer?

This article list some characteristic of senior developer:

  • A senior front-end developer has experience
  • A senior front-end developer has a track record of good judgment
  • A senior developer has positive impact beyond the code
  • A senior developer is helpful, not all-knowing
  • A senior front-end developer is a force multiplier

以下無需重讀

Should you trust your first impression?

  • Usually negative impression outweight positive one
  • But when come to judgement of ability, positve impression outweight negative one
  • Untypical behaviour bring much more impression on common behaviour

Why It’s Good to Embrace Negative Feelings

When we push aside normal emotions to embrace false positivity, we lose our capacity to develop skills to deal with the world as it is, not as we wish it to be.

What is the tragedy of the commons?

  • Individual have motivation to gain short term interest but harmful to public in long terms.
  • It ends up everyone suffers
  • Solution: social contracts

Why incompetent people think they’re amazing

Dunning-Kruger Effect
人會高估自己,好多時係因為連客觀評估自己嘅能力都冇
相反,expert以為其他人都知好多野
因為圈子入邊都係能力相近嘅人

Why You Must Always Follow Test to Break Principles

除左test正常用法,仲要記住Test marginal case 同 exceptional case

13 EXAMPLES TO USE CURLY BRACES IN LINUX

13個example 都係講緊一種用法,就係用{}去gen數字。
{a..b..c} 其實就等於js嘅
for (let i = a; i <= b; i += c)

21 May 2018

Don’t need to re-read