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.

Institute of Mentalphysics

https://www.atlasobscura.com/places/institute-mentalphysics
1•andsoitis•3m ago•0 comments

Openclaw.net

https://github.com/clawdotnet/openclaw.net
1•scopeT86•5m ago•1 comments

People Loved the Dot-Com Boom. The A.I. Boom, Not So Much

https://www.nytimes.com/2026/02/21/technology/ai-boom-backlash.html
2•1vuio0pswjnm7•5m ago•0 comments

Meta has an answer to YouTube Face

https://lolware.net/blog/meta-answer-youtube-face/
1•technion•10m ago•0 comments

Japanese Woodblock Print Search

https://ukiyo-e.org/
4•curmudgeon22•11m ago•0 comments

What the F are you guys talking about?

1•diametricsound•12m ago•0 comments

Automatically Learning Skills for Coding Agents

https://gepa-ai.github.io/gepa/blog/2026/02/18/automatically-learning-skills-for-coding-agents/
1•handfuloflight•15m ago•0 comments

Why has GitHub billing support been unresponsive for weeks?

1•huabin•20m ago•0 comments

Meridian Raises $17M for AI Agents That Build Financial Models (A16Z-Led)

https://theagenttimes.com/articles/meridian-raises-17m-to-let-agents-build-financial-models-that-...
1•Ross00781•29m ago•0 comments

Fast Emery Upgrades With pebble-scalable

https://blog.chrislewis.me.uk/?post=2026-02-01-Fast-Emery-Upgrades-With-Pebble-Scalable
1•yablak•30m ago•0 comments

Show HN: Subscribable calendar feeds for astronomical events

https://github.com/gardner/sunlight
1•gardnr•32m ago•0 comments

Help me pick a thumbnail, swipe right to vote

https://ytvote.com/Vote/ForMe/45pU5
1•riley-i•33m ago•0 comments

CL-Kawa: A Turducken of Programming Languages

https://atgreen.github.io/repl-yell/posts/cl-kawa/
1•todsacerdoti•33m ago•0 comments

Alloy: JavaScript framework for building Pebble smartwatch apps

https://developer.repebble.com/guides/alloy/
1•patrikcsak•36m ago•0 comments

The tenacious brain: Anterior mid-cingulate contributes to achieving goals

https://www.sciencedirect.com/science/article/abs/pii/S0010945219303326
1•samuel246•38m ago•0 comments

We Fixed YAML Comment Preservation in Ruby (and Why We Sponsored It)

https://blog.discourse.org/2026/02/how-we-fixed-yaml-comment-preservation-in-ruby-and-why-we-spon...
1•todsacerdoti•39m ago•0 comments

Ask HN: Claude crashed? Am I playing for the tokens for it to fix itself?

1•jrs235•39m ago•1 comments

Selling AI Software Isn't as Easy as It Used to Be

https://www.wsj.com/articles/selling-ai-software-isnt-as-easy-as-it-used-to-be-4933e401
1•1vuio0pswjnm7•41m ago•0 comments

Benchmarks: Go's FFI is finally faster then GDScript (and Rust?)

https://github.com/quaadgras/graphics.gd/discussions/277
1•Splizard•43m ago•0 comments

Your Disk Just Lied to You – and Your Checksums Said Everything Was Fine

https://medium.com/@jingyuzhou/your-disk-just-lied-to-you-and-your-checksums-said-everything-was-...
1•tanelpoder•44m ago•0 comments

AI Agent Achieves 1000 Turns Without Drift or Loss of Coherence [pdf]

https://github.com/Rychek4/Pattern_Project_Public/blob/main/AI%20Agent%20Achieves%201000%2B%20Tur...
1•Rychek4•47m ago•1 comments

Meta cuts staff stock awards for a second straight year

https://www.ft.com/content/071d5503-b3dc-46bc-bc55-28f92dbdd42a
3•1vuio0pswjnm7•52m ago•1 comments

Show HN: ThreadKeeper – Save and restore Windows working context with Ollama

https://www.thethread-keeper.com/en/index.html
2•tatsube•52m ago•0 comments

Fix Your Tools

https://ochagavia.nl/blog/fix-your-tools/
3•todsacerdoti•55m ago•1 comments

Show HN: Slack as an AI Coding Remote Control

https://github.com/DiscreteTom/juan
2•DiscreteTom•56m ago•0 comments

Giant stop killing games updates 2026 [video]

https://www.youtube.com/watch?v=CNVKqRDalLo
2•st_goliath•58m ago•0 comments

Sexting study reveals an "alarming" reality for teens who share explicit images

https://www.psypost.org/new-sexting-study-reveals-an-alarming-reality-for-teens-who-share-explici...
2•gnabgib•59m ago•0 comments

Palantir's secret weapon isn't AI – it's Ontology. An open-source deep dive

https://github.com/Leading-AI-IO/palantir-ontology-strategy
23•leading-AI•1h ago•13 comments

Biometric injection attacks, AI-powered fake IDs move the goalposts

https://www.biometricupdate.com/202602/biometric-injection-attacks-ai-powered-fake-ids-move-the-f...
3•WaitWaitWha•1h ago•0 comments

FULU Bounties – Ring Video Doorbells

https://bounties.fulu.org/bounties/ring-video-doorbells
4•WaitWaitWha•1h ago•1 comments