290 karma · joined Sep 6, 2021 (5y ago) · 56 submissions
comment 3mo ago · link · parent
comment 3mo ago · link · parent
https://commons.wikimedia.org/wiki/File:USASCII_code_chart.s...
comment 4mo ago · link · parent
Also, if error wrapping hurts you so much (I don't use it), just implement a project-specific error that works how you want. This could be something that is JSON serializable, that captures a line number at each return site, etc. It will take like 10 minutes to get your project's errors working exactly how you want.
My projects usually do -
log.SetFlags(log.LstdFlags | log.Lshortfile)
// ...
if err != nil {
log.Println(err)
return errors.New("Error doing the thing.")
}
That essentially logs a stack trace with line numbers up the whole error chain, each return adding the outer context. I only ever use errors.Is for os.ErrNotExist.comment 4mo ago · link · parent
comment 6mo ago · link · parent
When using Claude Code or Codex, that is all gone. Claude Code is extremely eager to reach the end goal to the point that it feels like a fever dream to write code with it. In the end, I have low confidence about edge cases and fit into the project's architectural and design goals.
On top of that, I enjoy programming, reverse engineering, etc. and I feel that the LLMs, while able to solve some problems or deliver some features, take that fun away. I'm trying really hard to find a workflow with them that I'm confident in, but I fear that workflow is just chat, search, and being a rubber duck for my thoughts.
comment 6mo ago · link · parent
comment 9mo ago · link · parent
comment 10mo ago · link · parent
comment 10mo ago · link · parent
It was faster to rg to search files, drop into WSL and run find for file name searches. The start menu was laggy, explorer was laggy (open up a folder with a couple dozen OGG files and it won't render for a solid minute). Mystery memory usage from privileged processes I had little control over. Once I realized that the one game I play (Overwatch) ran on Linux I decided to swap back.
I installed Linux Mint earlier this year and I've been extremely happy. The memory consumption is stable and low, and if something is broken I have the control to fix it. It just feels so much less hostile. This is largely possible thanks to the work Steam has done with Proton. The last real barrier is kernel level anti-cheat which prevented me from trying out this years Call of Duty. Oh well!
comment 12mo ago · link · parent
Tauri is much slower to build, I think this is just the nature of Rust though. Stats here. [1]
1. https://github.com/Elanis/web-to-desktop-framework-compariso...