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.

Easy A's, Less Pay: The Long-Term Effects of Grade Inflation [pdf]

https://econweb.umd.edu/~pope/Grade_Inflation.pdf
1•isolli•42s ago•0 comments

Young Cubans turn to church and state as cheap, synthetic drugs flood streets

https://apnews.com/article/cuba-drug-use-chemical-economy-crisis-d0f22f6452b8f167f6766c9d4d481be6
1•petethomas•2m ago•0 comments

Show HN: Edit scanned PDFs like Photoshop

https://editscanpdf.com
1•bai422•2m ago•0 comments

Nurturing agentic AI beyond the toddler stage

https://www.technologyreview.com/2026/03/16/1133979/nurturing-agentic-ai-beyond-the-toddler-stage/
1•joozio•3m ago•0 comments

Everyone Post Your Uptime

1•skor•6m ago•1 comments

Nvidia's New DLSS 5 Brings Photo-Realistic Lighting to RTX 50-Series

https://www.digitalfoundry.net/features/nvidias-new-dlss-5-brings-photo-realistic-lighting-to-rtx...
1•mariuz•7m ago•0 comments

Civilization and Its Discontents (1930)

https://gutenberg.org/cache/epub/78221/pg78221-images.html
1•petethomas•14m ago•0 comments

Busdayaxis: Matplotlib scale collapsing weekends and off-hours on datetime axis

https://github.com/saemeon/busdayaxis
1•saemeon•14m ago•0 comments

40k-line AI platform built solo with Rails, self-hosted GPU, and an agent

https://austn.net/blog/building-an-ai-native-web-platform
1•frogr•15m ago•1 comments

China is running multiple AI races

https://www.brookings.edu/articles/china-is-running-multiple-ai-races/
2•hunglee2•19m ago•0 comments

Velvet-auth – Production-ready auth plugin for Elysia and Bun

https://github.com/raloonsoc/velvet-auth
1•raloonsoc•25m ago•0 comments

C++ Algorithms Library

https://en.cppreference.com/w/cpp/algorithm.html
1•tosh•27m ago•0 comments

Ask HN: We need to learn algorithm when there are Claude Code etc.

4•JasonHEIN•30m ago•0 comments

Slope Rider

https://slopeonline.online/slope-rider
1•charelie142•34m ago•1 comments

Clawforge SaaS Starter: OpenClaw and Nvidia Starter for Local AI SaaS Workflows

https://github.com/autopilotaitech/clawforge-saas-starter
2•autopilotaitech•36m ago•0 comments

Ask HN: Is it time for "organic" coding?

3•lexi-k•45m ago•4 comments

Using AI a man developed a custom mRNA cancer vaccine for his dying dog

https://fortune.com/2026/03/15/australian-tech-entrepreneur-ai-cancer-vaccine-dog-rosie-unsw-mrna/
2•aureliusm•46m ago•0 comments

HitPaw VikPea

https://www.hitpaw.com/vikpea-video-enhancer.html
1•HitPaw•47m ago•0 comments

Show HN: I Built StatusDrop

https://statusdrop.dev
1•razvanmac•47m ago•0 comments

Folgpris.no (followprice) – A way to track any price from any store

https://folgpris.no/
2•falense•48m ago•1 comments

Mistral AI partners with Nvidia to accelerate open frontier models

https://mistral.ai/news/mistral-ai-and-nvidia-partner-to-accelerate-open-frontier-models
1•tosh•49m ago•0 comments

Clawdoc – Find out where your OpenClaw agents went wrong and get recommendations

https://github.com/ashishjaingithub/clawdoc
2•jainashish•51m ago•0 comments

Out-of-Context Reasoning in LLMs: A short primer and reading list

https://outofcontextreasoning.com/
1•Anon84•51m ago•0 comments

Orc – multi-agent orchestration framework

https://github.com/PietroPasotti/orc
1•ppasotti•54m ago•0 comments

Peter Thiel's Antichrist lectures in Rome spark questions in Italian parliament

https://www.euractiv.com/news/peter-thiels-antichrist-lectures-in-rome-spark-questions-in-italian...
4•vrganj•59m ago•0 comments

From black boxes to black holes

https://www.hypertesto.me/en/blog/2026/03/from-black-boxes-to-black-holes
1•sebtron•1h ago•0 comments

Bit Blit

https://en.wikipedia.org/wiki/Bit_blit
1•tosh•1h ago•0 comments

US health care spending is not an outlier

https://randomcriticalanalysis.com/2016/09/25/high-us-health-care-spending-is-quite-well-explaine...
1•MrBuddyCasino•1h ago•0 comments

Show HN: Create your own online community

https://kraa.io/kraa/trees
1•levmiseri•1h ago•0 comments

Encyclopedia Britannica sues OpenAI over AI training

https://www.reuters.com/legal/litigation/encyclopedia-britannica-sues-openai-over-ai-training-202...
7•1vuio0pswjnm7•1h ago•0 comments