steve lee

@lmhung

Ruby 程序员。 来自越南

加入于 2022年3月

Ruby - Job scheduling lock with Redis

In a Rails app, sometimes you need to execute a long-running job and have to run it in the background. You might run into some special re...

# Ruby # Redis
Avatar
steve lee
·
1
1

Concurrency in Ruby: Thread and Fiber

The content of this article is my last tech sharing with my team at https://pixta.vn/.

# Ruby
Avatar
steve lee
·
0
1

Lambda Calculus: Represent in Clojure and Elixir

Lambda calculus is the main idea behind functional programming, a complete model for computation. There are a lot of documents and course...

# clojure # Elixir
Avatar
steve lee
·
0
0

Clojure - a whirlwind tour

Clojure is a functional, dynamic language, a dialect of Lisp that runs on the JVM. Because it is a functional language, it has some aspec...

# clojure # functional programming
Avatar
steve lee
·
0
0
# Ruby on Rails
Avatar
steve lee
·
1
0

Ruby - DIY accessor methods

Ruby does not allow instance variables to be accessed outside of methods for that object.

# Ruby
Avatar
steve lee
·
0
3

Rails helpers tips for writing better view

The dom_id helper takes a string or any object as an argument that can be converted to a dom_id. And it helps us convert an object into a...

# rails # Hotwire
Avatar
steve lee
·
1
1

Azure App Service notes

Prerequisite: On the Azure dashboard, we must create a new app service and resource group that the app service belongs to. For simplicity...

# azure
Avatar
steve lee
·
0
0

Export large file in Rails with Sidekiq

In some systems, you'll have to do something very slow. Maybe you need to export a large dataset to a CSV file, or need to generate a tho...

# rails # sidekiq
Avatar
steve lee
·
2
1

Elixir Note - Concurrency

For example, we have a simple module to fetch the price of a given ticker symbol (or stock symbol) from API and parse the results.

# Elixir
Avatar
steve lee
·
2
0

Elixir Note - Recursion

Due to immutability, loops in Elixir are written differently from imperative languages. For example, loops commonly look like:

# Elixir # functional programming
Avatar
steve lee
·
0
0

Ruby under Scanner

Recently, I have read the CS paper that compares Ruby and Java.

# Ruby # OOP
Avatar
steve lee
·
1
1
- END -