Software Dev

New Wisdom On Configuring Xcode Projects for Different Environments

It seems like it would be simple and/or obvious how to configure your app to point to different environments (dev, QA, prod, etc.). But alas, it is neither simple nor obvious.

Here is some easy, practical wisdom that breaks down five different ways to configure different environments in an Xcode project. Spoiler: it finally lands on Script Phases. ๐Ÿคท๐Ÿปโ€โ™‚๏ธ

๐Ÿ‘‰ How to configure Xcode projects for different environments

First of all, โ—๏ธย do not use targets for environmental configuration purposes

Via iOS Dev Weekly.

Austin

Real Rail for Austin!

During the presidential election last month, I was surprised to see that there was also a local transit plan called Project Connect on the ballot. I kind of assumed it would fail since there was a pandemic on, traffic was way down, and people were avoiding crowded spaces. ๐Ÿคท๐Ÿปโ€โ™‚๏ธ

So the headline on the latest edition of Community Impact shocked me.

Historic public transportation expansion on its way to Austin

And it passed by a hefty margin. ๐Ÿ’ช๐Ÿป

I was farther stunned to see that this is not some BS ๐Ÿ’ฉ rail system built on existing freight rail lines (wtf?) but a real urban rail system actually running through the heart of the city where people can truly ditch their cars forever and hop on the train. This line runs right down South Congress, where I can walk to it to get to downtown, UT, or the airport entirely car-free. ๐ŸŽŠ

This project can help make the city more human-oriented, more convenient, reduce the need for all that ugly asphalt, take some pressure off those gridlocked streets, and help the planet. For about $25/month I’m soooo in.

Maybe one day Austin will look a little bit like Lisbon. ๐Ÿคท๐Ÿปโ€โ™‚๏ธ

Music

“So I died and went to work…” ๐ŸŽถ

A great song by Neko Case about burning yourself out over the people…

Tired of trying to make everyone happy
Too tired to sing your own songs

Reclaiming your energy…

Do you wish you could stop everything
And take back your love
Say you’re sorry you gave it up so easy
And cry like you’re trying to be born

And getting to the work you were always meant to do.

So I died and went to work
So I died and went to work

Thank you, Neko. ๐Ÿ™

Software Dev

The Elm Architecture

I’ve been trying to understand the Elm Architecture for a new iOS project. I kept reading over this article and thinking, “Wait a minute…. What’s the catch here? This seems too simple.” ๐Ÿง

๐Ÿ‘‰ The Elm Architecture: Simple, yet powerful โ€“ An overview by example

I like that this architecture can be explained in a very short post with examples.

The beauty of The Elm Architecture lies in its simplicity.

That article is simple but assumes a web UI and explicit mentions HTML ๐Ÿ™„. Here is a funnier and more useful article about Elm for iOS. ๐Ÿ˜‚

๐Ÿ‘‰ Elm architecture in iOS: Why you donโ€™t need shit like RxSwift or MVVM

Elm architecture can be described as follows

msg -> Model -> View -> msg

I even made my own diagram just to make sure I “got” it. The devil is in the details, but I think this is right. ๐Ÿคท๐Ÿปโ€โ™‚๏ธ It definitely seems simpler than VIPER.