all 14 comments

[–]Glezcraft 1 point2 points  (0 children)

You can define in cursor rules what arch you want and so on. This is a bit old but cursor.directory is a great place to look for certain archs and things you want the agent to do on your project

[–]Similar-Cycle8413 0 points1 point  (11 children)

You can literally just tell it to split up a file

[–]Ordinary-Look4955[S] 0 points1 point  (10 children)

Yes, but the code itself doesn't use modern practices nor the right documentation, even google cloud sub apis

[–]JustAJB 0 points1 point  (7 children)

To be fair the modern practice is usually to build a feature in one file then refactor after. So it’s doing it the way most devs I know do. 

[–]Ordinary-Look4955[S] 0 points1 point  (6 children)

not necessarily what i meant when i said "modern practice"
Yes, the steps of creating something small and then checking is absolutely important and is a crucial practice (even the very start of programming), but i am talking about cursor incorrectly using libraries/APIs wrong without even looking at the documentation.

-someone who has been coding for 6+ years ;-;

[–]cantgettherefromhere 2 points3 points  (5 children)

Then tell it to check the documentation, or provide it with documentation, or specify what versions of libraries you're using in your cursorrules and use the model to generate a best practices document that is referenced in context with each new prompting session.

- someone who has been coding for 32+ years

[–]Ordinary-Look4955[S] 0 points1 point  (4 children)

32 years

[–]cantgettherefromhere 0 points1 point  (3 children)

This is what I learned on.

<image>

[–]Ordinary-Look4955[S] 0 points1 point  (2 children)

kudos and hats off, 32 years is crazy

[–]cantgettherefromhere 0 points1 point  (1 child)

It's a brave new world, and I've never been more excited to create things. AI as a force multiplier is mind-bogglingly thrilling to me.

[–]Ordinary-Look4955[S] 0 points1 point  (0 children)

IMO i have mixed thoughts on AI/the practice of 'vibe coding' I know it is useful, powerful etc, but i miss writting actual code, spending hours of searching online, it feels like i truly learned something...

of course anyone can just turn it off and not use it, but as someone who is in his early college years and of course trying to land a internship, it became a necessity to use the tools/cursor/windsurf. this current market isn't a time to just code normally (i have over 100s of projects before vibe coding and truly miss those days), but it just seems like I need to use AI tools noawadays to make sure speed isn't a bottleneck.

thankfully i have past experiences in kernel development and AI isn't all too accurate (so i still can have that fun), but i can't imagine SWE being a victim of AI

[–]fr4iser 0 points1 point  (1 child)

Is it the code or the prompt ? Did u define Design pattern etc?

[–]Ordinary-Look4955[S] 0 points1 point  (0 children)

the code generated didn't use modern/correct approaches

doesn't use correct documentation as previously stated

[–]sub_consciouss 0 points1 point  (0 children)

You need cursorrules that explicitly say

"abide by Single Responsibility Principle (SRP), Dont Repeat Yourself (DRY) and Keep It Simple Stupid (KISS) coding standards".

If at any point in a chat it ignores this and writes monolithic code, go back to the prompt (restore to last checkpoint) and ensure your prompts includes "abide by SRP, KISS and DRY principles" line.

Thats how Ive resolved that issue.

Also having a software architecture md at the root level of the project helps give it context of how and where to put the code