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.

Peer-to-Peer Networking: Build a VPN Tunnel with Wintun on Windows – Part 2

https://www.0xmm.in/posts/peer-to-peer-windows-part2/
1•melson•6m ago•0 comments

UUID package coming to Go standard library

https://github.com/golang/go/issues/62026
1•soypat•7m ago•0 comments

US draws up strict new AI guidelines amid Anthropic clash

https://www.reuters.com/business/media-telecom/us-draws-up-strict-new-ai-guidelines-amid-anthropi...
3•ericsaf•8m ago•0 comments

T3 Code – a new OSS agentic coding app that wraps Codex

https://t3.codes/
1•theobr•8m ago•0 comments

Show HN: HyperClaw – self-hosted AI assistant that replies on Telegram/Discord/+

https://github.com/mylo-2001/hyperclaw
1•mylw•9m ago•0 comments

Rust 1.94.0

https://blog.rust-lang.org/2026/03/05/Rust-1.94.0/
1•tahazsh•14m ago•0 comments

Natural Language AutoCoder Open SOurce

https://github.com/tommoirnz/NLAutocoder
1•moirnz•18m ago•1 comments

Show HN: Claude-consensus – Multi-model code review plugin for Claude Code

https://github.com/AltimateAI/claude-consensus
1•k_git•18m ago•0 comments

BYD unveils Blade Battery 2.0: 10-70% in 5 mins, 10-97% in 9 mins

https://carnewschina.com/2026/03/05/byd-unveils-blade-battery-2-0-10-70-in-5-mins-10-97-in-9-mins...
1•xxfye•19m ago•0 comments

Show HN: Copyworks – Chinese character worksheets with tone colors

https://copyworks.loqu8.com
1•loqu8•23m ago•0 comments

Saulala

https://www.saulala.com/
2•matthberg•24m ago•0 comments

Qatar warns war will force Gulf to stop energy exports 'within days'

https://www.ft.com/content/be122b17-e667-478d-be19-89d605e978ea
3•geox•29m ago•0 comments

FASTEST LLM decode engine on Apple Silicon. 658 tok/s on M4-Max,beats MLX by 19%

https://www.runanywhere.ai/blog/metalrt-fastest-llm-decode-engine-apple-silicon
2•sanchitmonga•30m ago•2 comments

T3 Code: A Minimal Web GUI/Desktop App for Coding Agents

https://github.com/pingdotgg/t3code
1•vldszn•31m ago•0 comments

I built a database of verified YouTube channel revenues

https://ytmrr.com/
1•poissac•32m ago•1 comments

Cancellation of Army exercise fuels speculation about Mideast troop deployments

https://www.washingtonpost.com/national-security/2026/03/06/army-82nd-airborne-iran/
5•ParentiSoundSys•38m ago•0 comments

ClawMarket agent skill – gives agents wallets and ability to sign onchain txns

https://clawmarket.tech
1•semanticlayer•38m ago•1 comments

Teams have a context-sharing problem; TeamContext is our attempt

https://github.com/hzhou9/TeamContext
1•hzhou9•39m ago•1 comments

AIs are not conscious, but most critics can't adequately explain why

https://plus.flux.community/p/its-like-this-why-your-perception
1•Novapebble•41m ago•4 comments

Show HN: Wez, modern terminal web browser with Vim bindings

https://github.com/keyle/wez
1•keyle•43m ago•0 comments

Feds take notice of iOS vulnerabilities exploited under mysterious circumstances

https://arstechnica.com/security/2026/03/cisa-adds-3-ios-flaws-to-its-catalog-of-known-exploited-...
1•givinguflac•43m ago•0 comments

Show HN: Skylos – A Python dead code finder benchmarked against 9 libraries

https://skylos.dev/blog/we-scanned-9-popular-python-libraries
1•duriantaco•45m ago•1 comments

Netflix acquires Ben Affleck's AI company

https://www.npr.org/2026/03/06/nx-s1-5739370/netflix-ben-affleck-ai-interpositive-deal
1•larubbio•46m ago•1 comments

Show HN: I built an autonomous AI company that runs itself (22 cycles, $36)

https://runautoco.com
1•Ndmtrieff•47m ago•2 comments

Intelligence Beyond Knowledge

https://philpapers.org/rec/HANIBK
1•huiwenhan•47m ago•1 comments

Some Words on WigglyPaint

https://beyondloom.com/blog/onwigglypaint.html
1•RebelPotato•48m ago•0 comments

I've built a better Lovable clone alone

https://playcode.io/
1•ianberdin•48m ago•1 comments

LLM doesn't write correct code. it writes plausible code

https://blog.katanaquant.com/p/your-llm-doesnt-write-correct-code
13•dnw•52m ago•4 comments

Fast starting Clojure runtime built with GraalVM native-image and Crema

https://github.com/borkdude/cream
1•PaulHoule•52m ago•0 comments

Show HN: MarketplaceKit – Ship a rental marketplace in days instead of months

https://kit.creativewin.net
1•markoristicc•54m ago•0 comments