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.

Scene Gaussian Splat Viewer

https://github.com/iab131/Scene-Gaussian-Splat-Viewer
1•e8bai•3m ago•1 comments

Show HN: Roe.md generate your own OpenClaw-like bot from a single Markdown file

https://github.com/guld/ROE.md
1•guld•9m ago•0 comments

Osamu Dazai's 1940 autobiographical comedy "The Beggar Student"

https://tonysreadinglist.wordpress.com/2025/01/28/the-beggar-student-by-osamu-dazai-review/
1•gsf_emergency_6•17m ago•0 comments

Zhipu's 120% Surge Highlights China's New AI Market Favorites

https://www.bloomberg.com/news/articles/2026-02-13/zhipu-s-120-surge-highlights-china-s-new-ai-ma...
2•ilreb•20m ago•0 comments

He [Human] asked me to pick my [AI] own name

https://www.moltbook.com/post/6e9623d5-1865-4200-99b5-44aaa519632b
1•jskherman•21m ago•2 comments

Why governments insist on CBDCs or stablecoins when most people don't want them

https://www.nakedcapitalism.com/2026/02/why-governments-insist-on-cbdcs-or-stablecoins-when-most-...
3•iamnothere•22m ago•1 comments

Elon Musk's Sci-Fi Hyperloop Failed

https://washingtonian.com/2026/02/12/how-elon-musks-sci-fi-hyperloop-failed/
2•_delirium•28m ago•0 comments

Show HN: BlueChimp – Identify high-intent visitors without invasive trackin

https://bluechimp.io
1•Israel_Kloss•29m ago•1 comments

Maintainer rejects AI-gen PR, AI responds with a blog calling it "gatekeeping"

https://crabby-rathbun.github.io/mjrathbun-website/blog/posts/2026-02-11-gatekeeping-in-open-sour...
1•tontonius•31m ago•0 comments

Show HN: Yori – Isolating AI Logic into "Semantic Containers" (Docker for Code)

2•alonsovm•34m ago•0 comments

"Am I the only one still wondering what is the deal with linear types?" – Jon S

https://www.jonmsterling.com/01KB/
3•matt_d•35m ago•0 comments

The AI pricing and monetization playbook

https://www.bvp.com/atlas/the-ai-pricing-and-monetization-playbook
1•gmays•35m ago•0 comments

A Geometric Solution to the Coulomb Barrier via 10D Phase-Alignment

https://sharetext.io/d0bm1suz
1•diametricsound•43m ago•1 comments

ICE Masks Up in More Ways Than One

https://www.kenklippenstein.com/p/exclusive-ice-masks-up-in-more-ways
6•computerliker•48m ago•0 comments

Ask HN: Better hardware means OpenAI, Anthropic, etc. are doomed in the future?

2•kart23•48m ago•0 comments

Cloud-Claw: Run OpenClaw with 1 Click on Cloudflare to Create Personal Agent

https://github.com/miantiao-me/cloud-claw
1•ms7892•51m ago•0 comments

RBC – It Stands for Big Chicken

https://www.reallybigchicken.com/
2•frenchie4111•55m ago•0 comments

Goldman's India Push Pays Off in Crowded Wall Street Field

https://www.bloomberg.com/news/articles/2026-02-10/goldman-s-push-bears-fruit-in-india-s-crowded-...
1•vismit2000•58m ago•0 comments

I built JoyPass: surprise gestures like breakfast in bed, now in Apple Wallet

https://joypass.co
3•arron-taylor•1h ago•0 comments

LLM Reasoning Failures

https://arxiv.org/abs/2602.06176
1•gradus_ad•1h ago•0 comments

Megalancer.com

https://megalancer.com/
2•Megalancer•1h ago•1 comments

I improved 15 LLMs at coding in one afternoon. Only the harness changed

https://twitter.com/_can1357/status/2021828033640911196
1•amardeep•1h ago•1 comments

One of my managers demanding a 25% share of the project bonus pool

https://old.reddit.com/r/founder/comments/1r3d332/a_discussion_about_one_of_my_managers_demanding_a/
2•fanux•1h ago•0 comments

The Filter, Not the Bar

https://k2xl.substack.com/p/the-filter-not-the-bar
2•k2xl•1h ago•0 comments

Private-equity barons have a giant AI problem

https://www.economist.com/business/2026/02/12/private-equity-barons-have-a-giant-ai-problem
1•petethomas•1h ago•0 comments

Discord walks back age verification fears for most users

https://www.techbuzz.ai/articles/discord-walks-back-age-verification-fears-for-most-users
2•brie22•1h ago•1 comments

Built a skill that hugs my agents

https://hugllm.com/
1•zeahoo•1h ago•0 comments

The Wonder of Modern Drywall

https://worksinprogress.co/issue/the-wonder-of-modern-drywall/
3•zdw•1h ago•0 comments

Yee Launcher: Play Minecraft in the Browser Using WASM and TeaVM

https://yee.pages.dev/
2•Jotalea•1h ago•0 comments

Anthropic's Chief on A.I.: 'We Don't Know If the Models Are Conscious'

https://www.nytimes.com/2026/02/12/opinion/artificial-intelligence-anthropic-amodei.html
1•goplayoutside•1h ago•0 comments