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•11mo ago

Comments

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

What Is WebAssembly? (2015)

https://medium.com/javascript-scene/what-is-webassembly-the-dawn-of-a-new-era-61256ec5a8f6
1•downbad_•49s ago•1 comments

I Let Claude Opus Write a Chrome Exploit

https://www.hacktron.ai/blog/i-let-claude-opus-to-write-me-a-chrome-exploit
1•svenfaw•2m ago•0 comments

Building agent skills: Intent, determinism, and stability

https://alexhans.github.io/posts/series/evals/building-agent-skills-incrementally.html
1•pramodbiligiri•2m ago•0 comments

The OSRS Botting Problem Is Architectural

https://nemo.foo/blog/osrs-botting-problem-is-architectural
1•nemofoo•3m ago•0 comments

Modern Games Look on CRT Monitors

https://www.youtube.com/watch?v=U3K_BmIxh_0
1•tiziano88•3m ago•0 comments

Gemini 3.1 Flash TTS

https://blog.google/innovation-and-ai/models-and-research/gemini-models/gemini-3-1-flash-tts/
1•langitbiru•4m ago•0 comments

Alpine.js X-Data: A Surprisingly Capable State Manager

https://www.budgetflow.cc/blog/alpine-js-x-data-a-surprisingly-capable-state-manager
1•mkrd•5m ago•0 comments

Security.ubuntu.com Is Down

https://status.canonical.com/#/incident/KNms6QK9ewuzz-7xUsPsNylV20jEt5kyKsd8A-3ptQG-0Dp5D6IWR-Dw5...
1•whalesalad•9m ago•0 comments

Dynamicland

https://dynamicland.org/
1•cl3misch•10m ago•0 comments

AI slop has hit the science creators [video]

https://www.youtube.com/watch?v=xcq5XYkFJfY
1•szmarczak•10m ago•0 comments

Zero-Copy Pages in Rust: Or How I Learned to Stop Worrying and Love Lifetimes

https://redixhumayun.github.io/databases/2026/04/14/zero-copy-pages-in-rust.html
1•ingve•10m ago•0 comments

Private Equity Turns Your Favorite [YouTube] Channels into Slop [video]

https://www.youtube.com/watch?v=ZoibAbdQf58
1•burnt-resistor•15m ago•1 comments

Show HN: I made a weekly editorial on what HN was feeling and building

https://menggg.me/vibes/week-15
1•menggg•19m ago•0 comments

What Is Purisaki Berberine Patches and How It Supports Weight Loss? [pdf]

https://www.fd.ulisboa.pt/wp-content/uploads/formidable/2/PurisakiBerberinePatchesReal1-d3baj.pdf
1•JasperFarmer•20m ago•0 comments

Nvidia Ising – Open AI Models for Quantum Computing

https://www.nvidia.com/en-us/solutions/quantum-computing/ising/
1•fuglede_•20m ago•0 comments

Agent SLOs: Grounding autonomous agents in metrics that matter

https://blog.firetiger.com/agent-slos-grounding-autonomous-agents-in-metrics-that-matter/
2•matsur•22m ago•0 comments

Shouldn't we have an agent.lock file for AI coding agents?

https://srajangupta.substack.com/p/where-is-my-agentlock-file
1•srajan_gupta•23m ago•0 comments

DFlash: Block Diffusion for Flash Speculative Decoding

https://z-lab.ai/projects/dflash/
2•oldfuture•23m ago•0 comments

Teaching AI Agents to Speak Hardware

https://quadric.ai/blog/mcp-ai-coding-assistant
1•tkocmathla•24m ago•0 comments

Delete ChatGPT Atlas Spyware

1•niagznculiau•25m ago•0 comments

Nokia Automated Indoor Design and Validation

https://www.nokia.com/blog/revolutionizing-in-building-connectivity-design-nokia-automated-indoor...
1•salkahfi•25m ago•0 comments

Critical Atlantic current significantly more likely to collapse than thought

https://www.theguardian.com/environment/2026/apr/15/critical-atlantic-current-significantly-more-...
1•tempestn•27m ago•0 comments

Who Tried Hermes Agent?

https://github.com/aipoch/medical-research-skills
1•The_resa•30m ago•1 comments

Allbirds shoe company moving to AI infra is the top

https://www.theregister.com/2026/04/15/allbirds_ai_longislandicedtea_blockchain_lolol/
1•abdelhousni•36m ago•2 comments

Radical Pie: Professional Equation Editor for Windows 10/11

https://radicalpie.com/
1•teleforce•37m ago•0 comments

Ben Lerner's Big Feelings

https://www.vulture.com/article/ben-lerner-transcription-interview.html
1•prismatic•38m ago•0 comments

Cirrus CI is shutting down: upgrade to a scalable, AI-ready alternative

https://circleci.com/blog/cirrus-ci-alternative/
1•levlaz•39m ago•0 comments

Agtop: Btop but for Your Agents

https://github.com/ldegio/agtop
1•handfuloflight•39m ago•0 comments

Germany suspends military approval for long stays abroad for men under 45

https://www.bbc.com/news/articles/ckgx103wkl1o
2•timokoesters•42m ago•1 comments

Period property drama as Shakespeare's London house discovered

https://www.thetimes.com/uk/history/article/shakespeare-london-house-discovered-blackfriars-nc7jz...
1•petethomas•42m ago•0 comments