frontpage.
newsnewestaskshowjobs

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.

Where Do the Children Play?

https://www.theseedsofscience.pub/p/where-do-the-children-play
1•Ariarule•36s ago•0 comments

I turned the Mac trackpad's edges into sliders using private MultitouchSupport

https://haptiker.app
1•perlatsp•1m ago•0 comments

Galaxy Game – Interim Computer Museum

https://icm.museum/blog/?p=698
1•rbanffy•1m ago•0 comments

Ask HN: Any guesses on which model/provider is Space Bunny Alpha on OpenRouter?

1•moecables•2m ago•0 comments

Lucid Introduces Air UX 3.0

https://lucidmotors.com/stories/lucid-air-ux-3-0
1•etothet•3m ago•0 comments

ModRetro + Codex

https://developers.openai.com/modretro
1•tosh•3m ago•0 comments

Show HN: Sarala – An open-source WYSIWYG Markdown editor

https://sarala.solancer.com/
3•solancer•4m ago•0 comments

AI needs $6T in annual revenue to justify data centre boom

https://www.thenationalnews.com/future/technology/2026/09/29/ai-industry-needs-to-earn-6-trillion...
2•Betelbuddy•4m ago•0 comments

Show HN: TurboGPT: train 22KiB transformer in 13s

https://github.com/lostmsu/TurboGPT
2•lostmsu•5m ago•0 comments

Show HN: Agentcap – eBPF exporter for AI-agent activity to Grafana

https://github.com/yeet-src/agentcap
3•r3tr0•7m ago•0 comments

I built a self-improving voice AI agent that runs offline on a RPi5

https://github.com/mobium-app/ai_astro_public
2•mobium-app•8m ago•0 comments

TIRx Harness: An Open Compiler Harness for Agentic GPU Programming

https://blog.mlc.ai/2026/09/29/tirx-harness-an-open-compiler-harness-for-agentic-gpu-programming
1•jinhongyii•8m ago•0 comments

Forge: The open source pipeline for generating SDKs, CLIs, docs, and more

https://blog.cloudflare.com/forge-open-source-generation-pipeline/
1•antimora•9m ago•0 comments

Nicholas Polson has authored 258 academic papers in 2026 (so far)

https://statmodeling.stat.columbia.edu/2026/08/27/258/
2•zaik•9m ago•0 comments

New contender for the fastest PHP-FPM feature-rich framework

https://towardsdev.com/the-fastest-php-fpm-feature-rich-framework-available-is-b35c999d0599
1•marius-ciclistu•10m ago•0 comments

Our Partnership with OpenAI

https://twitter.com/baseten/status/2104995956441682313
1•tosh•11m ago•0 comments

LibreOffice Conference 2026: Building a free AI assistant extension for Writer [video]

https://www.youtube.com/watch?v=QkzRPeZxmtE
1•mmarian•11m ago•0 comments

AI-Powered Financial Modeling Works Now

https://www.modeloptic.com/blog/ai-financial-modeling-works-now
1•lhh•12m ago•0 comments

Show HN: Occulta – cryptographic contacts exchanged in person via UWB

https://github.com/aibo-cora/occulta
1•ghafla•12m ago•0 comments

How We Made Object Storage Faster Than ClickHouse for Log Search

https://cardinalhq.io/blog/object-storage-faster-than-clickhouse-for-log-search
1•chipfixer•14m ago•0 comments

PS1 Game on ESP32-S3

https://www.reddit.com/r/embedded/s/vkgFuZviRD
2•dmonterocrespo•15m ago•0 comments

Show HN: Giving voice agents a voice that adapts to context

https://gradium.ai/demos/voice-design-demo/
1•segu•17m ago•0 comments

Show HN: The whole Solar System and every tracked satellite, live in the browser

https://space.bl2.net/
2•wanick•17m ago•1 comments

How Long Will the AI Boom Last? Memory Stocks Offer Clues

https://www.wsj.com/tech/ai/how-long-will-the-ai-boom-last-memory-stocks-offer-clues-622be948
2•fortran77•19m ago•1 comments

Designing a Programming Language for the AI Era

https://zena-lang.dev/blog/2026/09/languages-for-the-ai-era/
1•jakelazaroff•19m ago•0 comments

The Graveyard of Good Ideas [video]

https://www.youtube.com/watch?v=ovlQ81rBc-4
1•ibobev•20m ago•0 comments

Dot.com Is Grokbot

https://twitter.com/elie2222/status/2104984753472516595
1•china•20m ago•1 comments

The Greatest Pun: JavaScript's ${{ }} tagged template literal

https://shukla.io/blog/2026-09/pun.html
1•ibobev•20m ago•0 comments

Yet Another AI Security OSS Externality

http://blog.holdenkarau.com/2026/09/yet-another-ai-security-oss-externality.html
3•holdenk•21m ago•0 comments

Can we have reachability properties in TLA⁺?

https://ahelwer.ca/post/2026-09-26-reachability/
1•ibobev•21m ago•0 comments