Can Burak Sofyalıoğlu

@canburaks

Software engineer building reliable Python systems. FastAPI, Django, state machines, React, Search and AI agents.

Commit activity

24 commits in the last 30 days

longest streak 9 days

469 / 1,000 XP531 XP to wheel

Sun, Nov 15

⚡String interning in Python The first one is folded at compile time into the same interned constant. The second is built at runtime, so it's a new object. sys.intern puts it into the shared table, where dict lookups can match keys by pointer before comparing characters.…

Tue, Nov 10

⚡I'm open-sourcing SpacePane for macOS today. Navigating static-linking rules and sandbox limits across 76+ file formats taught me a lot about Quick Look internals, so I'm sharing the full Swift/AppKit codebase with the community. https://spacepane.com/
spacepane.comSpacePane — Press Space. See inside anything.Quick Look previews that show what's really inside a file: hidden text flagged, secrets concealed. Local, read-only and private.
If I can give you some feedback: I’m viewing the website in German. You’ve translated everything there using the formal form of address ("Sie"). I find that a bit jarring, since it makes the text seem somewhat distant and "overly professional", as if you were trying to sell me an…
Getting macOS Quick Look extensions to play nice with App Sandbox entitlements across that many file formats is no joke. Flagging hidden text and secrets directly in the preview pane is super practical.
congrats on the release. static linking rules plus macos sandbox sounds like a genuinely fun week of entitlements

Sun, Nov 8

After upgrading to macOS 27.3 Beta, After upgrading to macOS 27.3 Beta, Mullvad VPN stopped working, especially its tunneling feature. Here’s a patch to fix it. vpn was broken. Its tunneling feature, especially, doesn't work. Here is the patch you can fix it.…
⚡ How to permanently stop Spotify from opening at login on macOS? Spotify on macOS still opens at login even after removing it from Login Items and running launchctl disable. Reason: ● It uses an embedded helper (Spotify.app/Contents/Library/LoginItems/StartUpHelper.app). ●…
I had to do something similar to stop Microsoft Teams opening at startup. There were like 4 helpers in various places. So annoying when the settings UI doesn’t list it as a startup item or in the “open in background” bit
Step 1: Uninstall Spotify 😅 I am only half joking. I have it installed on my phone but haven't had it installed on a laptop for years now.
if you have to do all these things instead of one setting inside the app then it's a trash app.

Sat, Nov 7

Fri, Nov 6

⚡How to swap a function's body at runtime in Python? A function is a thin wrapper: code object + globals + defaults + closure. The code object is just compiled bytecode and can be shared or replaced. This is how some hot-reload and mocking tools work.…

Thu, Nov 5

Suppose a timeout can be an integer or None. That does not make the argument optional. None means no timeout, but callers must make that choice explicitly. Those are two separate API decisions. - The union controls accepted values - A default controls whether callers can leave…

Wed, Nov 4

💎Overload decorators are really handy for type hints that get a bit complicated. 🖍️Suppose I need a method to send an email with content from either the text itself or a file path. However, strictly speaking, either of those parameters must be provided. More details can be…
Because binary floating-point can introduce rounding errors, use decimal arithmetic when financial precision or exact arithmetic invariants matter. It’s more human-friendly and integrates seamlessly with Python.…

Tue, Nov 3

⚡Cloudflare Email Routing is one of the most underrated free tools. It lets you receive mail at any subdomain and forward everything to a single inbox. Pair it with a free SMTP service (Resend, Brevo, or Mailgun) and you can also send from those addresses. Result:…
Cloudflare DocsCloudflare Email ServiceSend transactional email and route incoming email with Cloudflare Email Service. Arbitrary-recipient sending requires Workers Paid, while routing supports Workers Free and Paid.

Mon, Nov 2

That's @canburaks's root commit.