Please turn JavaScript on
header-image

dave1

Subscribe to Dave1’s news feed.

Click on “Follow” and decide if you want to get news from Dave1 via RSS, as email newsletter, via mobile or on your personal news page.

Subscription to Dave1 comes without risk as you can unsubscribe instantly at any time.

You can also filter the feed to your needs via topics and keywords so that you only receive the news from Dave1 which you are really interested in. Click on the blue “Filter” button below to get started.

Title: Dave1

Is this your feed? Claim it!

Publisher:  Unclaimed!
Message frequency:  0.05 / day

Message History

Here’s a small quiz derived from some incorrect advice from an AI coding assistant.

package main import ( "fmt" "time" ) func main() { fmt.Println(time.Now()) defer fmt.Println(time.Now()) time.Sleep(10 * time.Second) }

This program prints two timestamps; will they be

a. Roughly the same time (ie, the same second)
b. Roughly 10 seconds apart<...


Read full story

Here’s a silly example extracted from real code.

package main import "fmt" type Location int const ( KITCHEN Location = iota BATHROOM ) type Ingredient struct { name string location Location } func (i *Ingredient) Location() *Location { return &i.location } func main() { sausage := Ingredient{name: "bratwurst", location: KITCHEN} legume := Ingredient{n...

Read full story