frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

India's payments regulator rolls tap to pay outside Visa and Mastercard networks

https://twitter.com/npci_npci/status/2098072369973825677
1•villgax•1m ago•0 comments

Computer Use Agents Are Excellent QA Engineers

https://tristanrhodes.com/blog/Computer-Use-Agents-are-Excellent-QA-Engineers
1•partypete•1m ago•0 comments

LG Denies Accusations of Smart TVs Continuously Recording Its Users

https://www.engadget.com/2256728/lg-denies-accusations-of-smart-tvs-continuously-recording-its-us...
1•speckx•4m ago•0 comments

Can A.I. "Go Rogue"?

https://www.newyorker.com/culture/open-questions/can-ai-go-rogue
1•saikatsg•5m ago•0 comments

Dario Just Said Pump the Brakes on AI

https://captaincompliance.com/education/dario-just-proposed-slowing-ai-development-on-purpose/
1•richartruddie•5m ago•1 comments

I just made a Git platform hosted on the blockchain

https://infinigit.com/
1•cd-4•5m ago•0 comments

Lind-project: Run untrusted POSIX applications, safely, in one process

https://lind-project.github.io/
1•ryuuseijin•7m ago•0 comments

Our First 30 Mins with the Steam Frame (Leak)

https://archive.org/details/our-first-30-mins-with-the-steam-frame-u-8-r-bnz-1-mpu
1•himata4113•8m ago•0 comments

Tolkien Gateway Encyclopedia Dedicated to JRR Tolkien

https://tolkiengateway.net/wiki/Tolkien_Gateway
1•Bluestein•9m ago•0 comments

Diablo V Teaser – The Return [video]

https://www.youtube.com/watch?v=GxCN_AKYtts
1•HelloUsername•9m ago•0 comments

Adversarial Examples Are Not Bugs, They Are Features (2019)

https://gradientscience.org/adv/
1•Bluestein•11m ago•0 comments

We Built Drone-Bench

https://twitter.com/andonlabs/status/2098832876288749604
1•pretext•11m ago•0 comments

Show HN: Spellfort – voice-controlled games for the edge of sleep

https://spellfort.gg/
1•gajus•12m ago•0 comments

Open Source GRC Platform

https://github.com/getprobo/probo
1•gearnode•12m ago•0 comments

An interactive atlas of middle earth

https://atlas.bag-end.eu/
1•benny_s•13m ago•0 comments

Caroline Ellison has joined Manifund

https://forum.effectivealtruism.org/posts/pMpEKwY2ATJK5yrvG/caroline-ellison-has-joined-manifund
3•qlte•13m ago•1 comments

AI Bubble Crashing Its Way into AI Abundance?

2•hmichaelson24•15m ago•1 comments

Starcraft – Announce Cinematic – Dominion [video]

https://www.youtube.com/watch?v=9eQUtOQXYgQ
1•HelloUsername•15m ago•1 comments

Show HN: Stackray – Detect any website's tech stack

https://stackray.app
2•seelos•17m ago•0 comments

What the iPhone Neural Engine Does and Why It Matters

https://campaignmanagement.copcap.com/journal/what-the-iphone-neural-engine-does-and-why-it-matte...
1•alwillis•18m ago•0 comments

Show HN: Ember – a strategy game where everyone moves at once

https://playember.gg/
2•sundaypancakes•23m ago•0 comments

'We must slow the pace': CEO of Anthropic calls for an AI slowdown

https://www.theguardian.com/technology/2026/sep/12/we-must-slow-the-pace-ceo-of-anthropic-calls-f...
6•tzmlab•24m ago•1 comments

Scaling classical music concert crawlers with AI agents

https://classicalbot.com/blog/scaling-classical-music-concert-crawlers-with-ai-agents
1•druskacik•25m ago•0 comments

Anthropic CEO Says It's Time to Slow AI Model Advances

https://www.bloomberg.com/news/articles/2026-09-12/anthropic-ceo-says-it-s-time-to-slow-pace-of-i...
5•sbulaev•25m ago•1 comments

Trade war puts spotlight on Canada's relationship with U.S. big tech

https://www.cbc.ca/radio/justasking/canada-digital-sovereignty-just-asking-9.7337778
1•Teever•26m ago•0 comments

Show HN: Wlmoves - Move nested Wayland windows between TTYs automatically

https://github.com/skorotkiewicz/wlmoves
1•modinfo•26m ago•0 comments

From Neural Networks to Logical Theories

https://arxiv.org/abs/2509.23912
1•measurablefunc•27m ago•0 comments

Digital Research's GEM opens a new window on Linux

https://www.theregister.com/software/2026/09/11/digital-researchs-gem-opens-a-new-window-on-linux...
1•rbanffy•30m ago•0 comments

DEF Con 34 – Hacking AI – Bruce Schneier [video]

https://www.youtube.com/watch?v=eEBv0STiYhI
1•Klaster_1•31m ago•0 comments

Show HN: Music Generation Backed by Algebra

https://monictheory.com
1•song_synth•37m ago•0 comments
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.