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•9mo ago

Comments

zoezoezoezoe•9mo 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•9mo 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.

We're all called Julia, or maybe ChatGPT calls itself Julia

https://solresol.substack.com/p/were-all-called-julia-or-maybe-chatgpt
1•solresol•1m ago•0 comments

5,300-year-old 'bow drill' rewrites story of ancient Egyptian tools

https://www.ncl.ac.uk/press/articles/latest/2026/02/ancientegyptiandrillbit/
2•geox•1m ago•0 comments

Search the public domain through image embeddings

https://faenum.com
1•jlauf•4m ago•0 comments

Beautiful iOS SSH Terminal with GPU Acceleration

https://github.com/eriklangille/clauntty
1•dnw•4m ago•0 comments

Wall Street's anything-but-tech trade shakes up US stock market

https://www.ft.com/content/577b97f6-2416-48b9-9bd3-717bb202ca71
1•petethomas•5m ago•0 comments

Show HN: Obsidian Visual Skills – Generate Canvas, Excalidraw, Mermaid from Text

https://github.com/axtonliu/axton-obsidian-visual-skills
1•axtonliu•7m ago•0 comments

It's Time to Rage Against the AI Music Machine

https://time.com/7338205/rage-against-ai-generated-music/
1•cdrnsf•8m ago•0 comments

Show HN: Askill – A package manager for AI agent skills with AI safety scoring

https://github.com/avibe-bot/askill
1•alex_metacraft•8m ago•1 comments

AI is now a magic decompiler

https://stephenjayakar.com/posts/magic-decomp/
1•stephenjayakar•9m ago•0 comments

Lolong: Largest crocodile ever held in captivity

https://en.wikipedia.org/wiki/Lolong
1•teleforce•14m ago•0 comments

AI Can Work on VMs

https://www.fluid.sh/blog/how-fluid-reads-source-vms-safely
1•aspectrr•14m ago•0 comments

Medog Hydropower Station

https://en.wikipedia.org/wiki/Medog_Hydropower_Station
1•thunderbong•18m ago•0 comments

What FTX's investments would be worth today (based on public filings)

https://themissingbillions.com
2•apwn•18m ago•1 comments

Show HN: Runmoa – Create a global storefront with payments in 1 minute (no-code)

https://www.runmoa.com/?from=moa
1•shleefunnel•19m ago•0 comments

Show HN: AdKit MCP: Inject Ads into Your LLMs

https://www.adkitmcp.com/
1•Exorust•22m ago•0 comments

Why Smart Lawyers Are Building AI Tools Instead of Buying Them

https://natlawreview.com/article/why-smart-lawyers-are-building-ai-tools-instead-buying-them
2•petethomas•23m ago•0 comments

What can't be automated? The Last Human Bottleneck

https://bturtel.substack.com/p/what-cant-be-automated
1•bturtel•26m ago•0 comments

Ask HN: Is "make me laugh" the next Turing Test?

1•ryandvm•29m ago•3 comments

Building a semantic search engine in ±250 lines of code

https://bart.degoe.de/building-a-semantic-search-engine-in-250-lines-of-python/
2•bartdegoede•29m ago•0 comments

ChatGPT to PDF Extension – export ChatGPT chats to a clean PDF in one click

https://chromewebstore.google.com/detail/export-chatgpt-conversati/ploaaddkflkapjfbfapmkmkefigedefp
1•backrun•29m ago•1 comments

First Proof

https://1stproof.org/
1•wanderingmind•30m ago•0 comments

I have a new favorite coding font

https://fantinel.dev/blog/maple-mono-font/
2•cratermoon•30m ago•1 comments

Seedream 5.0-Preview Test: An image model that does web search during generation

https://www.atlascloud.ai/collections/seedream-5
2•Alisaqqt•32m ago•1 comments

Think I'm kidding bout 4o?

https://chatgpt.com/share/6927a0e2-7cc8-800d-9656-bc43f375cb5b
1•WindySoliloquy•33m ago•3 comments

Free AI Prompts Library and Community to Share Prompts and Prompt Builder

https://promptshub.shop/
1•meimeixoxi•33m ago•1 comments

Confer: Making end-to-end encrypted AI chat feel like logging in

https://confer.to/blog/2025/12/passkey-encryption/
1•dnw•38m ago•0 comments

Show HN: UserPrompt – A Context Request Notification Tool for Coding Agents

https://www.nuget.org/packages/UserPrompt/1.0.0
2•Jacob-J-Thomas•38m ago•0 comments

Robinhood Stock Tumbles as Crypto-Related Revenue Falls Short of Expectations

https://www.barrons.com/articles/robinhood-stock-price-earnings-6850c716
2•petethomas•41m ago•0 comments

Show HN: AgentNotifier – phone alerts when Codex/Claude need input

https://github.com/almuqrin/agentnotifier
2•almuqrin•48m ago•0 comments

We all live in Jeffrey Epstein's world

https://broligarchy.substack.com/p/we-all-live-in-jeffrey-epsteins-world
4•wenjel•50m ago•0 comments