I make computers do things. Mainly with Ruby, Swift, Terraform, and Kotlin. Professional typo spotter. he/him techhub.social/@sjs CTO at 1SE

Victoria, BC
Sami Samhuri retweeted
SwiftUIのPreview用にStubKit使うの便利すぎる
1
17
84
Sami Samhuri retweeted
That’s why you need to audit every SDK you add to your app. It’s your app, it’s your responsibility. vice.com/en_us/article/z3b74…
21
169
624
Sami Samhuri retweeted
Many of you are suddenly working from laptops all day, maybe on a surface (like a kitchen counter) at a height that misaligns your body. Please take it from me: doing that for a month or more can do very bad things to you. Take it seriously!
5
48
150
Donate if you can. We also have several local food banks that can use help too: redlib.catsarch.com/r/VictoriaBC/comm…
Kudos to the @timescolonist for dedicating their front page today to sharing a way we can directly help those in need in our greater Victoria community. Please donate if you are able, and retweet to spread the word. victoriafoundation.bc.ca/rap…
Sami Samhuri retweeted
I've heard that many indie devs are suffering from lower sales/income because of the current situation, and I want to help. So, rather than running any ads between 30/3-5/4, I'll promote one indie app/day on my site, for free. Send me a DM if you'd like me to include your app 🙂
51
176
789
It’s easy to be snarky about this but maybe the slow wheels are in motion. My expectations are low and I’ll take what I can get.
Government study outlines Canadians pay more for wireless services than other G7 countries mobilesyrup.com/2020/03/05/c…
This isn’t the future I was promised. No minivan, no @OvercastFM 5, no custom JS.
1
Sami Samhuri retweeted
Replying to @ChristianSelig
RKMessage is a class in ResponseKit: developer.limneos.net/index.… Is this supposed to be a class you defined? It probably clashes with the system-defined class because it doesn't have a three letter prefix.
2
1
10
Mapping an optional isn’t any less clear than using `if let`. Don’t mistake familiarity for clarity.
I do use `map` on optionals, but sparingly, `if let` is *way* clearer. Ultimately clear code is the most important thing.
And { $0. name } is somehow “natural”? What does that even mean? Whether it was worth it is subjective but I like it a lot.
let names = array.filter { $0.name } let names = array.filter(\.name) Was it worth adding a language feature to turn the first into the second? It’s yet another thing to learn and the syntax doesn’t seem natural.
I was hoping to hear how a path separator could be confused with a switch. Why doesn’t a command like `dir c:/some/path /o` parse without ambiguity? I guess if a command accepts multiple paths then it’s ambiguous. /o could be a path or an option.
Why does Windows use ‘\’ instead of ‘/’? Larry @osterman explains in today’s #OneDevQuestion. Turns out choices made a long time ago still have ramifications today.
Oh man, coding on the iPad just got one step closer for me. Hard to live without mapping caps lock to control. I wonder if we’ll get emacs navigation shortcuts too.
3
New Law of Software Development: Every program attempts to expand until it alienates its original user-base. Those programs which cannot so expand slowly die because they’re not shiny enough. (apologies to @jwz)
1
Sami Samhuri retweeted
(Separately, I *also* love the way that errors -- like the one here -- include a debug URL. In addition to helping the developer fix things, access patterns to those URLs give us practical telemetry about what's causing confusion so that we can make improvements.)
The Stripe API now makes suggestions in response to misspellings!
4
19
309
Nobody wants to pattern match the result of compare(a, b) to check if it’s .greater, .less, or .equal. I’ll take if a > b every time.
Me too! Almost all of the feeds I subscribe to are individuals. Big sites generate too much volume and I can only handle one or two of those.
Who’s gonna read your personal blog because it has an RSS feed? I’m gonna read your personal blog because it has an RSS feed.
3
Sami Samhuri retweeted
Ruby 2.7.0 is released ruby-lang.org/en/news/2019/1… It introduces * Pattern Matching * REPL (irb) improvement * Compaction GC * Separation of positional and keyword arguments and more! Merry Christmas, Happy Holidays, and enjoy programming with Ruby 2.7!
2
457
727
Sami Samhuri retweeted
Yearly reminder that the App Store Connect API 500s over the holiday break
The App Store connect API has some very specific errors: {"status": "503", "code": "SERVICE_UNAVAILABLE_ERROR.DISABLED_FOR_WINTER_SHUTDOWN", "title": "Winter shutdown enabled.", "detail": "Winter shutdown in progress."}
1
15
31