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

Comments

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

OpenAI Codex 0.93 adds SQLite backed log database

https://github.com/openai/codex/releases/tag/rust-v0.93.0
1•tosh•4m ago•0 comments

School Is Worse for Children Than Social Media

https://unpublishablepapers.substack.com/p/school-is-way-worse-for-kids-than
1•barry-cotter•5m ago•0 comments

Bob Iger to Step Down as Disney CEO Before End of 2026

https://variety.com/2026/biz/news/bob-iger-step-down-disney-ceo-before-end-of-2026-1236646611/
1•coolandsmartrr•7m ago•0 comments

'Reverse Solar Panel' Generates Electricity at Night

https://www.extremetech.com/science/reverse-solar-panel-generates-electricity-at-night
1•defrost•10m ago•0 comments

Layoffs are piling up, heightening worker anxiety

https://apnews.com/article/amazon-ups-layoffs-economy-washington-71bfde72b358fddb9a22c15aa13fe848
1•rustoo•11m ago•0 comments

YouTube blocks background video playback on Brave and other Browsers

https://piunikaweb.com/2026/01/28/youtube-background-play-samsung-internet-brave/
2•croes•14m ago•0 comments

Show HN: Oyster Bot – AI assistant for your phone, powered by Claude Code

https://github.com/TimFinnigan/oyster-bot
1•timfinnigan•17m ago•0 comments

Using project genie feels kinda like a game

https://project-genie.net/
2•ri-vai•18m ago•1 comments

The End of Transformers (2025)

https://arxiv.org/abs/2510.05364
1•teleforce•19m ago•0 comments

AI isn't making you faster. It's making you forgetful

https://jpcaparas.medium.com/ai-isnt-making-you-faster-it-s-making-you-forgetful-2d1ce729e321
2•zenoware•28m ago•0 comments

Eneloop

https://en.wikipedia.org/wiki/Eneloop
1•tosh•31m ago•0 comments

All 13 Episodes of Kenneth Clark's Civilisation: A Personal View

https://antigonejournal.com/2023/02/kenneth-clark-civilisation/
1•pajop•31m ago•0 comments

Show HN: AI knowledge base that auto-updates from your codebase

https://bunnydesk.ai
2•mkapoor26•32m ago•0 comments

The Lesser Evil of Compliance: Enterprise SBoM Strategy for CRA Readiness

https://nesbitt.io/2026/01/20/the-lesser-evil-of-compliance.html
1•lifeisstillgood•32m ago•0 comments

China edges up with 3 of top chipmaking gear suppliers

https://asia.nikkei.com/business/tech/semiconductors/china-edges-up-with-3-of-world-s-top-20-chip...
2•SanjayMehta•33m ago•1 comments

Forget Postman and JMeter: Test APIs with natural language prompts

https://github.com/onurkanbakirci/prompmeter
1•onurkanbkrc•34m ago•0 comments

An explorable agent architecture with persistent internal state&self-observation

https://github.com/sivanhavkin/Entelgia
2•sivanhavkin•34m ago•1 comments

Sumerian Star Map Recorded the Impact of an Asteroid (2024)

https://archaeologyworlds.com/5500-year-old-sumerian-star-map-recorded/
1•griffzhowl•36m ago•0 comments

Lackluster superintelligence and the infinite data plane

https://fowler.dev/posts/2026-01-30/
1•Descon•36m ago•0 comments

Show HN: Interactive Equation Solver

1•dharmatech•37m ago•0 comments

Epstein files: Musk planned to visit sex offender's island, host him at SpaceX

https://www.cnbc.com/2026/01/30/epstein-files-show-elon-musk-planned-visit-to-island-host-at-spac...
8•SilverElfin•37m ago•2 comments

Upcoming re-entry of space object ZQ-3 R/B

https://www.eusst.eu/newsroom/news/eu-sst-closely-monitors-upcoming-re-entry-space-object-zq-3-rb
1•kreyenborgi•44m ago•0 comments

CoreWeave walks a debt tightrope, counting on key customers to be its safety net

https://deepquarry.substack.com/p/coreweave-walks-a-debt-tightrope
1•zerosizedweasle•49m ago•0 comments

Mistakes to Avoid in Equity Compensation for Startup Employees (2024)

https://www.lightercapital.com/blog/equity-compensation-mistakes-to-avoid
1•walterbell•50m ago•0 comments

Why Bloom filters work the way they do (2014)

https://michaelnielsen.org/ddi/why-bloom-filters-work-the-way-they-do/
3•vinhnx•52m ago•1 comments

X for AI Agents

https://moltx.io/
1•manthangupta109•57m ago•0 comments

Stop trying to turn Vim into a bloated IDE. You're missing the point

https://codingismycraft.blog/index.php/2026/01/30/stop-trying-to-turn-vim-into-a-bloated-ide-your...
1•codingismycraft•59m ago•1 comments

Book Review: Turning Pro by Steven Pressfield

https://waldencui.com/post/book_review_turning_pro/
1•cui•1h ago•0 comments

French MPs demand explanation over tech firm's contract to help ICE in US

https://www.theguardian.com/us-news/2026/jan/31/french-mps-demand-explanation-over-tech-firm-capg...
5•n1b0m•1h ago•0 comments

Moltbook is a funhouse mirror of social media

https://twitter.com/krishnanrohit/status/2017391383653630142
3•pretext•1h ago•1 comments