Back in July, we looked at how Vue CLI and webpack work and I figured that it was time to look at Vue Router, as a follow-up. Vue Router is going to be pretty necessary for the state parks app, moving forward. Like I did last time, I used VueCLI and Bulma. I also put …Continue reading "Playing with Vue Router"
This is going to be a pretty quick post (mainly because I am on vacation, next week). I was skimming through what is new in ECMAScript 2021 and spotted replaceAll(). It is already supported in everything except for Internet Explorer. Let’s take a look at a quick example. See the Pen String.prototype.replaceAll() Example by Joe …Continue reading "New things in ECMAScript 2021: String.prototype.replaceAll()"
At work, I use webpack all the time but it is with laravel. On this blog, I haven’t written much about laravel (something that I eventually want to correct). I do want to address the deficit of webpack content today, though.Continue reading "Playing with the Vue CLI and Webpack"
One of the things that are most important to me for phase 1 of the state parks app is to have the list of parks be sorted by how far the user is from the park. After all, Tower Hill State Park might be interesting but if you live 4 hours away, you aren’t likely …Continue reading "How to sort a list of locations by how close they are to you"
Lazy loading is a method for optimizing a website by loading images (or iframes) on demand. If properly implemented, the browser should load the images that are at the top of the page first and wait to load the rest until the user starts to scroll down the page. This is something that is relatively …Continue reading "Three ways to load lazily"
This is going to be a relatively short post. We have been doing a lot of [x] vs [y] vs [z] posts lately and this one is no different. Today, I figured that we would look at Prototype.call() vs Prototype.apply(). Both apply() and call() are used to invoke functions. The difference is that call uses …Continue reading "Prototype.call() vs Prototype.apply()"
Ever since Apple bought and shut down Dark Sky, I have been struggling to figure out what to replace it with. I figured that this would be a good excuse to play with some weather APIs. I have done this once before but that was with Rivets and YQL (neither of which I can necessarily …Continue reading "Playing with the OpenWeather API: The basics"