Christian Tietze

  • Blog Posts
  • Writing
  • Apps
  • Work With Me
  • Contact

It’s Never Just a Something

Jul 4th, 2024

Primitive Obsession is not called “Primitive Preference” for a reason: we can find ourselves clinging to primitives like addicts, even when every aspect of our project nudges us, hints, and screams that we should be doing something different. It’s never just “a string”. It’s never just “an integer”.

Continue reading …

  • ∞ Permalink
  • • Comments
  • • Tags:
    • WYSIATI
    • value
    • primitive-obsession
    • modeling
    • domain

Logical Ranges and Character Ranges

Jul 3rd, 2024

In my recent post titled “The Rake and Its Prongs” I introduced a function towards the end, called NSRange.isValidInsertionPointLocation(at:). It’s used to consider the after-end location as part of the range.

Continue reading …

  • ∞ Permalink
  • • Comments
  • • Tags:
    • declarative-text-kit
    • primitive-obsession
    • editor

Contact • Newsletter • Blog Feed • /feeds • /now • /uses • @ctietze@mastodon.social • Privacy & Legal Information

Except where otherwise noted, content on this site is licensed CC BY-SA 4.0.

As an Amazon Associate I earn from qualifying purchases. This e.g. applies to links to Amazon.com.