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.

Developing ethical, social, and cognitive competence

https://vividness.live/developing-ethical-social-and-cognitive-competence
1•enthdegree•35s ago•0 comments

Apple's Next Two Products Are Coming Soon

https://www.macrumors.com/2026/02/12/two-new-apple-products-coming-soon/
1•01-_-•2m ago•0 comments

Show HN: Clawlet – Ultra-Lightweight&Efficient Alternative to OpenClaw, Nanobot

https://github.com/mosaxiv/clawlet
1•mosaxiv•3m ago•0 comments

Show HN: My agent started its own online store

https://clawver.store
1•nwang783•3m ago•0 comments

The problem isn't OpenClaw. it's the architecture

https://www.vulnu.com/p/the-problem-isnt-openclaw-its-the-architecture
1•stareatgoats•3m ago•0 comments

Regulation Is a Service Problem

https://non.io/regulation-is-a-service-problem
1•jjcm•4m ago•0 comments

14-Year-Old Is Using Origami to Imagine Emergency Shelters

https://www.smithsonianmag.com/innovation/this-14-year-old-is-using-origami-to-design-emergency-s...
1•Tomte•6m ago•0 comments

Using the Ralph Wiggum loop to execute Kiro specs

https://it20.info/2026/02/using-the-ralph-wiggum-loop-to-execute-kiro-specs/
1•t2f2•10m ago•0 comments

AI Bots Are Making Anonymity Untenable

https://tombedor.dev/ai-threatens-privacy/
1•jjfoooo4•11m ago•0 comments

Wikipedia controversy with archive.is resulted from attempt to doxx site owner

https://www.tumblr.com/archive-is/806832066465497088/ladies-and-gentlemen-in-the-autumn-of-2025-i
2•felineflock•13m ago•0 comments

Zero-Downtime Ingress Controller Migration in Kubernetes

https://georg-schwarz.com/blog/zero-downtime-ingress-controller-migration-kubernetes/
1•rhazn•13m ago•0 comments

Show HN: Free OSS cold email bulk sender and management

1•danesto•14m ago•0 comments

Simile: A simulation platform for human behavior

https://simile.ai/
1•o4c•16m ago•0 comments

Your Turn

https://blog.sebastiansastre.co/posts/your-turn/
1•sebastianconcpt•16m ago•0 comments

I built a Claude.md that solves the compaction/context loss problem

https://github.com/Arkya-AI/claude-context-os
1•TimoLabs•19m ago•0 comments

Let's Build an AI Assistant That Remembers

https://fastpaca.com/blog/build-ai-assistant-that-remembers/
1•cpluss•19m ago•0 comments

OMLX – LLM Inference Server for Apple Silicon (Ollama for MLX)

https://github.com/jundot/omlx
3•fintechie•24m ago•0 comments

Performance and reliability pitfalls of eBPF [video,pdf]

https://fosdem.org/2026/schedule/event/H3LM7G-performance_and_reliability_pitfalls_of_ebpf/
1•tanelpoder•25m ago•0 comments

The "Graphalgo" NPM/PyPI campaign targeting developers (Lazarus Group)

https://www.reversinglabs.com/blog/inside-graphalgo
1•NTCTech•25m ago•0 comments

Political polarization in Pittsburgh is rooted in economic neglect

https://theconversation.com/political-polarization-in-pittsburgh-communities-is-rooted-in-economi...
1•PaulHoule•26m ago•0 comments

Confidence is overrated. Try self-efficacy

https://www.leadingsapiens.com/self-efficacy-in-leadership/
1•sherilm•28m ago•0 comments

SafeClaw, the deny-by-default gating layer for AI agents (open source)

https://github.com/AUTHENSOR/SafeClaw
1•johndanielk•28m ago•1 comments

Building Physical Agentic AI

https://dansitu.substack.com/p/building-physical-agentic-ai
1•dansitu•28m ago•0 comments

PyTorch on ROCm Inside a Litterbox

https://www.rustyelectrons.com/posts/9-pytorch-rocm-litterbox/
1•Gerharddc•29m ago•1 comments

CBP Signs Clearview AI Deal to Use Face Recognition for 'Tactical Targeting'

https://www.wired.com/story/cbp-signs-clearview-ai-deal-to-use-face-recognition-for-tactical-targ...
36•cdrnsf•30m ago•2 comments

Show HN: CookFlow --Merge multiple recipes into one optimized cooking workflow

https://www.cookflow.life/
1•eesmee•31m ago•1 comments

Epstein-ô-matic – Turn your memories into crimes

https://github.com/monsieurpigeon/epsteinomatic
2•dezmou•34m ago•0 comments

Apple's SSL/TLS bug (2014)

https://www.imperialviolet.org/2014/02/22/applebug.html
2•MYEUHD•34m ago•0 comments

Dissecting the Leaf of Trust

https://www.lysator.liu.se/~jc/wotsap/leafoftrust.html
2•rllearner•34m ago•0 comments

Polymarket's Free Grocery Store

https://unherd.com/newsroom/inside-polymarkets-free-public-grocery-store/
2•koolba•36m ago•0 comments