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•8mo ago

Comments

zoezoezoezoe•8mo 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•8mo 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.

Visual Lexicon of Aztec Hieroglyphs

https://aztecglyphs.wired-humanities.org/content/visual-lexicon-aztec-hieroglyphs
1•thunderbong•1m ago•0 comments

Why Flutter Isn't Dead

https://shorebird.dev/blog/flutter-not-dead/
1•satvikpendem•1m ago•0 comments

RFK, Jr., shifts focus to questioning whether cell phones are safe

https://www.scientificamerican.com/article/rfk-jr-shifts-focus-to-questioning-whether-cell-phones...
1•voxadam•3m ago•0 comments

Artificial Intelligence Meets Natural Stupidity: Managing the Risks [pdf]

https://integrative-design-for-radical-energy-efficiency.stanford.edu/sites/extreme_energy_effici...
1•MaysonL•7m ago•0 comments

Propositions about the New Romanticism

https://www.honest-broker.com/p/25-propositions-about-the-new-romanticism
1•dom2•7m ago•0 comments

Show HN: IncidentPost – AI-generated incident postmortems with minimal tooling

1•ededft•13m ago•0 comments

Civilian or military? China turns to merchant fleet to boost military power

https://www.japantimes.co.jp/news/2026/01/12/asia-pacific/china-merchant-fleet-military/
3•DustinEchoes•15m ago•0 comments

Deadlock Mitigation

https://www.cs.cornell.edu/courses/cs4410/2015su/lectures/lec11-deadlock2.html
1•Brysonbw•22m ago•0 comments

American hybrid warfare against Greenland during the second Trump administration

https://en.wikipedia.org/wiki/American_hybrid_warfare_against_Greenland_during_the_second_Trump_a...
11•rendx•27m ago•0 comments

Built the missing GUI for Gemini File Search managed RAG

https://github.com/prashantrohilla-max/gemini-file-search-manager
1•pvr90•32m ago•1 comments

Show HN: Earworm.lol – fast universal music links

https://earworm.lol/https://open.spotify.com/track/5BBK1WoaiD3b3sJ2UysLuM
2•deklesen•35m ago•1 comments

Ask HN: Has Claude Code changed its usage limits for you?

1•laurex•41m ago•0 comments

Ask HN: What's Something You Wished You Started Doing Earlier?

1•karakoram•41m ago•5 comments

Show HN: React hook for Gemini Live API – real-time voice and screen sharing

1•loffloff•41m ago•0 comments

Show HN: Designing State Machines

https://github.com/bytefish/fsm-designer
1•bytefish•41m ago•0 comments

Dancing Mania

https://en.wikipedia.org/wiki/Dancing_mania
2•dmaa•43m ago•0 comments

The Science of Complexity (2025)

https://www.explorablescience.com/articles/science_of_complexity
1•vismit2000•45m ago•0 comments

Vibe Code with Gemini 3 Flash and Gemini 3 Pro for Free in Google AI Studio

https://aistudio.google.com/vibe-code
1•arbayi•46m ago•1 comments

Polymarket historical prices and resolution labels API (5-min snapshots)

1•misprice•47m ago•0 comments

Using Cloudflare to redirect HTTPS/443 to HTTP/80 [pdf]

https://www.eecs.berkeley.edu/Pubs/TechRpts/1984/CSD-84-182.pdf
1•1vuio0pswjnm7•51m ago•0 comments

'Are you Murray Hunter?' How four posts landed Australian blogger in Thai jail

https://www.smh.com.au/world/asia/are-you-murray-hunter-how-four-posts-landed-australian-blogger-...
1•ggm•1h ago•0 comments

Show HN: AgoraPages – A Collaborative Website Builder

https://agorapages.com
1•APMikeDotNet•1h ago•0 comments

ChatGPT to start showing ads in the US

https://www.theguardian.com/technology/2026/jan/16/chatgpt-ads-in-revenue-boost
1•trocado•1h ago•0 comments

Rate Limiting, Cells, and GCRA

https://brandur.org/rate-limiting
2•panic•1h ago•0 comments

Meet the new biologists treating LLMs like aliens

https://www.technologyreview.com/2026/01/12/1129782/ai-large-language-models-biology-alien-autopsy/
1•CharlesW•1h ago•0 comments

The fashion industry that is tech

https://www.baldurbjarnason.com/2025/the-fashion-that-is-tech/
1•random_duck•1h ago•1 comments

Show HN: Adsly – a marketplace for direct sponsorships and partnerships

https://adsly.io
1•ksl_dev•1h ago•1 comments

Can you legally defend yourself against an attacking police officer? (2017)

https://law.stackexchange.com/questions/16695/can-you-legally-defend-yourself-against-an-attackin...
3•zahlman•1h ago•0 comments

Keifu – A TUI for navigating commit graphs with color and clarity

https://github.com/trasta298/keifu
4•indigodaddy•1h ago•0 comments

Satellogic to Deliver Two Mark V High-Resolution Satellites

https://investors.satellogic.com/news-releases/news-release-details/satellogic-signs-18mm-usd-agr...
1•wslh•1h ago•0 comments