為你的開源專案加些文件 讓它看起來很專業吧

在 Github 上逛知名專案時,有沒有發現他們都有一個共同點: 文件豐富,有許多專案甚至會專門建立一個網站做

  • 簡介
  • Demo
  • API Documentation
  • Wiki
  • 論壇

看到這裡,你可能會說在小專案要求這些實在是太強人所難了吧。

其實啊,專案剛起步時,我們可以先從基礎的做起,例如這些被 check in 在各個知名 Git Repositories 中的文件

繼續閱讀

Unite Your Angular Coding Style With Teammates By Visual Studio Code & ESLint & Prettier

Brief

Hello Visitor ~

Todays I will guide you to setup Visual Studio Code and ESLint and Prettier, let editor auto-format and auto-fix your code for you and your coworker or contributor, it will becomes your lifesaver, free your hands on fixing errors and align coding style with teammates.

Let me read those documents, and organize things for you.

Steps

There are only 3 steps for you, it is very easy to follow my steps to set everything up

  1. Setup Angular and ESLint
  2. Integrate Prettier and ESLint
  3. Setup Visual Studio Code
繼續閱讀

Make your PowerShell fancy by Windows Terminal and Oh My Posh

Goals

Follow steps in this article, and the result will look like this

Steps

There are only 6 steps to do

  1. Install Windows Terminal
  2. Install posh-git and oh-my-posh
  3. Install powerline font
  4. Config powershell profile
  5. Config Windows Terminal Settings
  6. Config VSCode Settings

Maybe only need to takes 15 mins to set everything right.

繼續閱讀

在 Mac 上 安裝 Docker for Mac

Install

目前 Docker for Mac 最方便的安裝方法就是使用 Homebrew Cask 安裝,打開 Terminal,輸入:

1
brew cask install docker

安裝成功後打開 Docker.app

第一次打開時會需要你的作業系統密碼,安裝額外的套件,提供完整的功能

當安裝完成後,我們就能在右上角的工具欄看到鯨魚 🐳 icon

繼續閱讀

Expression Index in RDBMS

What is the expression index?

According to the description from Wikipedia

An expression index, also known as a function based index, is a database index that is built on a generic expression, rather than one or more columns. This allows indexes to be defined for common query conditions that depend on data in a table, but are not actually stored in that table.

When you query on something that is computed from other columns frequently and want to speed it up, you will need this.

I will use PostgreSQL as an example in this article because it is my favorite database.

繼續閱讀

從 Ruby 到 C# - operators

Ruby 與 C# 的 operators 蠻相近的,應該說整個程式圈的 operators 都大概長那樣阿,嗯,沒錯,本篇完

欸,不是,我們快速帶過相同用法的 operators ,然後聊聊有差異的地方,這樣總行了吧

繼續閱讀

從 Ruby 到 C#

我是一名使用 Ruby 與 JavaScript 開發的程式設計師,我愛寫 Ruby,這個語言讓我體會到寫程式的樂趣

不過很可惜的目前服務的公司並沒有使用 Ruby 而是用 C# 作為後端的開發語言

欣慰的是 C# 與 JavaScript 看起來挺像的,希望我能將以前物件導向與 JavaScript 的開發經驗映射到 C# 上,快速掌握這門語言

也因此最近都在看微軟官方的 C# documentation

吐槽一下,比起 MDNRuby Doc,微軟的文件似乎沒那麼好看,,且尚未支援 DashDevDocs,只能透過瀏覽器到此查閱

繼續閱讀