From years of experience and use (and a few recommendations from other people), I recommend the following tools: IDEs/Editors Visual Studio Code – Windows/Linux/Mac. It might be from Atom – Windows/Linux/Max Clound9 – Browser-based IDE. The original version was better. Now owned by Amazon AWS and they’ve made a royal mess of the licensing, usage and documentation. Still […]

Read more

The &$ prefix of an argument name passed into a PHP function means the argument is passed “by reference” (as opposed to “by value). For example: function publish_contributor_post($arg1, &$arg2) {    … } In this example arg2 is passed “by reference”. See also: https://stackoverflow.com/questions/20419613/php-string-what-does-this-mean

Read more

If you’re concatenating a string in PHP and the result is a zero (“0”), check you haven’t mixed up your languages and used a “+” instead of “.” as your concatenation operator. As a regular developer in C# and JavaScript regular, I sometimes write “$result = $part1 + $part2″ whereas I should write “$result = $part1 […]

Read more

Post Status: Draft/Under Development This post is being written in conjunction with a piece of work dealing with JavaScript dates. Draft last updated: 21 February 2018 Things to remember about JavaScript Dates: JSON.stringify() in JavaScript will serialize a date to UTC. Month numbers start at 0 (zero) in JavaScript, not 1 (one). So, January is represented […]

Read more

If you find yourself setting up code files in Visual Studio for a story, then having to mix them up, or close and lose them when switching to another story, try this extension: https://marketplace.visualstudio.com/items?itemName=eamodio.SaveAlltheTabs Now you can save and restore sets of tabs easily. Nice! (I’ve installed and tested it with Visual Studio 2017)

Read more

Create a WorkSpace (or clone from a repository). Download the latest WordPress source (https://wordpress.org/download/). Extract the file. Copy the files/folders upload to your Cloud9 workspace root. Make sure MySQL is running and open myPHPAdmin (see https://kb.vylesk.com/59/cloud9-setting-up-and-using-phpmyadmin-mysql-web-interface/). Create a new database for the site. I use utf8_general_ci collation. Create a new user for the site (give appropriate […]

Read more