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•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.

Let's Learn Hangul

http://letslearnhangul.com/
1•boxed•3m ago•0 comments

How did CMD-K come to be the standard shortcut for opening a command palette?

https://ux.stackexchange.com/questions/153299/how-did-cmd-k-come-to-be-the-standard-shortcut-for-...
1•microsoftedging•4m ago•0 comments

DMARC is now an IETF Proposed Standard: what's new in RFCs 9989–9991

https://dmarcwise.io/blog/new-dmarc-2026
1•matteocontrini•7m ago•0 comments

Map of Metal

https://mapofmetal.com/
1•robin_reala•9m ago•0 comments

Grokipedia selectively drawing on more right-leaning news sources, new study

https://www.tcd.ie/news_events/articles/2026/grokipedia-research/
1•giuliomagnifico•10m ago•0 comments

Guardian 100 best novels (stats and errors)

https://mpaldridge.github.io/blog/guardian-novels.html
2•dzdt•11m ago•0 comments

Casuarina Linux: A Glibc-Based Chimera Linux Derivative

https://casuarina.org/news/introducing-casuarina-linux/
3•goranmoomin•19m ago•0 comments

Qwen3.7-Max: The Agent Frontier

https://qwen.ai/blog?id=qwen3.7
3•kevinsimper•21m ago•0 comments

Real Signals or Artificial Stereotypes?

https://kucharski.substack.com/p/real-signals-or-artificial-stereotypes
1•edent•24m ago•0 comments

Chronify – extension+webapp that turns AI chats and files into dated timeline

https://chronify.life
1•bulyaki•25m ago•0 comments

Show HN: I fixed my AI goose tutor to stop punishing understanding

https://professorgoose.com/?version=2.0
3•zapseo•26m ago•2 comments

I wanted async/await but I got a concurrency model

https://blog.kulman.sk/i-wanted-async-await/
1•ig0r0•26m ago•0 comments

No way to parse integers in C

https://blog.habets.se/2022/10/No-way-to-parse-integers-in-C.html
1•konmok•28m ago•0 comments

Maps

https://fhoehl.com/maps
1•marukodo•29m ago•0 comments

48000 Samsung workers ready to strike

https://www.engadget.com/2177466/samsung-strike-union-workers-korea/
2•lccerina•33m ago•1 comments

Solar cells on vehicles can take the pressure off the grid in Europe

https://www.ise.fraunhofer.de/en/press-media/press-releases/2026/solar-cells-on-vehicles-can-take...
1•doener•34m ago•0 comments

Show HN: IResearch – C++ search that beat Lucene and Tantivy on their benchmark

https://github.com/serenedb/serenedb/tree/main/libs/iresearch
6•gnusi•35m ago•1 comments

The Cyber Reality States Don't Want to Admit

https://arunninghacker.substack.com/p/the-cyber-reality-states-dont-want
1•weeha•35m ago•1 comments

ConverterToMarkdown – Convert Docx/PDF/XLSX/HTML to Markdown In-Browser

https://convertertomarkdown.com
1•FValero•36m ago•0 comments

WordPress Migration in 2026 (from A to Z guide)

https://focusreactive.com/blog/wordpress-migration/
3•katyadrozd•37m ago•0 comments

Infrawise – Give Claude Code real infrastructure context via MCP

https://www.npmjs.com/package/infrawise
1•sidd-2704•39m ago•0 comments

"Stick" – A primitive/fun interactive demo of a tiny rig to animate layout

https://cosmiciron.github.io/layoutmaster/exclusion-assembly.html
1•zhxiaoliang•39m ago•1 comments

Tarotui – A tarot reading experience in the terminal

https://github.com/Tsukeruu/tarotui
1•bart__1•40m ago•0 comments

Love is to be invested in someone's continual expansion

https://www.henrikkarlsson.xyz/p/love-and-change
2•jger15•41m ago•1 comments

UniFi Network 10.4

https://blog.ui.com/article/introducing-unifi-network-10-4
1•janandonly•43m ago•0 comments

Open-source energy system model for the ENTSOE Ten-Year Network Development Plan

https://open-tyndp.openenergytransition.org/
1•lyoncy•50m ago•0 comments

Learnings from 100K lines of Rust with AI (2025)

https://zfhuang99.github.io/rust/claude%20code/codex/contracts/spec-driven%20development/2025/12/...
19•pramodbiligiri•52m ago•11 comments

Google Just Killed Search as We Know It

https://www.thestateofbrand.com/news/google-just-killed-search-as-we-know-it
3•taubek•53m ago•2 comments

Artist with no technical experience stumbles upon the next generation of LLMs

2•itakechops•56m ago•0 comments

Carbon: open-source DNA foundation models with training code and data pipeline

https://huggingface.co/spaces/HuggingFaceBio/carbon-demo
1•victormustar•57m ago•0 comments