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.

Pratt parsing is a black box

https://vinipsmaker.github.io/blog/article/pratt-parsing-is-a-black-box/
1•swq115•21s ago•0 comments

Single-Use Software

https://blog.zombienw.com/posts/single-use-software
1•zombienw•2m ago•0 comments

Blaize GSP [Graph Streaming Processor] Streams AI Graphs at the Edge

https://www.jonpeddie.com/news/blaize-gsp-streams-ai-graphs-at-the-edge/
1•peter_d_sherman•6m ago•0 comments

Show HN: HackerHack – HackerBooks but for Posts Posted on HN

https://news.ycombinator.com/
2•mw888•8m ago•1 comments

What are the amenities available in Amrapali Verona Heights project?

1•amrapaliflats24•8m ago•0 comments

Elephant-Goldfish Model from Google

https://github.com/google/elephant-goldfish-model
1•endangeredhuman•10m ago•0 comments

More than Infinitesimal: What is dx?(2014)

https://math.blogoverflow.com/2014/11/03/more-than-infinitesimal-what-is-dx/
1•nill0•11m ago•0 comments

A rising tide raises all rents

https://jyn.dev/rising-tide-raises-rents/
1•reasonableklout•14m ago•0 comments

Understanding Org's Latex Previews

https://karthinks.com/software/understanding-org-latex-preview/
1•signa11•17m ago•0 comments

Show HN: Northstar web browser engine 1.0.40 released

4•andreasrosdal•19m ago•1 comments

Diffreview – code review for local Claude diffs

https://github.com/chalmagean/diffreview
1•mixandgo•26m ago•0 comments

From Charlemagne to the Kitchen Boy: Reading the Hamburg Rathaus

https://alsterrunde.com/from-charlemagne-to-the-kitchen-boy-reading-the-hamburg-rathaus/
1•mertbio•28m ago•0 comments

Show HN: Spiceliner, a modern platform to navigate the markets

https://spiceliner.com
1•ddk_•30m ago•1 comments

Dev Notes and Small Tools

https://news.ycombinator.com/user?id=oliversant
3•freyamar•38m ago•3 comments

Rocky Linux Creator Built a New 'Not Linux' Kernel in 11 Days Using AI

https://github.com/gmkurtzer/ginux
3•signa11•38m ago•0 comments

Reliably aligning LLMs is impossible in principle

https://www.seangoedecke.com/alignment-is-impossible/
3•random42•40m ago•0 comments

Small Tools and Dev Notes

https://news.ycombinator.com/user?id=sofia84
3•tomasfelix•41m ago•2 comments

The Smartest People in AI Believe This Is the Most Important Chart

https://www.wsj.com/tech/ai/ai-anthropic-rsi-recursive-self-improvement-bff4e815
4•fortran77•45m ago•1 comments

Kairos: Open-source, real-time fraud and risk decisioning

https://github.com/finic-ai/kairos
2•citguru•47m ago•0 comments

Dialogic Systems Without a Truth Criterion: Epistemology, Regulatory Strategy

https://medium.com/@smoking2man/dialogic-systems-without-a-truth-criterion-epistemology-regulator...
2•Aldus551•48m ago•0 comments

Show HN: Open-sourced alternatives to every SaaS tool

https://www.saasalternatives.online
3•macgirlt•56m ago•0 comments

Auth0 Alternatives: 6 Options Compared (Including Open Source)

https://seliseblocks.com/blog/auth0-alternatives-6-options-compared-including-open-source
1•meherabhossain•57m ago•0 comments

TrustSlot – A marketplace for independent website ad slots

https://trustslot.app
1•markriplabs•1h ago•0 comments

The Bottlenecks for AI-Driven System Design: why Principals are not yet obsolete

https://maheshba.bitbucket.io/blog/2026/07/22/agentdesign.html
1•porridgeraisin•1h ago•0 comments

Amazon plans to start selling Trainium AI chips outside AWS

https://twitter.com/wallstengine/status/2115933466361753652
3•krembo•1h ago•0 comments

GDPx: The General Agentic Benchmark

https://gdpx.semianalysis.com/
1•giuliomagnifico•1h ago•0 comments

FreeToken: Datacenter-class intelligence on the hardware you own

https://arxiv.org/abs/2608.16157
3•lioeters•1h ago•1 comments

We have lift off: building a Gemini server in Python

https://www.willmunn.xyz/gemini/python/2026/10/16/we-have-lift-off.html
1•will_munn•1h ago•0 comments

9 dead after Learjet crashes in Florida

https://nypost.com/2026/11/01/us-news/2m-learjet-60-crashes-near-palm-beach-florida/
2•metadat•1h ago•0 comments

Show HN: AI System Design Primer

https://github.com/daneb/ai-system-design-primer/
1•danebalia•1h ago•0 comments