frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

The impact of file position on code review

https://arxiv.org/abs/2208.04259
30•whatever3•3h ago

Comments

gavinhoward•1h ago
One of the few times I've read a paper before it was posted.

I like this paper. While it's not anything groundbreaking or sensational, it did help me with the design of something I am working on.

Daviey•1h ago
It's a angle I hadn't considered, but I'm aware that I likely do this so the impact of the paper is that I be more dilligent. Thank you for sharing.
12_throw_away•1h ago
Heh, I've had certain modules where I ended up prefixing the files with `a_initialization.lang` `b_startup.lang` `c_run_the_thing.lang` [...] to make it easier to read for humans. Just like, in, say, a book, where the chapters appear in a specific order, the order of things matters! Probably this is a literate programming sort of thing?
deckar01•1h ago
I have always preferred small, self-contained commits for this reason. The GUI tooling for line based commits has left me wanting though. Maybe an LLM can be trained to demux commits.
loeg•1h ago
Makes sense. As a reviewer I take active steps to focus primarily on the main change by "minimizing" (Phabricator) test and other incidental file changes in my first pass.
aerostable_slug•1h ago
Note to self: bury malicious code in "later"-reviewed files.
kridsdale3•27m ago
Similar, if you're going up against a promotion committee, or parole board in jail, you want to go when the judges have been recently fed.
semperos•1h ago
My coworker Toby Crawley recently developed this Firefox plugin to randomize the order of files in GitHub PR reviews:

https://addons.mozilla.org/en-US/firefox/addon/github-pr-fil...

slongfield•50m ago
I've recently started using Github code reviews for a lot of C++, and one thing that I wish it would do is show the header (.h) files before the implementation (.cc) files.

Small PRs help, but I often end up just opening a handful of windows to have everything open at once.

rwmj•35m ago
You can't do that in github as far as I know, but you can get git to display diffs that way (eg. for local review or email based workflows). You have to use a git "orderfile". Example:

https://gitlab.com/nbdkit/nbdkit/-/blob/master/scripts/git.o...

We found it useful to display header files, interface files and documentation first, but maybe the linked paper will make us review that!

jpalawaga•28m ago
One thing my colleagues and I do is expressly offer up a starting point when reviewing changes: "the meat of the change is in xxx.go; the rest is ancillary/supporting". This allows the reader to contextualize themselves more quickly in the change, and understand the rest of the changes with greater ease.

You could take an adversarial view of it: maybe it's better if people get dropped into the changes so they're left to workout if the changes in each file stand alone rather, decontextualized from their original change.

breatheoften•27m ago
I think the whole concept of source files as unordered blobs on the filesystem is just _wrong_ -- and a serious drag on the ability of a reader to quickly digest a codebase and make inferences about changes in isolation ...

Codebases are _ordered_ constructs -- regardless of the ridiculous broken build system abstractions that do everything possible to obscure this truth ...

jsbg•23m ago
> We found files shown earlier in a PR to receive more comments than files shown later

I often stop reviewing a PR if I have too many comments on it already that need to be addressed so I wouldn't say this is necessarily what it sounds like (later files get less attention). Also, a comment on an early file might address a concern in a later file that will be fixed by the time I actually review the later files.

That said, keep your PRs short and you won't have to worry about stuff like that.

kevinsync•17m ago
IMO file/folder structure in a project is a geographic mapping exercise. It's not that far off from city planning. I think it's so important to design the structure and naming conventions of a project with the ultimate goal of aesthetically-pleasing, human-understandable spatial organization of digital artifacts. You "go here" to "see that". This "lives here". You travel to the destination of the thing you're looking for, and gain a deeper understanding of how the world is constructed that you are inhabiting.

This is one of my pet peeves with any kind of cloud file storage -- oftentimes they try to reinvent or abstract away the idea of a deeply-nested filesystem tree, and it just feels anti-human to me lol

Edit: I hit submit and then acknowledged I was kind of ranting about something else entirely from the paper itself!

Show HN: Empromptu.ai – Agentic AI Building AI Apps

1•anaempromptu•2m ago•0 comments

PSA: Part of your Kagi subscription fee goes to a Russian company (Yandex)

https://ounapuu.ee/posts/2025/07/17/kagi/
1•LorenDB•3m ago•0 comments

Don't Fall for AI: Reasons for Writers to Reject Slop

https://mythcreants.com/blog/dont-fall-for-ai-nine-reasons-for-writers-to-reject-slop/
1•BerislavLopac•4m ago•0 comments

A £3.93/mo Nomad‑backed learning lab: Next.js · .NET · Postgres on a budget

https://craig.banach.dev/musings/4-pound-learning-lab
1•craigbanach•5m ago•1 comments

Vibe Game Dev: Nimble Fox Unity AI Assistant [video]

https://www.youtube.com/watch?v=F4l2ULvMsko
1•lastdong•6m ago•0 comments

Telnyx AI Agents now support native integration with MCP servers

1•maevesentner•7m ago•0 comments

Grep a million GitHub repositories via MCP

https://vercel.com/blog/grep-a-million-github-repositories-via-mcp
2•cramforce•8m ago•0 comments

MirageLSD: The First Live-Stream Diffusion AI Video Model

https://about.decart.ai/publications/mirage
2•jasondavies•8m ago•0 comments

Microsoft Names Threat Actors

https://learn.microsoft.com/en-us/unified-secops-platform/microsoft-threat-actor-naming
1•grepcat•12m ago•0 comments

MirageLSD: The First Live-Stream Video Diffusion Model (∞-Generation, 0-Latency)

https://mirage.decart.ai/
3•dnnssl2•13m ago•4 comments

Show HN: I made EmojiAssets: click an emoji, get favicons and Apple touch icons

https://www.emojiassets.com
1•volukren•14m ago•0 comments

The Illusion of Biosafety During SARS-CoV-2 Research

https://www.researchgate.net/publication/390171996_The_Illusion_of_Biosafety_During_SARS-CoV-2_Research_Multiple_Apparent_Occult_Lab-Acquired_Infections_Are_Identified_including_from_Synthetic_Infectious_Clones_Under_BSL-3_Conditions_at_a_Premier_US-b
3•hggh•15m ago•0 comments

Show HN: I built a context-engineering CLI/MCP tool

https://github.com/jerpint/context-llemur
2•jerpint•15m ago•0 comments

Show HN: FavBox is a local-firs browser extension for bookmark management

https://github.com/dd3v/favbox
2•dm_dd3v•15m ago•0 comments

Trump's Impact on International Student Enrollment

https://spectrum.ieee.org/trump-international-students
1•rbanffy•15m ago•0 comments

Your Boss Still Thinks AI Is a Fancy Calculator

https://substack.com/home/post/p-168583724
1•anonym29•16m ago•0 comments

Ask HN: Has anyone ever manage to Chromecast from Chrome Mobile browser?

1•01jonny01•16m ago•0 comments

AWS Lambda silent crash – a platform failure, not an application bug

https://aaronstuyvenberg.com/posts/does-lambda-have-a-silent-crash
2•felineflock•20m ago•0 comments

Wave 11: Just Keep Shipping

https://windsurf.com/blog/windsurf-wave-11
1•pr337h4m•22m ago•0 comments

Comparing Claude Code vs. OpenCode (and testing different models)

https://www.andreagrandi.it/posts/comparing-claude-code-vs-opencode-testing-different-models/
2•andreagrandi•23m ago•0 comments

Show HN: TrueSift – AI-Powered Real-Time Fact-Checking Chrome Extension

https://www.truesift.dev/
1•terrib1e•27m ago•0 comments

Substack raises $100M at $1.1B valuation

https://techcrunch.com/2025/07/17/substack-raises-100m-from-chernin-group-andreessen-horowitz-skims-ceo-and-more/
4•1zael•30m ago•1 comments

Anthropic tightens usage limits for Claude Code – without telling users

https://techcrunch.com/2025/07/17/anthropic-tightens-usage-limits-for-claude-code-without-telling-users/
25•mfiguiere•33m ago•11 comments

To survive the AI age, the web needs a new business model

https://www.economist.com/leaders/2025/07/17/to-survive-the-ai-age-the-web-needs-a-new-business-model
2•sien•33m ago•1 comments

Are We Alone?

https://www.writervivek.com/2025/07/Are-we-alone.html
4•totaldude87•39m ago•0 comments

National Guard hacked by Chinese 'Salt Typhoon' campaign for nearly a year

https://www.nbcnews.com/tech/security/national-guard-was-hacked-chinas-salt-typhoon-group-dhs-says-rcna218648
3•c420•41m ago•0 comments

Stop Hertz's AI Rental Car Damage Scanners from Screwing You

https://www.thedrive.com/news/how-to-stop-hertzs-ai-rental-car-damage-scanners-from-screwing-you
4•miles•41m ago•2 comments

The "Perfect" YouTube Video

https://idiallo.com/blog/youtube-can-design-the-perfect-video
1•foxfired•42m ago•0 comments

Oldest known dog breed reveals hidden human history

https://www.popsci.com/environment/greenland-sled-dog-oldest-dog-breed/
2•gmays•43m ago•0 comments

World Bank tried to transform care for the poor. Drove them deeper into poverty

https://www.icij.org/investigations/2025/07/the-world-bank-set-out-to-transform-health-care-for-the-poor-in-africa-it-drove-patients-deeper-into-poverty/
2•Bluestein•44m ago•0 comments