Quality tutorials & resources. No BS._

Page 2

Detect if Click is Inside an Element with JavaScript
Author Dan Pastori avatar
Dan Pastori October 11th, 2022

So this is a little script that I’ve included in some UI elements to check if a click takes place within the scope of the element. Why would you need this? Say you have a little drop down, autocomplete, etc. that should close when a click occurs outside of the element. You need to see […]

Keep Reading →
Break between articles
Filter, Sort, and Search Arrays with JavaScript
Author Dan Pastori avatar
Dan Pastori October 4th, 2022

To add that next level user experience to your frontend, you need speed. Areas of your app that always need just a little optimization are ones that display and compute data. You have a decision to make. Do you load more data from the API or do you allow the user to manipulate and filter […]

Keep Reading →
Break between articles
Caching API Endpoints with Laravel
Author Dan Pastori avatar
Dan Pastori September 27th, 2022

As your API begins to grow, you will want to start looking into some performance optimizations. Laravel provides a variety of different options when it comes to caching endpoints, such as Redis, Memcached, DynamoDB, and even simpler file caches. By default, Laravel is set to cache in a file. Since Laravel is facade driven, basic […]

Keep Reading →
Break between articles
Introduction to Classes and OOP with JavaScript
Author Dan Pastori avatar
Dan Pastori September 20th, 2022

To be honest, it still blows my mind that you can write Object Oriented JavaScript. Without even using TypeScript! Recently, we re-factored AmplitudeJS 6.0 to be Object Oriented and honestly, I’m loving it. I feel like OOP JavaScript really allows you to make some well-structured, dynamic apps and functional libraries. With that being said, let’s […]

Keep Reading →
Break between articles
Event Handler Tips for JavaScript and VueJS
Author Dan Pastori avatar
Dan Pastori September 13th, 2022

One of the basic features of JavaScript is working with Event Handlers. Event handlers allow you to listen to interactions (click, touchstart), changes (input, change), etc. within your application and respond accordingly. There are hundreds of events you can listen to, check them out here. Here’s a few ways I’ve used event handlers working with […]

Keep Reading →
Break between articles