Follow

Just wrapped up a 4 hour pair programming session with @bass_rock: I helped him hot-wire an Objective-C library I wrote in 2018 to run in our new Swift codebase.

It was exhausting (I could barely form coherent sentences by the end), but also the most fun I’ve had with anything programming related in years.

Very few of my iOS contributions at Mozilla/Pocket ever made it into users’ hands; I’m proud that one of the few things that did was worth fighting for to preserve a little bit longer.

Looking back over the old code was a trip: there were areas that trigged the itch to go back and refine, revise, and refactor, but also broad swathes of really well-factored, well-structured, well-documented code that sung to me out over the years.

@nicole It was some of the most fun I've had coding in a loooooong time. Also that library A++++++, so solid. So excited to use it.

Sign in to participate in the conversation
myna.social

Basic models of flocking behavior are controlled by three simple rules: 1) separation: avoid crowding neighbours (short range repulsion); 2) alignment: steer towards average heading of neighbors; 3) cohesion: steer towards average position of neighbors (long range attraction). With these three simple rules, the flock moves in an extremely realistic way.