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

Comments

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

Helios: 14B open source video model, real time at 19.5fps, runs on 6GB VRAM

https://github.com/PKU-YuanGroup/Helios
1•steveharing1•43s ago•0 comments

How good is Claude, really?

https://alinpanaitiu.com/blog/how-good-is-claude-really/
1•imaq•1m ago•0 comments

Show HN: Kern – One agent. One folder. One mind. Every channel

https://github.com/oguzbilgic/kern-ai
1•obilgic•1m ago•0 comments

Liquid Glass Is Permanent

https://mjtsai.com/blog/2026/03/23/liquid-glass-is-permanent/
1•imaq•2m ago•0 comments

A Minimal NixOS Config That Still Feels Premium

https://slicker.me/nixos/premium_minimal.html#premium
1•weatherlight•5m ago•0 comments

JP Morgan's Monitors Employee's Keystrokes and Meetings; for Their Wellbeing

https://www.inc.com/moses-jeanfrancois/jp-morgans-junior-banker-tech-monitoring/91319918
2•tuananh•6m ago•0 comments

Show HN: Prompts Directory for Data Analyst

https://mljar.com/ai-prompts/data-analyst/
1•pplonski86•9m ago•0 comments

Ask HN: How are you monitoring what OpenClaw does when it runs autonomously?

1•jialu1•9m ago•0 comments

Tech Founders Can Access Investors and What Davos and Tulum Has to Do with It

https://irishtechnews.ie/how-tech-founders-can-access-investors/
1•ybelkin•9m ago•0 comments

Someone Forked Systemd to Strip Out Its Age Verification Support

https://itsfoss.com/news/systemd-fork-strips-out-age-verification/
1•KnuthIsGod•10m ago•0 comments

Long-Running Sandbox in Dockers for Coding Agents (100% POSIX Compatible)

https://sandock.ai/
1•chepy•11m ago•0 comments

Ask HN: System Programming as a LLM shelter

1•AloysB•11m ago•0 comments

Rye

https://ryelang.org/
2•tosh•13m ago•0 comments

Palantir turns poisonous on the campaign trail

https://www.ft.com/content/5d6f924d-2e7e-4a5e-ae20-d4f8e29a7d17
3•KnuthIsGod•13m ago•0 comments

SpaceStarCarz KoolWheelz Paper Models

https://davesdesigns.ca/dcc/html/spacestarcarz_.html
1•exvi•13m ago•0 comments

Misfits wanted: the VC firm looking to back 'unreasonable' founders

https://www.ft.com/content/4d29c556-bbd9-490e-a3c8-90f5b894af9e
1•petethomas•17m ago•0 comments

Never Miss a Downtime Again

https://www.notifly.live/
1•netaneo•17m ago•0 comments

Browser control and computer use as MCP tools – works with Claude, Codex, Cursor

https://github.com/gettalon/talon-plugins
2•gettalon•24m ago•0 comments

Ask HN: What would it take to provide free AI to the underprivileged?

1•herodoturtle•24m ago•1 comments

We can remove strncpy() from the Linux kernel finally

https://hachyderm.io/@kees/116282745861595200
1•riffraff•26m ago•1 comments

Amazon confirms: Public wish lists can reveal addresses

https://www.heise.de/en/news/Amazon-confirms-Public-wish-lists-can-reveal-addresses-11221681.html
2•doener•34m ago•0 comments

systemd has not implemented age verification

https://blog.bofh.it/debian/id_473
2•pabs3•38m ago•0 comments

Claude Code Now Supports CIMD for MCP OAuth

https://bsky.app/profile/den.dev/post/3mhrupyeus223
1•mooreds•38m ago•0 comments

The great Linux file pickers tragedy

https://erika.florist/wiki/linux/filepickertragedy/
1•pabs3•39m ago•0 comments

Ask HN: HSL 0.1 – The Human Source License. Please help refining

1•xdgrulez•40m ago•1 comments

The Voice Web with maplibre-voice – Mistral Hackathon 2026

https://www.youtube.com/watch?v=DNpdRVZ0j5A
1•tderflinger•40m ago•0 comments

Expert Personas Improve LLM Alignment but Damage Accuracy

https://arxiv.org/abs/2603.18507
1•Jacques2Marais•41m ago•0 comments

The 53-Year Evolution of AI Agents: A Comprehensive Reading List

https://fullhoffman.com/2026/03/12/agents-are-agents-reading-list/
1•adunk•43m ago•0 comments

Starlette 1.0.0

https://github.com/Kludex/starlette
3•tosh•50m ago•0 comments

Kentucky family rejects $26M$ offer to convert farm into data center

https://twitter.com/CollinRugg/status/2036237284601913674
2•gurjeet•50m ago•1 comments