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.

Why Replit's $9B Valuation Looks Cheap

https://github.com/getlago/lago/wiki/Why-Replit%27s-$9B-Valuation-Looks-Cheap
1•gneray•1m ago•0 comments

Is My Job Safe from AI? (Inspired by Karpathy)

https://99helpers.com/tools/is-my-job-safe-from-ai
2•nickk81•1m ago•0 comments

When Science Goes Agentic

https://cacm.acm.org/blogcacm/when-science-goes-agentic/
1•CarlosBaquero•1m ago•0 comments

Show HN: Cursor on your mobile browser. No laptop or terminal needed

https://lechirp.com
2•lakshmananm•4m ago•0 comments

Ask HN: How to get through a CV filter?

1•1equalsequals1•4m ago•0 comments

Mistral Small 4

https://mistral.ai/news/mistral-small-4
1•pember•4m ago•0 comments

Nvidia powers further into CPU market with new systems packing 256 Vera cores

https://www.theregister.com/2026/03/16/nvidia_vera_cpu_rack/
1•voxadam•5m ago•0 comments

OpenShell: Nvidia's sandbox for AI agents like OpenClaw

https://github.com/NVIDIA/OpenShell
2•steilpass•5m ago•0 comments

Blockchain data across 100 chains, token prices, txs, OHLCV price feeds, + more

https://goldrush.dev/
1•Ferns765•6m ago•1 comments

Show HN: FileGOD – PDF tools that never see your files (100% browser-side)

https://filegod.app
1•honzabroski•6m ago•0 comments

The alien on the rooftop: The Engineer's (dis)advantage in an AI world

https://www.gsarigiannidis.gr/the-alien-on-the-rooftop-the-engineers-disadvantage-in-an-ai-world/
1•gsarig•8m ago•0 comments

Show HN: Investing Withous Bias or Emotion

https://github.com/kachurovskiy/stratcraft/
1•kachurovskiy•9m ago•0 comments

Show HN: Most GPU Upgrades Aren't Worth It, I Built a Calculator to Prove It

https://best-gpu.com/upgrade.php
2•Nebyl•9m ago•0 comments

Help I'm a software engineer who's scared of game dev

https://medium.com/@anastasia-laczko/1-help-im-a-software-engineer-who-s-scared-of-game-dev-83b67...
1•logicx24•10m ago•0 comments

Mistral AI partners with Nvidia to accelerate open frontier models

https://mistral.ai/news/mistral-ai-and-nvidia-partner-to-accelerate-open-frontier-models
1•fidotron•10m ago•0 comments

Why Every AI Data Company Sounds Identical and Two That Don't

https://www.dikshaupadhyay.com/p/why-every-ai-data-company-sounds
1•rgbimbochamp•12m ago•0 comments

The F-35 Program Can't Seem to Pull Off a Needed Software Update

https://gizmodo.com/the-f-35-program-cant-seem-to-pull-off-a-needed-software-update-while-its-jet...
2•pjmlp•13m ago•0 comments

Nvidia announces Vera Rubin Space-1 for orbital data centers

https://www.cnbc.com/2026/03/16/nvidia-chips-orbital-data-centers-space-ai.html
1•kristianp•13m ago•0 comments

Show HN: Godom – a Go framework for local apps using the browser as the UI

https://github.com/anupshinde/godom
1•anupshinde•13m ago•0 comments

Subagents now available in Codex

https://developers.openai.com/codex/subagents/
1•jumploops•14m ago•0 comments

AI-Mediated Feedback Improves Student Revisions: A Randomized Trial

https://arxiv.org/abs/2602.16820
1•PaulHoule•14m ago•0 comments

Reddit Uncovers Who's Behind Metas $2B Invasive Age Verification Tech Lobbying

https://www.gadgetreview.com/reddit-user-uncovers-who-is-behind-metas-2b-lobbying-for-invasive-ag...
1•randycupertino•15m ago•1 comments

"Some day we won't even need coders anymore" (2016)

https://www.commitstrip.com/en/2016/08/25/a-very-comprehensive-and-precise-spec/
2•bwestergard•17m ago•0 comments

Gluey – an open-source DSL for declaring data pipelines instead of coding them

https://gluey.sh/
1•bartdarebel•17m ago•0 comments

Nvidia wraps its NemoClaw around OpenClaw for the sake of security

https://www.theregister.com/2026/03/16/nvidia_wraps_its_nemoclaw_around/
2•geekinchief•18m ago•0 comments

Gitblurb – CLI tool that generates PR descriptions from your Git diff

https://github.com/hkeycc/gitblurb
1•uzername715•19m ago•1 comments

F-Droid: Android's developer verification plan threatens alternative app stores

https://thenewstack.io/f-droid-says-googles-android-developer-verification-plan-is-an-existential...
1•MilnerRoute•20m ago•0 comments

AI Layoffs

https://mjtsai.com/blog/2026/03/16/ai-layoffs/
6•robenkleene•20m ago•0 comments

Subagents are now available in Codex

https://twitter.com/OpenAIDevs/status/2033636701848174967
2•tosh•21m ago•0 comments

Mon Salai Is an Anagram for Mona Lisa

https://www.overstockart.com/blog/digging-for-the-mona-lisa/
2•avonmach•23m ago•0 comments