Software Dev

DI with Interface Builder

In this dated but thorough Objective-C dependency injection article is a reference to a rather old article asserting that Xcode’s Interface Builder is their “favorite di framework of all time”.

👉 Dependency Inversion Principle and iPhone

I keep feeling frustrated by the added complexity and extra code involved in dependency injection. It can make simple code complex very quickly. So I really love the idea here, which is that Xcode is perfect for DI because it lets you literally just wire up things visually with no extra code. It goes on to make the case for using Interface Builder to wire up more than just UI elements and use it for just about anything.

What’s great about it is that it doesn’t just generate a bunch of code, but instead “freeze dries” real objects to be instantiated when the program loads.

This article is so old that the images don’t load, but I love the ideas and the reminder that DI does not have to involve a bunch of extra code. Thanks to iOS Dev Weekly for the initial link. 👆

Travel

Angels Flight Railway

This #AccidentallyWesAnderson Instagram post caught my eye.

Next time I’m in LA, I’m going to check out this super-short and super-cute railway. It looks like it covers about one block in downtown LA. It’s been around over 100 years, minus a hiatus in the 1970’s and 1980’s due to some “urban renewal”.

https://angelsflight.org

View this post on Instagram

________________________ Hey Adventurers! 👋 We have landed and are officially dipping our toes into the expansive, diverse & amazing city of Los Angeles ☀️ For the next three days we will be exploring different neighborhoods and sights thanks to your amazing suggestions ❤️ Today we are discovering Downtown LA – take a peek at our story and see where we are heading (and if you see us wandering, come say hi 🤗) ______________________________________________________ Angels Flight | Los Angeles, California | c. 1901 • Angels Flight is a landmark narrow gauge funicular railway in the Bunker Hill district of Downtown Los Angeles, California. It has two funicular cars, Sinai and Olivet, running in opposite directions on a shared cable on the 298 feet (91 m) long inclined railway • Built in 1901 with financing from Colonel J.W. Eddy, as the "Los Angeles Incline Railway", Angels Flight began at the west corner of Hill Street at Third and ran for two blocks uphill (northwestward) to its Olive Street terminus. During operation in its original location, the railroad was owned and operated by six additional companies following Colonel Eddy • The railway was closed on May 18, 1969 when the Bunker Hill area underwent a controversial total redevelopment. The landmark was dismantled during the “urban renewal” of the area and it was not until the early 1990s that the Railway was refurbished and relocated a half-block south from its original location, reopening adjacent to California Plaza in 1996 • After a few re-openings and closings, along with an accident and derailment, safety upgrades were made to the doors of the cars, and an evacuation walkway was added adjacent to the track. Angels Flight reopened for public service on August 31, 2017 • 📷: @decafbutter ✍: @wikipedia + @AngelsFlightRailway • #AccidentallyWesAnderson #WesAnderson #VscoArchitecture #Vsco #AccidentalWesAnderson #AngelsFlight #LosAngeles #California #DiscoverLA #AccidentallyLA

A post shared by @ accidentallywesanderson on

Quotes

“Comparison is the thief of joy”

I find it annoying when someone says “This BBQ isn’t very good” just because it’s not Franlkin’s. Hey, Rudy’s is still good BBQ, and I was so happy to find it when I moved back to Texas! Yum!

Or “This beach isn’t nearly as nice as Hawaii.” Hey, Galveston is still a beach! Sand, waves, wind. Heaven.

Just because there might exist some other version somewhere that is (arguably) better doesn’t mean this one isn’t good/fun/yummy. You’re only hurting yourself, people! So I like this Teddy Roosevelt quote.

Comparison is the thief of joy

Teddy Roosevelt via Soup Peddler