On Csharp - Covariance and Contravariance

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?...

Những Bóng Ảnh và Sao Mờ - Viết cho ông Phan

Author: Son Nguyen Hoang

Word: 3104

Language: Vietnamese

Created On: 20 Nov 2024

Chuyện thứ hai

Ông Phan mất rồi. Ông vừa qua đời hôm qua. Lúc ấy ở bên Đức có lẽ là năm giờ sáng. Mẹ tôi nhắn cho tôi từ chiều. Lúc ấy mẹ gửi đính kèm một tấm ảnh. Người trong ảnh ấy là một ông bác tóc bạc trạc tuổi ông ngoại tôi. Khuôn mặt người đó trong ảnh nở nụ cười lớn. Đôi lông mày cong cong, hệt như của ông ngoại....

Leetcode Fighter: Group Anagrams

Author: Son Nguyen Hoang

Word: 836

Language: English

Created On: 26 Nov 2024

Documents and study note for classic leetcode problem: Anagram Groups

Problem Statement Given an array of strings strs, group all anagrams together into sublists. You may return the output in any order. An anagram is a string that contains the exact same characters as another string, but the order of the characters can be different. Example 1: Input: strs = [“act”,“pots”,“tops”,“cat”,“stop”,“hat”] Output: [[“hat”],[“act”, “cat”],[“stop”, “pots”, “tops”]] Example 2: Input: strs = [“x”] Output: [[“x”]] Example 3:...

Tech Journal - VSCode, Extension, Debugging Error

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....


Back To Top