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.

SpiceCrypt: A Python library for decrypting LTspice encrypted model files

https://github.com/jtsylve/spice-crypt
1•luu•3m ago•0 comments

Python → native x86-64, no runtime, no GIL, NO LLVM

https://github.com/AndreeSalazar/PyDead-BIB
1•QDanteX•6m ago•1 comments

Apple's MacBook Pro 14 cannot handle the M5 Max

https://www.notebookcheck.net/Apple-s-MacBook-Pro-14-cannot-handle-the-M5-Max.1249861.0.html
1•virgildotcodes•12m ago•0 comments

Anything Will Lase If You Hit It Hard Enough

https://maximumeffort.substack.com/p/anything-will-lase-if-you-hit-it
1•dblack12705•12m ago•1 comments

China is wrestling with a novel phenomenon: inherited wealth

https://www.economist.com/briefing/2026/03/12/china-is-wrestling-with-a-novel-phenomenon-inherite...
1•Jiahang•17m ago•0 comments

China's hereditary elite is taking shape

https://www.economist.com/leaders/2026/03/12/chinas-hereditary-elite-is-taking-shape
1•Jiahang•18m ago•0 comments

What Your AI Tool Selection Says About You (Programmer Edition)

https://effective-programmer.com/what-your-ai-tool-selection-says-about-you-programmer-edition-54...
2•naveed125•25m ago•1 comments

Vibe Create Hardware

https://www.blueprint.am/
1•David-Feldt•35m ago•1 comments

StorageReview Sets New Pi Record: 314T Digits on a Dell PowerEdge R7725

https://www.storagereview.com/review/storagereview-sets-new-pi-record-314-trillion-digits-on-a-de...
1•y1n0•38m ago•0 comments

Ask HN: Med student interested in bci startups..where do I start?

1•Sxouterred•43m ago•1 comments

OpenClaw for Your Dad

https://picnicos.com/
2•basiclaser•44m ago•3 comments

Show HN: OpenClaw-superpowers – Self-modifying skill library for OpenClaw agents

https://github.com/ArchieIndian/openclaw-superpowers
8•Arkid•47m ago•0 comments

Conditional Impls

https://www.possiblerust.com/pattern/conditional-impls
3•itzlambda•56m ago•0 comments

Show HN: Plotiq – Turn CSV files into graphs instantly

https://plotiq-web.web.app/
4•devnpatel•57m ago•3 comments

Tinder Sparks 2026: Start Something New [video]

https://www.youtube.com/watch?v=ViWAHYFjb90
2•megatunger•1h ago•0 comments

Why Mathematica does not simplify Sinh[ArcCosh[x]]

https://www.johndcook.com/blog/2026/03/10/sinh-arccosh/
2•y1n0•1h ago•0 comments

Show HN: MCP servers inside Antigravity are underrated – tried 2 of them

https://www.youtube.com/watch?v=QUbximJiuNs
2•ravi_rupareliya•1h ago•1 comments

Show HN: I built an MCP-connected bookmark manager because X's are useless

https://www.bookmarksos.com/
2•enzovarela•1h ago•0 comments

PgBouncer: Lightweight Connection Pooler for PostgreSQL

https://www.pgbouncer.org/
2•saikatsg•1h ago•0 comments

FCC chair threatens to throttle news broadcasts over 'hoaxes' about Iran war

https://www.theguardian.com/us-news/2026/mar/14/fcc-broadcast-permits-iran-war-news
5•kuerbel•1h ago•1 comments

A Gentle Introduction to Mercury

https://bctnry.github.io/gentle-introduction-to-mercury/
1•y1n0•1h ago•0 comments

History of Computational Complexity Theory [video]

https://www.youtube.com/watch?v=HolzI3qKBjc
1•sgschlesinger•1h ago•2 comments

What has improved regarding AI slop in 2026?

https://hackerone.com/reports/2887487
2•lopanapol•1h ago•2 comments

Cognitive shuffling: The micro-dreaming game that helps you sleep

https://www.bbc.com/future/article/20260311-cognitive-shuffling-the-micro-dreaming-technique-that...
3•dybber•1h ago•0 comments

Show HN: Vesper – MCP server for autonomous ML dataset workflows

https://getvesper.dev/
1•sultanchek•1h ago•0 comments

Aggregated File System – Everything is a file. A tribute to Plan9

https://github.com/c4pt0r/agfs
3•ngaut•1h ago•0 comments

AI Exposure of the US Job Market

https://karpathy.ai/jobs/
2•baxtr•1h ago•1 comments

As Oscars approach, Hollywood grapples with AI's growing influence on filmmaking

https://theconversation.com/as-the-oscars-approach-hollywood-grapples-with-ais-growing-influence-...
2•saikatsg•1h ago•1 comments

Hacking the Xbox One

https://www.youtube.com/watch?v=FTFn4UZsA5U
1•cedel2k1•1h ago•0 comments

In Search of Banksy

https://www.reuters.com/investigates/special-report/global-art-banksy/
2•jbegley•1h ago•0 comments