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.

Show HN: Sleeping LLM – A language model that remembers by sleeping

https://github.com/vbario/sleeping-llm
1•vbaranov87•52s ago•0 comments

Show HN: Check Your Latency

https://3nt.lat/
1•dpweb•3m ago•0 comments

Apple's Multibillion-Dollar Push to Make Chips in the U.S. [video]

https://www.youtube.com/watch?v=ktFlaBhpMu8
1•Austin_Conlon•3m ago•0 comments

Date-fns: Modern JavaScript date utility library

https://date-fns.org/
1•nateb2022•4m ago•0 comments

OVH Is Raising Prices

1•babaganoosh89•7m ago•0 comments

ZES – sign data with post-quantum crypto without the API ever seeing it

https://pq-api.cyclecore.ai/try
1•dev_PQC-focus•9m ago•1 comments

Show HN: Nullroom.io – Experimental, stateless P2P messaging and file sharing

https://www.nullroom.io/
1•vdw•11m ago•0 comments

Trading Strategies (2018) [pdf]

https://smallake.kr/wp-content/uploads/2019/12/SSRN-id3247865.pdf
1•htfy96•14m ago•0 comments

vLLM-mlx – 65 tok/s LLM inference on Mac with tool calling and prompt caching

https://github.com/raullenchai/vllm-mlx
1•raullen•17m ago•1 comments

Swamp Dirt and AI Safety

https://safeenough.substack.com/p/swamp-dirt-and-ai-safety
1•protagonist_hn•21m ago•0 comments

Gravity's Effect on Biology

https://www.frontiersin.org/journals/physiology/articles/10.3389/fphys.2023.1199175/full
2•the-mitr•23m ago•0 comments

Beyond the "Post": Trauma, Temporality, and Psychiatric Categories in Kashmir

https://www.inversejournal.com/2026/02/22/beyond-the-post-trauma-temporality-and-psychiatric-cate...
1•bryanrasmussen•25m ago•0 comments

Miss Alexandra

https://mihaiolteanu.me/miss-alexandra
1•molteanu•26m ago•0 comments

What the Defense Production Act Can and Can't Do to Anthropic

https://www.lawfaremedia.org/article/what-the-defense-production-act-can-and-can%27t-do-to-anthropic
1•verdverm•30m ago•0 comments

Show HN: CVJ-1 VJ Deck / VISUALZ audio-reactive VJ software

https://www.visualzstudio.com/vj-deck
1•madchops1•31m ago•0 comments

Will A.I. Take Away Our Basic Skills?

https://paperrobots.substack.com/p/will-ai-take-away-our-basic-skills
2•NomNew•32m ago•1 comments

Show HN: Free online audio translator that translates voice instantly

https://audioconvert.ai/audio-translator
1•Katherine603•33m ago•0 comments

Plugin to give Claude Code perception (screen, system audio and mic context)

https://twitter.com/ashu_trv/status/2026296815860203888/
1•ash-ishh•34m ago•0 comments

Show HN: Squidy – How I stopped losing AI agent context mid-project

https://rendernet.com.br/squidyrun/
1•marcfox182•39m ago•0 comments

Show HN: Easyemailfinder.com (5 Free Credits)

https://easyemailfinder.com
1•faalbane•43m ago•0 comments

The Internet Was Weeks Away from Disaster and No One Knew [video]

https://www.youtube.com/watch?v=aoag03mSuXQ
1•trinsic2•49m ago•1 comments

Tesla Lab – 20 computational experiments

https://github.com/consigcody94/tesla-lab
1•sentinelowl•50m ago•1 comments

Show HN: NovelStar – a functional novel writing suite in a single HTML file

https://github.com/pixeldude84/novelstar
1•pixeldude84•50m ago•0 comments

Claude Code Anywhere

https://happy.engineering
1•vismit2000•55m ago•0 comments

Detecting AI scammers and bringing back the control to humans

https://veritrue.ai/
1•cheroll•58m ago•2 comments

I hacked ChatGPT and Google's AI – and it only took 20 minutes

https://www.bbc.com/future/article/20260218-i-hacked-chatgpt-and-googles-ai-and-it-only-took-20-m...
3•leephillips•1h ago•1 comments

RSA-signed prompt envelopes for OpenClaw agents

https://github.com/Mediocr3Mik3/open-claw-spa
1•Mediocr3Mik3•1h ago•1 comments

Connectors: Discord, Notion, and Slack Now Wired into Every Debate

https://www.askverdict.ai/updates/connectors-notion-discord-slack
1•thegdsks•1h ago•0 comments

A Computational Perspective on NeuroAI and Synthetic Biological Intelligence

https://arxiv.org/abs/2509.23896
1•andsoitis•1h ago•0 comments

A faithful, native Windows Notepad clone built in Zig using raw Win32 APIs

https://github.com/leebase/lfznotepad
1•garbagepatch•1h ago•1 comments