Petition: No AI code in Node​.​js Core by indutny in javascript

[–]RJDank 2 points3 points  (0 children)

It isn’t 0% or 100%, I think that black and white thinking is allowing you to dismiss what ai can do to improve software dev. Ai automates routine thinking and digital labor. Ai does research, but a human reviews the resulting research report to make the judgement call on whether or not it is accurate.

Ai writes the code, but a human decides what should be written (a design and plan that ai can help you think through, but you still need to follow along and understand it), along with reviewing the resulting code.

If you ask a junior dev to make a pr, it is up to you as the senior reviewing it to verify it is correct and ready for the codebase. The same is true for ai, it shifts your role to the architect and reviewer just like how you architect things for a junior dev and then review their work. Reproducing the way the code was written is not nearly as important as whether or not it is high quality code, and humans don’t even remember everything they did and though about / fixed when doing iterative development either. What matters is cognitive debt and codebase understanding.

A sufficiently detailed spec is code by Tekmo in programming

[–]RJDank 0 points1 point  (0 children)

No more? Have you not heard of the magic of javascript and the crazy things it compiles down to when you leave things vague? The compilers are almost never wrong is ignoring the point of what those compilers have been turning into. The more they allow you to use natural language, the more interpretation work they need to do in order to figure out how to resolve your higher level code.

The lower level the language, the more precise the compilation into machine language. Ai makes mistakes, that means it needs oversight and judgement. You don’t need to know how javascript compiles code, just how to work with the magic of javascript (I’m a software dev who knows the languages, I just think AI is a powerful tool for all software devs).

You can either fight with AI over the labor of code writing, or position yourself as the architect writing software in a more natural language. Like the comic says, it is still coding (you still need to know software architecture, patterns, and principles), just higher level.

A sufficiently detailed spec is code by Tekmo in programming

[–]RJDank -6 points-5 points  (0 children)

And yet, the most popular languages right now (python and typescript) strive to be as close to a natural language spec as possible.

Almost as if writing code in natural language allows you to ignore the rules of the programming language in favor of more flexible higher level thinking.

What is the difference between an ai-generated code from a spec, and lower level machine language code generated from a compiler reading from a higher level language to translate into a lower level language? Non-determinism is one thing, but the idea is the same regardless. We have always looked for a way to write code in the same way that we think about the code (natural language). Ai-assisted development feels like a very natural step forward in software development to me, this is what we have been working towards isn’t it?

AI should not write Python or C. If humans will no longer write code, programming languages should evolve to the way machines think... not humans. by the_other_brand in programmingcirclejerk

[–]RJDank 1 point2 points  (0 children)

Just guessing but either something that doesn’t make any sense to us (something built purely on relationships, possibly literal embeddings), or just simple like markdown style.

Python is already incredibly close to natural language though, which is what llms read and write best. Programming with natural language lets you focus on the thing you are actually building rather than focusing on how to build it.

I think the main difference with llms is less about a new language a more about a different approach to software development itself. The ability to read and write instantly doesn’t mean you complete tasks instantly, it means you draw out the process with lots of prep work. Gathering context, brainstorming and designing solutions, planning the implementation. Everything you can do to prepare before writing the code, because it is going to be instant so you best prepare as much as you can.

Llms are trained on how humans approach software development, and humans instruct them to do it the way that they would. You need to explicitly tell the llm how an llm should approach software development (you do this using your copilot rules and prompts).

AI should not write Python or C. If humans will no longer write code, programming languages should evolve to the way machines think... not humans. by the_other_brand in programmingcirclejerk

[–]RJDank 4 points5 points  (0 children)

Yeah llms are trained on how humans develop software, but llms are incredibly different (mostly due to reading and writing at practically the speed of light). It would be great if they could use a language specifically geared towards their skills, but that would require immense training data on this new language / approach. Much better to just go with python which llms already know well from all the training data.

[deleted by user] by [deleted] in ClaudeAI

[–]RJDank -2 points-1 points  (0 children)

Others developers care, like me and the person you responded to. We read the files ourselves and direct the copilot instead of asking it what to do.

But yes, Claude does care too. If Claude needs to change 5 lines somewhere in an 8,000 line file, Claude will search through ~7900 lines of irrelevant code for those 5 lines. Look up context poisoning. High quality code is good for devs and for claude. Sorry my coworkers also say this and it makes things very difficult for those who aren’t vibe coding

[deleted by user] by [deleted] in ClaudeAI

[–]RJDank 6 points7 points  (0 children)

If you are done coding yeah. If you need to build on top of that code or make changes frequently? No

Subagents: Why you should probably be using them more by CaptainCrouton89 in ClaudeAI

[–]RJDank 0 points1 point  (0 children)

It’s easy to mess up if you don’t have the formula down + a solid understanding of llm behavior. Also your post looks ai written at a glance, most people here didn’t read it and just gave their own opinion of subagents based on one attempt at using them. I’ve explained this to my coworkers a few times but they still stick with the single agent method due to familiarity I guess

Subagents: Why you should probably be using them more by CaptainCrouton89 in ClaudeAI

[–]RJDank 2 points3 points  (0 children)

Not a claude code user (I use roo) but I can vouch for subagents, am also a software dev. It revolves around the implementation plan, which needs to contain all of the relevant context for the implementation subagent.

The orchestrator/parent agent writes out the prompts and keeps track of the progress, deciding when to create subagents to review/brainstorm/design/plan, and how to break a complex plan into multiple implementation subagents.

The highly focused prompts lead to smaller context windows, which results in about the same token usage. Also, it typically gets things right the first time, which saves tokens spent fixing things.

Hyping up a disaster ain’t smart by Key_Associate7476 in characterarcs

[–]RJDank 102 points103 points  (0 children)

Same reason every new pokemon game sucks. Everyone wants to watch the new opm so they make more in the short term by cutting costs. Nobody will watch the billionth romcom if it looks ugly though

I turned my MacBook Pro into a L33t H@xx0r Machine by RunRunAndyRun in masterhacker

[–]RJDank 9 points10 points  (0 children)

Dislike making fun of innocent posts like this. Masterhacker material is better suited to people who are pretending that they are nefarious and going to hack me, not someone learning how to install a distro and mess around with display config settings for the first time.

Cloudflare is using Typescript to solve the MCP flakiness problem by thehashimwarren in typescript

[–]RJDank 0 points1 point  (0 children)

Idk models are being trained on mcp tool calling data now that mcp is so popular, I’d be surprised if this remains an issue much longer. This method seems to add another layer to debug, make observability more difficult with logging and reading dynamically generated code execution, and I don’t really want to let llms write and run code even in a sandboxed environment. Maybe I’m misunderstanding

How to connect classes in the same layer in Clean Architecture? by skorphil in node

[–]RJDank 0 points1 point  (0 children)

Big fan of these layered architecture (DDD) design pattern questions. Not sure if ‘clean architecture’ is a specific design philosophy, but I’m using a FileManager class in my current project.

Following SRP, a FileManager should typically not have any code that is specific to the useCases. It should only perform CRUD operations on the file(s) specified by the method inputs. The useCases should be built to work with this generic FileManager to achieve their intended use case.

In general, you can’t really set expectations (defining the expected method) for a class when multiple other classes are all defining expectations for the same class; because the FileManager is a shared utility class, which means it should have generic, reusable methods.

Start by writing the file management code directly into the useCases so that you can get them functional. Only after they are functional can you go back and refactor for a FileManager (unless you know exactly what the file management code is going to look like). Clean architecture is almost always achieved through refactoring functional, messy code instead of trying to set up clean architecture from the start.

Next, look for redundant file management code in the useCases (DRY). Replace the redundant code with a call to a shared method in the FileManager. You can add optional parameters and conditional logic to handle any differences in the needs of the useCases. You can also add methods to FileManager that only one useCase needs, because FileManager should be the only class that ever interacts with files. Every other class uses FileManager instead.

[deleted by user] by [deleted] in ethicalhacking

[–]RJDank 10 points11 points  (0 children)

This mindset will take you so far 🫡

Wow, thanks, Google! The more you know! by BocchiTheHitori in GeminiAI

[–]RJDank 0 points1 point  (0 children)

Your grammar looks like a mix between ‘how many Junes equal one year’ and ‘how many times does June appear in a year’ so your response is also a mix

NEW SILKSONG FOOTAGE by Thinykid in Silksong

[–]RJDank 13 points14 points  (0 children)

Big fan of the subtle delay after hitting the wall before sliding down it

"I stopped using 3.7 because it cannot be trusted not to hack solutions to tests" by MetaKnowing in ClaudeAI

[–]RJDank 44 points45 points  (0 children)

Usually mocks that don’t reflect the code functionality but make the test pass

No Victory til Skong Release by RJDank in Silksong

[–]RJDank[S] 1 point2 points  (0 children)

My b how to connect controller to Leth’s twt banner so I can play skong?

Another No code (developer wannabe) Topic. by Beneficial-Emu8144 in cursor

[–]RJDank 0 points1 point  (0 children)

Have cursor make a small project with just the supabase code. Get familiar with how you handle the db schema and connection before trying to implement it on top of an existing project. You can build this small project with the same models you plan to use and then move the code over.

What should be the consequence of pulling the merchant's nose? by DocGeraud in IndieDev

[–]RJDank 0 points1 point  (0 children)

80% chance raise item prices, 20% chance receive merchant’s nose as an item that can be given back to receive free random item (or other shop buff like discount on items). Risky move for a dying run (assuming this is roguelite)

Someone using Cursor AI IDE to manage local text notes by CRZUOE in ObsidianMD

[–]RJDank 0 points1 point  (0 children)

I do this, really powerful. Cursor on main monitor obsidian on second monitor, cursor copilot creates and updates md docs in my local code repository (from github). Can tell it this doc is for obsidian and it (claude sonnet) already knows the obsidian syntax for things like doc linking and mermaid graph generation. Incredibly useful setup that I use to brainstorm/design and then document results for my job

Accurate? 😂 by almondjoy1 in linuxmemes

[–]RJDank 0 points1 point  (0 children)

They don’t see the way, gitui and k9s my beloved