Snippets Archive - Kevin Uriel Fonseca

First let’s take a look in Axios and Fetch, two libraries that help us make requests to API endpoints and so on. Both of them are good and work great but Fetch is native from the browser while Axios is external. Axios is a library […]

Problem? Loading files… Damn, I literally spent about two hours trying to hijack xD React core base to be able to’dynamically’ load style-sheets files in certain pages but it was just not working – well, it did but it was messing with the design from […]

Method overloading is a feature that is mostly found in OOP languages. These methods can share the same name as their neighbor method but with the difference of getting different data types as their parameters. Once the program is compiled, the correct method will be […]

New Update using multer-sharp-s3. Please go all the way down to the last paragraph to see the code. It is up to you to use it. It gives you more control over the file being sent. – Kevin Uriel Azuara Fonseca What is this going […]

A bit of intro Usually when creating complex websites such as an e-commerce, social network or streaming site, you will probably end up in the position of finding inspiration in some of the functions big companies built with the mentioned structures share; Facebook and YouTube […]

Do you ever wonder how to get the area of a circle using a low-level computer language? Well, C++ is the best one to accomplish said task. Here take a look: /* * Question 30 - Quiz number 4 */ #include <iostream> using namespace std; […]

A Vector is a kind of Array List from Java. It can receive hundreds of values indefinitely and it will still know its current size; something that regulars Arrays don’t know. Here it is an easy to follow example, if you want to know how […]

Java is a programming language that can be sometimes be tedious if you don’t have an idea on how to create parent-child classes. Here it is a very example to follow: class Plane { protected double size = 5; protected double weight; protected int age; […]