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.

The last total lunar eclipse until New Year's Eve 2028-2029

https://www.space.com/stargazing/lunar-eclipses/a-total-lunar-eclipse-will-turn-the-full-moon-blo...
1•limelego•1m ago•0 comments

A Rock Star Philosopher

https://www.nytimes.com/2026/03/01/briefing/a-rock-star-philosopher.html
1•mitchbob•2m ago•1 comments

Type-Safe JDBC: Schema-First Native SQL in Java

https://github.com/manifold-systems/manifold/tree/master/manifold-deps-parent/manifold-sql
2•owlstuffing•2m ago•1 comments

Show HN: Punch card simulator and Fortran IV interpreter

https://punch.ehrlich.dev/
1•behrlich•2m ago•0 comments

Show HN: Workz – run 5 AI agents on parallel Git worktrees with one command

1•rohansx•2m ago•0 comments

We Audited 2,857 Agent Skills. 12% Were Malicious

https://grith.ai/blog/agent-skills-supply-chain
1•edf13•2m ago•0 comments

Bars close and hundreds lose jobs as US firm buys Brewdog in £33M deal

https://www.bbc.com/news/articles/c05v0p1d0peo
2•tartoran•3m ago•0 comments

Iranian strikes test the Gulf's trillion-dollar AI dream

https://restofworld.org/2026/amazon-uae-data-center-fire-iran-strike/
1•donohoe•3m ago•0 comments

Show HN: goilerplate and templUI Pro, two products for Go and templ developers

https://goilerplate.com/
1•axadrn•3m ago•0 comments

Workflows for OpenClaw

https://workflaw.ai
1•l-fy•4m ago•0 comments

From 1Password to Apple Passwords

https://pawelgrzybek.com/from-1password-to-apple-passwords/
2•speckx•4m ago•0 comments

I built a new Terraform agentic editor and auditor

https://grafos.ai
1•souvlakius•4m ago•1 comments

MiniMax M2.5 is beating Claude Opus 4.6 and MiniMax is 17x-20x cheaper

https://www.swebench.com/
2•thelinuxkid•4m ago•1 comments

AI is unhealthy in a variety of different ways

https://www.computerworld.com/article/4138046/people-are-getting-sick-of-ai-literally.html
2•dryadin•5m ago•0 comments

Show HN: Gipity – AI cloud computer in the browser

https://gipity.ai
1•siverson914•6m ago•0 comments

Felix86 26.03: AVX, AVX2, BMI1 and F16C Support

https://felix86.com/felix86-26-03/
1•camel-cdr•8m ago•0 comments

Three US fighter jets shot down in 'friendly fire' in Kuwait

https://metro.co.uk/2026/03/02/three-us-f-15-fighter-jets-shot-kuwait-friendly-fire-incident-2718...
2•harambae•9m ago•0 comments

The Pentagon strongarmed AI firms before Iran strikes

https://theconversation.com/the-pentagon-strongarmed-ai-firms-before-iran-strikes-in-dark-news-fo...
1•geox•10m ago•0 comments

Open-sourced an AI-native habit tracker where the LLM is the interface and coach

https://github.com/ericblue/habit-sprint
1•ericblue•10m ago•1 comments

bpfviewer: A tool for disassembling, debugging and visualizing BPF object files

https://github.com/tsint/bpfviewer
1•tanelpoder•10m ago•0 comments

Agent-written tests can't verify agent-written code

https://qckfx.com/blog/agent-written-tests-cant-verify-agent-written-code
1•chw9e•11m ago•0 comments

Show HN: Lysium – cross-platform control plane for agentic software delivery

1•dabit3•12m ago•0 comments

UE LLM Toolkit – Open-source plugin that lets LLMs read/write UE assets"

https://github.com/ColtonWilley/ue-llm-toolkit
1•smurfsoldier42•12m ago•0 comments

AISupport

https://www.aisupport.si/
1•domaisi•13m ago•1 comments

I got tired of manually removing line numbers from AI chat copy/paste

https://github.com/larryste-max/strip-lines
1•larryste•13m ago•1 comments

Incentives Drive Everything

https://yusufaytas.com/incentives-drive-everything/
10•yusufaytas•15m ago•0 comments

Show HN: Local Emulator for Google Cloud Workflows

https://github.com/lemonberrylabs/gcw-emulator
1•rmgn•15m ago•0 comments

A New Share Button

https://blog.joinmastodon.org/2026/03/a-new-share-button/
2•robin_reala•15m ago•0 comments

You Can Meditate in a Coffin in Japan. They'll Even Give You a Cute One

https://www.vice.com/en/article/you-can-meditate-in-a-coffin-in-japan-theyll-even-give-you-a-cute...
1•herbertl•16m ago•0 comments

Ask HN: What are you actually using openclaw for?

2•thisismyswamp•17m ago•0 comments