Tony Lea

Howdy, Welcome to My Blog

March 15, 2020

5 Tips for Becoming a Better Developer

Written by Tony Lea - 3 minute read

Want to be a better developer? We all do, right? Well I’ve put together 5 sure fire fundamentals to follow in order to become a better developer. Ironically these tips have little to do with code, but be assured that following these suggestions will ...

March 14, 2020

Connecting to a MySQL database in NodeJS

Written by Tony Lea - 2 minute read

Connecting to a MySQL database in NodeJS is actually quite simple. First off, you'll need to make sure you have a local MySQL server on your machine and then you can follow these steps.To start off you'll want to create a new folder, navigate to that...

March 14, 2020

Timing Functionality in JavaScript

Written by Tony Lea - 1 minute read

Timing the functionality in your JavaScript code can help you write more efficient code and it can help you figure out which code is slowing down your application.Luckily JavaScript has a few handy helper functions we can utilize to test the speed of...

March 6, 2020

Clean Up Your Legacy Code

Written by Tony Lea - 3 minute read

The code you write today will eventually become "legacy code". After time our code needs to be refactored or rewritten. Similarly the thoughts and impressions we code into our mind must also be refactored or rewritten. In fact, a lot of life's proble...

June 22, 2019

Drinking and Coding

Written by Tony Lea - 3 minute read

This is a short story about my experience with drinking beer and coding. Will it make you less productive? Maybe more creative?During my college years and my 20's I had many nightly programming adventures which included massive amounts of pizza ...

June 20, 2019

Custom Laravel Blade Directive

Written by Tony Lea - 7 minute read

Laravel Blade is a simple templating language which make views much easier to read. Blade gives us some simple shorthand syntax for common PHP functions such as @if, @foreach, @isset, and many others. Take a look at all the blade shorthand syntax at ...

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 - 5 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 - 3 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...

1 2 ... 7 8 9 10 11 12 13 ... 18 19