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.

List of government mass surveillance projects

https://en.wikipedia.org/wiki/List_of_government_mass_surveillance_projects
1•helloplanets•39s ago•0 comments

BIP-39 Passphrase is a "Recovery Black Hole" waiting to happen

https://frozensecurity.com/blog/the-hidden-risks-of-using-a-bip-39-passphrase/
1•frozensecurity•3m ago•1 comments

Are LLMs not getting better?

https://entropicthoughts.com/no-swe-bench-improvement
1•4diii•12m ago•0 comments

More common mistakes in architecture diagrams to avoid

https://www.ilograph.com/blog/posts/more-common-diagram-mistakes/
2•billyp-rva•14m ago•0 comments

Slot-machine based Development is the new Black

https://mortenvistisen.com/posts/slot-machine-based-development-is-the-new-black
1•mbvisti•14m ago•0 comments

Claude Code isn't going to replace data engineers (yet)

https://rmoff.net/2026/03/11/claude-code-isnt-going-to-replace-data-engineers-yet/
2•sebg•15m ago•0 comments

CodeCortex – Persistent repository knowledge graph for AI coding agents

1•costea•19m ago•0 comments

Big Data on the Cheapest MacBook

https://duckdb.org/2026/03/11/big-data-on-the-cheapest-macbook
2•bcye•19m ago•0 comments

An odd-nosed crocodile ate our prehistoric ancestors

https://www.popsci.com/science/crocodile-ate-prehistoric-humans/
1•Brajeshwar•20m ago•0 comments

Getting to the bottom of TMLE: influence functions and perturbations

https://www.rdatagen.net/post/2026-02-05-getting-to-the-bottom-of-tmle-1/
1•sebg•20m ago•0 comments

The Complete Guide to Zed: A Fast, Modern Editor for Python Developers

https://vikasz.substack.com/p/the-complete-guide-to-zed-a-fast
1•vikasz•21m ago•0 comments

Non-Technical Lessons from 10 Years in Software Engineering

https://vikasz.substack.com/p/10-non-technical-lessons-from-10
2•vikasz•22m ago•0 comments

AI Slop Proof

https://eliocapella.com/blog/ai-slop-proof/
2•eliocs•22m ago•0 comments

The Passive Income Blueprint Smart Entrepreneurs Use to Build Automated Wealth

https://dollarsplan.blogspot.com/2026/03/the-passive-income-blueprint-smart.html
1•aamoudaamoud•22m ago•0 comments

The Caffeine Inception: Coffee, Sleep, and the Greatest Biological Heist

https://vikasz.substack.com/p/the-caffeine-inception-coffee-sleep-516
1•vikasz•23m ago•1 comments

How HN: We mapped 1.3M cultural heritage sites across 7 Nordic countries

https://www.fornland.com/
1•thor_martin•23m ago•2 comments

Parseword, making cryptic crosswords more accessible

https://www.parseword.com
1•wrsh07•25m ago•2 comments

Autoresearch anything – set up your own autonomous research loop

https://github.com/zkarimi22/autoresearch-anything
1•zknowledge•26m ago•1 comments

Ever wondered why video calls feel choppy even on fast internet?

https://github.com/grayguava/libreprobe/
1•grayguava•27m ago•0 comments

Show HN: MicroMoment Apple Watch micro-resets for focus, posture, and wellbeing

https://apps.apple.com/us/app/micromoment-app/id6760236374
1•powerwild•28m ago•0 comments

Show HN: Pitwall – Live F1 Stats in Your macOS Menu Bar

https://pitstop-landing-inky.vercel.app/pitwall
1•silverr•29m ago•0 comments

MCP is not dead Let me explain

https://ricciuti.me/blog/mcp-is-not-dead
1•pablopang•30m ago•2 comments

I planned a 3-week trip across Europe without the usual headaches

https://explorinder.com/
1•pabloceg•30m ago•0 comments

Lutris now being built with Claude AI, developer decides to hide it

https://www.gamingonlinux.com/2026/03/lutris-now-being-built-with-claude-ai-developer-decides-to-...
3•robin_reala•31m ago•0 comments

Xterm Control Sequences (1994)

https://www.xfree86.org/current/ctlseqs.html
1•vinhnx•31m ago•0 comments

Mac Neo and my afternoon of reflection and melancholy

https://twitter.com/stevesi/status/2031842797838614548
2•tosh•32m ago•0 comments

The modern formatting addiction in writing

https://dynomight.net/formatting/
2•surprisetalk•34m ago•0 comments

Dealing with versioning for long-running agents

https://www.restate.dev/blog/dealing-with-versioning-in-long-running-agents?trk=feed-detail_comme...
1•gk1•34m ago•0 comments

Juniors are more valuable than ever [pdf]

https://www.thoughtworks.com/content/dam/thoughtworks/documents/report/tw_future%20_of_software_d...
2•w-m•40m ago•1 comments

WA Income Tax – Real estate agent says 7 people listed homes this week

1•silexia•42m ago•0 comments