Misbehaving: The Making of Behavioral Economics by Richard H. Thaler

You can also read this story at: https://hershalb.com/book-review-misbehaving/

When I think of “economic theory” I recall high school lectures in Econ class that included discussions of Supply and Demand lines along with faint memories of marginal utility curves. The history of economic theory led to an abundance of optimization problems that solved for the ideal methods rational humans used to make decisions. However, until the 1970s, economic theory focused increasingly on the equations and not the beings behind them: Humans. In Misbehaving: The Making of Behavioral Economics, Richard H. Thaler describes the journey to make economic theory more human.



I interviewed with YC for the W21 batch during the Coronavirus pandemic. I was rejected. The experience was unique and helped me think about our product in a different light. I would highly recommend applying to anyone who is hoping to pursue their goal of entrepreneurship further. If not for the YC brand, apply to see what people, who look at thousands of companies every quarter, think about your product and (if you get the chance) have them dump on you and your product for 10 minutes.

You can also take a look at this article at: https://hershalb.com/my-yc-interview-experience-w21/


  • Get…

Tackle a common coding interview question: the LRU Cache.

You can also take a look at this and more stories at: https://hershalb.com/the-sunday-solver-lru-cache/

Interview questions can be hard to think of on the spot, but the best way to tackle interview questions is understanding the best way to approach them. Here, we will tackle a common interview question: creating an LRU Cache. An LRU Cache is a common type of is a type of scheme used to retrieve data from a database. Often, a database has much more memory than the memory on any given user’s computer. So how does the…

Create a platform such as Medium using tools such as ReactJS and Firebase.

This is part 1 of the series where we dive into the structure of ReactJS applications, reusability of code, ReactRouter, and integrating a backend into the project to create a full-stack application. By the end of part 1, we will be rendering out a list of dummy courses, and by the end of the series we’re going to have a mini-Medium, so let’s get started!

React is a very complex library, but luckily, the development team made it easy to get started with an application. Let’s get…

Part 2 of 2.

Check out Part 1 if you haven’t yet.

Now that we have the basic set-up for the application, we will allow users to navigate between the “All Posts” page and a specific post. In addition, we want users to be able to comment and like other posts.

Step 1: Set Up Navigation

To add navigation, we will first create a new file within our “MinYikYak” folder, call it PostPage.js, and cut all the code from index.ios.js into the new file. Index.ios.js should not be empty, and we will need to delete the last line of the PostPage.js …

Part 1 of 2.

First, you need to install react and all required dependencies which you can do here. The most important items to install are node and the react-native-cli. To get started open your Terminal application and type in the following commands:

react-native init MinYikYak
cd MinYikYak
react-native run-ios

You should see the “Welcome to React Native” page in the simulator. Go to the MinYikYak folder on your computer and open the index.ios.js file. We are creating this project for ios devices, but most of the project should be compatible with android, just use the android specific commands.

Step 1: TextInput

The most important properties of…

React is a JavaScript library created by Facebook and Instagram that helps helps developers and large applications with constantly changing data within their application. You can read more about React here.

Creating an application from scratch for React may seem overwhelming at first, especially if you don’t know what that entails. We are going to be running your personal React application using node.js and starting a local server that will run your code. This may sound complicated (or not), but it’s really just a simple matter of downloading a few things and we should be good to go.

First, we…

Pong is an awesome game to play, but it’s even more fun if you’ve made it yourself! Making pong with javascript is a great way to get started on your web dev journey (though it may not seem like it yet), learn javascript, or just have fun making a cool game. So let’s get started!

You can also take a look at this and more stories at: https://hershalb.com/how-to-make-pong-with-javascript/

First, we start building the necessary moving parts — the two paddles on either side of the screen and the ball in the middle. Create a new file “pong.html” …

Hershy Bateea

Hello, I’m Hershal Bhatia, currently a Software Engineer at Amazon – AWS where I am building out a new service. Check out more at www.hershalb.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store