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: VibeSing – Trend-driven voice cloning pipeline for social music sharing

https://www.vibesing.me
1•HiTechK•27s ago•0 comments

Show HN: Mybets.gg – A bet tracker and analytics dashboard

https://www.mybets.gg
1•mybets•2m ago•0 comments

Show HN: LiveTok – AI Receptionist for Veterinary Clinics

1•gustavogb•2m ago•0 comments

Show HN: Veil – On-device meeting transcription with 100% PII redaction

https://helloveil.com/
1•nakaiwilliams•3m ago•0 comments

Ambiguity in C

https://longtran2904.substack.com/p/ambiguity-in-c
1•todsacerdoti•6m ago•0 comments

Partnering with Mozilla to improve Firefox's security

https://www.anthropic.com/news/mozilla-firefox-security
1•meetpateltech•8m ago•0 comments

BullshitBench

https://petergpt.github.io/bullshit-benchmark/viewer/index.v2.html
2•ramon156•10m ago•0 comments

Show HN: PACO A tool to find Dependency Confusion vulnerabilities

https://github.com/r00tSid/PACO-Package-Confuser
1•r00tSid•12m ago•1 comments

Artificial Hivemind: The Open-Ended Homogeneity of Language Models (and Beyond)

https://arxiv.org/abs/2510.22954
1•mpweiher•13m ago•0 comments

OpenCAD: Modular CAD System

https://github.com/caid-technologies/OpenCAD
1•Deanhu822•14m ago•1 comments

Apple's M5 Max Chip Achieves a New Record in First Benchmark Result

https://www.macrumors.com/2026/03/05/m5-max-geekbench-benchmarks/
1•alwillis•14m ago•0 comments

Beyond silicon: Shape-shifting molecules as memory, logic, and synapses

https://www.sciencedaily.com/releases/2026/01/260101160857.htm
1•digitalapplied•15m ago•0 comments

World Monitor – AI-powered news aggregation

https://github.com/koala73/worldmonitor
1•amai•25m ago•0 comments

Bookwheel

https://en.wikipedia.org/wiki/Bookwheel
2•tosh•27m ago•0 comments

Fluux Messenger 0.13.3 – A Modern Cross Platform XMPP Client (TypeScript)

https://github.com/processone/fluux-messenger/releases/tag/v0.13.3
1•neustradamus•28m ago•0 comments

Show HN: A library to turn any React Native View into a video or an image

https://github.com/Rednegniw/react-native-view-recorder
1•WingenderA•32m ago•0 comments

Show HN: Attendr – lightweight self-hosted staff presence dashboard

https://www.attendr.com.au/
1•ScottHudson•34m ago•1 comments

AgentSeal – Security scanner for AI agents (150 attack probes)

https://github.com/AgentSeal/agentseal
1•agentseal•34m ago•1 comments

Mcpup – Manage MCP servers across 13 AI clients from one config

https://github.com/mohammedsamin/mcpup
1•mohammedsardar•35m ago•1 comments

Mozilla is working on a big Firefox redesign, here is what it looks like

https://www.neowin.net/news/mozilla-is-working-on-a-big-firefox-redesign-here-is-what-it-looks-like/
2•bundie•39m ago•1 comments

OpenClaw on Amazon Lightsail to run your autonomous private agents

https://aws.amazon.com/blogs/aws/introducing-openclaw-on-amazon-lightsail-to-run-your-autonomous-...
2•doppp•41m ago•0 comments

How I made a shooter game in 64 KB [video]

https://www.youtube.com/watch?v=qht68vFaa1M
2•pedroth•45m ago•0 comments

How Much Money Jeff Bezos Made Since You Started Reading This Page

https://bezoscalculator.com/
4•TigerUniversity•46m ago•0 comments

Getting sued for honest 1* star review on Google Maps (Germany)

https://www.reddit.com/r/germany/s/fbHf0kXsEE
2•nixass•47m ago•0 comments

Show HN: I built an AI-powered advert – is this the future of advertising?

https://99helpers.com/tools/vela-chat
1•nickk81•48m ago•0 comments

The calm energy set up that makes your whole day easier

https://www.plantbasededit.com/the-calm-energy-set-up/
1•martinagabr•49m ago•0 comments

Coding with Multiple AI Agents to Build Scalable Rate-Limiting Infrastructure

https://www.ayrshare.com/coding-with-multiple-ai-agents/
2•speter•50m ago•0 comments

Ask HN: Using AI for Psychology and Philosophy

1•truth_seeker•52m ago•0 comments

Show HN: NeoMud – A multiplayer dungeon game with AI agents that QA and playtest

https://github.com/terrymaster/NeoMud
1•terrymaster•55m ago•0 comments

Weight-loss jab could be made for $3 a month, study finds

https://www.theguardian.com/global-development/2026/mar/06/generic-drugs-weight-loss-semaglutide-...
2•sandebert•58m ago•0 comments