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.

Why "Garbage In, Garbage Out" is the biggest bottleneck in AI coding

https://www.ideaforge.chat/
1•enha•43s ago•1 comments

SpacetimeDB 2.0

https://github.com/clockworklabs/SpacetimeDB/releases/tag/v2.0.1
1•tilt•51s ago•0 comments

Regex engine in Rust (Thompson NFA and bounded lazy DFA cache)

https://github.com/akgitrepos/regex-engine-rust
1•akgitrepos•1m ago•1 comments

Visual-explainer: An agent skill turning complex terminal output into HTML pages

1•pretext•1m ago•0 comments

The Last Mystery of Antarctica's 'Blood Falls' Has Been Solved

https://www.wired.com/story/the-last-mystery-of-antarcticas-blood-falls-has-finally-been-solved/
1•Brajeshwar•2m ago•0 comments

A new eco-friendly water battery could theoretically last for centuries

https://techxplore.com/news/2026-02-eco-friendly-battery-theoretically-centuries.html
1•Brajeshwar•2m ago•0 comments

The archivist preserving decaying floppy disks

https://www.popsci.com/technology/floppy-disk-archivist-project/
1•Brajeshwar•2m ago•0 comments

Meta shut us down. LinkedIn took us to court. We're still building

https://www.texau.com/blogs/texau-v3-launch-from-bombay-to-gtm-platform
1•eulercoder•3m ago•1 comments

LadybugDB: DuckDB for Graphs

https://ladybugdb.com
1•pretext•3m ago•0 comments

Pattern Collider

https://aatishb.com/patterncollider/
1•vinhnx•3m ago•0 comments

AI and My Crisis of Meaning

https://brids.bearblog.dev/ai-and-my-crisis-of-meaning/
1•vinhnx•3m ago•0 comments

Open-weight LLM releases in January and February 2026

https://twitter.com/rasbt/status/2026659971467706603
1•pretext•4m ago•0 comments

The IDE might die – taking my favorite programming language with it

https://thomasbandt.com/ide-death-fsharp
2•asp_net•4m ago•0 comments

Exahash, Zettahash, Yottahash

https://www.johndcook.com/blog/2026/02/22/zettahash/
1•ibobev•4m ago•0 comments

10k,000th Fibonacci Number

https://www.johndcook.com/blog/2026/02/21/f10000000/
1•ibobev•4m ago•0 comments

Computing big, certified Fibonacci numbers

https://www.johndcook.com/blog/2026/02/21/big-certified-fibonacci/
2•ibobev•5m ago•0 comments

KuzuDB was archived after the Apple acquisition – here's a migration guide

https://arcadedb.com/blog/from-kuzudb-to-arcadedb-migration-guide/
1•lvca•7m ago•0 comments

Pg_plan_alternatives – eBPF tracing of all plans the optimizer considers

https://github.com/jnidzwetzki/pg_plan_alternatives
1•dujuku•8m ago•1 comments

Ipynb to PDF Converter| Compile LaTeX to PDF

https://ipynbtopdf.cc
1•leolula•9m ago•0 comments

Ask HN: Starting a New Role with Ada

2•NoNameHaveI•10m ago•1 comments

Nlspec

https://github.com/strongdm/attractor
1•shittysits•10m ago•0 comments

Show HN: Termflux – Animated background for your terminal

https://github.com/tndoan/termflux
1•tndoan•10m ago•0 comments

Frontier Models Exhibit Sophisticated Reasoning in Simulated Nuclear Crises

https://arxiv.org/abs/2602.14740
3•consumer451•13m ago•0 comments

Algorithmic Feeds Need to Be Banned

https://shubhamjain.co/2026/02/25/algorithmic-feeds-need-to-be-banned/
2•shubhamjain•15m ago•1 comments

The Cuban CDN (2016)

https://blog.cloudflare.com/the-cuban-cdn/
1•evah•15m ago•0 comments

Show HN: KeychainPGP – Copy, Encrypt, Paste. Simple PGP for the Rest of Us

https://github.com/KeychainPGP/keychainpgp
1•Sorr0w•16m ago•0 comments

3-Nation chip pact takes shape: Japan's capital, Taiwan's IP, India's talent

https://www.digitimes.com/news/a20260224VL219/taiwan-talent-semiconductor-industry-policy-labor.html
1•alephnerd•16m ago•0 comments

AI Is a Lethal Threat This Year

1•silexia•16m ago•0 comments

Show HN: I built an ML stock picker that runs daily on a single server

https://acis-trading.com/
1•fkratzer•17m ago•0 comments

Show HN: Open-Source EU AI Act Scanner for Python AI Projects

https://airblackbox.ai/demo
2•shotwellj•17m ago•0 comments