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•8mo ago

Comments

zoezoezoezoe•8mo 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•8mo 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.

Why is calling my asm function from Rust slower than calling it from C?

https://ohadravid.github.io/posts/2025-12-rav1d-faster-asm/
1•gavide•1m ago•0 comments

Mercedes Will Use Screws to Make Headlights Repairable

https://www.motor1.com/news/781768/mercedes-headlights-repairable-screws/
1•gpi•2m ago•0 comments

Show HN: Crovise – Static analysis for landing page conversion hypotheses

https://crovise.netlify.app/
1•adamofk•7m ago•0 comments

Show HN: Feather – a fresh Tcl reimplementation (WASM, Go)

https://www.feather-lang.dev
1•dhamidi•9m ago•0 comments

NMH BASIC

https://t3x.org/nmhbasic/index.html
1•AlexeyBrin•9m ago•0 comments

Writing an NES Emulator in Haskell

https://arthi-chaud.github.io/posts/funes/
1•birdculture•10m ago•0 comments

INSV Kaundinya – Indian wooden sailing ship built using traditional stitching

https://www.bairdmaritime.com/work-boat-world/other-workboats/vessel-review-insv-kaundinya-indian...
1•atomicnature•11m ago•0 comments

How to read more books in 2026

https://chamoda.com/sparks/how-to-read-more-books-in-2026
2•chamoda•13m ago•0 comments

Data is not a great VC-backed business

https://auren.substack.com/p/data-is-actually-not-a-great-vc-backed
1•AznHisoka•14m ago•0 comments

Beyond the Nat: Cgnat, Bandwidth, and Practical Tunneling

https://blog.rastrian.dev/post/beyond-the-nat-cgnat-bandwidth-and-practical-tunneling
1•rastrian•16m ago•0 comments

Show HN: Jsonic – Python JSON serialization that works

https://medium.com/dev-genius/jsonic-python-serialization-that-just-works-3b38d07c426d
2•orrbenyamini•19m ago•1 comments

Ask HN: Would anyone pay for a social network with no ads or data harvesting?

1•neilfd•20m ago•2 comments

Show HN: OpenAPI-batch: library for batch execution of LLM requests

https://github.com/sireto/openapi-batch
1•spannercode•21m ago•0 comments

The Organists Improvising Soundtracks to Silent Films

https://www.newyorker.com/magazine/2025/12/29/the-organists-improvising-soundtracks-to-silent-films
2•fortran77•25m ago•1 comments

Somaliland in the News. A look back at this innovative country

https://hardcoresoftware.learningbyshipping.com/p/236-somaliland-in-the-news-a-look
1•rbanffy•25m ago•0 comments

FernUniversität in Hagen

https://www.fernuni-hagen.de/english/university/index.shtml
1•Tomte•28m ago•0 comments

Show HN: An immutable ostree-based Arch Linux image

https://github.com/myyc/vyy
2•mxxc•28m ago•0 comments

Versus app for publicly traded companies

https://puenteolambo.com/
1•suglus•29m ago•0 comments

Attention Please – Codex/Claude SKILL that alerts when a run ends or needs input

https://github.com/Mindgames/attention-please
1•Mindgames•31m ago•0 comments

Show HN: Create old-timey silent-film style caption cards

https://caption.joeldare.com
1•codazoda•31m ago•0 comments

Getting Started with Playdate on Ubuntu

https://sethmlarson.dev/getting-started-with-playdate-on-ubuntu
2•todsacerdoti•33m ago•0 comments

Show HN: Chat-DeepAI – DeepSeek pricing and getting-started guides (fan project)

https://chat-deepai.com/
1•addressGen•34m ago•1 comments

Pokémon Team Optimization

https://nchagnet.pages.dev/blog/pokemon-team-optimization/
1•nchagnet•37m ago•0 comments

Free TTS and STT that runs 100% locally via WebGPU

https://www.freevoicereader.com/
1•kcordoc•40m ago•1 comments

Virtualization: Theory to Silicon

https://pooladkhay.com/posts/virt-theory-silicon/
1•mamadipine•41m ago•0 comments

The Relentless Rise of YouTube

https://www.ft.com/content/9e75eeb8-b6e6-4a90-b015-2732fa9a8774
2•bookofjoe•43m ago•1 comments

V-NOC: An IDE that shows you how your code works, not just where it's saved

https://github.com/v-noc/IDE
1•mellosouls•43m ago•1 comments

Nathalie Yamb

https://en.wikipedia.org/wiki/Nathalie_Yamb
1•hggh•44m ago•0 comments

OpenENF – tool to perform Electrical Network Frequency Analysis on audio signals

https://github.com/openenf/openenf
1•pera•46m ago•0 comments

AI Changes Science and Math Forever

https://www.quantamagazine.org/series/science-in-the-age-of-ai/
2•Anon84•51m ago•0 comments