frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Java – Integrity by Design Through Ensuring Illegal States Are Unrepresentable

https://javajanitorjim.substack.com/p/java-janitor-jim-integrity-by-design
2•jimofl•1h ago

Comments

jimofl•1h ago
I wanted a simple pattern for preventing a class from being instantiated in an invalid state, or from mutating into one.

Why? Because it vastly reduces the amount and complexity of reasoning required for use at client call-sites.

Think of it as “integrity by design”, a compliment to the “integrity by default” effort undertaken by the Java architects, detailed here.

This article discusses the design and implementation of a record pattern, very similar to the one I designed and implemented for Scala’s case class several years ago, which provides the “integrity by design” guarantees by ensuring that only valid record instances can be observed.

This pattern is also trivially cross-applicable to Java classes.

Ask HN: How would you promote a song digitally?

1•radicalethics•2m ago•0 comments

Research After AI: Principles for Accelerated Exploration

https://gist.github.com/joelkuiper/d52cc0e5ff06d12c85e492e4295ca890
1•anon1253•3m ago•0 comments

Show HN: A tiny scalar that detects regression drift before CI tests fail

https://github.com/willshacklett/gv-drift-demo
1•PapaShack45•5m ago•0 comments

Career transition question – Assistance, MLOps guidance

1•Pierre_Esteves•8m ago•0 comments

ICE Releases RFI for User Tracking Tools

https://www.wired.com/story/ice-asks-companies-about-ad-tech-and-big-data-tools/
1•eoskx•8m ago•0 comments

The year is 1993, The Amiga is everything for me

https://old.reddit.com/r/amiga/comments/1qlw4ma/the_year_is_1993_the_amiga_is_everything_for_me/
1•doener•9m ago•0 comments

InsAIts Monitor AI agent communications for anomalies local, privacy-first

https://github.com/Nomadu27/InsAIts
1•MrSteaddy•12m ago•1 comments

Show HN: I embedded Claude inside a running Node app

https://github.com/genecyber/Reflexive
1•shannoncode•15m ago•0 comments

Surfaces with Klein bottle topology occur in fusion reactor fields

https://arxiv.org/abs/2506.11883
1•pizza•16m ago•0 comments

Lawmakers move to extend two cyber programs (again) in funding proposal

https://therecord.media/lawmakers-move-to-extend-two-cyber-programs-again
1•PaulHoule•19m ago•0 comments

What These Cockpit Lights Mean – ATR Simulator Walkthrough – Dark Cockpit

https://www.youtube.com/watch?v=Q7_PB6f2pqY
2•starkparker•23m ago•0 comments

Fuel Economy Fraud: Closing Loopholes That Increase U.S. Oil Dependence (2005) [pdf]

https://www.ucs.org/sites/default/files/2019-09/executive_summary_final.pdf
1•CGMthrowaway•25m ago•0 comments

Altman, Bezos and Zuckerberg donate to Trump's inauguration fund (2024)

https://www.npr.org/2024/12/13/nx-s1-5227874/trump-bezos-zuckerberg-amazon-facebook-open-ai-meta-...
10•pera•26m ago•1 comments

Bio-Theory Lab Notes: Growth Rates and Worm Brains

https://chillphysicsenjoyer.substack.com/p/bio-theory-lab-notes
1•crescit_eundo•27m ago•0 comments

Grainrad: Browser ASCII/Dithering Tool

https://grainrad.com/
2•smusamashah•35m ago•0 comments

Markdown Viewer – Get This Extension for Firefox (En-US)

https://addons.mozilla.org/en-US/firefox/addon/markdown-viewer-extension/
2•dp-hackernews•36m ago•0 comments

Using Information Entropy to Make Choices / Choose Experiments

https://blog.demofox.org/2025/10/05/using-information-entropy-to-make-choices-choose-experiments/
2•deadbishop•37m ago•0 comments

Daxfs Proposed as Newest Linux File-System

https://www.phoronix.com/news/DAXFS-Linux-File-System
2•Bender•38m ago•0 comments

CachyOS Starts 2026 by Switching to Plasma Login Manager, Live ISO Using Wayland

https://www.phoronix.com/news/CachyOS-January-2026
5•Bender•38m ago•0 comments

OptiMind: Research Model Designed for Optimization

https://huggingface.co/blog/microsoft/optimind
1•gmays•39m ago•0 comments

Almost 12,000 flights canceled as major winter storm bears down across US

https://ktla.com/news/nationworld/ap-over-8000-flights-canceled-as-major-winter-storm-bears-down-...
3•Bender•39m ago•0 comments

Dorodango: the hobby that took over Japan in 1999

https://www.youtube.com/watch?v=2H0r81kv5GA
1•n1b0m•43m ago•0 comments

Announcing winapp, the Windows App Development CLI

https://blogs.windows.com/windowsdeveloper/2026/01/22/announcing-winapp-the-windows-app-developme...
2•CharlesW•43m ago•0 comments

I don't write code anymore – I sculpt it

https://www.jerpint.io/blog/2026-01-24-i-dont-write-code-anymore-i-sculpt-it/
3•jerpint•43m ago•0 comments

We didn't ask for 'smart' cars – so why are we getting them?

https://www.autocar.co.uk/opinion/new-cars/we-didn%E2%80%99t-ask-smart-cars-so-why-are-we-getting...
6•breve•44m ago•3 comments

Policy-Based Routing on an OpenWrt Router

https://dariusz.wieckiewicz.org/en/policy-based-routing-openwrt
4•idarek•44m ago•1 comments

Writing a Go SQL Driver

https://www.dolthub.com/blog/2026-01-23-golang-sql-drivers/
1•ingve•44m ago•0 comments

Terraform Actions: Deep-Dive

https://mattias.engineer/blog/2025/terraform-actions-deep-dive/
1•based2•44m ago•0 comments

The chronically online will become a new underclass [video]

https://www.youtube.com/watch?v=Bm2Q9HkbLsQ
2•nanfinitum•46m ago•0 comments

Isolating Claude Code

https://yieldcode.blog/post/isolating-claude-code/
1•ingve•46m ago•0 comments