frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

China proposes rules to stop people falling in love with humanoid robots

https://www.independent.co.uk/asia/china/china-rules-people-love-humanoid-robots-b3096103.html
1•Alien1Being•58s ago•0 comments

Ubuntu spent years patching GNOME, but things it can't fix are the real problem

https://www.xda-developers.com/ubuntu-has-been-patching-gnomes-missing-basics-since-2017-and-gnom...
1•cromka•4m ago•0 comments

Visualize: Agent Skill that turns a one-line request into a step-through visual

https://github.com/Aaryan1524/Visualize
1•thunderbong•8m ago•0 comments

A Gift Guide for Everyone, No One, and Karen, Who Has Dementia

https://longreads.com/2026/12/03/christmas-holiday-gift-guide-dementia/
1•gmays•9m ago•0 comments

Centralized AI Games, Centralized AI Prizes

https://www.pond.is/p/centralized-ai-games-centralized
1•StevenVincent•12m ago•0 comments

The 4D SU(N) Yang–Mills Mass Gap in Lean4

https://umpolungfish.github.io/yang-mills-lean4/
1•umpolungfish•13m ago•0 comments

Meltwater Pulse 1A

https://en.wikipedia.org/wiki/Meltwater_pulse_1A
2•PeterHolzwarth•19m ago•1 comments

Air France Crew Told to Track Passengers Who Didn't Eat or Drink

https://onemileatatime.com/news/air-france-crew-told-secretly-track-passengers-didnt-eat-drink/
1•malshe•19m ago•0 comments

SwarmHarm: Sandbox for emergent multi-agent swarm behaviors

https://swarmharm.com/
1•dagli•20m ago•0 comments

Deep learning for kidney cancer screening using non-contrast computed tomography

https://www.nature.com/articles/s44360-026-00223-w
5•marc__1•21m ago•0 comments

Production Companies, Literary Agents, Foreign Languages: AI-Driven Scams

https://writerbeware.blog/2026/08/28/production-companies-literary-agents-foreign-languages-ai-dr...
1•Alien1Being•24m ago•0 comments

The No AI Webring

https://baccyflap.com/noai/
1•pocksuppet•26m ago•0 comments

RAG vs. MCP: Which One Should Your Agent Use

https://openrouter.ai/blog/insights/rag-vs-mcp/
3•teleforce•28m ago•0 comments

Early peanut introduction linked to a 30% drop in food allergies

https://news.uq.edu.au/2026-12-food-allergies-have-dropped-30-parents-were-advised-introduce-pean...
1•thunderbong•29m ago•0 comments

The lean startup boom isn't making enough headlines; data says it's here and big

https://keydiscussions.com/2026/12/05/the-solo-founder-startup-boom-isnt-making-many-headlines-bu...
1•spenvo•31m ago•0 comments

Plummeting Denver Rents Are Upending the Market for Cheap Apartments

https://www.bloomberg.com/news/articles/2026-12-05/plummeting-rents-are-upending-the-market-for-c...
2•toomuchtodo•43m ago•2 comments

Tell HN: OpenAI, please consider open-sourcing old models

1•andai•43m ago•0 comments

Ask HN: Retro computers had BASIC. Should modern computers boot into AI?

3•amichail•45m ago•4 comments

OpenRouter has GPT-4 and GPT-3.5 endpoints but they go to GPT-4.1 mini/4o

https://bsky.app/profile/emollick.bsky.social/post/3n3wtotp3ps2d
1•luu•47m ago•0 comments

Show HN: Agora – The Project Explorer (2.5D/3D Civ style)

2•bullbash•49m ago•0 comments

The Gen Z quarter-life crisis

https://stephstiner.substack.com/p/inside-the-gen-z-quarter-life-crisis
2•ianrahman•50m ago•0 comments

Show HN: LabShelf – Papers, executable notes, and manuscripts in VS Code

https://labshelf.org/
1•lucanasser•52m ago•0 comments

Amazon tightens safety rules after AI toys teach kids about knives and sex

https://arstechnica.com/ai/2026/12/amazon-tightens-safety-rules-after-ai-toys-teach-kids-about-kn...
3•apparent•55m ago•1 comments

Rust vs. C#, Measured

https://sitepaste.app/jason/creamer-fidgety-bleep.html
2•nreece•55m ago•1 comments

Slidal – A native C++/Slint desktop client for TIDAL (~33 MiB RAM)

https://github.com/szaaamerik/slidal
1•merikaaaa•55m ago•0 comments

Show HN: Photo Diagram – Zero-signup browser tool for studio lighting setups

https://allutility.net/en/tools/photo-diagram
1•kangim86•56m ago•0 comments

Linux 7.3 on a stock 4 MB Macintosh Plus

https://github.com/ActionRetro/nugget-linux
21•hochmartinez•1h ago•1 comments

How cooked is your company?

https://how-cooked-eta.vercel.app
2•antdke•1h ago•0 comments

Observer Effect in AI Agents

https://twitter.com/srikar1651/status/2129314190296809860
1•skovvuri•1h ago•0 comments

Samenland – Medieval Building Game and Village Simulation

https://samenland.app
1•doener•1h ago•0 comments
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.