frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

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.

Interpreting Pangram

https://lucumr.pocoo.org/2026/9/14/interpreting-pangram/
1•notracks•35s ago•0 comments

Tuning a Local Coding Agent: Oh My Pi and Qwen3.8-27B on Two RTX 3090s

https://doug.sh/posts/tuning-a-local-coding-agent-oh-my-pi/
1•dougcalobrisi•41s ago•0 comments

25 Years of Mass Surveillance Is Enough [Auth: Cindy Cohn; Bruce Schneier]

https://www.lawfaremedia.org/article/25-years-of-mass-surveillance-is-enough
1•mdp2021•1m ago•0 comments

Show HN: ScaleUp City Simulator

https://city.scaleupcto.com/
1•robotrobot•1m ago•0 comments

GDScript: The Good, Bad, and Ugly Parts

https://azhdarchid.com/gdscript-good-bad-ugly/
1•haeseong•2m ago•0 comments

The Misery of Mechanistic Interpretability: A Formal Perspective

https://arxiv.org/abs/2609.15533
1•sbulaev•2m ago•0 comments

Sievepad: Write and debug Sieve scripts in the browser

https://sievepad.com/
1•StalwartLabs•3m ago•1 comments

Migrata – declarative Postgres migrations using plain SQL as the source of truth

https://migrata.io/blog/meet-migrata
2•ndortega•5m ago•1 comments

Linux Doctor – read-only health checks that explain what's wrong

https://github.com/zShaD0w7x/linux-doctor
2•7sh1d0w7x•6m ago•0 comments

The Complete Guide to Codex

https://flaviocopes.com/codex/
2•ibobev•6m ago•0 comments

Show HN: Public Browser – a Chrome MCP server with ~40% fewer tool calls

https://github.com/Silbercue/public-browser
1•silbercue•6m ago•0 comments

We timed 65 DynamoDB PITR restores. You can't predict the 66th

https://www.thisandthat.chat/blog/how-long-a-dynamodb-restore-takes/
1•jreynar•7m ago•0 comments

AntFlow AI: Spec-Driven Agentic Development

https://geekyants.com/antflow-ai
1•Harish_0089•7m ago•0 comments

I fixed my DevOps mistakes with AI

https://flaviocopes.com/devops-mistakes-ai/
2•ibobev•7m ago•0 comments

Comparing Values with CSS Progress()

https://blog.master.dev/comparing-values-with-css-progress/
1•ibobev•7m ago•0 comments

OpenAI buys smartphone camera maker Glass Imaging for $300M

https://techcrunch.com/2026/09/14/openai-buys-smartphone-camera-maker-glass-imaging-for-300-milli...
3•myth_drannon•8m ago•0 comments

Computer, Call Jordan

https://calljordanmygrandsonjordan.com/
1•carlos-menezes•8m ago•0 comments

An Antifragile (Barbell) Education [pdf]

https://www.fooledbyrandomness.com/education.pdf
1•upxx•9m ago•0 comments

Suchir Balaji's Homepage

https://suchir.net/
3•Bluestein•9m ago•0 comments

Show HN: Whodis – Domain investigation suite (WHOIS, DNS, stack)

https://github.com/Alex9001/whodis
1•vedmed•10m ago•0 comments

Number of 100 year olds in Japan top 100k for first time

https://www.japantimes.co.jp/news/2026/09/15/japan/japan-centenarians-top-100000/
1•haunter•12m ago•1 comments

DeepSeek v4.1 Flash (518GB, 4-bit) on a 128GB MacBook: 2.7x prefill, 17 tok/s

https://github.com/argonautlabsai/argodrive
1•Argonautlabs•12m ago•0 comments

Data dive: The revolving door between Whitehall and big tech

https://www.computerweekly.com/news/366650387/Data-dive-The-revolving-door-between-Whitehall-and-...
1•beardyw•12m ago•0 comments

Fremont – hardware city interactive map

https://redskyforge.com/fremont/
1•davedx•13m ago•0 comments

GNU Coreutils 9.12 Released with Performance Optimizations

https://www.phoronix.com/news/GNU-Coreutils-9.12
1•joshcsimmons•13m ago•0 comments

1Password's AI patching benchmark is misleading

https://blog.trailofbits.com/2026/09/15/1passwords-ai-patching-benchmark-is-misleading/
1•darkamaul•15m ago•0 comments

CrofAI Is an OpenRouter Wrapper

https://kendell.dev/blog/crofaifalse/
1•alexandra_au•19m ago•1 comments

OpenAI Buys Startup Developing Smartphone Camera

https://www.wsj.com/tech/openai-buys-startup-developing-smartphone-camera-63590370
3•bookofjoe•20m ago•1 comments

Prompting tricks for using Claude Opus 5

https://www.hydrogen18.com/blog/prompting-tricks-for-claude-opus-5.html
1•sidewndr46•21m ago•1 comments

The new Go JSON API: twice as fast, or 1.5x slower?

https://lemire.me/blog/2026/08/
1•bucket2015•23m ago•0 comments