MAMd Affan Aslamintslearnings.hashnode.dev·Jan 8 · 2 min readUnion Vs Intersection in tsUnion - | 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...00
MAMd Affan Aslamintslearnings.hashnode.dev·Jan 8 · 3 min readSuperType and Subtype in tsKey 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...00
MAMd Affan Aslaminmishiki.hashnode.dev·Jun 30, 2024 · 2 min readBasic Commands(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...00
MAMd Affan Aslaminmishiki.hashnode.dev·Jun 23, 2024 · 2 min readLearning CHEF(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 ...00