Posted on August 23, 2018Categories JavaScript, Plugin Development, Programming, Programming Languages, Technology, WordPressTags , , , , , ,   Leave a comment on Vue – JavaScript Library Outside Google/Facebook Control

Vue – JavaScript Library Outside Google/Facebook Control

Vue is running on several projects to create a better admin user experience. Vuetify is layered on top and baked into WordPress themes and plugins. You will need to add a little custom CSS to stop WordPress from stomping on the UX. You’ll also add a small localize script to seed Vue with relevant data from WordPress. A little REST applet to serve Vue requests and you get a fast good looking responsive app with far less effort than custom … Continue reading “Vue – JavaScript Library Outside Google/Facebook Control”

Posted on June 26, 2018Categories Programming Languages, TechnologyTags , ,   Leave a comment on Top Programming Languages

Top Programming Languages

A good global list, but you still need to know your goal so you can choose the best tool for the job. If you are only looking for a job then you must consider where you want to work; both geographically and type of company. The list changed drastically based on different vectors. fossbytes.com/most-popular-programming-languages/

Posted on February 7, 2018Categories JavaScript, Programming Languages, TechnologyTags , , , , ,   Leave a comment on Optimizing JavaScript for Chrome

Optimizing JavaScript for Chrome

A recent discussion with a tech guru at Automattic posed a great question — how does JavaScript asynchronous processing work on a single-threaded app?  Great question, but before I found out how that worked I decided to refresh my knowledge on how JavaScript manages the call stack.   Turns out a LOT has changed in 10 years and it turns out Google’s V8 engine was launched. What is V8? V8 was very likely a result of Google Maps.    Google … Continue reading “Optimizing JavaScript for Chrome”

Posted on January 5, 2018Categories Development, Plugin Development, Programming Languages, Technology, WordPressTags , , , , , , , , , , , , , , 1 Comment on Automated Web App Testing With phpStorm

Automated Web App Testing With phpStorm

Selenium IDE was a great way to handle automated web app testing like the Store Locator Plus plugins for WordPress.    Selenium IDE is a simple script recorder and playback too that runs on Firefox.    Or, I should say, it used to run on Firefox.  That broke in 2017 when Firefox 52 came out. After a lot of research I finally found a viable alternative to Selenium IDE that will work with modern browsers.  It is also free, locally … Continue reading “Automated Web App Testing With phpStorm”

Posted on December 15, 2017Categories PHP, Programming, Programming Languages, Technology, WordPressTags , , ,   Leave a comment on Should The WordPress PHP Version Be Updated?

Should The WordPress PHP Version Be Updated?

WordPress LOVES backwards compatibility as can be witnessed by the minimum-allowed WordPress PHP version remaining at 5.2.4 a decade after its end-of-life date.  It  may be  one of the reasons they have continued to garner market share.  Don’t require people to do anything to improve their site and they’ll wallow in complacency.  It makes sense.  Inertia is a big thing to overcome.  If you are a business focused on writing content, selling widgets, or doing just about anything else other than … Continue reading “Should The WordPress PHP Version Be Updated?”

Posted on December 4, 2017Categories PHP, Programming, Programming Languages, WordPressTags , , , , , ,   Leave a comment on wp_enqueue_scripts Deep Dive

wp_enqueue_scripts Deep Dive

While trying to figure out why the footer-loaded scripts in Store Locator Plus are not being output on some admin page, I went deep down the rabbit hole of the WordPress wp_enqueue_scripts function.   Here are my notes from an analysis of WordPress (5.0-alpha-42191) . wp_enqueue_scripts /Users/lancecleveland/vagrant-local/www/wpslp/public_html/wp-includes/functions.wp-scripts.php This is a PHP inline function. /** * Enqueue a script. * * Registers the script if $src provided (does NOT overwrite), and enqueues it. * * @see WP_Dependencies::add() * @see WP_Dependencies::add_data() * @see … Continue reading “wp_enqueue_scripts Deep Dive”

Posted on September 27, 2017Categories JavaScript, Programming Languages, TechnologyTags , , , , , ,   Leave a comment on Selenium on JavaScript : New WordPress Site Config Script

Selenium on JavaScript : New WordPress Site Config Script

This article continues the journey into learning Selenium on JavaScript (SoJa).  It builds on the lessons of the previous articles and adds some common library functions to make our tests more readable and starts to employ the Don’t Repeat Yourself (DRY) concept. In this case we are going to build a common library module that we will re-use in future scripts. It will load our configuration and environment.  It will also export some methods that make our test script code … Continue reading “Selenium on JavaScript : New WordPress Site Config Script”

Posted on September 26, 2017Categories JavaScript, Programming Languages, Quality Assurance, TechnologyTags , , , , ,   Leave a comment on JavaScript Selenium Newb Cheat Sheet

JavaScript Selenium Newb Cheat Sheet

Finding documentation on Selenium is hard enough for the “main languages” of Java or Python.    There are lots of examples of how to do things there in those languages but very little for the JavaScript libraries.   While you can translate most of the Java example to JavaScript there are some differences.    You’ll also find that there is a LOT of outdated information.    To make things more interesting you’ll also find that the older the example the … Continue reading “JavaScript Selenium Newb Cheat Sheet”

Posted on September 25, 2017Categories JavaScript, Programming Languages, Quality AssuranceTags , , , , ,   Leave a comment on Selenium : Hiding Login Credentials In An Automated Test

Selenium : Hiding Login Credentials In An Automated Test

With most web automation and testing tasks you are going to want to login to a secure system.   You are also going to want to keep your login credentials out of the testing code repository.    For my test suite that is being rewritten with Selenium for the MySLP service I am employing a basic JavaScript module methodology along with some git ignore rules to keep my credentials private. In this example I have also added the ability to … Continue reading “Selenium : Hiding Login Credentials In An Automated Test”