Hưng Đặng > Recent Status Updates

Showing 1-30 of 278
Hưng Đặng
Hưng Đặng is 42% done with A Philosophy of Software Design
Tách 1 method lớn thành các methods nhỏ hơn có thể ko làm code trở nên dễ hiểu hơn. Tác giả nhắc người đọc tránh các metric đơn giản kiểu method dài hơn 20 dòng là phải tách, yêu cầu người đọc tìm ra sự cân bằng vừa đủ mà method cần truyền tải. Có điều nếu đọc method này mà phải đọc thêm methods khác để hiểu thì nó cũng là điều thường thấy
Apr 03, 2026 08:24PM Add a comment
A Philosophy of Software Design

Hưng Đặng
Hưng Đặng is 40% done with A Philosophy of Software Design
clean code thì coi việc số dòng là 1 metric nhưng nếu 1 file hoặc 1 class bị ngắn quá thì nó bị tủn mủn và "noisy" vì phải nhảy qua lại để hiểu. Tác giả gọi là bệnh classitis
Apr 03, 2026 02:19AM Add a comment
A Philosophy of Software Design

Hưng Đặng
Hưng Đặng is 7% done with The Middle Length Discourses of the Buddha: A Translation of the Majjhima Nikaya
Bản TA có thêm phần bình luận từ A Tỳ Đàm nên các kinh có thêm bối cảnh hơn bản TV. Có điều có thể mình sẽ bị khép vào suy nghĩ của các luận sư chấp tác A Tỳ Đàm
Mar 26, 2026 01:22AM Add a comment
The Middle Length Discourses of the Buddha: A Translation of the Majjhima Nikaya

Hưng Đặng
Hưng Đặng is 94% done with Kinh Trung Bộ II (Đại Tạng Kinh Việt Nam Nam Truyền, #3)
Khi đọc xong, hãy nhớ đọc lại các bài kinh tự có phần highlight bằng Tiếng Anh
May 07, 2025 05:16AM Add a comment
Kinh Trung Bộ II (Đại Tạng Kinh Việt Nam Nam Truyền, #3)

Hưng Đặng
Hưng Đặng is 40% done with Greenlights
Matthew có vẻ có triết lý sống kiểu Kierkegaardian khi ông ấy tin rằng Chúa là đấng sáng thế nhưng mỗi con người đều có quyền tự do lựa chọn tốt hay xấu
Mar 04, 2025 04:21AM Add a comment
Greenlights

Hưng Đặng
Hưng Đặng is on page 59 of Thiền Sư Khương Tăng Hội
Some claims in this book need more archeological evidence but it is very much likely those evidence don't exist anymore. If it is the case, then I want to have the most informed speculation about the life and death of this monk
Feb 10, 2025 02:51AM Add a comment
Thiền Sư Khương Tăng Hội

Hưng Đặng
Hưng Đặng is 97% done with Writing An Interpreter In Go
Start to read "The lost chapter". It is about macro. Macro treats code as data, not text. When lexing, the input we receive is text but when parsing, we convert tokens to AST nodes. These AST nodes are different from text, are treated as data to be passed around so they are the macro system
Feb 09, 2025 05:15PM Add a comment
Writing An Interpreter In Go

Hưng Đặng
Hưng Đặng is 93% done with Writing An Interpreter In Go
This part is about Hash data structure and it is quite interesting. This is the first time I know that a hash key is converted into a number and its modulo will offset its position in an array. Under the hood, the hash is an array.
Feb 05, 2025 07:34AM Add a comment
Writing An Interpreter In Go

Hưng Đặng
Hưng Đặng is 79% done with Writing An Interpreter In Go
Adding builtin functions and some common data structure to the language. This is good to remind me how to work on things from the start to the end. Lexing/tokenizing -> Parsing to AST -> Turn things to object for evaluation
Jan 27, 2025 04:53AM Add a comment
Writing An Interpreter In Go

Hưng Đặng
Hưng Đặng is 68% done with Writing An Interpreter In Go
Environment is exciting! I have some guesses that variables in env will be saved in the memory and soon enough, Ball will have to talk about GC. Can't wait for the part about the GC
Jan 20, 2025 06:30PM Add a comment
Writing An Interpreter In Go

Hưng Đặng
Hưng Đặng is 63% done with Writing An Interpreter In Go
This is an artwork because Ball made me feel that things were so simple
Jan 19, 2025 08:03AM Add a comment
Writing An Interpreter In Go

Hưng Đặng
Hưng Đặng is 60% done with Writing An Interpreter In Go
Coming to conditionals. it seems like this one is harder than evaluating boolean or integer

Note: Ball has a great habit of writing tests before writing the features. I feel like we have even more test code than feature code
Jan 16, 2025 07:39AM Add a comment
Writing An Interpreter In Go

Hưng Đặng
Hưng Đặng is 58% done with Writing An Interpreter In Go
Each section was encapsulated well in their part of the codebase so that they don't affect one another. I feel it very easy to extend
Jan 12, 2025 05:56PM Add a comment
Writing An Interpreter In Go

Hưng Đặng
Hưng Đặng is 50% done with Writing An Interpreter In Go
In term of performance, executing machine code > executing bytecode > executing AST
Jan 11, 2025 05:19PM Add a comment
Writing An Interpreter In Go

Hưng Đặng
Hưng Đặng is 40% done with Writing An Interpreter In Go
I think I might want to rewrite the monkey programming language in JS
Jan 02, 2025 02:49AM Add a comment
Writing An Interpreter In Go

Hưng Đặng
Hưng Đặng is 37% done with Writing An Interpreter In Go
This part explained inner working of Pratt parser. I think the key lies in the way we structure precedence so that we can control how a token is bind to its right or left. In the book, Ball called it "right-binding power" and "left-binding power"
Dec 17, 2024 02:01AM Add a comment
Writing An Interpreter In Go

Hưng Đặng
Hưng Đặng is 34% done with Writing An Interpreter In Go
I finished writing Pratt parser but I still don't quite understand it
Dec 09, 2024 10:31PM Add a comment
Writing An Interpreter In Go

Hưng Đặng
Hưng Đặng is 28% done with Writing An Interpreter In Go
Thorten organizes this book really well, every section is the next logical step for the previous section. Each section has a test that was written in the middle and passed when the section ended. Each section feels like a fully functioning unit
Dec 06, 2024 09:18PM Add a comment
Writing An Interpreter In Go

Hưng Đặng
Hưng Đặng is 26% done with Writing An Interpreter In Go
Parsing with Vaughan Pratt method. Associate 2 parsing functions with each token
Dec 01, 2024 05:40PM Add a comment
Writing An Interpreter In Go

« previous 1 3 4 5 6 7 8 9 10
Follow Hưng's updates via RSS