Better HN
topnewbestaskshowjobs
Log inSign up

mdwhatcott

68 karma · joined Jul 12, 2014 (12y ago) · 19 submissions

Submissions

comment 11mo ago · link · parent

> There are real tigers in those woods.

Nice little nod (on a post about Golf) to Tiger Woods.

comment 1y ago · link · parent

> Congrats to Mike...

It's actually Matt :)

comment 1y ago · link · parent

[flagged]

comment 1y ago · link · parent

From the episode: "You know, your own imagination is far more wonderful than any computer could ever be. You know why--you're a living human being, and a computer is just a machine. Human beings are far more wonderful than machines!" -Fred Rogers

I appreciate that a computer has become such a wonderful tool for realizing ideas that come from my imagination.

comment 1y ago · link · parent

Very cool, thanks!

comment 1y ago · link · parent

> "I build separate, small HTML pages for each “interaction” I want, then I let CSS transitions take over and I get something that feels better than its JS counterpart for way less work."

I'm not understanding how you are achieving the css transitions between what look like new page loads under the hood...Can you elaborate on how that works?

comment 1y ago · link · parent

What exactly do you mean by "part of the same context"?

comment 1y ago · link · parent

Best part: a go.mod with 0 dependencies!

comment 1y ago · link · parent

Yeah, this advice doesn't hold up--even the OP mentions learning the clarinet, which is a B-flat instrument. I also play the clarinet and developed the same ability to detect each note by its timbre. I also think there is a kinesthetic element to each note--the way the instrument vibrates, the back-pressure or resistance you feel while playing, that becomes associated with the timbre the longer you play.

comment 3y ago · link · parent

Also not a bad thing to remain childlike in some ways.

comment 3y ago · link · parent

I knew it was too good to have been original.

comment 3y ago · link · parent

To coin a phrase, "Go 2 considered harmful" :)

comment 5y ago · link · parent

I likewise hope for Michael Fogleman's participation: https://github.com/fogleman?tab=repositories&q=advent

comment 5y ago · link · parent

Check out a few problems from a previous year to get a feel for the difficulty. Generally, the puzzles get harder as the month progresses. Here's last year's calendar: https://adventofcode.com/2020

comment 6y ago · link · parent

The lack of discipline doesn't scale even more than discipline.

comment 8y ago · link · parent

> The other bit of good news is that you can't unknowingly ignore a returned error, like you can with an unchecked exception. The compiler will force you at a minimum to declare the error as _, and tools like errcheck do a good job of keeping you honest.

Actually, we unknowingly ignore returned errors much more often than we think, like when we call a function and opt out of assigning any of the return values to variables. Consider this function, which returns a single value (being an error).

    func Failure() error {...}
You can always choose to call an error-returning function without declaring any placeholder (`_`):

    Failure()
There are several commonly used functions that return errors that are regularly ignored. How about `io.Writer`?

    writer.Write([]byte("Hello")) // returns (n int, err error)
It's quite common to call that function without feeling a need to check on the bytes written or a possible error. Or, consider whether you consistently check the return values of `fmt.Println()`, which also returns `(n int, err error)`...

comment 8y ago · link · parent

It was about 10 years ago that I read Norvig's "10 years" post: https://michaelwhatcott.com/10-years/

comment 8y ago · link · parent

If you feel the global challenge is out of reach, you can setup a private leaderboard for you and anyone you give the 'join code' to, localizing competition and points to your own circle of "AoC" friends: http://adventofcode.com/2017/leaderboard/private

comment 12y ago · link · parent

What are your requirements? I'm one of the owners of the GoConvey project and I'm happy to answer any of your questions about that project. Ginkgo and Goblin are great choices as well.