News for hackers. Stuff that matters.
Re:How I write code using Cursor: A review by dep_b on Tuesday October 29, 2024 @09:40AM (#41983746)
For me it's the same. It's usually just some hallucinated garbage. All of these LLM's don't have the full picture of my project.

When I can give them isolated tasks like convert X to Y, create a foo that does bar it's excellent, but for unit testing? Not even going to try anymore. I write 5 unit tests manually that work in the time I write 5 prompts that give me useless stuff that I need to add manually.

Why can't we have a LLM cache for a project just like I have a build cache? Analyze one particular commit on the main branch very expensively, then only calculate the differences from that point. Pretty much like git works, just for your model.

Re:How I write code using Cursor: A review by scosman on Tuesday October 29, 2024 @09:45AM (#41983785)
With Cursor you can specify which files it reads before starting. Usually have to attached one or two to get an ideal one-shot result.

But yeah, I use it for unit testing, not integration testing.

Re:How I write code using Cursor: A review by ssijak on Tuesday October 29, 2024 @01:28PM (#41987077)
"It's usually just some hallucinated garbage. All of these LLM's don't have the full picture of my project."

Cursor can have whole project in the context, or you can specify specific files that you want.

Re:How I write code using Cursor: A review by dartos on Tuesday October 29, 2024 @04:19PM (#41988896)
> Cursor can have whole project in the context

Depends on the size of the project. You can’t shove all of google’s monorepo into an LLMs context (yet)

Re:How I write code using Cursor: A review by dep_b on Wednesday October 30, 2024 @04:59AM (#41993058)
I’m looking at 150000 lines of Swift divided over some local packages and the main app, excluding external dependencies
Re:How I write code using Cursor: A review by azan_ on Wednesday October 30, 2024 @08:02AM (#41993952)
Do you have 150000 lines of Swift in YOUR context window?
Re:How I write code using Cursor: A review by dep_b on Thursday October 31, 2024 @06:39AM (#42005404)
I know how to find the context I need, being aided by the IDE and compiler. So yes, my context window contains all of the code in my project, even if it's not instantaneous.

It's not that hard to have an idea of what code is defined where in a project, since compilers have been doing that for over half a century. If I'm injecting protocols and mocks into a unit test, it shouldn't be really hard for a computer to figure out their definitions, unless they don't exist yet and I was not clear they should have been created, which would mean that I'm giving the AI the wrong prompt and the error is on my side.

Re:How I write code using Cursor: A review by cutemonster on Wednesday October 30, 2024 @05:05AM (#41993088)
> Why can't we have a LLM cache for a project just like I have a build cache? Analyze one particular commit on the main branch very expensively

It's not just very expensive - it's prohibitively expensive, I think.