frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Avoid Continue

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

Comments

zoezoezoezoe•10mo 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•10mo 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.

How Does AI Distribute the Pie? Large Language Models and the Ultimatum Game

https://www.nber.org/papers/w34919
1•paulpauper•18s ago•0 comments

Buying Back Our Slack

https://www.seeingthesystem.com/p/buying-back-our-slack
1•paulpauper•47s ago•0 comments

Agentic AI: Workflows vs. Agents

https://www.youtube.com/watch?v=Qd6anWv0mv0
1•Brysonbw•1m ago•0 comments

MacBook Neo Teardown [video]

https://www.youtube.com/watch?v=PbPCGqoBB4Y
1•Lwrless•1m ago•0 comments

Trump now Selling National Security Briefing Membership

https://www.cnn.com/2026/03/13/politics/trump-fundraise-email-soldier
1•mandeepj•2m ago•0 comments

Big tech engineers need big egos

https://www.seangoedecke.com/big-tech-needs-big-egos/
1•jnord•4m ago•0 comments

Void – Ship Vite apps at warp speed

https://void.cloud
1•todotask2•6m ago•0 comments

1997 Kyl–Bingaman Amendment prohibits high res satellite imagery of Israel

https://en.wikipedia.org/wiki/Kyl%E2%80%93Bingaman_Amendment
1•spaghetdefects•8m ago•0 comments

Show HN: Paw-proxy – Named HTTPS domains for every local dev server

https://alexcatdad.github.io/paw-proxy/
1•alex_tc•14m ago•0 comments

Show HN: What agentic collaborative pentesting looks like

https://www.youtube.com/watch?v=PU5BicXMiio
1•integsec•14m ago•0 comments

JPEG Compression

https://www.sophielwang.com/blog/jpeg
2•vinhnx•14m ago•0 comments

Want to hack your body with peptides? If only the science agreed

https://www.economist.com/science-and-technology/2026/03/11/want-to-hack-your-body-with-peptides-...
2•andsoitis•18m ago•0 comments

Biomass-based furan epoxies with high-performance and closed-loop recyclability

https://www.sciencedirect.com/science/article/pii/S1359836825011722
2•PaulHoule•21m ago•0 comments

US withdraws draft rule that called for global AIchip permits

https://www.bloomberg.com/news/articles/2026-03-14/us-withdraws-draft-rule-that-called-for-global...
2•htrp•21m ago•0 comments

Security Layer for Claude Code

https://www.oculisecurity.com/
1•rellaElla•23m ago•0 comments

Ask HN: Why can't we just make more RAM?

3•chatmasta•25m ago•4 comments

TB Eradicator: Space Invaders but the Enemies Are TB Bacteria

https://tberadicator.com
2•YossarianFrPrez•25m ago•0 comments

An investigation of the forces behind the age-verification bills

https://lwn.net/Articles/1062779/
4•pabs3•27m ago•0 comments

Climate change is slowing Earth's spin at unprecedented rate

https://phys.org/news/2026-03-climate-earth-unprecedented-million-years.html
4•layer8•27m ago•1 comments

District denies enrollment to child based on license plate reader data

https://www.theregister.com/2026/03/12/district_denies_enrollment_to_child/
4•goplayoutside•28m ago•1 comments

Aether Engine: Coupled multiphysics for photonic ICs under extreme environments

https://github.com/venticedlatte/aether-engine/blob/main/README.md
2•ventiproject•28m ago•0 comments

MiniMax M2.5 is trained by Claude Opus 4.6?

2•Orellius•28m ago•0 comments

Meta planning layoffs as AI costs mount

https://www.reuters.com/business/world-at-work/meta-planning-sweeping-layoffs-ai-costs-mount-2026...
9•Aboutplants•32m ago•2 comments

Adobe's Statement Regarding the Department of Justice Settlement

https://news.adobe.com/news/2026/03/adobe-statement
1•coolandsmartrr•32m ago•0 comments

Institutional AI vs. Individual AI

https://www.a16z.news/p/institutional-ai-vs-individual-ai
2•gmays•40m ago•0 comments

Volkswagen's first tailored EV rolls out as it retakes the top spot in China

https://electrek.co/2026/03/13/volkswagens-first-custom-ev-rolls-out-after-taking-top-spot-in-china/
2•breve•44m ago•0 comments

AutoContext: closed-loop system for improving agent behavior over repeated runs

https://github.com/greyhaven-ai/autocontext
1•frozenseven•50m ago•0 comments

Autoresearch Home

https://ensue-network.ai/autoresearch
1•vinhnx•51m ago•0 comments

BYD's 5 min fast charging, 500 mile range luxury EV is headed overseas

https://electrek.co/2026/03/13/byd-ev-with-5-min-charging-500-miles-range-heads-overseas/
3•breve•51m ago•0 comments

Show HN: A Claude Skill that teaches Rails conventions for LLM calls

https://github.com/rubyonai/rails-llm-integration
1•nagstler•55m ago•0 comments