frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Predictions as a Substitute for Reviews (2020)

https://acesounderglass.com/2020/08/06/predictions-as-a-substitute-for-reviews/
1•kqr•2m ago•0 comments

LogLeak: Composer GitHub Actions token disclosure in error messages, patched

https://blog.packagist.com/composer-2-9-8-and-2-2-28-fix-github-actions-token-disclosure-in-error...
1•damienwebdev•2m ago•0 comments

Live facial recognition to be used across county [Cambridgeshire, UK]

https://www.bbc.co.uk/news/articles/cedpgz9w22zo
1•saltwatercowboy•3m ago•0 comments

Show HN: TTP 0.3.0 – A transparent Tor proxy running in RAM

https://github.com/onyks-os/TransparentTorProxy
1•onyks•5m ago•0 comments

AI Defense Matrix: an open framework for defending AI systems

https://aidefensematrix.com/
2•escargot•5m ago•1 comments

Erlang/OTP 29.0

https://www.erlang.org/news/188
1•nifoc•5m ago•0 comments

Choosing the Right Agentic Design Pattern: A Decision-Tree Approach

https://machinelearningmastery.com/choosing-the-right-agentic-design-pattern-a-decision-tree-appr...
1•eigenBasis•6m ago•0 comments

A Rails proxy to enforce hard dollar caps on OpenAI usage

https://github.com/naurisSeglins/ai_budget_proxy
1•nseglins•6m ago•0 comments

Fragnesia

https://github.com/v12-security/pocs/tree/main/fragnesia
2•_ikke_•10m ago•0 comments

Show HN: MCPSafe – Free security scanner for MCP servers using 5-LLM consensus

https://mcpsafe.io
1•nhattruongadm•10m ago•0 comments

Forty Watts to Think With

https://atomsfrontier.substack.com/p/forty-watts-to-think-with
1•jpatel3•10m ago•0 comments

Subvert. The music platform owned by its community

https://www.subvert.fm/
1•riffraff•10m ago•0 comments

Red and Black Knights (extraordinary result) [video]

https://www.youtube.com/watch?v=UiX4CFIiegM
1•marvinborner•11m ago•0 comments

We Built a Custom Transport for Vercel's AI SDK

https://ably.com/blog/custom-transport-vercel-ai-sdk
1•zknill•11m ago•0 comments

Mojang adds Friends List and peer-to-peer multiplayer to Minecraft: Java Edition

https://www.minecraft.net/en-us/article/minecraft-26-2-snapshot-7
2•ObviouslyFlamer•15m ago•0 comments

The Physics–and Physicality–Of Extreme Juggling (2018)

https://www.wired.com/story/the-physicsand-physicalityof-extreme-juggling/
1•ColinWright•16m ago•0 comments

SaaS/DevTools Founders: Would You Acquire a Niche Tech Community?

http://towardsaws.com
1•kisanpakhreen•17m ago•1 comments

AI will soon be capable of telling convincing lies

https://www.theregister.com/ai-ml/2026/05/13/ai-will-soon-be-capable-of-telling-convincing-lies/5...
2•pluc•17m ago•1 comments

Top Business Ideas Under ₹5 Lakh in India – SMFG India Credit

https://www.smfgindiacredit.com/knowledge-center/business-ideas-under-5-lakhs.aspx
1•saumyaraut11•17m ago•0 comments

Show HN: Diom – Open-source back end primitives with no runtime dependencies

https://github.com/svix/diom
1•tasn•18m ago•0 comments

Not so dusty: How tech is changing woodworking

https://www.bbc.co.uk/news/articles/c747n11933eo
1•neversaydie•19m ago•0 comments

Shai-Hulud: Open Sourcing the Carnage

https://github.com/PedroTortoriello/Shai-Hulud-Open-Source
1•lionkor•20m ago•0 comments

Lenovo buys its BIOS maker of 20 years – here's why that matters

https://gagadget.com/en/707143-lenovo-buys-its-bios-maker-of-20-years-heres-why-that-matters/
1•taubek•22m ago•0 comments

Gallup Begins Research on Simulated Responses

https://news.gallup.com/opinion/methodology/709373/gallup-begins-research-simulated-responses.aspx
1•ep_jhu•25m ago•0 comments

Better Auth 1.6

https://better-auth.com/blog/1-6
1•ms7892•26m ago•0 comments

1908 Tunguska Event

https://en.wikipedia.org/wiki/Tunguska_event
2•simonebrunozzi•27m ago•0 comments

Google finds first AI-developed zero-day that bypasses 2FA

https://www.tomshardware.com/tech-industry/cyber-security/google-finds-first-ai-developed-zero-da...
3•pkaeding•29m ago•0 comments

I Moved My Digital Stack to Europe

https://monokai.com/articles/how-i-moved-my-digital-stack-to-europe/
80•monokai_nl•29m ago•34 comments

Experts don't know what data centers are doing to the electric grid

https://blog.ucs.org/mike-jacobs/what-are-data-centers-doing-to-the-electric-grid-experts-dont-know/
2•giuliomagnifico•30m ago•0 comments

Language Is Cognitive Exhaust: How AI Reconstructs Thought from Text [pdf]

https://dn720908.ca.archive.org/0/items/language-cognitive-exhaust-thought-compression-ai/SFL-07_...
3•scaledsystems•33m 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.