Blogs
Random long thoughts I had over the years...
Topics range from programming, math, to my views of school
When Did Programming/Coding Start to Click for You?
January 31, 2026
Months ago on a university Reddit page, a student asked when programming started to click because they are in their second year of their studies in Computer Science and feel lost. This was my response
to them (with some edits to expand on certain topics):
A Look Into Virtual Table via Assembly
August 20, 2025
Polymorphism is an important feature of Object Oriented Programming whereby one can represent an object in different forms, hence the name. However, its implementation between
Java and C++ which could bite you if you are not aware. This blog is going to explore the following topics:
Static Dispatch
The need for virtual functions
Dynamic Dispatcher - Looking Into Assembly
Virtual Pointers and Virtual Tables
The Issue With Default in Switch Statements with Enums
July 5, 2025
Reading the coding standards at a company I recently joined revealed to me the issue with default label within the switch statement and why it’s prohibitted when its being used to enumerate through an enum. default label is convenient to handle any edge cases and it’s often used to handle errors. However, when working with enums, it is often the case that the prpogrammer intends to handle all possible values in the enum. To catch this mishap, programmers would enable -Wswitch or -Werror=switch to their compiler. For instance, let’s suppose I have an enum named Suit to represent the different...
this: the implicit parameter in OOP
February 11, 2025
I was recently reminded that the variable this is an implicit parameter passed to all methods in OOP such as C++. We can observe this by comparing a regular function vs a method
belonging to some class:
view is just vim
January 24, 2025
I recently found out accidentally at work that vim and view were the same thing when I happened to be editing a file on view instead of my beloved vim editor.