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.

Automate a Full-Stack, Multi-Environment Deployment Pipeline with GitHub Actions

https://magill.dev/post/automating-a-full-stack-multi-environment-deployment-pipeline
1•andymagill•1m ago•0 comments

Epstein: Gates caught STD from trafficked girls, discussed medicating Melinda

https://twitter.com/Furbeti/status/2017284599953428654/photo/1
2•wahnfrieden•2m ago•1 comments

Sidequest

https://github.com/JustakCZ/Sidequest
1•Justakcz•3m ago•0 comments

Book of Verse

https://verselang.github.io/book/
1•pizlonator•3m ago•0 comments

Why profitable companies still fail: cash timing, not margins

1•dispelda•3m ago•0 comments

What Is an LRAD, and Why People Are Asking Us About It

https://blog.adafruit.com/2026/01/30/what-is-an-lrad-and-why-people-are-asking-us-about-it/
1•ptorrone•3m ago•0 comments

Euro firms must ditch Uncle Sam's clouds and go EU-native

https://www.theregister.com/2026/01/30/euro_firms_must_ditch_us/
1•CrankyBear•4m ago•0 comments

Can AI Learn Its Own Rules? We Tested It

https://shablag.substack.com/p/can-ai-learn-its-own-rules-we-tested
1•eluusive•4m ago•1 comments

Notification Underload

https://zuma9pt5.com/notification-underload/
1•todsacerdoti•4m ago•0 comments

The Metamorphosis of Prime Intellect

https://en.wikipedia.org/wiki/The_Metamorphosis_of_Prime_Intellect
1•sowbug•7m ago•0 comments

Learn Lean (Lang for Math Proof) from a Programmer's Perspective

https://www.dataisland.org/blog/lean-1.html
1•dataisland99•9m ago•0 comments

UK's first rapid-charging battery train ready for boarding this weekend

https://www.theguardian.com/business/2026/jan/30/uk-first-rapid-charging-battery-train
1•MBCook•10m ago•0 comments

Apple Faces AI Talent Exodus as Top Siri Leader Joins Google DeepMind

https://www.bloomberg.com/news/articles/2026-01-30/apple-loses-more-ai-researchers-and-a-siri-exe...
1•coloneltcb•11m ago•1 comments

Practical Strategies for Optimizing Gemini API Calls

https://irwinbilling.com/optimizing-gemini-api-calls/
1•niwri•11m ago•0 comments

I Gave Claude a Body [video]

https://www.youtube.com/watch?v=jBpQiv-ZlVM
1•freediver•11m ago•0 comments

Cholinergic modulation of dopamine release drives effortful behaviour

https://www.nature.com/articles/s41586-025-10046-6
1•XzetaU8•12m ago•0 comments

Output and Organizing

https://pixelpaperyarn.rocks/blog/output-and-organizing/
1•mooreds•13m ago•0 comments

Is it time to break up with US big tech? [video]

https://www.theguardian.com/news/video/2026/jan/30/is-it-time-to-break-up-with-us-big-tech-the-la...
3•billybuckwheat•13m ago•0 comments

Handlejson v1.0.0 – Safe JSON parsing without try-catch spam

https://github.com/chintanshah35/handlejson
1•chintanshah35•14m ago•1 comments

Lithe – A Web Framework for Lean4

https://github.com/JoshuaPurtell/lithe
3•JoshPurtell•14m ago•1 comments

Yann LeCun – Why LLMs Will Never Get Us to AGI (2025)

https://www.the-information-bottleneck.com/ep20-yann-lecun/
4•ripe•15m ago•1 comments

The Claude Constitution as Techgnostic Scripture

https://turbulence.substack.com/p/the-claude-constitution-as-techgnostic
1•ivm•15m ago•0 comments

Apache Doris Up to 40x Faster Than ClickHouse

https://www.velodb.io/blog/apache-doris-40x-faster-clickhouse-tpc-ds
1•ahachete•16m ago•0 comments

Smaller Grains Are Not Stronger: Microcrystalline Metals at High Strain Rates

https://journals.aps.org/prl/abstract/10.1103/yp9h-sr2m
2•PaulHoule•16m ago•0 comments

Tesla Just Killed the Most Important Car of the 21st Century

https://www.theatlantic.com/technology/2026/01/tesla-cancelling-model-s/685821/
3•fortran77•16m ago•1 comments

Windows 8 had a 30-second ad with more creativity than Windows 11

https://www.windowslatest.com/2026/01/29/windows-8-had-a-30-second-ad-with-more-creativity-than-a...
2•abnercoimbre•17m ago•0 comments

Ask HN: Why the OpenClaw hype? What's so special?

2•anon_anon12•18m ago•1 comments

Claude on Mars

https://www.anthropic.com/features/claude-on-mars
2•Philpax•19m ago•1 comments

A Story of Computer-Use: Where We Started, Where We're Headed

https://cua.ai/blog/clawdbot-computer-use-history
1•frabonacci•20m ago•0 comments

The Gestalt of Determinism

https://www.mathpages.com/rr/s9-07/9-07.htm
1•joebig•20m ago•0 comments