Hello World: How to write a tech blog.
This is not the only post you will find on the internet about it, I create a personal post here more as a personal reference.
#Step 1. Motivation driven.
It’s very important in determining which topics you gonna write about, how much depth, what kind of information you gonna provide.
Whenever you wanna show off some code, you can use a html bash:
A hobby, an expert, for fun? Lets assume we have a good motivation beside earning money.
#Step2. Decide context.
That’s always the most difficult part. What should I write, what am I writing, what did I just wrote? …
Define the context before you insert any content in your site.
Plan your topics for a couple of months ahead of time so you’re prepared and have plenty of time to research them.
If you’re serious, you might want to spend more time of content written ahead of time.
Also, don’t forget to maintain the consistency.
Again, highlight some ideas:
#Step3. Do research.
Everyone could become an expert on the internet, well, not everyone could become a researcher in the science realm.
Coz it’s easier to learn others work than to start your exploration as a pioneer.
Even if you know a lot about a subject, you need to make sure to do some quick research to verify the content.
If you are writing as an expert, provide more usecases and implementations.
If you are writing as a researcher, provide more detailed research, as well as reference to papers, links, works or any other sources you have read.
Here is some example for research:
Note that you can simple empty a file with:
#Redirect error output to the file err.log
Our test python script foo.py
:
Error is accessible with 2
while standard output is 1
, so you can redirect error with:
#Redirect standard and error outputs to the same file all.log
#Step4. Set a tone for your blog.
Very important!
Blogs are casual, opinionated authored articles and usually don’t include a lot of complicated terms and language. Even if you’re an expert, try to explain things in terms that a layman will understand.