Cheating with rounded percentages and floating-point numbers

A picture of Batman dressed in a dark-blueish suit with his tongue pointing out of his mouth as if he's concentrating on something complicated. In the background are a lot of buildings in different shades of colour and some stars in the sky. On top of the whole picture are shiny white maths symbols.

My friends are mean sometimes, but as they were making fun of my maths skills, they also pointed to a valid error on the website. On a specific page of Comics-Outmash, a list of percentages are displayed. They looked totally legit, except that once you added them all up, the total was a little bit more than 100%. This is easy to fix if you’re not afraid of massaging the numbers.

Continue reading

I met with GitHub to talk about Copilot

A few weeks ago, I received an email from a GitHub employee working on Copilot. They wanted to talk to users about their paste experience. I don’t generally participate to surveys (out of laziness and “I don’t have time for this”-ness), but because I like GitHub and had a somewhat disappointing experience with Copilot when I tried it earlier this spring, I decided to share my honest feedback. To my surprise, they got back to me to schedule a call.

Continue reading

Using and testing Vapor Queues

When you’re working on a backend application, you want your response time to be as low as possible, which is complicated when the server has to interact with third party services to send emails, process files and so on. Vapor provides a library that allows you to move this work out of the request’s critical path by dispatching jobs into queues and processing them in the background. Let’s see how to integrate it into a simple project and what are our options for testing.

Continue reading

Adding A Form Inside Another Form In HTML

I recently shipped a new feature on Comics Outmash called “polls”. Each month or so, the admin can open a new “poll period” where people can suggest a title they’d like to read next. Once there has been enough suggestions, the admin flips a switch and the users can vote on the titles they’re interested in reading. Unsurprinsingly, the title with the most votes wins. As part of this feature, I went through a tiny rabbit hole of at least 4 internet searches and discovered that it’s not possible to add an HTML form inside another. Or, is it?

Continue reading

I’m looking for a job as a software engineer

Stunning view of Vancouver, Canada from an elevated vantage point. The foreground features evergreen trees, while the middle ground showcases the city's skyline with its numerous skyscrapers and high-rise buildings clustered near the waterfront. A large suspension bridge, likely the Lions Gate Bridge, connects the mainland to a forested peninsula. The scene is framed by the expansive waters of Vancouver Harbor and English Bay, with distant mountains visible on the horizon under a partly cloudy blue sky.

A few months ago, I announced that I’d decided to leave my position as a software engineer at Apple. After 7 years working on various projects, like Xcode Cloud and that cool hang detection indicator for iOS 16, I felt it was time for me to move on, not without giving myself a few months to rest and hang out with visiting family first. Now, I’m ready to start working again, so I’ve started looking for a position as a senior/staff backend software engineer.

Continue reading