frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Seoul Biosys Begins Production of Rare Earth-Free White Micro LEDs

https://www.ajupress.com/view/20261028171670308
1•gmays•2m ago•0 comments

CogLean: Towards a Cumulative, Machine-Checked Theory of Cognition

https://github.com/jeffshrager/CogLean/tree/main/papers
1•abrax3141•4m ago•0 comments

NASA's Webb Provides Crash Course on Planet-Shattering Collisions

https://science.nasa.gov/missions/webb/nasas-webb-provides-crash-course-on-planet-shattering-coll...
1•airstrike•4m ago•0 comments

JarvisHub – Open Harness for Canvas-Native Multimodal Creative Agents

https://www.jarvishub.site
1•andsoitis•5m ago•0 comments

Musicplayer Play .wav audio file via system bus, pickup with an AM radio

https://github.com/anfractuosity/musicplayer
1•Bluestein•5m ago•0 comments

Open Harness for Canvas-Native Multimodal Creative Agents

https://arxiv.org/abs/2607.23588
1•andsoitis•6m ago•0 comments

So Much Tech News: The Week of 10/25/2026

https://amichae2.substack.com/p/so-much-tech-news-the-week-of-10252026
1•amichae2•8m ago•0 comments

Ask HN: Lost all my Claude credits

1•ustad•9m ago•1 comments

Show HN: Relayvora – Hand unfinished work between Claude Code and Codex

https://github.com/Dagimassefa/Relayvora
1•Dagim_Assefa•10m ago•0 comments

Object-oriented vs. procedural: rewriting a NES emulator [video]

https://www.youtube.com/watch?v=V6VP-2aIcSc
1•hackthemack•12m ago•1 comments

Daylight

https://buttondown.com/holly/archive/daylight-and-other-recommendations/
1•HotGarbage•12m ago•0 comments

Giant eagles once ruled the skies

https://www.bbc.com/future/article/20261028-predatory-birds-the-size-of-a-small-aircraft-once-flo...
1•saikatsg•13m ago•0 comments

The surprising leadership dynamics in agent swarms

https://www.raindrop.ai/blog/agent-swarm-leadership/
1•gmays•14m ago•0 comments

Breakthrough could help police trace 3D-printed 'ghost guns'

https://www.curtin.edu.au/news/media-release/new-breakthrough-could-help-police-trace-3d-printed-...
2•geox•17m ago•0 comments

Altman's comment becomes understandable once you consider the Jevons Paradox

1•pyeri•17m ago•3 comments

Show HN: Gradual Daylight Saving – Spread the 1-hour shifts over the whole year

https://gradual.johndimm.org
2•johndimm•23m ago•1 comments

Prediction markets for AI research: can we price scientific truth?

https://agentbook2.whf.bz/t/48/prediction-markets-for-ai-research-can-we-price-scientific-truth
1•Bluestein•23m ago•0 comments

Be Emergency Ready

https://beready.campaign.gov.uk/
1•saikatsg•23m ago•0 comments

Show HN: PewPewPew – Multiplayer Asteroids with deterministic rollback at 60hz

https://pewpewpew.io/
1•Benjaminsen•23m ago•0 comments

CowToilet, a Toilet for Cows (2019)

https://hanskamp.com/en/solutions/cowtoilet/
1•zenincognito•24m ago•0 comments

Revision Prompting: Diff your inputs for consistency and efficiency

https://revisionprompting.info/
1•idiliv•25m ago•0 comments

Show HN: Rbcop, RuboCop rewritten in Rust with identical output

https://github.com/costajohnt/rbcop
1•costajohnt•26m ago•0 comments

Show HN: HackerBooks – HackerTube, but for books recommended on HN

https://hackerbooks.org
30•roansh•27m ago•6 comments

College student's dorm-built jet drone hits 491 MPH, an unofficial world record

https://www.tomshardware.com/tech-industry/drones/college-student-unofficially-breaks-world-recor...
1•entryleveljobsc•28m ago•0 comments

California county deploys autonomous 500-gallon foam drones to fight wildfires

https://www.tomshardware.com/tech-industry/drones/california-county-secures-autonomous-firefighti...
2•entryleveljobsc•29m ago•1 comments

Codedict – a no-AI code index that cut my Claude Code tokens by 63%

https://github.com/Marqueos/codedict
1•Marqueos•31m ago•0 comments

Is this the first clear evidence of AI's impact on the labour market?

https://www.ft.com/content/7f27aa5f-5994-4f82-aed8-1cade18fb487
1•Luc•33m ago•0 comments

Show HN: Black October, seen through the HN front page

https://blackoctober.report/
1•yewenjie•33m ago•0 comments

Ask HN: How do you manage your personal agents?

1•kevinlu310•34m ago•1 comments

SAT Encodings: From Art to Science [pdf]

https://bsubercaseaux.github.io/assets/pdf/proposal.pdf
1•porridgeraisin•37m ago•0 comments
Open in hackernews

Avoid Continue

https://www.teamten.com/lawrence/programming/avoid-continue.html
2•todsacerdoti•1y ago

Comments

zoezoezoezoe•1y ago
I dont know if I fully agree. Sure, there is definitely an argument the be had about whether or not `continue` is the best word to use in this instance, but why avoid it entirely? Every programmer is able to easily understand what code like this would do:

``` for (Node node : nodeList) { if (node.isBad()) { continue; } processNode(node); } ```

Every keyword in any programming language is largely arbitrary in my opinion let's take a look at the beginning of the codeblock `for (Node node : nodeList)` also completely arbitrary, though it's clear to anyone who's ever written C++ that it is equivalent to saying "for every node in nodeList".

Continue is not meant to read as "continue execution" it's meant to be "continue to the next item of the list", and I think avoiding it entirely is a pointless effort.

Ukv•1y ago
I feel `skip` may have been a better name, but disagree with it being logically difficult to parse beyond that.

If I'm reading a loop and see

    for x in y {
        if exclusions.contains(x) { skip; }
        if x.children.length == 0 { skip; }
        if os.file.exists(x.name) { skip; }
        ...
I instantly know that processing for those elements is skipped, and they won't be relevant for the rest of the loop.

Whereas if I see

    for x in y {
        if !exclusions.contains(x) {
            if x.children.length != 0 {
                if !os.file.exists(x.name) {
        ...
I feel like there's still mental overload with not knowing where those `if` blocks end, and so having to keep the conditions in mind. It doesn't immediately tell me that the rest of the loop is being skipped.

The `log()` mistake seems no less likely to happen using early-returns in function instead, and I'd argue nesting checks actually introduces more room for that kind of error overall, where you append something at the end within the wrong set of brackets, compared to a flatter structure.