I’ve been a developer for about 2 years now. The funny thing is I have always taken what it means to be a developer for granted. I never sat down and thought to myself a developer is…?

This image has an empty alt attribute; its file name is 1*ShuzbJqEYs77yJdpilEJCw.jpeg

I pose the following question:

What is the purpose of a developer? -> I encourage you to ponder this a bit

While you’re pondering I’ll give you my thought — well actually the thought of Dan North which I came across in this video.

The purpose of a developer is to create BUSINESS IMPACT.

Hearing this completely blew my mind because I always thought implicitly that a developer writes code and creates software. This is true but the reason we write code and create software is so that it can create business impact — hopefully positive impact. …

I’m currently working on a Laravel project where our client has decided on using Mailgun to handle emails. This is great considering Laravel has built in functionality that works well with Mailgun and other email providers.

However, as the integration is meant to be generic so that you can plug in multiple email providers you lose certain functionality that may be available in an email provider specific integration.

We really wanted to use Mailgun’s email templates which you don’t seem to be able to use via the usual Laravel email integration unfortunately :(

Image for post
Image for post
We thought all hope was lost — Photo by Aliyah Jamous on Unsplash

STEP IN!

Mailgun-PHP

Luckily for us Mailgun-PHP saved us! …

Image for post
Image for post
Let’s take a closer look at variable naming

I recently got put onto a project with code from another dev house.

The problem I have with the code isn’t the fact that it’s from another dev house. It’s usually got to do with the fact that the processes, testing, variable naming etc… are completely different, or non-existent.

In my case it was quite clear that they had no processes or standards in place. Obviously there were no tests either. Needless to say there have been points where I was completely overwhelmed.

Fortunately I happened upon this talk by Martin Fowler (which I really enjoyed and think is definitely worth watching), where he goes into his ideas on refactoring. …

I am currently working a on a Laravel project that is using image intervention to handle image resizing.

I was battling with this damn issue of my images resizing and having a black background, as attached as below:

Image for post
Image for post
Image auto adding black background

Luckily I ran into this StackOverflow post which explained how to to remove it. Here’s the solution in a nutshell:

  1. Create the image,
  2. Resize it maintaining aspect ratio
  3. Add image on top of a canvas that has a white background where the image is centered.

Here is my implementation of the fix in actual code:

// Create Image
$image = Image::make('path/to/image');
// Resize image to desired dimensions where:
// 1. The largest side fits within the limit;
// 2. The smaller side will be scaled to maintain the original
// aspect ratio;
$image
->resize(
$dimension['width'],
$dimension['height'],
function ($constraint) {
$constraint->aspectRatio();
$constraint->upsize();
}…

In the latest update of circleCI they have included an interesting inclusion — orbs.

Image for post
Image for post
Photo by Wayan Aditya on Unsplash

What is an orb?

The best link I can think of to an orb is an npm package (or library to be more general). You import packages and then the package's functionality is available to you to use in your file (or globally depending on how you’ve installed it).

Why is this useful?

As with importing libraries the usefulness is in reducing the actual lines of code in your file. It also means you don’t have to write out a program yourself and can instead use someone else’s (which in theory should be more optimized and better since it should be maintained by open source developers). …

Image for post
Image for post

Let’s set the scene…

Head of marketing is experiencing a bug. No one else in our office can reproduce the error. WHAT IS GOING ON!?

All we know is that the page isn’t loading correctly, pictures are broken almost everywhere— it’s absolute chaos. Also it’s occurring sporadically, on a small amount of distinctly different devices and browsers.

Image for post
Image for post

It was Wednesday. Thursday and Friday were promising to be sunny — perfect beach days but then of course… Our client found a bug, as they do on optimal beach days. The problem — Google wasn’t indexing certain pages.

Okay so I lied it’s not really called Vue hooks — actually its called the Composition API (but we’ll use Vue hooks since it is easier to say).

<👦 Speakers />

Image for post
Image for post
Shailen explaining Vue Hooks (Composition API)

<🚀 EventSummary />

The aim of the event was for Shailen to introduce the audience to an RFC project (essentially very experimental and new) — Vue Hooks.

He first introduced stateful and stateless components:

Stateful components have state i.e. can change based on some change in data or event etc…

Stateless components (or more generally known as functional components) don’t have state and thus the component either renders props or always renders the same thing. …

Image for post
Image for post

In a time not so long ago a war waged on. The archetypical war between good and evil, right and wrong, toilet roll up and toilet roll down. The villains seemed to be winning the war for a long time. However there was a shining light in the darkness. A young hero emerged to combat the villains. His/her name was Cypress IO and this is is his/her story…

Now that I’ve aptly and over dramatically built up Cypress, your first question will most likely be, “What is Cypress?”. A valid question I concede.

I will use the website’s concise description:

Fast, easy and reliable testing for anything that runs in a browser. …

Image for post
Image for post

Don’t you just hate it when you come across an extension that would have saved you hours of time? WELL, I HATE IT!

Since moving up from being a complete noob to the programming arts, I have come across a few really useful VS Code extensions that will most definitely appeal to you if you haven’t used them yet. These are ordered in what I feel have been the most useful in making my life easier:

1. Prettier

About

Dominic PrawnStar Bauer

Slowly trying to piece the world together one idea at a time :).

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store