tk.hashnode.devRevisiting Conditionals in JavaScript and TypeScriptThe original post was published at iamtk.co. This post is part of the Mastering JavaScript Series. We are going to see different ways we can handle conditions in JavaScript and how TypeScript can help us make better use of code. Imagine we have a boo...Jan 10, 2022·4 min read
tk.hashnode.devHow I received 4 salary raises in 2 years as a Software EngineerOr a better title would be: "how to be a Rebel at Work and keep improving the craft". The original post was published at iamtk.co. Disclaimer: these ideas and insights come from a privileged person working in a very privileged industry. my intent i...Dec 28, 2021·22 min read
tk.hashnode.devA Mental Model to think in TypescriptThis post was originally published at TK's blog. One day I came across a tweet from Lari Mazza that says "Can I make a suggestion? Types are hard to understand when you’ve only worked with JS in your life and suddenly have to learn TypeScript" As ...Jul 20, 2020·45 min read
tk.hashnode.devAlgorithms Problem Solving: Running Array SumThis post is part of the Algorithms Problem Solving series. Problem description This is the Running Array Sum problem. The description looks like this: Given an array nums. We define a running sum of an array as runningSum[i] = sum(nums[0]…nums[i]). ...Jun 24, 2020·1 min read
tk.hashnode.devAlgorithms Problem Solving: Sort the Matrix DiagonallyThis post is part of the Algorithms Problem Solving series. Problem description This is the Sort the Matrix Diagonally problem. The description looks like this: Given a m * n matrix mat of integers, sort it diagonally in ascending order from the top-...Jun 22, 2020