Each new year gives us an opportunity for reflection on the previous. Our accomplishments, failures, and life overall. We often find ourselves making lists of items on which we can improve. How do we determine what is best for us to improve?
I would often find myself making plans to get better at a specific programming language, learn a new one, master design patterns, or a particular algorithm. While I could improve at all of those things is it really what I should spend my time on?
This post assumes you have a basic understanding of Docker. But what is a basic knowledge? If you aren’t sure, I suggest you read the Get Started docs, and then you will have a basic understanding of Docker.
I’ve read a few posts on Docker for PHP developers. However, it was the same tutorial on different sites, so I’m not going to copy what they did. I’ll explain the concepts that I struggled with learning.
In this post, I will help you discover 3 tips every developer should know. For the people reading this post who are hoping to learn how to program, no one is perfect, and we all make mistakes, so have fun while you learn. Everyone else, leave a comment below if you can relate or have any other tips!
Debugging I think it is rare when code works as expected the first time you try it.
Advanced PHP methods, practices, processes, and everything else can be a bit daunting. If you find it hard to understand some of the documentation or tutorials out there, don’t worry, I can help! I struggled to learn some of the core concepts, but eventually figured it out, I hope I can help you learn with less of a struggle. Having a good development environment is a huge step in the right direction.
Using DigitalOcean Spaces with your next PHP project is a beautiful idea. Spaces will give you all the hard drive space that you could ever need. This post can help you build your next PHP project with DigitalOcean Spaces. Building out an infrastructure can be a difficult job for anyone, but DigitalOcean’s services make it a bit easier.
Mounting Object Storage You could upload directly to S3 compatible storage using a PHP package, but it is easier to mount a bucket and let the file system handle the rest.
I work on a lot of different projects, and each one is unique in its own way. I often find myself installing packages manually and then configuring them. It seems like I repeat myself quite a bit, but the requirements of each project vary ever so slightly. In an attempt to prevent myself from repeating the same tasks over and over, I’ve started working on a skeleton repo that contains nearly everything I would need.
Keeping a website up-to-date and fresh can be time-consuming, but they need love. I like to give mine an overhaul about once a year, but sometimes I do it twice a year. Today is the day I decided to give my site a refresh.
I’ve had several posts this year, and they’ve ranged from Creating a Game to the Factory Design pattern. The day I run out of things to write about is the day I have learned everything.
This year I’ve continued to try different PHP frameworks. The ones I’ve tried are well written and have a fantastic community. I can see how some people may need to rely on a framework that does everything, but I like having control. And I prefer to add things instead of removing them.
Silex has been enjoyable to use while building web applications. I have a skeleton repo that has everything I need.
Setting up a development environment can be a pain. Sometimes it can be harder than writing the app. Some resources can help you develop faster, but you need to learn how to configure it for what you know, and it’s worth it in the long run.
Gulp is one of those tools that speed up your development, and I’ve been using it for a few months. Gulp is excellent, but Webpack seems to be better and more straightforward to configure.
I assume you have already created a Space and Droplet on DigitalOcean. If you haven’t, do that now, then come back to this post. In this example, I’m using Ubuntu 16.04. I’ve also pointed a domain to this Droplet and put it behind Cloudflare, so Spaces can act as my file repository for my assets, and Cloudflare will deliver them.
Mounting Spaces on your Droplet SSH into your Droplet and run the following commands: sudo apt-get install automake autotools-dev fuse g++ git libcurl4-gnutls-dev libfuse-dev libssl-dev libxml2-dev make pkg-config git clone https://github.