Welcome to my blog...
... Most articles were written in Vietnamese (I come from Vietnam 🤗), sometime in English, sometime in both! 🤑
Go to "Dev" section to read articles about Tech, IT, Design and Devevelopment in general 😄
Fixing bug is hard, so sometime I note down the challenge I encountered here 😘
"Essay" is where I write crazy things. Don't care about it 😹
Sometime I note down some "Tips" about Programming in general. Hope they can help you 🚀
"Misc" is about trivial stuffs: game-review, poems, my quick notes, my paintings, etc 🎨
Want to know who the hell am I? Visit About 😚
You can visit my Github or my Portfolio to know more about my Project 😎
Author: Son Nguyen Hoang
Word: 1645
Language: English
Created On: 12 Jun 2024
Useful concepts for generic interface, delegates and more!
Recently I decided to teach myself some C# knowledge that I found my self lacking, including but not limited to Task (Concurrency), delegates and some Design Patterns. While reading books, I encountered two concepts that sound pretty weird. They are Covariance and Contravariance. What are these? Problem I didn’t find any good translation to Vietnamese of these two concepts. The first result from Google indicates that Covariance is related to statistic? So, what are they? Definition Below here my own definition for some keywords: ...
Posts
Author: Son Nguyen Hoang
Word: 3629
Language: Vietnamese
Created On: 11 May 2024
Understanding Vietnam: Một cuốn sử viết về Việt Nam bởi người nước ngoài. Một cuốn sách đáng đọc và cho ta những cái nhìn mới mẻ.
Đọc về lịch sử là điều không dễ, đọc về chính lịch sử của nước mình đôi khi còn khó hơn. Khó vì đôi khi chính bản thân mình, mặc định coi những gì mình và dân tộc mình trải qua là hiển nhiên. Vì là hiển nhiên nên mình không coi chúng là đặc biệt. Hay nói cách khác là mình không nhận ra những gì mà dân tộc mình trước đây vốn có nhưng không biết là chúng vốn tồn tại. Thành ra việc đọc sử của nước ta nhưng được viết bởi một người nước ngoài, trong trường hợp này là Neil Jamieson – một nhà văn hóa và xã hội học từng công tác tại miền Nam Việt Nam, lại tỏ ra cực kỳ hiệu quả. Góc nhìn mới mẻ và phương pháp lập luận Tây Phương của Neil, cộng vào kinh nghiệm nghiên cứu và học tập tại Việt Nam đã giúp tác giả viết nên Understanding Vietnam, một cuốn sách rất đáng đọc và hấp dẫn. ...
Posts
Author: Son Nguyen Hoang
Word: 3312
Language: English
Created On: 20 Jan 2025
Documents and study note for classic leetcode array & hashing problem
Finally I solved all other problem in “Array & Hashing” section of Neetcode. Here is a quick breakdown of solution. Begin with “Encode & Decode” string. Encode & Decode String Design an algorithm to encode a list of strings to a single string. The encoded string is then decoded back to the original list of strings. Please implement encode and decode Analysis & Solution The first approach would be to divide the string by a special character. However, given that the prerequisite clearly states that each string can be anything in UTF-8. No special character is safe to use. Then, I thought about using a hashmap that store every character, their frequency and position. But then it no helpful when decoding the long hashmap into seperate string. I got lost in the mindset to transform the string into something else, pure numeric or some shit like that. ...
Posts
Author: Son Nguyen Hoang
Word: 370
Language: English
Created On: 15 Nov 2024
A quick journey to fix a stupid, confusing bug
For the last few days I challenged myself to craft a small, lightweight extension on VScode. This is a tool I customized to ease some of the pain I had when working with Roblox. Getting used to VSCode Extension is fun - I have to admin. The API is clean and sharp, however, something had happened … Problem Some unwanted behavior occur I have to add code breakpoint to debug the extension but it not work. The breakpoint is unbound Printing on console is no work as well. However, the extension did running. Albeit, all the modifications I made seem to have no effect to fix the unwanted behavior What’s the heck is happening? ...