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.
An interface looks like this:
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 something like this:
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.
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.
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).
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…
“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. …
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.
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!
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.
With the recent release of iPhone X, I believe its…
Founder @ https://groftware.tech; 3x WWDC Scholar; I enjoy 🤿,🛹,🎸,✍🏻; Always shipping something new on https://www.producthunt.com/@chanjinghong;