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.

Relax NG is a schema language for XML

https://relaxng.org/
1•Frotag•30s ago•0 comments

An indie blog's directory of indie blog directories

https://www.autodidacts.io/indie-blog-directory-directory/
1•Curiositry•59s ago•0 comments

Zed new terms required to be 18 years old

https://zed.dev/terms
1•keyle•2m ago•0 comments

Working on Things That Suck

https://mayberay.bearblog.dev/working-on-things-that-suck/
1•mugamuga•2m ago•0 comments

Asus Zenbook A14

https://www.asus.com/laptops/for-home/zenbook/asus-zenbook-a14-ux3407/
1•tosh•2m ago•0 comments

macOS Will Alert You to MacBook Neo's USB-C Port Limitation

https://www.macrumors.com/2026/03/04/macbook-neo-usb-c-port-limitation/
1•tosh•7m ago•0 comments

I Lost $150 in 20 Minutes Market-Making on Kalshi

https://rlafuente.com/posts/2025-3-5-i-lost-150-market-making-on-kalshi
2•andes314•14m ago•0 comments

Spektr – Ask plain English questions about any CSV, get charts

https://github.com/spektr-org/spektr
1•thepocketledger•17m ago•0 comments

Major TCPA Shift: Fifth Circuit Rules Oral Consent Is Valid

https://natlawreview.com/article/major-tcpa-shift-fifth-circuit-rules-oral-consent-valid
2•petethomas•17m ago•0 comments

OpenAI Symphony

https://github.com/openai/symphony
1•tosh•17m ago•0 comments

Show HN: Stop wasting time managing your hardware projects and focus on building [video]

https://www.youtube.com/watch?v=YPuKl5_qoG8
1•oleksg•19m ago•0 comments

Show HN: We built governed multi-agent teams months before Anthropic announced

https://github.com/rigovo/rigovo-virtual-team
1•erashu212•20m ago•0 comments

Monica helps you organize the social interactions with your loved ones

https://www.monicahq.com/
1•rickcarlino•23m ago•0 comments

Show HN: Orion – Native Training LLMs on the Apple Neural Engine Without CoreML

https://github.com/mechramc/Orion
2•mechramc•24m ago•1 comments

I quit my YC job and moved to the USA to change how people learn to code

https://www.aximon.ai/
2•dizerv2•26m ago•0 comments

AI Scenarios: From Doomsday Destruction to Do-Nothing Bots

https://aswathdamodaran.blogspot.com/2026/03/ai-scenarios-from-economic-doomsday-to.html
2•jshchnz•29m ago•0 comments

Show HN: Linkly AI – Spotlight for AI Agents

https://linkly.ai
2•blueeon•30m ago•1 comments

Show HN: Nowline, a real-time trend signal feed

https://nowline.ai
2•ddakbro•32m ago•1 comments

Ask HN: iOS Alarm Bug or Intended?

3•stovestone•36m ago•0 comments

LLM model statistics from my Strix testing

https://theartificialq.github.io/2026/03/03/llm-model-statistics-from-my-strix-testing.html
1•HonzaT•38m ago•0 comments

Why a Robotics Startup's Failure Proves the Robot Starts with the Actuator

https://www.firgelli.com/blogs/news/k-scale-labs-failure-proves-robot-starts-with-actuator
1•RobbieDickson•47m ago•0 comments

Relicensing with AI-Assisted Rewrite

https://tuananh.net/2026/03/05/relicensing-with-ai-assisted-rewrite/
18•tuananh•54m ago•9 comments

NHS official pushed to add patient data to Palantir while advising company

https://www.ft.com/content/6c548670-0f3e-45f1-ba08-8bb6dd152af5
6•Jimmc414•57m ago•0 comments

Large-Scale Agentic RL for CUDA Kernel Generation

https://cuda-agent.github.io/
2•gmays•1h ago•0 comments

Ask HN: Seeing More Techcrunch on Frontpage?

1•par•1h ago•0 comments

Website showing LLM solutions to Knuth's Problems?

1•daly•1h ago•0 comments

Unified In-Process Agent Interface for Claude Code, Codex, Kimi

https://github.com/odysa/one-agent-sdk
2•agentforce•1h ago•0 comments

DOJ proposes policy aimed at limiting state bar ethics probes into its attorneys

https://abcnews.com/US/doj-proposes-policy-aimed-limiting-state-bar-ethics/story?id=130755238
14•petethomas•1h ago•1 comments

Global Consciousness Live Data

https://gcp2.net/#home_page_live_data
3•avonmach•1h ago•1 comments

RoundsKeeper – Score tracking for board/card games (Swift/SwiftUI, iCloud sync)

https://apps.apple.com/us/app/roundskeeper/id6754217431
1•justbustr•1h ago•1 comments