frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Psychedelics align brain activity with context

https://www.nature.com/articles/s41586-026-10910-z
1•dr_dshiv•3m ago•0 comments

Neo-Etiquette Basics: The New Rules of Being Human

https://www.joanwestenberg.com/p/neo-etiquette-basics-the-new-rules
1•rapnie•4m ago•0 comments

Why Everyone Is Obsessed with Model Routing

https://menlovc.com/perspective/stripe-to-acquire-openrouter-why-everyone-is-obsessed-with-model-...
1•tosh•6m ago•0 comments

Owner of grok.bot asks xAI for $1M

https://grok.bot/
2•mrpadie•8m ago•2 comments

Show HN: UI Inspector for Tauri

https://github.com/mathematic-inc/tauri-plugin-ui-inspector
1•jrandolf•8m ago•0 comments

Succinct and Fast Tiny Pointer Hash Tables

https://arxiv.org/abs/2607.28892
1•matt_d•8m ago•0 comments

Block-Layer Error Injection

https://lwn.net/Articles/1086344/
2•pykello•12m ago•0 comments

Btrfs Ready with More Performance Improvements for Linux 7.3: Some ~3-5x Wins

https://www.phoronix.com/news/Linux-7.3-Btrfs
2•water-drummer•21m ago•0 comments

Winchester Mystery House

https://en.wikipedia.org/wiki/Winchester_Mystery_House
2•pchangr•29m ago•0 comments

Claude Revived My Microsoft Band 2

https://webenclave.com/posts/bringing-a-microsoft-band-2-back-from-the-dead/
2•bchip•39m ago•0 comments

The most thoroughly commented linker script (probably)

https://blog.thea.codes/the-most-thoroughly-commented-linker-script/
1•rramadass•40m ago•1 comments

Show HN: Doubletake – a daily spot-the-difference in ink and wash

https://doubletake.day
1•jokojogi•40m ago•0 comments

The US national debt now stands at $40T

https://apnews.com/article/treasury-national-debt-limit-a27a8d3651ff810b25c610d3e1b6259d
5•geox•55m ago•6 comments

Basics of the Unix Philosophy

https://cscie2x.dce.harvard.edu/hw/ch01s06.html
1•num42•56m ago•0 comments

Show HN: Linux and iPhone Continuity (iMessage / SMS)

https://github.com/zackb/tether
3•zackb•56m ago•0 comments

KVM Planes Head for Takeoff

https://lwn.net/Articles/1087590/
1•pykello•59m ago•0 comments

The Grand Unified Theory Extends A.E.'S Goals

https://medium.com/@f9121212/the-grand-unified-theory-extends-a-e-s-goals-b2c9456d7813
1•ortrich•1h ago•1 comments

Why Microsoft Entertainment Pack had a sticker announcing that it had Tetris?

https://devblogs.microsoft.com/oldnewthing/20260818-00/?p=112621
8•tybulewicz•1h ago•0 comments

The Pit of Success – An Interview with Rico Mariani

https://www.youtube.com/watch?v=48Rig6v-xYU
1•bananaboy•1h ago•0 comments

MailSalonSync – replace offlineimap or mbsync with JMAP support, written in Go

https://git.cerberusgames.ca/Starstreak/MailSalonSync
2•QBasicBitch•1h ago•0 comments

Thoughts About Scaling Law (By the Founder of ZAI of GLM Fame)

https://xcancel.com/antibot/captcha
3•vismit2000•1h ago•0 comments

Designing Loops for Production-Grade Work

https://www.liquid.ai/blog/agent-loops
2•kiyanwang•1h ago•0 comments

The little-told story of the WWII pet cull

https://www.bbc.com/news/magazine-24478532
4•madihaa•1h ago•1 comments

Measuring Strait of Hormuz ship traffic and how Big Oil profits from it

https://wherobots.com/blog/hormuz-vessel-detection/
1•dr-jia-yu•1h ago•1 comments

Polygon Discovers Fire Emblem: Fortune's Weave Requires the Console It Was Made

https://noisypixel.net/fire-emblem-fortunes-weave-switch-2-exclusive/
2•jamarna•1h ago•1 comments

Packing Malware in Rosetta 2

https://kernelkennel.com/blog/summercon2026-rosetta/
3•n0blenote•1h ago•0 comments

American killed by lightning while climbing Italian volcano

https://www.newsweek.com/american-killed-by-lightning-while-climbing-italian-volcano-12330506
1•jamarna•1h ago•0 comments

Slack Code Is Live

https://twitter.com/Benioff/status/2090240159115853956
3•ramoz•1h ago•1 comments

Armwood High graduate uses 40 scholarships to attend Princeton

https://baynews9.com/fl/tampa/news/2026/08/14/armwood-high-graduate-uses-scholarships-to-make-pri...
3•banimak•1h ago•0 comments

SeedSQL – Generate realistic SQL mock data with foreign key integrity

https://seed-sql.ai.studio
3•hrdhanush•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.