Profile cover photo
Profile photo
Federico Lucignano
89 followers -
Convoluted thoughts of a baroque mind
Convoluted thoughts of a baroque mind

89 followers
About
Federico's posts

Post has attachment
Photo

Marty: Hey Doc! Are we in the alternate 1985? They seem to have gotten C right... Look!

package main

import (
    "fmt"
    "strings"
)

func WordCount(text string) (counters map[string]int) {
    counters = make(map[string]int)

    for _, word := range strings.Fields(text) {
        counters[strings.ToLower(word)] += 1
    }

    return
}

func main() {
    fmt.Print(WordCount("You tell me what you think and I will tell you what I think that you are thinking"))
}

Doc: No, Marty! You just stumbled upon a piece of Go. How do you like it?

#golang  is #awesome  

This is leadership in language design:

"Some have argued that the lexer should do lookahead to permit the brace to live on the next line. We disagree. Since Go code is meant to be formatted automatically by gofmt, some style must be chosen. That style may differ from what you've used in C or Java, but Go is a new language and gofmt's style is as good as any other. More important—much more important—the advantages of a single, programmatically mandated format for all Go programs greatly outweigh any perceived disadvantages of the particular style"

#golang   #codingstandards  

Post has attachment
Amewdeus

#puregenius #holyshit 

Post has attachment
Because he's batman!

Post has attachment
And that's how SublimeText stopped having a reason to exist...

#opensource 

Post has attachment
EveRy University is the same :)

#ouchthathurts   #truestory  

Post has attachment
Waterworld, 20 years later :)

#shithappens   #hollywoodmovies  

Post has attachment
Just replayed The Room (yay, new Epilogue!), ready to play The Room 2.

#OneColdRainyDay #GamingWeekend 

Post has attachment
Standing desk, the next level :)

http://xkcd.com/1329/

#standup 
Wait while more posts are being loaded