Olusola Samuel's Blog

HomeBadges

Understanding Mixins: From Ice Cream Stands to TypeScript

Jan 23, 20218 min read

When Steve Herell opened his first Ice Cream store, instead of having pre-mixed flavors, he had his staff mix freshly made ice cream with candy or other confections based on the customer requests. Those candy additions were called mix-ins. Steve prob...

What is Serverless?

Aug 28, 20206 min read

Whenever an application is built, it must be made available to users. Consider Facebook, which was created by Mark Zuckerburg in his Harvard dorm room - we wouldn't have known about Facebook if he didn't make it available for other people to use. In ...

Avoiding Prop Drilling in React Without Context API or Redux

Aug 8, 20208 min read

Prop Drilling is the process by which you pass data from one part of the React Component tree to another by going through other parts that do not need the data but only help in passing it around. Imagine someone living in Lagos, Nigeria placing an o...

Understanding Javascript Execution Context, Call Stack and Stack Overflow

Feb 1, 2020

JavaScript is weird. It is possible to use JavaScript without fully understanding JavaScript , and most times JavaScript lets you get away with it. If you are an aspiring JavaScript ninja like me, then you will definitely want to understand JavaScrip...

Learn How to Create Chainable Methods in Javascript With a Practical Example

Jan 22, 2020

Chaining is a cool concept in programming, it is calling a method on a returned object without reassigning the value first. Suppose you have a users object: const users = [ {fname: 'Joseph', lname: 'Ada', age: 12}, {fname: 'Bernard', lname: '...

How to handle errors in Express and Node.js App

Jan 10, 2020

Image by mohamed Hassan from Pixabay When we create api's with express, we define some routes and their handlers, in an ideal world, consumers of our api will only make requests to routes that we defined and our routes will work without error. But if...

© 2021 Olusola Samuel's Blog

PrivacyTerms
Proudly part of