So you want to create your first programming blog to promote yourself and teach the world about programming?
This is an excellent idea but how can you get started?
In this article, I am going to assume that you are an absolute beginner who has never built a website before.
I will teach you exactly how to build your programming blog step-by-step, starting from choosing a web host, registering a domain name, all the way up to how you write and promote your articles.
Without further ado, let’s jump right into it.
- Why Create a Programming Blog?
- How to Create a Programming Blog?
Why Create a Programming Blog?
First things first, why should you start your programming blog at all?
I get it.
Software engineers hate writing.
It’s even hard to get us to comment our own code.
So why on Earth would you start a programming blog?
Well actually, starting a programming blog will benefit you in numerous ways.
Let’s discuss some of those benefits.
1. Improve your technical skills
There is a well known old latin principle “The best way to learn something is to teach it”.
I find this principle first-hand to be very true.
For years, I used to teach Computer Science to undergrad students.
I kid you not, every time I taught a course, I also became better at what I am teaching.
Teaching pushes you to learn more about your topic which is good not only for your students but for your own self as well.
Starting a Programming blog is very similar to teaching because in your blog you will be teaching the world about programming and computer science.
And honestly that’s one of the main reasons why I started afternerd.com
I just love teaching.
If you want to be a better programmer, teach programming through your blog
2. Market yourself
Instead of me babbling about how you can use your blog to market yourself, let’s look at REAL a real case study.
Do you know who Jeff Atwood is?
If you are in the software industry and you don’t know who Jeff Atwood is, then you have been living under a rock.
Now I am damn sure you know what Stack Overflow is.
If not, then you are definitely not ready to start a programming blog 🙂
But you know what Jeff Atwood is actually known for?
His blog, Coding Horror, that he created in 2004 is one of the most popular programming blogs on the internet.
Not only that, but his blog was the reason how he met Spolsky in the first place!
Don’t take it from me, look at what Atwood himself says:
Your blog will open the doors for various networking and business opportunities that you might not find otherwise.
3. Learn how to write and present your ideas
Believe it or not but your software career heavily relies on how good you are at communicating and presenting your ideas.
Don’t get me wrong, If you are a rockstar programmer you will still do well but your career potential will definitely be limited by your ability to present and communicate your ideas.
One of the many ways you can improve your communication skills is through writing.
If you feel that you suck at writing in the beginning, this is more common than you think.
Just keep at it and over time you will improve and get better.
4. Be an authority in your field
Having a Programming blog helps you build authority in your field.
And being an authority helps you stand out among other software engineers and opens the doors for leadership roles.
5. Learn about online marketing
In order to have a successful blog, you will need to market it.
Marketing your blog is actually not an easy task and requires you to learn a lot about online marketing.
I find online marketing to be an extremely valuable skill that software engineers need to have in their repertoire.
This in itself makes starting a blog a worthy goal in my opinion.
OK, Now How Can you Create a Programming Blog?
Now let’s talk specifically about what you need to do to get your blog up and running fast.
The first course of action is choosing a web host.
Step One: Choose a Web Host
You are a programmer so I am going to assume you know what web hosting is and what purpose it serves.
But just in case you don’t, web hosting is essentially the computer (or computers) that will host the files that makes your blog.
And this machine has to be on 24/7 or otherwise your users won’t be able to access your site all the time.
There are literally a ton of options out there for services that can host your website but I will narrow them down for you to the two options that I personally use and am extremely happy with.
Option 1 (Choose convenience with Bluehost)
If you want to get started writing your blog right away and you don’t want to spend your time doing some cool technical stuff then I highly recommend Bluehost.
Bluehost will make the process of creating your website and your blog unbelievably easy because their main target is non-technical people; people who probably never coded a hello world program in their life.
You can only imagine how simple it is going to be for you.
Now let’s take a look at what Bluehost actually offers you.
Bluehost offers different types of hosting.
The one I am specifically talking about is called shared hosting.
But before I tell you why I recommend shared hosting from Bluehost, let me first explain what each of these options are:
Shared hosting means that your website will live side by side with other websites on the same virtual machine. In other words, One virtual machine will be serving your site along with other sites at the same time.
VPS or Virtual Private Server is just a fancy word for a virtual machine. In this offer, you basically own an entire virtual machine and you have root access to it. You can connect remotely to this virtual machine, install applications, and do whatever you want as if you were working on your own laptop. Needless to say, this virtual machine will be serving your website and your website only.
Dedicated means that you will be renting an entire physical (not virtual) machine.
Now let’s go back to shared hosting.
Shared hosting definitely has its advantages and disadvantages.
The biggest advantage is that it is ridiculously cheap so it is an excellent choice especially if you are starting out or if you just want to play around and get comfortable with creating websites.
But there are some major disadvantages.
First, you lose control because you don’t own the virtual machine that your blog is running on.
Second, shared hosting is not going to be a viable option when your blog grows and larger number of people starts coming to your website.
So what is the best course of action?
Here is my strategy: for every website idea that I have, I always start with a Bluehost shared hosting option and as soon as I notice that the website is starting to get some significant traffic, I switch to a VPS option.
But not Bluehost’s VPS.
Honestly I have never used Bluehost’s VPS so I can’t give an honest opinion about it.
What I do is as soon as any of my websites start getting traction, I move the website entirely to Digital Ocean.
Option 2 (Choose control with Digital Ocean)
Case in point: afternerd.com and two other websites that I own are running right now on Digital Ocean.
Unlike Bluehost, Digital Ocean gives you a virtual machine that you have complete control over.
You can remotely connect to that virtual machine as root and do whatever you want with it.
One important point: this is only for those of you who are comfortable with linux, installing and configuring web servers, databases, etc…
$100 Digital Ocean Credit for 60 days
Get $100 credit that you can use on Digital Ocean to create your blog if you sign up now
If you are not already familiar with these topics and you are not willing to learn, then I highly recommend against the VPS option in general (whether on Bluehost or Digital Ocean). You are better off using a higher-tier shared hosting from Bluehost.
At the same time, since you are a software engineer, I can’t stress enough the importance of the skills you will learn by creating your website from the ground up on a pure virtual machine.
Now that you have your web host in place, let’s pick a name for your website!
Step Two: Register your Domain Name
In this step, you will be registering your domain name.
To put it simply, your domain name is your website name
For example, the domain name of this site is afternerd.com
But let’s nerd out a little bit and explain how domain names works.
Each computer on the internet has an address called an IP address.
For example, to find out the ip address of google.com, you can do the following:
$ dig +short google.com 220.127.116.11
Notice that google.com actually have multiple ip addresses and this is just one of them.
To be able to communicate with any machine over the internet, you need to know the IP address of that machine.
So when you type ‘google.com’ on your browser, your OS will automatically try to translate the name ‘google.com’ to its IP address.
This happens by querying something called a DNS server.
You can think of a DNS server as a distributed database that is in charge of mapping domain names to ip addresses.
Alright, now with this information in mind, here is what you are going to do in this step.
1- reserve the domain name for yourself so that no one else can use it.
2- configure the domain name to map to the ip address of the machine you have from your web host.
Where can you buy your domain name?
First before you go shopping around, make sure to check if your host offers a free domain name.
Sometimes hosting companies will offer you a free domain name for a year to incentivize you to host with them.
Another thing you must know is that registering a domain name is on an annual basis.
So you will need to renew your registration every year to keep your domain.
Otherwise your domain name is gone! 😱😱
Don’t forget to do that or bad things could happen 🙂.
It’s only like 10 bucks a year anyways.
Again you will find a ton of services that you can use to register your domain.
Here are the only two that I use:
Namecheap is an extremely popular choice simply because domains are very cheap compared to others.
It has an amazing easy-to-use user interface and a great customer support.
To get started, go to their website and type in what domain name you want and hope it’s not taken 🙂
If you are lucky, your domain will be available and you can, and should, reserve it right away!
Also make sure to pick a relatively short, easy to remember, and brand-able name for your website.
Your domain name is your brand, so treat it as such.
Another fantastic service that I frequently use these days is Google domains.
It also has a very nice interface and is super easy to use.
Whether you go with Namecheap or Google domains (or any other service for that matter), you will need to configure your domain name to map to your IP address.
Step Three: Install WordPress
Let’s revise what you have so far.
You have a machine from your web host that is connected to the internet 24/7 and is ready to serve your website.
You also have a domain name so that people can visit your website by typing this domain name in their browsers.
Now it’s finally time to sit down, relax, and start writing your awesome blog posts.
Hmm well, not really.
Why reinvent the wheel?
Use WordPress instead.
WordPress is a platform that the vast majority of blogs on the internet are built on (including afternerd.com).
Here is how the platform looks like.
As you can see, it has a very clean user interface.
It is also reliable, free, open-source, and very convenient to use.
With WordPress, you can literally publish your first article on the same day you sign up for your web host.
Now let’s see how you can install WordPress on Bluehost and on Digital Ocean.
WordPress on Bluehost
We talked before that with Bluehost you get a lot of convenience.
Case in point, installing WordPress to your website is just one click of a button away!
Log in to your Bluehost account, click on the “Install WordPress” button, and you are good to go.
Now you can roll up your sleeves and start blogging away!
WordPress on Digital Ocean
Digital Ocean is a whole different beast.
Remember that with Digital Ocean you are getting control at the expense of convenience.
This means that installing WordPress is actually the least of your worries.
After that, you need to install a mysql database and configure it correctly for WordPress.
And finally you need to manually install and configure WordPress.
That’s actually how I created this site.
Alternatively Digital Ocean has a pre-made WordPress image that you can use right away.
Step four: Get Comfortable with WordPress
Now that you have all the tools you need under your belt, it’s time to start getting comfortable with the WordPress platform.
But don’t worry, it is actually pretty basic and you can learn it on your own pretty fast in just a few hours.
I recommend starting by writing a couple of blog posts until you get the hang of it.
WordPress is actually very extensible.
This means you can install third-party tools that can integrate with your WordPress site and help you with all sorts of things.
For example, WordPress themes are meant to enhance the visuals of your blog.
Plugins on the other hand are meant to extend the functionality of your WordPress site.
In the next section, I will talk about the themes and the plugins that you need for your programming blog.
Pick a WordPress Theme
Long story short, don’t use free WordPress themes.
Free themes are good when you are starting out and you don’t know what you’re doing but as soon as you decide to get serious then you will need to switch to better themes (which are usually not free).
Remember that your theme dictates how visually appealing your site will be and this is something you don’t want to skimp on…even for a technical blog.
Here are the only two WordPress themes that I use for all my WordPress websites:
This site afternerd.com uses the Avada WordPress theme.
I really love this theme and I never had any problems with it.
When you buy this theme you also get a lifetime upgrade so you can always upgrade to the latest version for free.
Divi is probably the most popular WordPress theme on the internet.
Unlike Avada, you can’t just buy this theme alone.
To be able to download Divi, you need to join elegantthemes.
They have an annual subscription and a lifetime subscription.
With that you get access to all their themes and plugins (including of course Divi)
Anyway whether you go with Avada or Divi, both are great themes and you can’t go wrong with either.
Now let’s switch gears and talk about the one fundamental plugin that you will absolutely need for any programming blog.
The one that will allow you to write code snippets in your blog articles.
How to Write Code Snippets in your Blog
If you are an avid reader of afternerd, you know that I use a lot of code snippets in my articles.
I mean, what is a programming blog without code anyways? 🙂
Here is how code appears on my blog:
def hello_msg(name): if name is not None: print('Hello ' + name)
And here is exactly how you can do the same in your programming blog.
First, go ahead and install the Code Prettify plugin to your WordPress.
This plugin uses the Google Code Prettify library and is extremely easy to use.
Afterwards all you need to do is put your code between <pre> and <code> tags and it will magically format your code correctly.
On afternerd, I also have some custom CSS that I apply to my code snippets to makes them look prettier.
So this is something that you should experiment with.
Now that everything is in place, let’s get some readers to your blog!
Step five: Market your Programming Blog
You see, it is one thing to go through all the steps of creating your blog, it is another thing to actually bring readers to your blog.
Marketing your blog requires a set of skills that has nothing to do with programming.
You need to learn about Online Marketing.
Actually online marketing is a huge topic and there is no way I can do the topic justice by covering it in one article.
However, I am going to teach you some tips that will help you promote your blog and get it off the ground.
The easiest thing you could do is to share your blog articles with your friends on Facebook, Twitter, or Linked in.
You can also share your articles on Reddit but be aware that reddit users hate self-promotion and promotion in general. So share your articles on reddit only if they are relevant (for example, someone asks a programming question that you already wrote an article about).
Also you can answer questions on Quora. This way not only will you be promoting your blog, but you will also be establishing yourself as an authority all while helping other people out.
SEO means Search Engine Optimization.
In English, this means getting traffic to your website from Google 🙂
This is hands down the best source of traffic to your blog because most of your consistent traffic will actually come from Google.
Instead of you actively promoting your blog, Google can promote your blog on your behalf if Google thinks that your article answers questions that users are searching for.
This is amazing! But don’t get me wrong, it is not easy and it takes time.
You see, when users search on Google, they typically click on one of the first 4 results!
The lower you are in the ranking, the less likely users will visit your page.
If you are on the second page of Google, you’ll probably get no traffic whatsoever. Trust me, I know 🙂
Now here are three tips to help you with SEO:
1. Write articles about topics that people are searching for
Let’s face it, not every topic you will want to write about is something that other people are going to be searching for.
To succeed, you need to make sure that you are writing articles about topics that people are already searching for.
You can use tools like Google’s keyword planner to help you identify topics that people are searching for.
But wait a minute, does that mean you shouldn’t write about topics you are passionate about if these topics don’t have enough search volume?
What I am saying is that you will most likely need to rely on other methods of promoting this type of articles outside of Google.
For example, you can use social media, reddit, hacker news, or even link to these articles from other SEO-friendly articles on your blog ;).
2. Write evergreen articles
Most of your articles should be evergreen.
By evergreen I mean articles that are going to be relevant for a long period of time.
For example, writing an article about “Python Generators” is definitely more evergreen than writing an article about “What’s new in Python 3.6”.
The reason is because evergreen articles are a better investment of your time because these will keep bringing new readers to your blog for years and years to come whereas non-evergreen articles will only be relevant for a shorter period of time.
3. Write amazing articles
This is actually crucial.
Honestly, Google is doing an amazing job bringing the best articles to the top of their search results (most of the time).
This means that you should focus on writing articles that are better than those of your competition.
If you do that, you will be fine. It is really that simple. Quality over quantity.
One final thing, be patient.
Sometime it can take up to 6 months before a new article on your blog can bring any traffic from Google.
SEO is a marathon not a sprint but if you actually enjoy writing and teaching people about programming and computer science, then being patient isn’t going to be that hard.
Starting a programming blog can be very useful for you on so many levels.
To be able to start blogging right away, you need to pick a good web host, a brandable domain name, a visually appealing WordPress theme, and install some plugins that will help you with writing code snippets in your blog.
You also need to learn about the art and science of promoting your blog, whether through SEO or social media.
Good luck with your blog 🙂