top of page

The hunt for perfection

Writer's picture: Philipp HiestandPhilipp Hiestand



Whenever I write code, I encounter those small decisions that drive me crazy. For instance, I recently examined two objects from different #APIs. They named their updated fields slightly differently (one as “updated_on” and the other as “created_at”). Despite this difference, both properties served the same purpose.

I faced a question: Should I develop a function that iterates over the received objects, searching for the correct property names, and then use those names for further processing? Alternatively, should I create two separate loops? For sure during my bloggy though dump I just put more pressure on me to change for a single iteration over the two objects.

“As decisive as a kid in a candy store.”

Imagine the internal struggle: gummy bears or sour patch, chocolate bar or popcorn? Life choices are hard, especially when there’s a rainbow of options.

26 views0 comments

Recent Posts

See All

Avoiding Management Deadlocks

In your professional life, you may encounter decision blocks where two managers shift responsibility from one person to another. As a...

AI China vs AI USA

The information war is reaching new heights. With new leadership in America and globalization being tested (Tariff War), we see the...

Monopolistic tactics and deleting data

It's been now more than 7 months, several emails and multiple phone calls since my first interaction to delete my data on Meta products....

Comments


©2024 philipphiestand.ch
My blog is about technology, security, sustainability and my ideas to combine those elements into digital solutions.

bottom of page