←
Jeff McAffer700 posts
Jeff McAffer avatar

Jeff McAffer

@jeffmcaffer

Long time open source type, now at GitHub doing open source stuff. Father, husband, race car builder/driver, sailor, and apparently, traveller.

◷ Joined November 2009▧ 69 Photos and videos
Jeff McAffer avatar
Jeff McAffer@jeffmcaffer·29 Jun 2020

Long weekend project phase 1's a go! Dumpster ordered. 10 yards of gravel ordered. 5 pallets of wall blocks. ordered. Bobcat ordered.

Jeff McAffer avatar
Jeff McAffer@jeffmcaffer·13 May 2020

I'm keeping an open mind and am only a couple weeks in so who knows where I'll end up. Need to see more of the system come together... What's your experience been like?

Jeff McAffer avatar
Jeff McAffer@jeffmcaffer·13 May 2020

And I don't quite buy the perf argument. Of course, I agree that map[<your_type>]struct{}{} is faster than map[interface{}]bool but we're talking nanoseconds here. Important in some cases but in the face of doing network calls that take 100s of ms, not so much.

Jeff McAffer avatar
Jeff McAffer@jeffmcaffer·13 May 2020

Like Sets. There are set modules but word is, the idiomatic way is to write your own using map[<your_type>]struct{}{}. Coming from Java/JavaScript/TypeScript where quite literally "there's a module for that", it's a bit jarring. Pretty sure there's a better use of my time.

Jeff McAffer avatar
Jeff McAffer@jeffmcaffer·13 May 2020

That's all fine in certain contexts (e.g. systems level) but I'm finding it disruptive to the code flow (both the code itself and the flow of code out of my head) when working on business logic. I'd love to be wrong but am having trouble loving the language/ecosystem.

Jeff McAffer avatar
Jeff McAffer@jeffmcaffer·13 May 2020

I've been messing about with @golang recently. Lots of great stuff but the term "rocks and sticks" keeps coming to mind. Could totally be me but, lots of basic things appear to be missing. I keep hearing "the idiomatic way is to <explanation boiling down to write it yourself>"

Jeff McAffer avatar
Jeff McAffer@jeffmcaffer·29 Apr 2020

So I'm sitting here working on something new for @github and I literally muttered to myself "holy crap, this is insanely powerful". Will be a little while but I can't wait to share this.

Jeff McAffer avatar
Jeff McAffer@jeffmcaffer·27 Apr 2020

As expected, the opposite happened when raising the right side. The effect was less because the tire had slowed -- a bit hard to see. Now I'm wondering what else we can simulate...

Jeff McAffer avatar
Jeff McAffer@jeffmcaffer·27 Apr 2020

So we mounted a hub on a 1/2" rod and then a wheel to the hub, suspended that with a pulley on one side and away we go. Notice that with the tire spinning "towards me", lowering the right side straight down causes the wheel to want to turn towards that side.

Jeff McAffer avatar
Jeff McAffer@jeffmcaffer·27 Apr 2020

What to do when you can't race for real?! Simulate track physics in the garage one bit at a time... Car wheels are too heavy to do the classic bike wheel and turntable gyroscopic forces experiment...

0:32