What I Wish I Would’ve Done As a Beginner

I wish I would’ve focused more on the basics of programming. For example, I never really learned the basics of PHP or JavaScript arrays and objects, even though I got a good job and started a good career. I would always just copy and paste. Once you get a full-time job, it’s more difficult to … Read more

The Tools of a Back End PHP Web Developer

A back end web developer has a lot of different tools in his belt. Here are the main ones with a short description of each. PHP PHP is a programming language, specifically it’s a general-purpose, loosely coupled, scripting language, mainly used for web development. It’s extremely popular because it can be used on most web … Read more

Categories PHP

Understanding JavaScript Packages and Bundles

Writing your own JavaScript is pretty straightforward, but things get a little hairy when you first try to install an NPM package and use it in your JavaScript file. You see that you’re supposed to install it and then import it at the top of your JavaScript file, but you get errors about “require” not … Read more

Docker WordPress

version: “2.1” services: db: image: mysql:5.7 volumes: – db_data:/var/lib/mysql restart: always environment: MYSQL_ROOT_PASSWORD: somewordpress MYSQL_DATABASE: wordpress MYSQL_USER: wordpress MYSQL_PASSWORD: wordpress wordpress: depends_on: – db image: wordpress:latest volumes: – ./:/var/www/html/wp-content ports: – “8000:80” restart: always environment: WORDPRESS_DB_HOST: db:3306 WORDPRESS_DB_USER: wordpress WORDPRESS_DB_PASSWORD: wordpress WORDPRESS_DB_NAME: wordpress volumes: db_data: {}

JavaScript Code Reading

The parse function parses a query string from a URL. Here’s a quick preview of the concepts. Functions Objects Array destructuring function parse(query, options) { options = Object.assign({ decode: true, sort: true, arrayFormat: ‘none’, arrayFormatSeparator: ‘,’, parseNumbers: false, parseBooleans: false }, options); validateArrayFormatSeparator(options.arrayFormatSeparator); const formatter = parserForArrayFormat(options); // Create an object with no prototype const … Read more