---
title: "Md Affan Aslam (@affan24) | Hashnode"
description: "Md Affan Aslam (@affan24) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@affan24"
---

@affan24

# Md Affan Aslam

@affan24 · Joined June 2024

### [Union Vs Intersection in ts](https://tslearnings.hashnode.dev/union-vs-intersection-in-ts?utm_source=hashnode&utm_medium=feed)

Union - | Union acts like the unions in Set type:A = {1,2,3}B = {4,5}AUB = {1,2,3,4,5} So in terms of Typescript: interface Person { name: string; } interface Lifespan { birth: Date; death?: Date; } type unionCheck = Person | Lifespan // Can tak...

2 min read · [tslearnings.hashnode.dev](https://tslearnings.hashnode.dev/union-vs-intersection-in-ts?utm_source=hashnode&utm_medium=feed)

[Jan 8](https://hashnode.com/posts/union-vs-intersection-in-ts/695f623fec50a4f53fd5f409)

### [SuperType and Subtype in ts](https://tslearnings.hashnode.dev/supertype-and-subtype-in-ts?utm_source=hashnode&utm_medium=feed)

Key players to understand are:- Unkown type- Never type- Parameter assignability behaviour- Return Type Assignability behaviour- Contravariant- Covariant First we need to understand what do we mean by SuperType and SubType in general:- SuperType bas...

3 min read · [tslearnings.hashnode.dev](https://tslearnings.hashnode.dev/supertype-and-subtype-in-ts?utm_source=hashnode&utm_medium=feed)

[Jan 8](https://hashnode.com/posts/supertype-and-subtype-in-ts/695f5a9b03ed2eb915feef25)

### [Basic Commands](https://mishiki.hashnode.dev/basic-commands?utm_source=hashnode&utm_medium=feed)

(The ones which have '//' annotations are the important ones). To create Cookbooks: First, opt for creating a directory named 'Cookbooks'. thats where all our Cookbooks are going to be stored. // The command For Cookbooks: chef generate cookbook 'ins...

2 min read · [mishiki.hashnode.dev](https://mishiki.hashnode.dev/basic-commands?utm_source=hashnode&utm_medium=feed)

[Jun 30, 2024](https://hashnode.com/posts/basic-commands/66811d86882faa6e4f150a08)

### [Learning CHEF](https://mishiki.hashnode.dev/learning-chef?utm_source=hashnode&utm_medium=feed)

(This is solely for my own understanding, so I hope any reader doesn't mind the lack of depth.) Just getting started on CHEF (or any type of tech journey right now), I wanted to keep a journal of sorts. First, to maintain a record of where I stopped ...

2 min read · [mishiki.hashnode.dev](https://mishiki.hashnode.dev/learning-chef?utm_source=hashnode&utm_medium=feed)

[Jun 23, 2024](https://hashnode.com/posts/learning-chef/6678549dfc95ef6ee836a5e6)
