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

Comments

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

Show HN: Transcript-critic, Claude Code skill: transcribe and critically analyze

https://github.com/jftuga/transcript-critic
1•jftuga•30s ago•0 comments

Cilium Up and Running book released (including free eBook)

https://isovalent.com/blog/post/cilium-up-and-running/
1•tanelpoder•1m ago•0 comments

Ladybird: Closing this as we are no longer pursuing Swift adoption

https://github.com/LadybirdBrowser/ladybird/issues/933
1•thewavelength•3m ago•0 comments

Ukraine's no man's land is the future of war

https://www.ft.com/content/9c7542d4-1b2b-4062-b53d-bb02b5f12851
2•danielmorozoff•4m ago•0 comments

Stress-hardening behaviour of biofilm streamers

https://www.nature.com/articles/s41467-025-64557-x
1•PaulHoule•7m ago•0 comments

Chinese New Year v.s. Lunar New Year

3•dogclaw•7m ago•0 comments

Smart model routing for agentic coding

https://knowmatic-lab.xyz/
1•tmickleydoyle•7m ago•0 comments

PlanetScale vs. Supabase Benchmarks

https://planetscale.com/benchmarks/supabase
1•aarvinroshin•8m ago•0 comments

An Exercise in Agentic Coding: AV1 Encoder from Scratch in Rust

https://caricio.com/blog/an-exercise-in-agentic-coding-av1-encoder-from-scratch-in-rust/
1•rjcaricio•8m ago•0 comments

Show HN: Faultline – Open-source AI agent for infrastructure debugging

https://github.com/chatwoot/faultline
1•pranav_rajs•9m ago•1 comments

Missing skiers found dead following deadliest U.S. avalanche in 45 years

https://abcnews.com/US/backcountry-skiers-missing-avalanche-northern-california-authorities/story...
4•sizzle•13m ago•0 comments

Harrier: A high-performance Rust hashmap using SIMD-accelerated cuckoo hashing

https://github.com/kushalthaman/harrier
1•kushalt•13m ago•1 comments

Show HN: Generate baseline Kubernetes NetworkPolicies from rendered manifests

https://github.com/dormstern/segspec
1•dormstern•14m ago•0 comments

OpenAI's acquisition of OpenClaw signals the end of the ChatGPT era

https://venturebeat.com/technology/openais-acquisition-of-openclaw-signals-the-beginning-of-the-e...
2•gmays•14m ago•0 comments

Ask HN: In Cursor/agents, do plugins hide MCP tools from the main agent?

2•azebazenestor•16m ago•0 comments

Show HN: Designing package namespacing for a new language (Coi)

1•io_eric•18m ago•0 comments

Oral History of Michael J. Flynn [video]

https://www.youtube.com/watch?v=OD2uE9X9BPs
1•matt_d•18m ago•0 comments

Show HN: Build Minecraft mods and servers in the browser

https://www.orcaengine.ai/
1•ekduman•19m ago•0 comments

Micron's PCIe 6.0 SSD Hits Mass Production at 28 GB/S

https://www.tomshardware.com/pc-components/ssds/worlds-first-pcie-6-0-ssd-enters-mass-production-...
2•m463•22m ago•0 comments

Show HN: HiddenState – How I keep up with 500+ ML papers a day

https://hiddenstate.io/archive/2026-02-18
1•CosmoSantoni•22m ago•1 comments

Britain Lost a Quarter of all pubs (14,000 Pubs) in 13 Years

https://laurenleek.substack.com/p/britain-lost-14000-third-places-they
2•m463•23m ago•1 comments

All Look Same?

https://alllooksame.com/
5•mirawelner•24m ago•0 comments

Martial arts robots dazzle at 2026 Spring Festival Gala [video]

https://www.youtube.com/watch?v=mUmlv814aJo
3•lisper•24m ago•0 comments

Show HN: Geneclaw – An AI agent framework that safely evolves its own code

https://github.com/Clawland-AI/Geneclaw
1•geneclawai•25m ago•1 comments

GitSyncMarks – Browser extension that syncs bookmarks to your own GitHub repo

https://github.com/d0dg3r/GitSyncMarks
2•d0dg3r•30m ago•1 comments

Owning Your Data

https://www.coryd.dev/posts/2026/owning-your-data
3•cdrnsf•31m ago•0 comments

Andrew Ranken, Whose Drumming Powered the Pogues, Dies at 72

https://www.nytimes.com/2026/02/11/arts/music/andrew-ranken-dead-the-pogues.html
2•bookofjoe•31m ago•1 comments

Astrolabe

https://en.wikipedia.org/wiki/Astrolabe
2•jhncls•31m ago•0 comments

The A.I. Disruption We've Been Waiting for Has Arrived

https://www.nytimes.com/2026/02/18/opinion/ai-software.html
5•gyomu•33m ago•0 comments

Productivity App to auto categorize your work and improve your workflow

https://dreamdimension.net/deepfocusapp/
2•dreamdimension•33m ago•1 comments