Copy
View this email in your browser
Hi <<First Name>>,

Here are excerpts from the latest posts from my blog since your last delivery. Enjoy!

Building a Rich Domain In Iterations

published on Oct 17, 2019 11:23 am
I'm currently revising code from 3 years ago. The result is a replica of the old stuff – updating isn't worth the effort, it's written in Swift 3 and the code base is small, so I rewrite it and copy useful parts over. The public interface already differs from what I wrote 3 years ago. In the first step, I translated the old code but took what was there. For example, back then I had a DateRange type. Swift Ranges were less powerful back then, so I added a couple of convenient methods that I can now replace with the standard library protocols instead. So I demoted the type to typealias DateRange = Range<Date>. I also had a Date type (this was before NSDate dropped the "NS") that I renamed to NormalizedDate. In the domain I work on, a date isn't a date-time-combination, but just the year, month, and day. Confusingly, this type was a mere wrapper for NSDate that dropped the time information for quick comparisons.
Read in browser »



 

Recent Articles:

Prevent Emacs Compilation Window From Displaying Other Content
Quit and Close Emacs Special Windows Like Help and Compilation Results
Emacs Settings for PHP Development
The Archive Update Hiatus Due to a Severe Bug in Xcode 11
Starting PHP Development in 2019: Project Setup and Dependencies

Have a great rest of your day!
Copyright © 2019 Christian Tietze, All rights reserved.


unsubscribe from this list    update subscription preferences 

Email Marketing Powered by Mailchimp