HackerTrans
TopNewTrendsCommentsPastAskShowJobs

rafaepta

456 karmajoined há 5 anos
https://github.com/Rafaelpta/dupehound

[email protected]

Submissions

Guardrails Against Duplicated Code

technology.org
2 points·by rafaepta·há 9 horas·0 comments

[untitled]

1 points·by rafaepta·há 3 dias·0 comments

Deterministic Guardrails Against AI Code Duplication

technology.org
2 points·by rafaepta·há 8 dias·0 comments

Show HN: Open-source Deterministic Guardrails Against AI Duplicated Code

github.com
1 points·by rafaepta·há 9 dias·0 comments

Moebius: Tangled Up in Blueberry

tomlennon.com
2 points·by rafaepta·há 19 dias·0 comments

Prefer duplication over the wrong abstraction (2016)

sandimetz.com
541 points·by rafaepta·há 20 dias·354 comments

Ask HN: What's the hardest part of maintaining a legacy codebase?

3 points·by rafaepta·há 22 dias·5 comments

Ask HN: Does taste matter when writting code

5 points·by rafaepta·há 23 dias·3 comments

Ask HN: How do you separate intentional test boilerplate from real duplication?

10 points·by rafaepta·há 24 dias·7 comments

[untitled]

1 points·by rafaepta·há 26 dias·0 comments

Terminal UIs Are an Abomination. AI Needs Better UX

medium.com
3 points·by rafaepta·há 26 dias·2 comments

[untitled]

1 points·by rafaepta·há 27 dias·0 comments

Show HN: Deterministic and offline duplicate-code detector

github.com
4 points·by rafaepta·há 28 dias·0 comments

Finding code duplicated by AI without AI

github.com
4 points·by rafaepta·há 29 dias·2 comments

Agent doesn't remember your codebase (dupehound)

medium.com
2 points·by rafaepta·há 30 dias·0 comments

Show HN: Dupehound – find the code your agent wrote twice (no AI required)

github.com
3 points·by rafaepta·há 30 dias·0 comments

Show HN: Mirror a terminal to your phone – E2E encrypted, peer-to-peer,no daemon

github.com
4 points·by rafaepta·há 2 meses·0 comments

Technical Founders Misread Adoption

avelino.run
3 points·by rafaepta·há 2 meses·0 comments

Most Knowledge Management Systems Fail

desktopcommander.app
1 points·by rafaepta·há 4 meses·0 comments

Filesystems Are Having a Moment

madalitso.me
8 points·by rafaepta·há 4 meses·0 comments

comments

rafaepta
·há 21 dias·discuss
Yeah, that is pretty much what it does already: it tries to recognize test files and skip them. Dupehound is available for 12 languages Today.

Some languages like RUst you mentioned, have a clear tag that says "this is a test," but others do not, so the tool has to guess from file names and ends up missing some and skipping too much.

Also as I mentioned on the answer below, sometimes you actually do want to see the repeats inside tests, or normal code repeats on purpose too. So I am leaning toward letting users wave off one specific case by hand instead of skipping everything blindly.
rafaepta
·há 21 dias·discuss
[flagged]
rafaepta
·há 21 dias·discuss
[dead]
rafaepta
·há 22 dias·discuss
Using dupehound for identifying duplicated code.

What I use for: I use for identifying duplicated code. It is deterministic, doesn't use AI, offline, runs from CLI and is super fast (and free).

What I dislike: I won't say it I dislike, but it is not a tool that does all the jobs of a code review. For instance, it doesn't flag security issues. It is superfocused on code duplication (it performs better than Sonar for this use case) and is specifically useful for large codebases. Disclaimer: I am one of the collaborators, so take it with a grain of salt https://github.com/Rafaelpta/dupehound
rafaepta
·há 25 dias·discuss
agreed, but imo terminal and any conversational interface is not a silver bullet. Example: signup up for a ai assistant that lives in the email. Can't cancelled it bcs the founder assumed that since you ask anything in natural language every problem the user might have is solved. This is just pushing problems to users.
rafaepta
·há 27 dias·discuss
So true, just built a deterministic system to identify duplicated code. It's offline and doesn't use AI on purpose, since a gate that blocks your CI has to give the exact same answer every time, and finding dupes means comparing every function against every other (that's index work). It does NOT use AI. But ironically, I used AI to build it (https://github.com/Rafaelpta/dupehound )
rafaepta
·há 29 dias·discuss
I think "deterministic" is going to become a feature label the way "offline" and "no tracking" did.
rafaepta
·há 4 meses·discuss
Great read. Thanks for sharing
rafaepta
·há 6 meses·discuss
watches age well