Mert Özen Go Beyond the Code

Blog

Posts and series that take software and IT from the basics to advanced topics: from programming languages and databases to architecture and AI.

Series
1990 posts found
JavaScript Error Handling: try/catch, Custom Error Classes and Error Chains with cause
Frontend PART 06

JavaScript Error Handling: try/catch, Custom Error Classes and Error Chains with cause

We learn try/catch/finally and throw, the built-in error types, writing your own error class with extends Error, error chains with ES2022's cause, Error.isError (not in Safari yet) and showing errors to users properly.

3 Nov 2026 10 min 88
JavaScript Map and Set: Key-Value Collections and the New Set Methods
Frontend PART 05

JavaScript Map and Set: Key-Value Collections and the New Set Methods

We learn how Map differs from objects, unique values with Set, iteration, set operations such as union and intersection from ES2025, and ES2026's getOrInsert, with a quick look at WeakMap.

3 Nov 2026 8 min 124
JavaScript this, call, apply and bind: How Is the Value of this Decided?
Frontend PART 04

JavaScript this, call, apply and bind: How Is the Value of this Decided?

We learn how this is decided by the way a function is called, the lost method trap, the this of arrow functions, setting this with call, apply and bind, this in event handlers, and partial application with bind.

3 Nov 2026 8 min 101
JavaScript Scope, Hoisting and Closures: Where Do Variables Live?
Frontend PART 03

JavaScript Scope, Hoisting and Closures: Where Do Variables Live?

We learn global, function and block scope, the scope chain, how var, let, const and functions are hoisted, the TDZ, and closures through counters, private data and function factories, plus the closure-in-a-loop trap.

3 Nov 2026 9 min 90
JavaScript Array Methods in Depth: map, filter, reduce, toSorted and Object.groupBy
Frontend PART 02

JavaScript Array Methods in Depth: map, filter, reduce, toSorted and Object.groupBy

We make sense of map, filter, reduce, the find family, some/every and flatMap with an assembly line analogy, then try the non-mutating toSorted and with (ES2023) and grouping with Object.groupBy (ES2024).

3 Nov 2026 9 min 101
Modern JavaScript Syntax: Destructuring, Spread/Rest, Optional Chaining and Logical Assignment
Frontend PART 01

Modern JavaScript Syntax: Destructuring, Spread/Rest, Optional Chaining and Logical Assignment

We learn array and object destructuring, the difference between spread and rest, shorthand and computed properties, ?. with ??, and the ||=, &&= and ??= operators, along with the ES edition each came from.

3 Nov 2026 9 min 96
TypeScript in the Browser: DOM Types, querySelector and Events
Frontend PART 14

TypeScript in the Browser: DOM Types, querySelector and Events

We look at the lib.dom types, what querySelector returns and its generic form, element types like HTMLInputElement, event types and the event.target trap, then run tsc output on a page as a module script.

3 Nov 2026 7 min 76
tsconfig Basics: TypeScript 7 Defaults and Removed Options
Frontend PART 13

tsconfig Basics: TypeScript 7 Defaults and Removed Options

We go through the strict family, target, lib, types, module, outDir and rootDir, erasableSyntaxOnly and verbatimModuleSyntax, the TypeScript 6/7 defaults and the options removed in 7.0.

3 Nov 2026 8 min 104
Type Assertions, !, satisfies and as const in TypeScript: What to Tell the Compiler, and When
Frontend PART 12

Type Assertions, !, satisfies and as const in TypeScript: What to Tell the Compiler, and When

We look at what a type assertion with as does and doesn't check, the risk behind !, how satisfies from TS 4.9 checks while keeping the narrow type, and readonly literals with as const.

3 Nov 2026 8 min 96
Intersection and Structural Typing: How TypeScript Looks at Types
Frontend PART 11

Intersection and Structural Typing: How TypeScript Looks at Types

We look at structural typing, where TypeScript judges types by shape rather than name, the assignability rule, how it relates to excess property checking, and intersections that combine types with &.

3 Nov 2026 7 min 91
Typing Functions in TypeScript: Parameters, Return Types and Overloads
Frontend PART 10

Typing Functions in TypeScript: Parameters, Return Types and Overloads

We cover parameter and return types, optional, default and rest parameters, function type expressions and call signatures, the subtlety of void returns, overloads and the this parameter.

3 Nov 2026 8 min 83
Narrowing in TypeScript: Shrinking Unions with Control Flow Analysis
Frontend PART 09

Narrowing in TypeScript: Shrinking Unions with Control Flow Analysis

We see how TypeScript narrows unions through control flow analysis: typeof, truthiness, equality, in and instanceof checks, discriminated unions and exhaustive checks with never.

3 Nov 2026 8 min 86
Blog Map