This is why the Redux devs created the Redux Toolkit, a helpful React library that makes setting up and maintaining a global state easier than ever before. One issue a lot of devs come across with big libraries like Redux is forgetting the setup basics when starting a new project. This blog hopes to provide an easy step-by-step guide.
One of those custom features is the useFetch hook. For those uninitiated, hooks are a new relatively new addition to React that allows one to access the state and lifecycle features of the library features without writing a whole new class. You can read a basic overview here: https://reactjs.org/docs/hooks-overview.html
yarn add use-http or npm i -S use-http
The first step is to install the hook library by using…
By now, we’ve covered how the principles of Encapsulation and Abstraction operate within a programming language like Ruby to make methods and data-management more efficient and versatile (if you haven’t read part 1 yet, catch up here).
We used simple analogies like the McDonald’s corporation to show how these mental models can improve real-world processes. Now, it’s time to cover the last two pillars of OOP — Inheritance and Polymorphism.
Like SuperClass like SubClass.
Inheritance is one of the easier pillars to understand because there are so many similar concepts that we come across in real life.
The basics of…
When it comes to programming, many big-picture concepts can be very intimidating to newcomers. It’s hard to visualize ideas when they’re just text on a screen, but understanding the core of how computers and programming languages functions is key when it comes to creating real-world applications.
One of those surreptitiously dense concepts is Object-oriented programming.
Object-oriented programming (or OOP) is a paradigm that directs software engineers to focus on manipulating relational data, grouped by classes, as opposed to using solely logic and algorithms.
The core of OOP relies on four principles: Abstraction, Encapsulation, Inheritance, and the joyful-to-say Polymorphism.