579 karma · joined May 22, 2012 (14y ago) · 165 submissions
comment 3mo ago · link · parent
I'd much prefer some more time spent building a solid editor which is why I switched to Zed early on in it's development cause I was frustrated and tired of VSCode. But saying that ever since Zed AI I've felt more and more frustrated with Zed and it's quality is starting to lack?
comment 4mo ago · link · parent
5.
Jjw: A Workspace Manager for Jj(aran.dev ↗)
2 points · by aranw · 6mo ago · discuss
6.
I built a reference Go project (and taught an AI agent to clone it)(aran.dev ↗)
1 points · by aranw · 6mo ago · discuss
comment 7mo ago · link · parent
comment 9mo ago · link · parent
I'll email this over to my local bakery on Monday for my lunch order might need to make some modifications for there build environment
comment 10mo ago · link · parent
Edit: Looking at the go mod file I noticed github.com/mattn/go-sqlite3 which I think is a C wrapper library so I'm assuming you rely on CGO for compiling
comment 11mo ago · link · parent
When you mock a CRM client to return one account, you're assuming it always returns one account, that IDs have a particular format, that there's no pagination, that all fields are populated. Each assumption is a place where production could behave differently whilst your tests stay green
Your contract tests use cached JSON fixtures. Salesforce changes a field type, your contract test still passes (old fixture), your mocks return the wrong type, production breaks. You've now got three test layers (contract, mock scenarios, E2E) where two can lie to you. All your contract and mock tests won't save you. Production will still go down
I have zero confidence in these types of tests. Integration tests and E2E tests against real infrastructure give me actual confidence. They're slower, but they tell you the truth. Want to test rate limiting? Use real rate limits. Want to test missing data? Delete the data.
Slow tests that tell the truth beat fast tests that lie. That said, fast tests are valuable for developer productivity. The trade-off is whether you want speed or confidence
comment 11mo ago · link · parent
Same I have zero confidence in these tests and the article even states that the tests will fail if a contract for a external service/system changes
comment 11mo ago · link · parent
comment 11mo ago · link · parent
18.
Math Predicting the Death of Nations(youtube.com ↗)
1 points · by aranw · 11mo ago · discuss
comment 11mo ago · link · parent
comment 11mo ago · link · parent
Need to start reconsidering the approach now and looking for alternatives
comment 11mo ago · link · parent
comment 1y ago · link · parent
Thanks for that feedback! Really appreciate it and glad you liked it. I'm planning to try get a series of posts written about the project and also CUE.
You are right I could have used adapters and/or interfaces. The main reason I went with CUE was to keep the transformation logic declarative and in one place. With adapters, I'd still need to write Go code for each sensor type
The goal I had was to minimise the amount of changes I have to make in my Go code. With my current approach I have minimal Go changes and just additions to my CUE schemas. When firmware updates land or I add new sensors, I update the schema and the generic processing code just works.
The CUE schemas are also portable. I can take them to other projects without trying to make generic reusable Go code that works across multiple codebases. The schemas double as documentation too, so if someone asks what a sensor reports, I point them at the CUE file rather than explaining how various structs fit together.
Honestly I also just wanted to try building something with CUE and this felt like a good use case for it