When trying to get your team (or yourself) to be more proactive pay attention to the language your direct reports, peers or upper managers use. Below is a short list of disempowering phrases:
by Tim Peters
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
I was recently asked by a friend how one manages a team. I haven’t considered it before; honestly, I just do what I do almost out of habit. So I gave them what I felt was an unsatisfactory response. Thinking more on it though I realize that there is a method that I do follow, so I…
When you are working with functions in Go it is likely that you’ll want to handle bad input and report this out in some fashion. This is where the errors package comes into play.
errors
Go (or Golang) is an open source, general purpose programming language developed by Google. Version 1.0 released in 2012, it wasn’t until probably last year that it has skyrocketed in popularity. The TIOBE index (a ranking of programming languages by popularity) shows its current rank as…
Go has an interesting way to alias enumeration values using the iota keyword. Iota helps increment integer values inside your block or declaration. Consider the following code:
iota
type Gender int
const( UNKNOWN Gender = 0…
A new feature introduced in Ruby 2.0, keyword arguments makes having to pass an options hash into a method a thing of the past.
Before Ruby 2.0 you would commonly see a pattern like this:
def say(options = {}) message =…