Archimage’s Continuity

Rain. Cold. It’s not very springlike today.

Time to make lunch.

It’s time to switch gears for a bit.

I’m slowly replacing all of the switch statements that drive the app. There is still more to do, but I haven’t broken anything. Code is more compact and linear as a result. #swift #swiftui #writing

So much for spending time outside. It’s raining again. #netde

Happy National Coconut Cream Pie Day

I woke up this morning realizing that I can use my struct to not only eliminate switch/case but also else/if statements in my code. Now I’m on a mission. #swift #ios #iPadOS #programming

Good morning. Have a happy Saturday. Time for the ceremonial coffe.

Don’t forget that when the sky is black with clouds, the blue sky is still behind it. #life #success

Photo up: photosaday.weebly.com #photography

I think I deserve a glass of Friday mead.

Anyone doing something fun/interesting this weekend?

You shouldn’t be asking, “How can my company make more money?” You should be asking, “How can my company improve the well-being of its employees and customer/clients?” If you stop competing, you always win. #life #business #success

I’ve got a couple huge state machine in my code that will collapse down to a few lines of code and some dictionaries and simpler logic. I think that’s a good day’s refactoring. #Swift #writing

If you expect everyone to act rationally and consistently, you don’t know much about humans. #life

T’is almost the weekend. Too bad it’s going to be rainy here. That means I have no plans again.

It’s getting to where I want it to be. Time for a long break.

I like it… #swift

Slightly simplified version. Thanks to @dimsumthinking and @bjmillerltd for spotting my original mistake. #swift #refactor

Ok. I got it working with some help from @hankg@mastodon.technology This is my approach to refactor out #switch statements in #Swift: throw the name of the function and its case key into a dictionary. execute the function by key. This example iterates over the dictionary.

My flytrap seems to be thriving. #plants

OK. It’s not as easy as I thought it would be. What am I missing? Why can’t a I do this? Help would be appreciated. Tnx. #swift #programming #iPadOS #apple

OK. How stupid can I be? I just realized I can do this… this simplifies my code a ton. Bye bye “switch” statements. #iPadOS #Swift

Happy No Pants Day Yes, it’s a thing.

Taking time for yourself doesn’t mean doing things you want to do, it means doing nothing and focusing on your mind, body, health, and well-being. #life #success #tao #zen #meditation