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.

Why is getting a cheap prepaid SIM card in the USA so complicated?

1•huntsmans•2m ago•0 comments

Pure LLMs Score 0% on ARC-AGI-2. Why the Third Wave of AI Looks Like the First

https://ai.gopubby.com/neuro-symbolic-ai-arc-agi-alphaproof-third-wave-48177339d698
1•Aedelon•2m ago•0 comments

ByteDance Seed 2.0

https://seed.bytedance.com/en/blog/seed2-0-%E6%AD%A3%E5%BC%8F%E5%8F%91%E5%B8%83
1•kristianp•3m ago•0 comments

Our new frontier model: Ian

https://ian.ianmyjer.com/
1•enmyj•3m ago•0 comments

Warner Bros signs $110B deal with Paramount

https://www.reuters.com/sustainability/sustainable-finance-reporting/warner-bros-signs-110-billio...
2•Vitamin_Sushi•4m ago•0 comments

The Distillation Problem, It's Not a Cold War, It's Napster

https://www.stickybit.com.br/distillation-napster-en/
1•TiMagazine•4m ago•0 comments

Is This Waymo a Better Person Than You?

https://www.newyorker.com/humor/shouts-murmurs/is-this-waymo-a-better-person-than-you
1•mitchbob•5m ago•1 comments

Lasse Collin

https://liberapay.com/Larhzu/
1•pinkmuffinere•5m ago•0 comments

Ask HN: Apple locked me out of the developer program for a technical error

1•LoganDark•5m ago•0 comments

IronCurtain: A Personal AI Assistant Built Secure from the Ground Up

https://www.provos.org/p/ironcurtain-secure-personal-assistant/
1•jmort•6m ago•0 comments

Instant DB clones for AI agents

https://contextbits.com/
1•classx•8m ago•1 comments

Should everyone be taking statins?

https://www.worksinprogress.news/p/should-everyone-be-taking-statins
1•salonium_•8m ago•0 comments

Even with Coding Agents, You Still Can't Recreate StackOverflow in a Weekend

https://orischwartz.com/posts/even-with-fleet-of-coding-agents.html
1•fleaflicker•8m ago•0 comments

DOS Memory Management

http://www.os2museum.com/wp/dos-memory-management/
2•supermatou•9m ago•0 comments

Show HN: AO – Deploy Python agents without managing production infrastructure

https://aodeploy.com
1•mrtng•11m ago•0 comments

Show HN: DumpCleaner – Native macOS/iPadOS app to filter SQL dumps

https://dumpcleaner.app
1•marcelglaeser•12m ago•1 comments

Why every AI coding breakthrough feels normal within 90 days

https://www.augmentcode.com/blog/why-every-ai-coding-breakthrough-feels-normal-within-90-days
2•knes•12m ago•0 comments

Altadena asked Edison to bury lines. That could cost some fire victims $40k

https://www.latimes.com/business/story/2026-02-17/edison-altadena-residents-balk-at-costs-bury-po...
1•PaulHoule•13m ago•0 comments

Instant LLM Updates with Doc-to-LoRA and Text-to-LoRA

https://pub.sakana.ai/doc-to-lora/
2•yogthos•13m ago•0 comments

Launching the Agent Protocols Tech Tree

https://lil.law.harvard.edu/blog/2026/02/23/agent-protocols-tech-tree/
1•mixedmath•14m ago•0 comments

Living with Hyperphantasia

https://www.theguardian.com/science/2026/feb/28/living-with-hyperphantasia
1•hackernj•14m ago•0 comments

Making Iceberg Work for Operational Data

https://materialize.com/blog/making-iceberg-work-for-operational-data/
1•pranshum•15m ago•0 comments

I hacked ChatGPT and Google's AI – and it only took 20 minutes

https://www.bbc.com/future/article/20260218-i-hacked-chatgpt-and-googles-ai-and-it-only-took-20-m...
1•ohjeez•15m ago•0 comments

Why every scientist needs a librarian

https://www.nature.com/articles/d41586-026-00568-y
2•gnabgib•17m ago•0 comments

Against Land Value Capture

https://pedestrianobservations.com/2026/02/25/against-land-value-capture/
1•amadeuspagel•19m ago•0 comments

Show HN: OpenAI to Buy Babuger.com for $1B? (Just Kidding, I Built It)

1•lyuata•19m ago•0 comments

Coherence at 300K

https://www.symmetrybroken.com/coherence-at-300-kelvin/
1•riemannzeta•19m ago•0 comments

The Robotic Dexterity Deadlock

https://www.origami-robotics.com/blog/dexterity-deadlocks.html
14•shmublu•22m ago•1 comments

Hyprland 0.54 Released as a "Massive" Update to This Wayland Compositor

https://www.phoronix.com/news/Hyprland-0.54-Released
1•mikece•24m ago•0 comments

Will magnesium supplements help you relax?

https://www.economist.com/science-and-technology/2026/02/27/will-magnesium-supplements-help-you-r...
2•vinni2•25m ago•4 comments