HackerLangs
TopNewTrendsCommentsPastAskShowJobs

rafaepta

456 karmajoined قبل 5 سنوات
https://github.com/Rafaelpta/dupehound

[email protected]

Submissions

Guardrails Against Duplicated Code

technology.org
2 points·by rafaepta·قبل 6 ساعات·0 comments

[untitled]

1 points·by rafaepta·قبل 3 أيام·0 comments

Deterministic Guardrails Against AI Code Duplication

technology.org
2 points·by rafaepta·قبل 7 أيام·0 comments

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

github.com
1 points·by rafaepta·قبل 9 أيام·0 comments

Moebius: Tangled Up in Blueberry

tomlennon.com
2 points·by rafaepta·قبل 18 يومًا·0 comments

Prefer duplication over the wrong abstraction (2016)

sandimetz.com
541 points·by rafaepta·قبل 20 يومًا·354 comments

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

3 points·by rafaepta·قبل 21 يومًا·5 comments

Ask HN: Does taste matter when writting code

5 points·by rafaepta·قبل 23 يومًا·3 comments

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

10 points·by rafaepta·قبل 24 يومًا·7 comments

[untitled]

1 points·by rafaepta·قبل 26 يومًا·0 comments

Terminal UIs Are an Abomination. AI Needs Better UX

medium.com
3 points·by rafaepta·قبل 26 يومًا·2 comments

[untitled]

1 points·by rafaepta·قبل 27 يومًا·0 comments

Show HN: Deterministic and offline duplicate-code detector

github.com
4 points·by rafaepta·قبل 27 يومًا·0 comments

Finding code duplicated by AI without AI

github.com
4 points·by rafaepta·قبل 29 يومًا·2 comments

Agent doesn't remember your codebase (dupehound)

medium.com
2 points·by rafaepta·قبل 30 يومًا·0 comments

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

github.com
3 points·by rafaepta·قبل 30 يومًا·0 comments

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

github.com
4 points·by rafaepta·قبل شهرين·0 comments

Technical Founders Misread Adoption

avelino.run
3 points·by rafaepta·قبل شهرين·0 comments

Most Knowledge Management Systems Fail

desktopcommander.app
1 points·by rafaepta·قبل 4 أشهر·0 comments

Filesystems Are Having a Moment

madalitso.me
8 points·by rafaepta·قبل 4 أشهر·0 comments

comments

rafaepta
·قبل 21 يومًا·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
·قبل 21 يومًا·discuss
[flagged]
rafaepta
·قبل 21 يومًا·discuss
[dead]
rafaepta
·قبل 21 يومًا·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
·قبل 25 يومًا·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
·قبل 27 يومًا·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
·قبل 29 يومًا·discuss
I think "deterministic" is going to become a feature label the way "offline" and "no tracking" did.
rafaepta
·قبل 4 أشهر·discuss
Great read. Thanks for sharing
rafaepta
·قبل 6 أشهر·discuss
watches age well