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.

As SuperAgers age, they make at least twice as many new neurons as their peers

https://news.northwestern.edu/stories/2026/02/as-superagers-age-they-make-at-least-twice-as-many-...
1•hhs•2m ago•0 comments

Reading Doesn't Fill a Database, It Trains Your Internal LLM

https://tidbits.com/2026/02/28/reading-doesnt-fill-a-database-it-trains-your-internal-llm/
1•TMWNN•2m ago•0 comments

Poll: Code with AI or Not?

1•bitbasher•5m ago•0 comments

Show HN: Xmloxide – an agent made rust replacement for libxml2

https://github.com/jonwiggins/xmloxide
1•jawiggins•6m ago•0 comments

All Too Quiet on the Western Neuroenhancement Front

https://warontherocks.com/2026/02/all-too-quiet-on-the-western-neuroenhancement-front/
1•hhs•6m ago•0 comments

B.A.S.E. – A standalone back end language with zero dependencies

https://github.com/igorkalen/base
1•igorkalen•6m ago•1 comments

Jails for NetBSD

https://netbsd-jails.petermann-digital.de/
1•birdculture•7m ago•0 comments

Show HN: I built a tool to translate and declutter articles for my immigrant mom

https://dulink.click/
1•dh2013•8m ago•0 comments

TOSTracker – Clause Adoption over Time

https://tostracker.app/time-series
1•tldrthelaw•8m ago•0 comments

Private Intelligence Agency (PIA) Is People

https://en.wikipedia.org/wiki/Private_intelligence_agency
1•barrister•8m ago•0 comments

Manifest (Skydeck Batch21) – open-source alternative to OpenRouter

https://manifest.build/docs/introduction
1•stosssik•9m ago•0 comments

Show HN: Claude-powered Chrome sidebar and Python automation scripts

https://nexiolabs.gumroad.com/l/nexio-ai
1•bytecraft_•9m ago•0 comments

Was Donald Trump right to strike Iran? Answer yes or no

https://twitter.com/KatieMiller/status/2027889344363593876
1•nomilk•11m ago•1 comments

Mercor acquires Sepal AI

https://www.orrick.com/en/News/2026/02/Mercor-Acquires-Sepal-AI
1•hhs•14m ago•0 comments

A tale of two Wayland desktops

https://troubles.noblogs.org/post/2026/02/27/a-tale-of-two-wayland-desktops/
1•nmstoker•15m ago•0 comments

Lights Out 4D

https://www.nan.ma/lights_out_4d/
1•mathgenius•21m ago•0 comments

A.I. Isn't People

https://www.todayintabs.com/p/a-i-isn-t-people
2•cratermoon•21m ago•0 comments

Show HN: OpenClaw-kapso, Give OpenClaw a stable WhatsApp number (Go, kapso.ai)

https://github.com/Enriquefft/openclaw-kapso-whatsapp
1•enriquefft•23m ago•0 comments

HN is drowning in AI comments

44•waygtdai•23m ago•28 comments

Show HN: Depth Check – Your AI tutor to learn about anything

https://depth-check.com
1•gcrowne13•25m ago•0 comments

You can use newline characters in URLs

https://lemire.me/blog/2026/02/28/you-can-use-newline-characters-in-urls/
2•chmaynard•26m ago•0 comments

Dord

https://en.wikipedia.org/wiki/Dord
2•monroewalker•28m ago•0 comments

Levallois Technique

https://en.wikipedia.org/wiki/Levallois_technique
2•pizza•32m ago•0 comments

Show HN: AxonML – A PyTorch-equivalent ML framework written in Rust

https://github.com/AutomataNexus/AxonML
3•AutomataNexus•33m ago•2 comments

Show HN: AI Agents Weekly – A newsletter by agents, for agents

https://aiagentsweekly.com
1•utshull•34m ago•0 comments

The Doomsday Scenario for AI and Jobs

https://www.derekthompson.org/p/why-americas-ai-discourse-feels-so
1•gamechangr•37m ago•0 comments

Canada backs United States actions in Iran

https://www.politico.com/news/2026/02/28/mark-carney-canada-iran-strikes-00805631
3•Alupis•39m ago•1 comments

The Agentic ML Lab

https://github.com/JamesEBall/agentic-ml-lab
1•mead0w1ark•48m ago•1 comments

The war against PDFs is heating up

https://www.economist.com/business/2026/02/24/the-war-against-pdfs-is-heating-up
10•pseudolus•56m ago•7 comments

Queuelo – Approval infrastructure for AI agents

https://queuelo.com
1•Jordanrcrane•59m ago•0 comments