How to create mapped types in TypeScript

You can avoid repeating yourself by using mapped types to transform an existing type into a new type by mapping over its properties with some modifications.

Type Narrowing vs Type Casting in TypeScript

Type narrowing allows you to access properties and methods that are only available on certain types, and also helps TypeScript to catch errors and bugs at compile time.

An Introduction to AI and ML for Web Developers

By understanding the basics of AI and ML, we can begin to explore the many opportunities and challenges that these technologies present.

Mar 27, 2023#AI#ML

Type checking vs type casting in Swift

Swift provides several ways to check and cast types, which can be useful when working with objects that have been inherited from a superclass or implemented a protocol.

Mar 26, 2023#swift#types

What's New in Swift 5.9

This version will include features like convenience async stream methods, if and switch expressions, importing Objective-C forward declarations, discarding task groups.

How to Pass Data Up & Down in SwiftUI

You typically use State and StateObject to hold data as single source of truth, then passing around using binding, custom environment values, or preferences.

Mar 24, 2023#how-to#swiftui

JavaScript `this` binding in common contexts

In JavaScript, the "this" keyword is very flexible and confusing, evaluated at runtime, can have different values depending in which context it appears.

Swift AnyObject, AnyClass, Any, and `any`

Swift has special types to work with nonspecific types, useful in certain scenarios because they provide a lot of flexibility in working with different types of data.

Mar 22, 2023#swift#types

How Senior Developers Sabotage Interviews

We'll explore some reasons why experienced developers may fail in coding interviews, be aware and to take steps to improve, and ultimately increase chances of success.

Web Manifests: The Key to PWAs Success

Web manifest is a simple JSON file that provides metadata about a web app, including essential information for web apps to behave like native apps on mobile devices.

Mar 20, 2023#webdev#javascript