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

Comments

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

Beebo Wave Simulator

https://git.sr.ht/~willowf/beebo/
1•anon25783•1m ago•1 comments

AI Dance Video Generator Online Free

https://www.aidancegenerator.org/
1•wsm123456•3m ago•0 comments

Show HN: Apps posted here classified by LLM

https://github.com/johndimm/show-hn-classified
1•johndimm•4m ago•1 comments

Personal Taste Is the Moat

https://wangcong.org/2026-01-13-personal-taste-is-the-moat.html
1•gpi•7m ago•0 comments

Pixel 6 and 7 Updates Are Missing: Here's What Is Happening with Your Pixel

https://www.droid-life.com/2026/01/12/pixel-6-pixel-7-updates-schedule-missing/
2•keithoffer•8m ago•0 comments

Claude Code CVE-2025-66032: Why Allowlists Aren't Enough

https://niyikiza.com/posts/cve-2025-66032/
1•niyikiza•8m ago•0 comments

CES 2026:A thumb-sized computer with hardware-isolated OS over USB

https://plugos.net/news/2026/01/08/plugos-at-ces.html
1•TrustKernel•10m ago•0 comments

CIA and Chinese PLA joined hands in Cold War op to snoop on Soviet nukes • 2022

https://theprint.in/world/how-cia-chinese-pla-joined-hands-in-secret-cold-war-op-to-snoop-on-sovi...
1•richardatlarge•11m ago•0 comments

Mao Card Game

https://en.wikipedia.org/wiki/Mao_(card_game)
1•marysminefnuf•12m ago•0 comments

Developer writes script to throw AI out of Windows

https://www.theregister.com/2026/01/13/script_removes_ai_from_windows/
1•Brajeshwar•13m ago•1 comments

Uber Airport Demand Forecasting

https://www.uber.com/blog/forecasting-models-to-improve-availability-at-airports/
1•brettcvz•18m ago•0 comments

China's Hottest New App Is 'Are You Dead Yet'

https://www.wired.com/story/china-are-you-dead-yet-app/
1•Kholin•19m ago•0 comments

Why India's plan to make AI companies pay for training data should go global

https://restofworld.org/2026/india-ai-data-license-fee/
2•Brajeshwar•23m ago•0 comments

Google please stop blocking my parody website

https://ivanca.github.io/censorship/2026/01/13/google-stop-blocking-my-parody-website/
1•AmbroseBierce•31m ago•0 comments

FateTell – Chinese I Ching and BaZi AI with physics-based interaction

https://fatetell.com/
2•Farigh4•31m ago•1 comments

Artificial StupidIntelligence and Airport Sinks

https://www.deobald.ca/essays/2026-01-13-artificial-stupidintelligence-and-airport-sinks/
1•deobald•31m ago•0 comments

The Jock Programming Language

https://jock.org
2•Antibabelic•33m ago•1 comments

Leash by StrongDM

https://leash.strongdm.ai/
2•handfuloflight•35m ago•0 comments

GLM-Image: High-Fidelity Image Generation

https://glmimage.com
2•sarkory•39m ago•1 comments

Why do so many students have ADHD?

https://unherd.com/2026/01/why-do-so-many-students-have-adhd/
3•jnord•43m ago•0 comments

Show HN: Soulcaster – Cluster feedback, spin up an agent to fix it

https://www.soulcaster.dev/
1•codecracker3001•49m ago•0 comments

What Will Work (and Won't) in SaaS in 2026:- Lessons from Building 100 Tools

https://digiwares.xyz/blog/saas-2026-predictions
3•digi_wares•54m ago•1 comments

Locksport Network Directory

https://locksport.net/
2•memoriesofsmell•54m ago•1 comments

Warmer climate, spicier food. But which country is the spiciest?

https://bigthink.com/strange-maps/temperature-spiciness-spectrum/
2•thunderbong•56m ago•0 comments

My Conversation with Stacey Abrams

https://snyder.substack.com/p/live-with-professor-timothy-snyder
1•hkhn•57m ago•0 comments

China may crack down on "Singapore-washed" tech companies

https://www.axios.com/2026/01/13/china-meta-manus-singapore
2•doppp•1h ago•0 comments

Ancient Rome meets modern technology

https://apnews.com/article/italy-palatine-hill-livestream-tours-emperor-frescoes-e63327f43424e125...
1•frm88•1h ago•1 comments

New Physics Paper: Resolving the Hubble Tension [pdf]

https://github.com/localtimeacceleration/LTA/blob/main/lta_paper.pdf
1•localtimeaccel•1h ago•1 comments

Apple Creator Studio

https://www.apple.com/apple-creator-studio/
1•aenean•1h ago•1 comments

Experiments with Kafka's head-of-line blocking (2023)

https://www.artur-rodrigues.com/tech/2023/03/21/kafka-head-of-line-blocking.html
1•teleforce•1h ago•0 comments