News for hackers. Stuff that matters.
Re:How I write code using Cursor: A review by throwup238 on Tuesday October 29, 2024 @10:39AM (#41984288)
Ask Cursor to write usage and mocking documentation for the most important injected dependencies, then include that documentation in your context. I’ve got a large tree of such documentation in my docs folder specifically for guiding AI. Cursor’s Notebook feature can bundle together contexts.

I use Cursor to work on a Rust Qt app that uses the main branch of cxx-qt so it’s definitely not in the training data, but Claude figures out how to write correct Rust code based on the included documentation no problem, including the dependency injection I do through QmlEngine.

Re:How I write code using Cursor: A review by rubymamis on Tuesday October 29, 2024 @11:01AM (#41984531)
Sounds interesting, what are you working on?

(Fellow Qt developer)

Re:How I write code using Cursor: A review by throwup238 on Tuesday October 29, 2024 @11:09AM (#41984620)
Same thing: https://news.ycombinator.com/item?id=40740017 :)

Just saw you published your block editor blog post. Look forward to reading it!

Re:How I write code using Cursor: A review by rubymamis on Thursday October 31, 2024 @01:03PM (#42008799)
Haha, hi again!

Awesome! Would love to hear your thoughts. Any progress on your AI client? I'm intrigued by the so many bindings to Qt. Recently, I got excited about a Mojo binding[1].

[1] https://github.com/rectalogic/mojo-qt