Tony Lea

Howdy, Welcome to My Blog

April 9, 2019

Javascript Foreach

Written by Tony Lea - 1 minute read

The Javascript Foreach loop comes in very handy when you want to loop through an array of items. The loop will execute for each item in your array. Take a look at the following example of a Javascript Foreach loop:// Create an array of groceries var ...

April 5, 2019

8 Common Page Speed Optimizations

Written by Tony Lea - 4 minute read

As a developer I don't really enjoy working on front-end page speed optimizations... Those things are boring, right?But... If you want your pages to rank well in Google it almost becomes a mandatory task that needs to be done. So... I thought I would...

March 19, 2019

Getting Started With Go

Written by Tony Lea - 4 minute read

What Is Go?Go or Golang is a server side technology initially developed at Google. You can use Golang to build some kickass server side applications or use it to build fast command line tools.Golang compiles to machine code, which makes it very fast ...

March 19, 2019

End to End Testing with Casper

Written by Tony Lea - 2 minute read

End to end testing is the process of testing your whole application to ensure that all the functionality is working as intended. This kind of testing is very important and actually very easy thanks to CasperJS. Let's go over a quick example of what a...

March 19, 2019

Composer. Why, What, and How?

Written by Tony Lea - 2 minute read

If you’ve been up-to-date with the latest PHP frameworks such as Laravel, Symfony, and Slim you may have heard of a new term called ‘Composer’. If you find yourself questioning what this new term means and why you may need to use it, then this ...

March 8, 2019

Installing PHP on Windows

Written by Tony Lea - 1 minute read

Most tutorials for installing PHP on Windows involves installing MAMP or XAMP, which are great solutions; however, sometimes you may want a solution to install PHP by itself. If so, this tutorial is for you. In this tutorial I'll show you how ea...

February 25, 2019

Creating a Custom Event in Javascript

Written by Tony Lea - 1 minute read

Using javascript events and listeners are very simple. If you've been programming in javascript you're probably already familiar with listening to click events like the following:document.getElementById('my-button').addEventListener('click', function...

February 20, 2019

Get Your .dev Domain Name

Written by Tony Lea - 1 minute read

Do you remember when you could create a new local site using the .dev domain, like mycoolsite.dev, which would map to a local project in your sites folder. A little over a year ago the .dev domains stopped working on Chrome because chr...

December 8, 2018

Programming Happiness

Written by Tony Lea - 2 minute read

At birth we are programmed with minimal code and eventually we learn some useful functions like crawl(), walk(), and eat(). These all get stored in main memory. As we get older we learn some advanced functions like love(), joy(), confidence(), a...

November 30, 2018

Gamifying Your Laravel App

Written by Tony Lea - 2 minute read

Gamifying your application is the process of adding game elements, such as user points and user achievements, inside your application. This will encourage your users to contribute and interact more in order to earn points and badges.Luckily if y...

1 2 3 4 5 6 7 8 9 10 ... 13 14