What causes it, and how to get over it

Image for post
Image for post
“Wish you deserved to be here!” — Credits to Lisa Engler

This article is going to be a little different from the ones that I usually write, and it touches on a topic that is very close to home.

Friend: “So, how does React Native works? How does one write Javascript and then magically turn that into Java and Objective-C?”

Me: “Oh no, actually it doesn’t convert Javascript to the native languages. What actually happens is that you have the Native Thread (AKA UI thread), and the JS Thread. And your JS code needs to communicate with the Native thread through the React Native Bridge…”

…and blah blah blah.

I started…

TLDR; interface is a way to describe data shapes, such as an object. Unlike an interface, type can introduce a name for any kind of type, including primitive, union, and intersection types.

Image for post
Image for post

What is an Interface?

An interface looks like this:

The definition and usage of a newly created interface “Human”

Above we have defined an interface called Human, and then used it to create a variable james. Interfaces are useful in a way that we can always be sure that the objects that we create have the same shape (properties). …

If you’ve used JavaScript, chances are you’ve come across it

If you’ve used JavaScript, chances are you’ve come across it something like this:

Image for post
Image for post
Try console logging an empty object

I’ve created an empty object, why is it that console.log shows a mysterious property __proto__?

So it turns out, an empty object is more than the 2 curly braces that you see on the screen. Every single javascript object created, automatically comes with a __proto__ property, which is from the Object.prototype object. Confusing? Let’s try expanding the __proto__ object.

Image for post
Image for post
A bullet
  • Schwartz’s research suggests something important; we can stretch our personalities, but only up to a point. Our inborn temperament influence us, regardless of the lives we lead.
  • Be patient. Respond to every call that excites your spirit. Ignore those that make you fearful and sad; That degrade you back toward disease and death.
  • Anyone who says do what you love for a living and you’ll never work a day in your life hasn’t done what they want to do for a living.
  • You can’t be anything you want but you can be everything you are
  • The people who matter won’t…

Wait I can receive free HP Laptops…?

Image for post
Image for post
Free HP Laptop Facebook page

So, you’re browsing your Facebook, and you just happen to come across a Facebook post that claims they’re giving away HP Laptops. And all you need to do is comment “HP” and you’re in! That was easy.

A couple of days passed and you start wondering where your laptop might be, so you went back to the Facebook page to check for an update.

Frameworks for better decision making

Image for post
Image for post
Thinking in Public — Credits to MUTI

I’ll cut straight to the point for this one. Let’s talk about the 2 frameworks that I use to make good decisions (or rather, decisions that I won’t regret).

Second-order thinking

When you’re struggling with a singular decision. For example: “Should I go to the gym today?” or “Should I quit my job and start my own business?”.

Second-order thinking works by allowing you to see clearly the short and the long term effects of a particular decision.

Some decisions seem great in the short term, but a couple of years later can come back and bite you in the ass. I’m…

Why Some Of The Best Innovations Are Born During The Worst Of Times

Image for post
Image for post
Credits to Pavelas Laptevas

“Hard times create strong men. Strong men create good times. Good times create weak men. And, weak men create hard times.”

- G. Michael Hopf, Those Who Remain

When you are stuck in the middle of a global pandemic, seeing the brighter side of things may come off as preachy. Especially while one is witnessing a large scale loss of human life, one is bound to get a little nihilistic.

But at the same time, facing a challenge as mighty as this motivates us to fight back. …

…by using Lottie animations

What is Pull to Refresh?

I’ve always been fascinated by different UI interactions, and how something so unique and different, can be made so familiar and easy to use. A great example that is widely used today is pull-to-refresh.

Image for post
Image for post
Pull to refresh on iOS

This interaction can be found in almost every mobile app, but I guarantee you that 99.99% of you have never heard Loren Brichter even though we’ve been using his work every day. You can read more about how pull-to-refresh is born here.

Since then, many have come up with different kinds of custom pull to refresh animations.

This tutorial is for the more experienced React developers. If you’re just looking to learn how to build a React app, there are tons and tons of tutorials available online!

Ok, so you’ve read tutorials, figured out how to set up a React project using create-react-app, learned how to install npm packages, and finally created your very own functional React app, and to that that I say congratulations!

Image for post
Image for post

As you go on your journey of creating your apps, you will undoubtedly come across some cool open source npm packages that made your development easier, whether it be material-ui, react-router, or…

Animations can be used to tell the user a million things.

The types of animations boils down to 2 kinds: fire-and-forget animations and truly interactive animations. Most animations that we see today belongs to the first group. Fire-and-forget animation is exactly what it sounds like; an animation starts, and then it continues to do its thing until its time to stop. But as the design of applications evolve into becoming increasingly simple, a simple animation is just not enough to keep the user informed of what is happening on screen.

Image for post
Image for post
“Looks cool, but how do I get home without the home button?” Image from The Verge

With the recent release of iPhone X, I believe its…

Chan Jing Hong

Founder @ https://groftware.tech; 3x  WWDC Scholar; I enjoy 🤿,🛹,🎸,✍🏻; Always shipping something new on https://www.producthunt.com/@chanjinghong;

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