HackerTrans
TopNewTrendsCommentsPastAskShowJobs

rafaepta

456 karmajoined 5 năm trước
https://github.com/Rafaelpta/dupehound

[email protected]

Submissions

Guardrails Against Duplicated Code

technology.org
2 points·by rafaepta·8 giờ trước·0 comments

[untitled]

1 points·by rafaepta·3 ngày trước·0 comments

Deterministic Guardrails Against AI Code Duplication

technology.org
2 points·by rafaepta·7 ngày trước·0 comments

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

github.com
1 points·by rafaepta·9 ngày trước·0 comments

Moebius: Tangled Up in Blueberry

tomlennon.com
2 points·by rafaepta·19 ngày trước·0 comments

Prefer duplication over the wrong abstraction (2016)

sandimetz.com
541 points·by rafaepta·20 ngày trước·354 comments

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

3 points·by rafaepta·22 ngày trước·5 comments

Ask HN: Does taste matter when writting code

5 points·by rafaepta·23 ngày trước·3 comments

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

10 points·by rafaepta·24 ngày trước·7 comments

[untitled]

1 points·by rafaepta·26 ngày trước·0 comments

Terminal UIs Are an Abomination. AI Needs Better UX

medium.com
3 points·by rafaepta·26 ngày trước·2 comments

[untitled]

1 points·by rafaepta·27 ngày trước·0 comments

Show HN: Deterministic and offline duplicate-code detector

github.com
4 points·by rafaepta·28 ngày trước·0 comments

Finding code duplicated by AI without AI

github.com
4 points·by rafaepta·29 ngày trước·2 comments

Agent doesn't remember your codebase (dupehound)

medium.com
2 points·by rafaepta·30 ngày trước·0 comments

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

github.com
3 points·by rafaepta·30 ngày trước·0 comments

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

github.com
4 points·by rafaepta·2 tháng trước·0 comments

Technical Founders Misread Adoption

avelino.run
3 points·by rafaepta·2 tháng trước·0 comments

Most Knowledge Management Systems Fail

desktopcommander.app
1 points·by rafaepta·4 tháng trước·0 comments

Filesystems Are Having a Moment

madalitso.me
8 points·by rafaepta·4 tháng trước·0 comments

comments

rafaepta
·21 ngày trước·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 ngày trước·discuss
[flagged]
rafaepta
·21 ngày trước·discuss
[dead]
rafaepta
·22 ngày trước·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 ngày trước·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 ngày trước·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 ngày trước·discuss
I think "deterministic" is going to become a feature label the way "offline" and "no tracking" did.
rafaepta
·4 tháng trước·discuss
Great read. Thanks for sharing
rafaepta
·6 tháng trước·discuss
watches age well