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.

Show HN: Woolly – Take your ChatGPT memory with you, local and open source

https://github.com/rjcuff/woolly
1•rjcuff•1m ago•0 comments

Loose Ends: A check for unused code AI wrote or forgot to remove

https://github.com/sid732/loose-ends
1•sid732•1m ago•0 comments

Show HN: Zipzi – Open-source Live2D Editor alternative with AI-assisted editing

https://github.com/getzipzi/zipzi-2d
1•pakholeung37•3m ago•0 comments

Ask HN: Do you distrust OSS projects with Claude commits?

1•rathboma•4m ago•1 comments

Venture Is Dead (Again)

https://colossus.com/article/venture-is-dead-again/
1•koolhead17•4m ago•0 comments

Doubling LLM token rates in ComfyUI

https://blog.comfy.org/p/doubling-llm-token-rates-in-comfyui
1•ivewonyoung•5m ago•0 comments

Show HN: TempCD – Temporarily CD in a directory with one command

https://github.com/Belligerently/TempCD
1•zaflalo•5m ago•0 comments

Notion AI chat transcripts exposed in Fireworks AI breach

https://www.notion.com/en-gb/security/advisories/security-incident-involving-a-third-party-ai-vendor
2•fourfire•8m ago•0 comments

All of us test in production all the time (2019)

https://increment.com/testing/i-test-in-production/
1•zenincognito•13m ago•0 comments

Show HN: Umsfuse: FUSE driver and tools for UMSDOS

https://fossil.chungy.name/umsfuse/doc/trunk/README.md
1•chungy•13m ago•0 comments

Anyone Heard of Yare

https://meetyare.vercel.app
1•atharv79•14m ago•0 comments

Show HN: Grow any hobby (skills for humans not AI)

https://grow-bonsai.app/
1•ag_rin•17m ago•0 comments

The Jensen Huang Scandal Should Change Everything

https://www.theatlantic.com/international/2026/11/nvidia-affair-chips-china/689417/
3•blondie9x•20m ago•0 comments

Escaping Space: Part II

https://www.perplexity.ai/hub/blog/escaping-space-part-ii
1•gmays•23m ago•0 comments

Show HN: Bricksentry – see what a data change does before it ships (Databricks)

https://github.com/bricksentry/bricksentry
1•kbreddy12•26m ago•0 comments

South Africans are giving up on Nelson Mandela's party. Good

https://www.economist.com/leaders/2026/11/12/south-africans-are-giving-up-on-nelson-mandelas-part...
1•andsoitis•28m ago•0 comments

Intelligent Eyewear with Gemini

https://glasses.google/
3•abrichr•29m ago•1 comments

No, AI agents did not discover a previously unknown Maya site

https://www.theverge.com/ai-artificial-intelligence/1032125/ai-agents-maya-site-archeology-discovery
2•latexr•29m ago•1 comments

Africa's solar revolution is vast and speedy

https://www.economist.com/middle-east-and-africa/2026/11/12/africas-solar-revolution-is-vast-and-...
21•andsoitis•29m ago•0 comments

Odog.net – Criminal Enterprise [pdf]

https://vault.fbi.gov/odog-criminal-enterprise/odog-criminal-enterprise-final/view
1•sans_souse•35m ago•0 comments

PyroNear – open-source wildfire detection

https://pyronear.org//en/
1•Curiositry•35m ago•1 comments

Microsoft's Outlook.com Is Down

https://outlook.com/
1•williamtrask•36m ago•0 comments

Jules Turndown

https://jules.google/docs/changelog/2026-10-29/
2•tvvocold•37m ago•0 comments

Nvidia employees petition to bring back Jensen Huang

https://www.wired.com/story/nvidia-employees-petition-for-jensen-huangs-return/
54•lavendermon•41m ago•24 comments

One Condition Away: Apache's HTTP/2 RCE on the Day It Dropped

https://blog.fortirix.com/blog/apache-http2-rce/
1•SecurityNinjaGu•42m ago•0 comments

Agent harness for learning difficult things

https://github.com/amosblomqvist/learnharness
1•flashblaze•42m ago•0 comments

'Transition regret' is rare, according to study

https://www.them.us/answers-and-advice/health/transition-regret-extremely-rare
4•latexr•42m ago•1 comments

Put MCP next to your API, not on top of it

https://naftiko.io/blog/put-mcp-next-to-your-api-not-on-top/
2•jlouvel•44m ago•0 comments

Strategies Against Algorithms

https://strategies.schallundstille.de/en/welcome/
1•negura•47m ago•1 comments

NYC Council passes ban on 'surveillance pricing'

https://gothamist.com/news/nyc-council-passes-ban-on-surveillance-pricing-that-relies-on-personal...
10•jonbaer•53m ago•5 comments