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.

A Tight Spot: Challenges Facing the Russian Oil Sector Through 2035

https://carnegieendowment.org/research/2026/03/russia-oil-situation-assessment
1•yread•49s ago•0 comments

Reddit considers Face ID to combat spam

https://www.engadget.com/social-media/reddit-is-weighing-identity-verification-methods-to-combat-...
1•smallnix•5m ago•1 comments

POSSE

https://indieweb.org/POSSE
4•tosh•6m ago•0 comments

Chopping my brain into bits – turning my brain into a 3D model on the web

https://srg.id.au/posts/brain/
1•lanakei•10m ago•0 comments

Show HN: The King Wen Permutation: [52, 10, 2]

https://gzw1987-bit.github.io/iching-math/
3•gezhengwen•14m ago•1 comments

Is possible a modern Linux without systemd? artix/dinit/labwc/noctalia

https://grigio.org/is-modern-linux-without-systemd-really-possible-artix-dinit-labwc-noctalia/
2•grigio•14m ago•1 comments

White-Collar AI Apocalypse Narrative Is Just Another Bullshit

https://martynasm.com/2026/03/22/white-collar-ai-apocalypse-narrative-is-just-another-bullshit/
2•mmiliauskas•19m ago•0 comments

VistAI–Save and Search AI Responses from ChatGPT, Claude, Gemini, and Perplexity

https://vistai.org
1•cbvinodvijay•25m ago•1 comments

Abstract Wikipedia

https://abstract.wikipedia.org/wiki/Abstract_Wikipedia:Main_page
1•abbe98•27m ago•0 comments

Random Numbers, Persian Code: A Mysterious Signal Transfixes Radio Sleuths

https://www.rferl.org/a/mystery-numbers-station-persian-signal-iran-war/33700659.html
1•austinallegro•27m ago•0 comments

AutoResearch by Karpathy and the Future of Autonomous AI Research

https://mljar.com/blog/autoresearch-karpathy-autonomous-ai-research/
1•pplonski86•28m ago•0 comments

Ask HN: How do you manage cloud access for your team without a VPN?

1•binoycyber•30m ago•0 comments

Airlines Are Preparing for an Oil Crisis

https://www.wired.com/story/united-airlines-jet-fuel-alarm-economy/
1•joozio•32m ago•0 comments

LLMs turn an autistic communication style into a neurotypical conversation

https://hachyderm.io/@EmilyEnough/116258821633964028
2•freetonik•33m ago•0 comments

Workout Genarator

http://www.https:\\workout1031.base44.app
1•avirose•37m ago•0 comments

Brandjet AI

https://www.brandjet.ai/
1•finin74047•39m ago•0 comments

Show HN: I made a AI Code Review tool that knows how your company works

https://matrixreview.io/
1•alexandersucala•40m ago•0 comments

Stop spending money on AI credits Translate your content using self-hosted LLMs

https://gatoplugins.com/blog/released-v17-1-self-hosted-llm-translation
1•leoloso•40m ago•0 comments

Scott Hanselman says he's working on Windows local accounts

https://twitter.com/shanselman/status/2035110958314745891
2•teekert•40m ago•1 comments

Emdash: Open-Source Agentic IDE for Orchestrating Multiple Coding Agents

1•steveharing1•40m ago•0 comments

Nextcloud's open-source alternatives series: XWiki vs. Confluence

https://nextcloud.com/blog/event/xwiki-vs-confluence/
1•lorinab•44m ago•0 comments

Neurvance, Pre-cleaned datasets for LLM fine-tuning, free to download

https://neurvance.com/blog-data-prep.html
1•Adam_SDDk•51m ago•0 comments

Show HN: AI Prompts for Data Professionals

https://mljar.com/ai-prompts/
1•pplonski86•53m ago•0 comments

Clearing Member 991

https://no01.substack.com/p/clearing-member-991
1•StrauXX•58m ago•0 comments

Prompt to tape out: Autonomous AI agent builds 1.5 GHz RISC-V CPU

https://blog.adafruit.com/2026/03/22/prompt-to-tape-out-autonomous-ai-agent-builds-1-5-ghz-risc-v...
2•monocasa•1h ago•0 comments

A YC-Backed Startup Left Production AWS Keys Public for 5 Months

https://benzimmermann.dev/blog/pump-vdp-silence
2•kernelrocks•1h ago•2 comments

Plane and ground vehicle collide at New York's LaGuardia airport halting flights

https://www.bbc.com/news/articles/cy01g522ww4o
27•mememememememo•1h ago•11 comments

Show HN: Scenia – open-source IT portfolio planning, runs in browser

https://scenia.website/
1•WaylonKenning•1h ago•0 comments

Bangkok rentals extracted from Facebook Groups

https://bangkokprop.com/
1•tanin•1h ago•0 comments

Microbenchmarking Chipsets for Giggles – By Chester Lam

https://chipsandcheese.com/p/microbenchmarking-chipsets-for-giggles
1•rbanffy•1h ago•0 comments