How Is ‘Go’?

Some time back, I said I was revisiting some old friends. One of them, was the Go Programming language by Google. Well, things have been awesome, I have been learning quite a bit of ‘go’ (for Go Lang). I haven’t done any projects yet, but my next project will definitely be in ‘go’.

I am currently reading the language specification again, after watching a ton of videos and doing some simple programs.

For example, this would be the conical “hello world” programing:

package main
import "fmt"
func main(){
     fmt.Println("Hello, world")
}

 

Pretty readable isn’t it?

Well, what about something more modern? What would an “hello world” look like for the web? Yup, you got it, an application that when run, behaves as a web server that says “hello, world” when you connect with your web browser.

Here it is, not too bad heh?

package main
import (
     "fmt"
     "log"
     "net/http"
)
func handler(w http.ResponseWriter, r *http.Request) {
      fmt.Fprintf(w, "Hello, world")
}
func main() {
     http.HandleFunc("/", handler)
     log.Fatal(http.ListenAndServe(":8080", nil))
}

Proverbs and The Presidential Campaign

Recently, I found myself thinking of two proverbs; “empty vessels make the most noise” and “the squeaky wheel gets the oil”. These to proverbs, would seem to be far apart from each other, but they seem to come together well for one person in particular.

Let’s take the first, “empty vessels make the most noise”. That seems to fit one presidential candidate very well. This particular candidate is particularly loud and obnoxious, more so than all the others. It is the one and only Donald Trump for the 2016 presidential race.

But is Donald Trump really an “empty vessel”? It doesn’t matter that a lot of people think so, but it seems true that he doesn’t have anything of substance to say . His policies are weak or non-existence. He is given to screaming, name calling, and insulting others than having making factual points. He is by far the most narcissistic and egotistical of all the candidates.

Then there is the idea of “the squeaky wheel get the oil”. It would make send for an coach team master to oil the squeaky wheel. How does this apply to Donald Trump? Again, he make the most noise, being an empty vessel. And he is rewarded by the media with more media coverage.