Skip to main content

  • Instead, senior engineers possess many disparate skills, the exact composition of which varies from author to author.
  • Empirically, though, there are many people who have the title “senior engineer” who do not possess all these skills
Jul 27, 16

"The Public Suffix List is a cross-vendor initiative to provide an accurate list of domain name suffixes"

  • It may seem odd to write 

    req := req 

     but it's a legal and idiomatic in Go to do this. You get a fresh version of the variable with the same name, deliberately shadowing the loop variable locally but unique to each goroutine.

  • Unbuffered channels combine communication—the exchange of a value—with synchronization—guaranteeing that two calculations (goroutines) are in a known state.
  • The rule about pointers vs. values for receivers is that value methods can be invoked on pointers and values, but pointer methods can only be invoked on pointers. 


     This rule arises because pointer methods can modify the receiver; invoking them on a value would cause the method to receive a copy of the value, so any modifications would be discarded. The language therefore disallows this mistake. There is a handy exception, though. When the value is addressable, the language takes care of the common case of invoking a pointer method on a value by inserting the address operator automatically. 

5 more annotations...

1 - 20 of 2217 Next › Last »
20 items/page

Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »

Join Diigo