Open in app

Sign In

Write

Sign In

Craig Childs
Craig Childs

279 Followers

Home

About

Published in ITNEXT

·May 7, 2020

Golang Testing — Mocking Redis

When testing our applications we often have a lot of external dependencies, and often we’re not running our tests in an environment where we have room to boot up Redis, MySQL etc. Recently I was trying to solve the problem of needing a Redis connection in one of my applications…

Redis

2 min read

Golang Testing — Mocking Redis
Golang Testing — Mocking Redis
Redis

2 min read


Mar 30, 2018

Go for PHP Developers: Structs vs Classes

So unlike modern PHP, Go handles the way we interact with types in our applications in a different way, through the use of structs. In fact it tailors itself to be more primitive, like it’s grandfather C. Go does however have similar concepts implemented, which to an outsiders point of…

Golang

5 min read

Golang

5 min read


Mar 20, 2018

Go for PHP Developers: Getting Started

For all you beginner, intermediate or expert PHP developers, here’s an article which should provide you with a little guidance on how to get started writing your applications in Golang and how it compares to a similar workflow with PHP. But first, let’s grab the things we need to start…

Golang

2 min read

Golang

2 min read


Jun 28, 2017

Auto Rebuilding Go Programs — With Docker, Glide & Fresh

Introduction Developing Go applications can often be a slog, especially if the Go application is a service in a larger ecosystem, that you need to run locally during development. Every time we make a change to our code we’d have to kill our Docker container, re-build our Go binary and re-run…

Docker

4 min read

Docker

4 min read


May 31, 2017

What web development tools should I learn in 2017?

2017 has been an interesting year for me, I feel like I’ve learned so much about myself, my skills and the industry which is “Web Applications”. …

PHP

4 min read

What web development tools should I learn in 2017?
What web development tools should I learn in 2017?
PHP

4 min read


May 31, 2017

Connecting to a Database with Go

Have you ever wondered how you can interact with a database in Go using the Model pattern? Well here’s a quick example of how you can get started with GORM, an ORM for Go. In this example we connect to an SQLite database called database.db and migrate a new table for users. We then add a new user row with the name “Craig” and fetch all users. We finish by printing out the JSON representation of this list of users.

Web Development

1 min read

Web Development

1 min read


Published in sneek

·Apr 10, 2017

Why working remote is AMAZING! And how it’s changed my outlook on work and life.

To start, I’m sat in a coffee shop, 72 miles from my flat and I’m working. Crazy, I know. Technically right at this moment I’m writing this article, shhhhhh. I always thought when the time came for me to plunge into full-time work, my working day would go something like…

Remote Working

6 min read

Remote Working

6 min read


Apr 3, 2017

Golang Testing — JSON Responses with Gin

Recently I’ve been implementing a small side project in Go with Gin. I know how easy it is to setup tests with Go, but I was very surprised not many people had covered examples of how to test the JSON responses for your APIs. With Gin specifically. I discovered, it’s…

Golang

2 min read

Golang Testing — JSON Responses with Gin
Golang Testing — JSON Responses with Gin
Golang

2 min read


Mar 30, 2017

Dockerizing Your Go Application

Prerequisites — I’m going to assume you’ve got Go and Docker installed locally, if you haven’t then head on over to these links and head back here once you’re done :) https://www.docker.com/get-docker https://golang.org/ Jumping In So first we’ll create our Dockerfile ready to run our compiled web server, called main FROM scratch ADD main…

Docker

2 min read

Docker

2 min read


Jun 4, 2014

PHP Web Dev Workflow

Just the way I do things — I've always been intrigued by the way people work, what editors they use, any cool workflow apps, which version control system they're using and why? So I thought I'd share the way I do things. These are my opinions; Some of you may find them useful, some might agree and…

3 min read

PHP Web Dev Workflow
PHP Web Dev Workflow

3 min read

Craig Childs

Craig Childs

279 Followers

Multi-pronged web developer with a passion for cutting edge tooling! https://craigchilds.dev

Following
  • Cher Scarlett

    Cher Scarlett

  • Dan Pedersen

    Dan Pedersen

  • SF Ali (Farooq)

    SF Ali (Farooq)

  • Robert Roy Britt

    Robert Roy Britt

  • Kate Stamas

    Kate Stamas

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech