Short Pieces

SQL MAX Date: Get Latest Row with Examples

Learn how to use SQL MAX() to get the latest date and most recent rows. Real SQL examples with full row extraction and MAX with GROUP BY.

How to Inner Join 3 Tables in SQL

Discover how to inner join 3 tables in SQL using clear syntax and examples. Perfect for beginners and intermediate SQL users.

JavaScript Get Yesterday's Date Easily

Learn how to get yesterday's date in JavaScript with simple code examples. A beginner-friendly guide using the Date object to subtract one day.

TypeScript Type Vs Interface? The Answer Is Type!

Still wondering about "TypeScript Type vs Interface"? The answer is type. Learn why TypeScript type aliases are more flexible and better suited for modern development than interfaces.

How to Omit Multiple Keys in TypeScript

Learn how to omit multiple keys in TypeScript with simple examples. Understand how to use Omit, Exclude, keyof, and Pick properly to create cleaner types.

How to Use satisfies in TypeScript

Learn how to use the satisfies operator in TypeScript to enforce stricter type safety. See comparisons with as and extends, and explore real examples.

How to Use Discriminated Unions in TypeScript?

Learn how to use discriminated unions in TypeScript to simplify complex logic, improve type safety, and enable precise type narrowing in your code.

How to Use as const in TypeScript Effectively

Learn how to use as const in TypeScript to create readonly literal types, improve type safety, and write more predictable, bug-resistant code.

Overloading vs Overriding in TypeScript

Learn the difference between overloading and overriding in TypeScript, with examples and how overriding connects to the Liskov Substitution Principle.

How to Return Multiple Values in JavaScript

Need to return 2 values from a JavaScript function? Learn the best ways using arrays, objects, and ES6+ features for clean, readable code.
1 2
Scroll to Top