Photo by Jeff Frenette on Unsplash

If you’ve worked with JavaScript you’ve probably done a thing or two with asynchronous operations. This article will show you how to sequence or chain asynchronous operations so the next one begins after the first is completed. We can use an iterator, loops, or promises to do it in a clean way and avoid doing something like below.

My eyes!

Here’s why the code above can be problematic:

  • Poor readability — as it stands you can see that it is already a bit difficult to read and it will only get worse the more asynchronous operations you add to it…


Photo from Pixabay

Sometimes you may come across a need to call a post method from another function in Laravel. These methods may or may not be in the same controllers/classes.

Say you have a very complex method that accepts Illuminate\Http\Request $request as the argument. The method is normally called from a form or AJAX (Asynchronous Javascript and XML) function. So how would you go about calling that method from another method — maybe even in another class?

Below we have a very complex method we inherited and don’t want to have to rewrite. …


Image by ArtsyBee from Pixabay

Up until a little while ago I was like many people that didn’t know the difference between APY and APR. In fact, I didn’t even know there was a difference. I kind of always assumed it was the same thing, just two different names for it, or even if it was different it simply wouldn’t affect me. I have learned that many times it is the things we know little of that have the greatest impact in our lives. So, I would like to share what I’ve learned regarding APY, APR, and our minds.

APR

APR stands for annual percentage rate…


When you associate with someone or something you are connected in some way, this concept can be applied to relational databases through the use of associative entities. We will work through an example that shows how associative entities work. Hopefully, that will shed some light on different ways of thinking about associative entities and the many solutions they can provide in a business or in an academic environment.

An Example of When to Use Associative Entities

Say you own a movie rental service and your business is doing poorly. You want to track inventory using databases because you haven’t been doing this at all. …


One of the challenges any developer may encounter when using multiple packages/libraries is how to have them work together. This can be particularly tricky when they aren’t created with each other in mind. This article will show how to use Vue.js components inside of Sweet Alert modals without depending on other packages to do it for us.

I will make the assumption that you have installed Vue.js and Sweet Alert 2 in your project. If not, take a look at some of the links at the end to read the official Vue.js and SweetAlert2 guides.

Bryan Fajardo

Full stack web developer. Your mind is your biggest asset, grow it!

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