Monthly Archives: November 2013

Social Network in 30 days – End

I’m ending the challenge today due to lack of progress.
From the last update, I’ve switched from developing the site in Google go to Meteor, for node.js, and then back to Google Go.
The problem will development was that I didn’t devote enough time each day to complete each feature. This made catching up overwhelming and caused me to stress out about the project. It also didn’t help that I was a one man team with a full time job. 🙁
Oh well. I’ll be re-starting this challenge next month. Let’s see what happens.

Larry Battle

I love to program, and discover new tech. Check out my stackoverflow and github accounts.

More Posts - Website

Follow Me:
Twitter

Social Network in 30 days : Day 8 – Day 10

I haven’t had time to work on the site, LinksTeach.me, for sometime now. So what I’m going to do is delay development for 3 days to finish up a few other side projects and complete essential training.
I’ll startup backup on monday and plan to release an alpha version on Nov 11, 2013.

Awesome bash script:

find . -name main.go | xargs -L1 sed -ri "1s/^\/\/.*[^\.]$/&\./"`


The command finds all the files with the name main.go within the current directory.
After which, for each file it adds a dot to the end of the first line if it’s a comment and doesn’t need with a period.
Why is this useful?
`godoc` is a tool for creating documentation for Google Go files.
Example:
Source code for errors
Documentation for errors

`godoc` will use the first sentence as the description for a package. Since I didn’t end the first line with a period, then the entire comment on multiple lines becomes the description for the package.

So when run the awesome bash command above, it corrects the package comment each main.go like so.
Example.

// Example code for Chapter 2.3 from "Build Web Application with Golang"
// Purpose: Creating a basic function


to this.

// Example code for Chapter 2.3 from "Build Web Application with Golang".
// Purpose: Creating a basic function

Larry Battle

I love to program, and discover new tech. Check out my stackoverflow and github accounts.

More Posts - Website

Follow Me:
Twitter