frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Avoid Continue

https://www.teamten.com/lawrence/programming/avoid-continue.html
2•todsacerdoti•1y ago

Comments

zoezoezoezoe•1y 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•1y 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.

NixOS on Xilinx Zynq and ZynqMP

https://github.com/chuangzhu/nixos-xlnx
1•joooscha•5m ago•0 comments

I built an LLM router that doesn't use an LLM

https://github.com/itsthelore/wayfinder-router
1•tcballard•8m ago•2 comments

The Problem Is Prompt Debt

https://www.dbreunig.com/2026/06/22/the-problem-is-prompt-debt.html
1•ingve•10m ago•0 comments

What data on myself I collect and why? (2020)

https://beepb00p.xyz/my-data.html
1•downbad_•11m ago•0 comments

Agents Are the New Product's Interface

https://www.hopsworks.ai/post/agents-are-your-new-product-interface
1•LexSiga•12m ago•0 comments

Ranked: Countries Spending the Most on Research and Development

https://www.visualcapitalist.com/ranked-countries-spending-most-on-r-and-d/
3•theanonymousone•16m ago•0 comments

Smart Hotel Management Software for Hotels, Resorts and Vacation Rentals

https://app.notion.com/p/Smart-Hotel-Management-Software-for-Hotels-Resorts-Vacation-Rentals-de44...
1•jackarnold•19m ago•0 comments

"Start with a Monolith" Was Good Advice. AI Is Changing That

https://medium.com/@pivotfakie/start-with-a-monolith-was-good-advice-ai-is-changing-that-a2181b8e...
1•feeblefakie•19m ago•0 comments

How to Apply Google's Open Knowledge Format (OKF) on Enterprise Level

https://community.obsidian.md/plugins/vault-operator
1•pssah4•22m ago•1 comments

Full Metal Jacket. Copper Edition – Vollebak

https://vollebak.com/en-us/products/full-metal-jacket-copper-edition
1•evo_9•23m ago•0 comments

OpenAI Codex bombards SSDs with needless write operations, costing millions

https://www.theregister.com/ai-and-ml/2026/06/23/openai-codex-bombards-ssds-with-needless-write-o...
1•jonbaer•25m ago•1 comments

The Digital Sovereignty Trap

https://statedept.substack.com/p/the-digital-sovereignty-trap
1•ryzvonusef•26m ago•0 comments

PixelSmash – FFmpeg's MagicYUV decoder vuln leads to RCE via media file

https://jfrog.com/blog/pixelsmash-critical-ffmpeg-vulnerability-turns-media-files-into-weapons/
2•n0on3•27m ago•0 comments

AI Steps Off the Screen

https://epics.tech/posts/2026-06-23-ai-steps-off-the-screen/
2•epicsagas•28m ago•0 comments

Benchmark object storage in objects/s, not GB/s

https://fractalbits.com/blog/objects-per-second/
7•zzsheng•39m ago•0 comments

Dietary guidelines do not yield sufficient flavanol for cardiovascular benefit

https://pubs.rsc.org/en/content/articlehtml/2026/fo/d6fo00867d
2•littlexsparkee•40m ago•0 comments

AxLLM

https://axllm.dev/
2•handfuloflight•41m ago•0 comments

RIP Fable

https://fable.rip
3•opndragoon•44m ago•0 comments

Lucid to lay off roughly 18% of U.S. workforce, COO Marc Winterhoff leaves

https://www.cnbc.com/2026/06/22/lucid-layoffs-evs.html
2•mgh2•50m ago•0 comments

Clean sweep for Mamdani-backed candidates in New York's Democratic primary

https://www.bbc.com/news/articles/clye652m41po
3•mikhael•1h ago•1 comments

2026 vs. 1996 Chevrolet Blazer IIHS crash test

https://www.youtube.com/watch?v=4U8Ero-3GxI
3•plun9•1h ago•2 comments

VoltanaLLM: Energy-Efficient LLM Serving

https://supercomputing-system-ai-lab.github.io/projects/voltana/
2•matt_d•1h ago•0 comments

2003-era DDR2 memory prices jump up to 60%

https://www.tomshardware.com/pc-components/dram/ddr2-memory-prices-jump-up-to-60-percent
2•pkaeding•1h ago•1 comments

Sakana Fugu Technical Report

https://www.chapterpal.com/s/7ff4f6ba/sakana-fugu-technical-report
1•theanonymousone•1h ago•1 comments

Show HN: Deploy to Vercel, Netlify, Railway, Render, Cloudflare in 1 Command

https://xiaohou2503687-design.github.io/shipfast-oss/
1•shipfastai•1h ago•0 comments

Intel shareholder sues to void deal giving U.S. gov $11B in stock for free

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6985440
5•de6u99er•1h ago•1 comments

Sakana Fugu Ultra promises to deliver "the best frontier-level performance"

https://www.theverge.com/ai-artificial-intelligence/953904/sakana-fugu-ai
1•theanonymousone•1h ago•1 comments

TSMC: 36.1 A 32Gb/s 10.5Tb/s/mm 0.6pJ/b UCIe-Compliant Low-Latency Interface 3nm

https://ieeexplore.ieee.org/document/10904767
3•Alien1Being•1h ago•0 comments

Trump Gets Negative Reviews Internationally as Fewer Say US Is Reliable Partner

https://www.pewresearch.org/global/2026/06/23/trump-gets-negative-reviews-internationally-as-fewe...
5•Bondi_Blue•1h ago•0 comments

OpenAI spending hit $34B last year ahead of planned IPO

https://www.ft.com/content/e15b0d7e-ff6b-4f16-ba7a-4068feddb828
2•1vuio0pswjnm7•1h ago•1 comments