Classes and Structs are very similar to one another. They both store data and model behavior.


  • They both define properties to store values. Much like a key-value pair in Hash Maps.
  • They both have initializers to create instances with initial values. …

For the record, I was not able to solve this LeetCode problem.

682. Baseball Game

You are keeping score for a baseball game with strange rules. The game consists of several rounds, where the scores of past rounds may affect future rounds’ scores.

At the beginning of the game, you…

This was something I had learned before, but was struggling to really memorize so I thought I’d blog about it.

I was just confused about when render would fire. As you can tell from the diagram, render fires before componentDidUpdate and componentDidMount.

Render also fires when passed new props or the state is set again. This diagram is pretty helpful for me to understand when render is fired, so I know what to put in there. forceUpdate is something I heard I should not use unless absolutely necessary, which is basically almost never.

That’s all for this week! Stay safe, maintain social distancing, wear a mask and wash your hands often!

JavaScript 30 is a 30 day challenge that pushes you to write code, perfect for beginners. I came upon this from my career coach, and found it super helpful. It teaches you how to write JavaScript and gives you a template to follow along with, along with a 1-to-1 solution of what’s in the video to follow along to. This is perfect for bootcamp grads who want to boost up their JavaScript.

This was just a quick post about this awesome resource!

Gear up, stay safe, you’re going back in! Stay safe everyone!

This drove me nuts! I could not for the life of me figure out why my components were rendering twice. Marios however summed it up pretty well.

He talks about why it renders twice, and the main reason is that React.StrictMode is trying to help you debug.

Rest assured, this…

Hey all! Another week for me as I complete a coding challenge sent by Shopify. This is my initial state:

state={title: '',resultCt: 0,searchResults: {},nominations: []}

Here, I want to add to nominations which is initiated as an empty array.

I tried state.nominations.push(action.nominations) which was my…

I found out recently that you can have a featured section in your Github.

For example, from Monica:

To do this, it’s pretty simple. Just make a repository and make sure you name it exactly as your Github username, case sensitive. Github will tell you that this is a secret repository just for you!

They’ll even give you some recommendations to start you off on the right foot.

Here’s mine for reference:

Remember that a Readme is in .md, or markdown format, meaning you can put GIFs in there as well as emojis.

That is all folks! Have a good one and see you all next time! Stay safe, take care, we’re going back in!

I had my first code challenge in a while from Codecademy. I’m pretty excited about this opportunity. I quickly opened the email from Codecademy, anticipating the chance to get to write some valuable code. They said that the code challenge should take a recommended 2–3 hours. Little did I know……

Lawson Hung

Software Engineer

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