1. Single quotes vs double quotes
    A lot of modern programming languages, like ruby, javascript and python, will treat'string' the same as"string" . In Elixir, however, it is not the case

2…

Hotwire is the latest technology stack Basecamp announced based on Rails.

It aims to provide a collection of tools for developers to build an interactive, real-time application, while you do not have to build a separate frontend application (SPA).

The benefits of using Hotwire are as follows:

  • reduces the time…

Ruby on Rails追求開發追度,提供各種組件予開發員直接使用。龐大既組件嚴重佔用系統的記憶體,稍一不慎,會拖慢原本效率已經非常一般的系統。

解決方法不外乎加強軟件配置,或者是改善系統代碼的質素。
改善代碼需要的知識很多,垃圾處理,何時製造物件,需要非常悉識各種方法。

GitHub Gem專頁

設定

(1) 安裝Derailed Benchmarks

完成!

使用

執行以下指令檢查gem使用了多少記憶體。

後記

長遠來說,該考慮的是代碼是否適合使用Ruby on Rails,或者你需要使用另一種程式語言,以微服務來分拆功能。至於如何傳遞服務間的Session,又是另一個問題了。

延伸閱讀

Ruby Performance Optimization
Ruby效能調節詳解。

Execution is not always everything. A team needs to care about people as well.

A wrong project work can lead to:

  • destroy morale
  • grind teams down
  • erode trust
  • crunch gears
  • wreck the machinery of long-term progress

Cost($ & Manpower) <-> Time <-> Features <->

What shape up what to solve

This article is updated at 26th October 2019, the latest version of flutter is 1.10.7 and the version of dart is 2.6.0. You may check your current version in your Terminal by typing flutter --version.

Install Flutter SDK

1. Install Flutter SDK from the official website.

2. Move the unzipped folder to $HOME

Adam00

Let's go invent tomorrow instead of worrying about what happened yesterday.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store