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.

Micro Mock – instant OpenAPI mock server in VS Code, with chaos testing

https://github.com/SamirHodzic/micro-mock
1•samirh•2m ago•0 comments

Prompts Aren't Real

https://evaluation.club
2•mcfunley•8m ago•0 comments

You need another HTML abstraction

https://github.com/spcbeck/ouroboros-html
2•karlbarks•11m ago•0 comments

The Depression Thing (2017)

https://zachholman.com/posts/the-depression-thing
2•joebig•11m ago•0 comments

A Beginning for Mathematics

https://proofsandprompts.com/2026/09/14/a-beginning-for-mathematics/
5•pact_inference•12m ago•1 comments

97% of US database administrators are running obsolete programs

https://www.zdnet.com/business/why-companies-use-outdated-dbms-percona-report/
1•CrankyBear•14m ago•1 comments

One monkey mind's 10 days of silence

https://notetoself.studio/post/one-monkey-mind-s-10-day-silent-meditation-course/
2•Eridanus2•16m ago•0 comments

Ask HN: Is your AI LLM based web service secure from prompt injection?

2•roschdal•18m ago•1 comments

Submit your ideas for Interop 2027

https://webkit.org/blog/18283/submit-your-ideas-for-interop-2027/
1•stwrt•19m ago•0 comments

The Cool Numbers' Club at PostHog

https://coolnumbersclub.posthog.com/
1•rbaudibert•20m ago•0 comments

Valve's Steam Frame costs $1,059

https://www.theverge.com/games/994376/valve-steam-frame-vr-headset-price-release-date
3•sbulaev•20m ago•1 comments

Trip Report on VLDB 2026

https://thinklinks.wordpress.com/2026/09/13/trip-report-vldb-2026/
1•pgroth•20m ago•0 comments

SmartPantry – Free grocery expiry tracker with no sign-ups

1•syedarutaba•22m ago•0 comments

Show HN: Closebytes – 60k open-source projects in a similarity point cloud

https://closebytes.com
1•boredCoconut•22m ago•0 comments

Meta bet that AI would shrink its management ranks and is now rebuilding them

https://fortune.com/2026/09/12/meta-year-of-efficiency-managers-ai-investment/
1•ryandrake•25m ago•0 comments

Apache Cloudberry's ecosystem docs cover LibreDB Studio as a native SQL client

https://cloudberry.apache.org/docs/ecosystem/sql-clients/libredb-studio/
2•abdullahk0634•27m ago•2 comments

How to Unclench

https://howtounclench.com/
1•jonnymiller•28m ago•0 comments

Why estimates of hallucinated citations are probably low

https://veruscite.com/blog/hallucinated-citation-estimates-are-low
1•apwheele•29m ago•0 comments

The agents are coming for the web and the web isn't ready

https://info.varnish-software.com/blog/the-agents-are-coming-for-the-web-and-the-web-isnt-ready
2•ingve•30m ago•1 comments

GPT-5.6 Luna vs. GPT-6 Astra: Is a $1.20 Model Good Enough for Code Review?

https://entelligence.ai/blogs/gpt-5.6-luna-vs-gpt-6-astra-is-a-1.20-model-good-enough-for-code-re...
22•theanonymousone•30m ago•9 comments

Show HN: Free tool to check how ChatGPT and Perplexity rank your brand

https://ukaiseoconsultant.co.uk/ai-driven-seo-audits/
2•auaiseo•31m ago•2 comments

Coastal trapped waves FAQ and realtime animations

https://www.dillonamaya.com/home/ctw
1•dangle1•34m ago•0 comments

Making a vintage LLM from scratch; Take #2

https://crlf.link/log/entries/260911-1/
2•croqaz•34m ago•1 comments

The Accelerationist Case for Frontier Pacing

https://contraptions.venkateshrao.com/p/the-accelerationist-case-for-frontier
1•jger15•36m ago•0 comments

Show HN: Local historical wind and gust visualizer

https://tamtamhero.github.io/localwind/
1•popol12•36m ago•0 comments

Show HN: Pull every comment out of a Google Sheet, in the browser

https://bensunter.com/commentpulse.html
2•bsunter2•36m ago•0 comments

Show HN: Build2me – Prove2Me for software agent swarms build code

https://github.com/shitianfang/build2me
1•shitianfang•37m ago•0 comments

Show HN: Slowave – local adaptive memory for coding agents

https://github.com/slowave-ai/slowave
1•mrsalty•37m ago•0 comments

Agentic AI cringe wars [video]

https://www.youtube.com/watch?v=U-Rqv9dOB1U
2•simonebrunozzi•38m ago•0 comments

DeepSeek down for API/app and web

https://downdetector.co.uk/status/deepseek/
4•nickweb•38m ago•1 comments