Three flaws We should avoid the following flaws in order to update our view on reality. In addition we also tend to undervalue the elementary ideas and overvalue the complicated ones. Simple ideas are of great value because they can help us prevent complex problems. Perspective It’s diffcult to get a perspective of the situation … Continue reading Mental Models
Author: Rohan Almeida
Keep moving
I sold my flat which I had purchased in 2006. I got a good returns on it. The plan is to invest that money, earn money in 1 to 2 years, and then buy a bigger flat. I've managed to clear all my debts! I really am a free man, but now I need to … Continue reading Keep moving
Negative look-behind assertions
Regular expressions are very powerful. Here are some typical use cases: Email validationPassword validationSearching for a pattern in a stringSearching and capturing matches in a string In my current project, I needed to parse a CSV file and a particular field had a float value. This value could appear as any of the following: 0.6780.0037822e-081.456e-06 … Continue reading Negative look-behind assertions
I am like a dog barking
I am like a dog barking, and you are the one who is interpreting the spaces between the sounds and giving meaning to it. -- UG Krishnamurti A few days ago there was a poll in Mumbai Mirror about how we should treat stray dogs. As you are aware, in Mumbai there are plenty of … Continue reading I am like a dog barking
Gut Flora
I remember having a conversation with one of my older relatives. We were discussing whether its better to rinse your mouth before having tea or after. Naturally it was health related. My relative's opinion, based on his discussions with his colleagues and friends, not to mention the fact that he is older; was that we … Continue reading Gut Flora
Benchmarking your JavaScript code
What is benchmarking? It refers to the process of testing the performance of an implementation with respect to an already established one. For example, in the airspace industry we can assume that an F-16 is the benchmark for the fastest plane. Any new design should then compare (benchmark) itself against the performance of an F-16. … Continue reading Benchmarking your JavaScript code
Redux+React app starter kit
On my journey to master Redux+React I went on to create a very simple Redux app. Get the code here - https://github.com/arcofdescent/react-starter Some details This repo can be used both as a starter kit for developing Redux+React apps as well as a helpful guide to those wishing to see some simple code (I hope) in … Continue reading Redux+React app starter kit
Organizing A large JavaScript application
As my project lickcreator keeps getting larger, the need to decide upon and implement a good directory structure becomes pretty important. I previously had all my .js files in a common directory called src. Well that's dirty, but its fine if you just have a few files (think less than 7). I'm using Backbone.js so … Continue reading Organizing A large JavaScript application
React with webpack
Today, I'd like to show you how I used the awesome React UI library and the module bundler webpack to build an Android app using Cordova. You can download my app for free! Check it out, especially if you're a guitar player. Lets touch up on webpack briefly. The immediate beauty is the ability for … Continue reading React with webpack