Technical & personal journal
Building things and thinking out loud
Library Filter
Refine your search

Modern Naming Conventions in TypeScript: Avoiding the I Prefix and Interface Suffix
Learn how to write cleaner, more readable TypeScript code by adopting modern naming conventions. This article explains why outdated prefixes like I and suffixes like Interface are unnecessary, and how to use consistent type aliases and descriptive names to improve your codebase.

Why You Should Use Maps in JavaScript and TypeScript Instead of Arrays
Learn why Maps can outperform arrays in JavaScript and TypeScript for key-value storage, flexible key types, and efficient lookups. Discover best practices and examples for using Maps in your TypeScript code.

TypeScript 5.0 - Enums are now union enums
TypeScript 5.0 has introduced union enums, which means that each enum member has its own type, and the enum itself is turned into a union of each member type. This update is a significant improvement that makes working with enums in TypeScript more powerful, easier to use and worth now worth using.

What are TypeScript enums and why to avoid them?
Enum, short for Enumerated Type, is a language feature of many statically typed languages such as C#, Java and amongst many others. Software engineers use this feature to define sets of named constants that can be used within their code. But here is why to avoid them in TypeScript!
