How to Mimic Nominal Typing in TypeScript

You can overcome drawbacks of structural typing in TypeScript by creating nominal types with a little bit of extra code.

Different Types of Queue

Queues are specifically designed to operate in a FIFO context, where elements are inserted into one end of the container and extracted from the other.

Aug 20, 2022dsadata-structures

What's New in Swift 5.7

Swift 5.7, included in Xcode 14 Beta, introduces a whole spectrum of changes, from smaller syntax improvements to larger generics and concurrency updates.

Jul 29, 2022swiftswift-5.7

Protocol-Oriented Programming in Swift

Swift protocols play a leading role in the structure of standard library and a common method of abstraction, provide a similar experience to interfaces that some other languages have.

Jul 19, 2022swiftparadigms

Latest Updates on React 18

Expecting opt-in out-of-the-box improvements like automatic batching, concurrent features, and new Suspense SSR architecture.

Mar 13, 2022reactreact-18

React Component Patterns

Essential design patterns to create React components like hooks, provider, context, render props, higher order components, or compound components.

Mar 12, 2022reactpatterns

TypeScript Structural Typing

If the type is shaped like a duck, it is a duck. If a goose has all the same attributes as a duck, then it also is a duck.

TypeScript Type Aliases vs Interfaces

The key distinction is that a type cannot be re-opened to add new properties vs an interface which is always extendable.

Mar 08, 2022typescript

React Event Handling

Handling events in React is simple but you have to careful about context inside event handlers because JavaScript class method not bound by default.

Feb 17, 2022reactjavascript

Cracking the Frontend Interview, Part 1: Overview

What to focus technically when preparing for the frontend developer interview.