When I started out to invest, no one told me how to make smarter decisions. I invested on my gut feeling and what I thought would be a good investment. I didn’t know that what I was doing is not investment, it is just speculation! I was just playing a gamble on my money. In an attempt to help my fellow investors, I am writing this short guide that summarises just the top 5 fundamental metrics that every investor should know.
My hope is this: Tomorrow, if someone asks you why did you invest in Stock ABC, instead of giving them a puzzled look, you should be able justify your investment with a solid backing of these simple yet fundamental metrics. …
If you are reading this, you’re probably a React developer who is deciding between Create React App (CRA) and Next.js for your new project. I have used both extensively in several projects and have come to love Next.js for its simplicity, ease of development and the tons of features it adds on top of React.
Let’s break it down covering the top benefits and caveats to make the decision.
CRA is the official recommended method for most people to kickstart a new React project. …
If you follow the stock market actively, like I do, you would have noticed a disconcerting pattern — while the economy was in shambles, stocks were flourishing!
This was baffling to me. Everyone I knew, including experienced colleagues in the financial services industry had predicted the S&P 500 or NASDAQ to fall from its glorious early days of 2020. It was almost certain that we were in an economic recession and that the stock market was going to crash. And in fact, that was partly true. However, what happened after the “momentary” crash was unexpected. Stocks started to rise and some key stocks making up the S&P500 (e.g. …
One of the most common issues when setting up a new Express or React project is setting up ESLint and Prettier to work together.
If you are wondering what is the difference between them,
Prettier is code formatter which takes care of how your code should look like. ESLint is a linter which does more than just formatting. It also helps find code errors which can lead to bugs.
This short guide is dedicated to the countless beginners who might be scratching their heads on this same issue.
Note: We will be using VS Code in this tutorial, but it should pretty much work the same way for other popular code editors. …
Are you a stock trader with a messy spreadsheet? Well, I was one too.
I have been using Google Sheets for a while now to track the performances of various stocks. What started off as a small clutter of stock research soon started growing too large for manual updates, forcing me to automate the data. Here’s how I did it.
Initially, I had filled in the data for the stocks manually, by Googling metrics for the various stock tickers and pasting the information in.
Google beautifully displayed every single metric I wanted to know. Of course, this method of manually inputting data soon became exhausting as the number of stocks I tracked increased in number. …
You may have heard of various “stacks”, which typically refers to a group of technologies used to build an application. Recently, JAMstack has become increasingly trendy and popular.
Before you wonder what does “JAM” in the JAMstack stands for, it is important to recognise that JAMstack is not a collection of technologies. Rather, it refers to a way of building applications which focuses on delivering better performance, scalability and relatively easier development.
We are always looking for great content to enrich the technical community!
Simply fill out this Google Form with the details of your article.
If you are looking for ideas for your next article, consider the following topics:
The S&P 500 is a stock market index which tracks the performance of 500 large-cap stocks of US publicly traded companies. The market capitalisation here refers to the total value of all the shares issued by the company. Some examples of the companies in the S&P 500 include Apple, Microsoft, Amazon and Facebook.
In this visualization, we will be looking at the growth of the S&P 500 over the years and what exactly comprises the S&P 500 in terms of composition of various stocks and sectors. …
Information visualisation is one of the most powerful ways to explore, analyse and understand data. However, it is not uncommon to see poor visualisation which can be deceptive and misleading and even confusing to the readers.
Let’s take a look at some of the common mistakes to avoid when visualising data.
Bar charts are an excellent way to quickly and effectively compare individual values. However, one of the most misleading ways to represent bar charts is to have a y-axis that does not start from 0.
In 2012, Fox News attempted to show what the change in the top tax rate will be given that tax cuts expire. From the below figure, we would expect that the tax rate in 2013 would be easily more than 4 or 5 times higher than the current tax rate. …
Leetcode Link: https://leetcode.com/problems/two-sum/
Given an array of integers, return indices of the two numbers such that they add up to a specific target.
You may assume that each input would have exactly one solution, and you may not use the same element twice.
Given nums = [2, 7, 11, 15], target = 9, Because nums + nums = 2 + 7 = 9, return [0, 1].
As with any problem, we always start off with the brute force technique. What is the simplest way to get the answer out, without any concern about the time complexity etc.?
We can simply use 2 for-loops and find out the…