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: Two Sum

Author: Son Nguyen Hoang

Word: 1337

Language: English

Created On: 19 Nov 2024

Documents and study note for classic leetcode problem: Two Sum

Two Sum Problem Statement Given an array of integers nums and an integer target, return the indices i and j such that nums[i] + nums[j] == target and i != j. You may assume that every input has exactly one pair of indices i and j that satisfy the condition. Return the answer with the smaller index first. Example 1: Input: nums = [3,4,5,6], target = 7 Output: [0,1] Explanation: nums[0] + nums[1] == 7, so we return [0, 1]....

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