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

Comments

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

Mahjong: A Visual Guide

https://themahjong.guide/
1•iamwil•7m ago•0 comments

DeepSeek V4 is out. the best open-source on coding. here's the breakdown

2•Alisaqqt•7m ago•0 comments

Ada's Technical Books in Seattle will close

https://www.seattletimes.com/entertainment/books/capitol-hill-bookstore-adas-will-close-fuel-coff...
1•so-cal-schemer•9m ago•1 comments

Free API for real-time Australian emergency data (27 feeds, all 8 states)

https://emergencyapi.com
1•JackDemps•10m ago•0 comments

The Toroidal Momentum Engine: A Workable Version of Infinity

https://zenodo.org/records/19572243
2•SCAQTony•11m ago•0 comments

Mini ML Blog

https://mni-ml.github.io/
1•SoulMan•12m ago•0 comments

Nvidia's B200 costs around $6,400 to produce

https://epoch.ai/data-insights/b200-cost-breakdown
1•KnuthIsGod•13m ago•0 comments

Privacy Setup for Android 16 with GrapheneOS

https://xn--gckvb8fzb.com/privacy-setup-for-android-16-with-grapheneos/
2•HotGarbage•14m ago•0 comments

Equity for Europeans

https://lucumr.pocoo.org/2026/4/23/equity-for-europeans/
2•Tomte•14m ago•0 comments

If AI existed in 2011 would we still have the modern web

https://webmatrices.com/post/if-ai-existed-in-2011-would-we-still-have-the-modern-web
1•bishwasbh•19m ago•0 comments

Is possible a language easy as py, fast as C, more secure than Rust?

1•jerryzhang66•20m ago•0 comments

Harnesses Explained: The Inner and Outer Workings of the Coding Agent Harness

https://codagent.beehiiv.com/p/harnesses-explained
3•paulcaplan•22m ago•1 comments

Turn messy chats into structured TODOs and notes automatically

https://noteithub.com
1•pardisapporify•26m ago•0 comments

DeepSeek V4 Flash

https://huggingface.co/deepseek-ai/DeepSeek-V4-Flash
6•S0y•27m ago•0 comments

DeepSeek 4 Launched

https://deepseek4.hk/
7•mariopt•30m ago•4 comments

In Defense of Blub Studies

https://www.benkuhn.net/blub/
2•jonnonz•31m ago•0 comments

Need Help Please

1•activist_mel•33m ago•0 comments

A quick look at Mythos run on Firefox: too much hype?

https://xark.es/b/mythos-firefox-150
2•leonidasv•35m ago•0 comments

Hello from Berkeley

https://fluoverse.com
2•Panos_moschos•37m ago•1 comments

Anthropic Engineering Postmortem: Claude's 60-Minute Memory Bug

https://www.aiuniverse.news/claudes-memory-lapse-a-bug-erased-its-reasoning-after-an-hour/
1•aiuniversenews•39m ago•0 comments

DeepSeek-V4

https://huggingface.co/collections/deepseek-ai/deepseek-v4
4•meetpateltech•40m ago•0 comments

DeepSeek-V4: Towards Highly Efficient Million-Token Context Intelligence

https://huggingface.co/deepseek-ai/DeepSeek-V4-Pro
51•cmrdporcupine•40m ago•7 comments

Dear friend, you have built a Kubernetes (2024)

https://www.macchaffee.com/blog/2024/you-have-built-a-kubernetes/
2•Wingy•40m ago•0 comments

The Centrality Fallacy and ACM

https://cacm.acm.org/opinion/the-centrality-fallacy-and-acm/
2•pykq•42m ago•0 comments

DeepSeek-V4 Preview Version is launched

2•lanbin•42m ago•0 comments

OpenInterpretability

https://openinterp.org/
2•caiovicentino•45m ago•0 comments

DeepSeek v4

https://api-docs.deepseek.com/
42•impact_sy•47m ago•6 comments

2026 Ruby on Rails Community Survey

https://railsdeveloper.com/survey/
11•mooreds•47m ago•0 comments

MemCoT: Test-Time Scaling Through Memory-Driven Chain-of-Thought

https://arxiv.org/abs/2604.08216
2•MemTensor•47m ago•1 comments

Claude Opus 4.6 was nerfed prior to release of Opus 4.7

https://twitter.com/levelsio/status/2047387029915271445
1•nomilk•48m ago•0 comments