frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Refactoring Clojure

https://www.orsolabs.com/post/refactoring-clojure-1/
70•luu•4h ago

Comments

gleenn•2h ago
In general, it's a dream to test and refactor Clojure IMHO. Working with mostly static top-level functions, immutability by default, and mocking when necessary with the use of "with-redefs" makes writing tests easy. Also, the immutability makes it hard to break shared copies of memory which seemed to plague my earlier tangos with large Java code bases and standard OOP practices.
sammy0910•2h ago
most people I know eschew the use of with-redefs for testing because it's hard to verify that the testing environment is configured correctly as the codebase changes (but otherwise I second the points about immutability by default, and static/pure functions!)
NightMKoder•40m ago
Agreed - concretely with-redefs forces single threaded test execution. So eg you can’t use the eftest multithreaded mode.

Explicit dynamic bindings are better if you need something like this since those are thread local.

IceDane•2h ago
It's kind of funny that this article starts by showing a completely unreadable code snippet, but not because of the code, but because of the syntax highlighting scheme. There is no version of that code, or any code for that matter, that is readable using that color scheme.
arijun•2h ago
> Our mission is to take this code and make it readable

You failed. Between the unreadable text colors and the word wrap, the code is incomprehensible. I cut and pasted it into a plaintext notes app and it was way easier to understand

NightMKoder•1h ago
Usually the controversial decision for Clojure code highlighting is rainbow parens. This color scheme is horrific and unreadable (on mobile at least).
aeonik•1h ago
I don't like the color scheme, and in some of the snippets I don't understand the correlation, but some of them, I think the structural highlighting is very nice.
0_gravitas•42m ago
First few comments are nothing but shallow {rem,sn}arks on the formatting of the site, by users that don't even have the excuse of being recent joiners. If this is how we lead by example then it's no wonder why the quality of content+comments on this site are (imo) on the decline.

Book Review: Selfish Reasons to Have More Kids

https://www.astralcodexten.com/p/book-review-selfish-reasons-to-have
1•paulpauper•30s ago•0 comments

So You Want a Healthy Brain?

https://domofutu.substack.com/p/so-you-want-a-healthy-brain
2•wjb3•1m ago•0 comments

Ask HN: Sites Sharing Setting Files, for Apps Like Open Shell, etc.?

1•MollyRealized•8m ago•0 comments

Migrating from Postgres to CockroachDB

https://engineering.squarespace.com/blog/2025/leveraging-change-data-capture-for-database-migrations-at-scale
2•shenli3514•13m ago•0 comments

My husband was laid off from Microsoft by an algorithm – after 25 years

https://old.reddit.com/r/TrueOffMyChest/comments/1knj1sd/my_husband_was_laid_off_from_microsoft_by_an/
3•thenaturalist•14m ago•1 comments

Nuxt 3.17 Is Out

https://nuxt.com/blog/v3-17
3•danboarder•19m ago•0 comments

Show HN: Transform GitHub repositories into interactive knowledge bases

https://deepwiki.com/
1•jerawaj740•19m ago•0 comments

Once 'dead' thrusters on the farthest spacecraft from Earth are in action again

https://www.cnn.com/2025/05/14/science/voyager-1-thruster-fix
3•everybodyknows•20m ago•0 comments

Most Americans don't earn enough to afford basic costs of living

https://www.cbsnews.com/news/cost-of-living-income-quality-of-life/
7•ripe•20m ago•1 comments

Code Fast, Crash Hard: The Million-Dollar Quality Crisis

https://thenewstack.io/code-fast-crash-hard-the-million-dollar-quality-crisis/
3•MarcoDewey•20m ago•0 comments

Distributed SQL's Moment Has Arrived: How TiDB Is Leading the Way

https://sanjmo.medium.com/distributed-sqls-moment-has-arrived-how-tidb-is-leading-the-way-e448b118c897
2•shenli3514•21m ago•0 comments

Asus' Latest NUC Mini PC Is Exceptionally Powerful

https://www.howtogeek.com/asus-nuc-15-pro-plus-debut/
3•teleforce•28m ago•0 comments

Safer Intersection Legislation Signed into Law in Illinois

https://activetrans.org/blog/we-won-safer-intersections-for-illinois/
2•toomuchtodo•32m ago•1 comments

Inside the house that Asus built: New NUCs and powerful laptops

https://www.tomshardware.com/laptops/inside-the-house-that-asus-built-new-nucs-and-powerful-laptops
1•teleforce•34m ago•0 comments

Show HN: B2B Vibe Check – avoid pilots/customers who won't buy

https://b2bvibecheck.com/
1•BohoHacker•36m ago•0 comments

Kernel vs. User-Level Networking: Don't Throw Out the Stack with the Interrupts

https://dl.acm.org/doi/10.1145/3626780
1•teleforce•38m ago•0 comments

Zero-Knowledge Location Privacy via Accurate Floating-Point SNARKs

https://www.computer.org/csdl/proceedings-article/sp/2025/223600a057/21B7R3HsGK4
1•gnabgib•39m ago•0 comments

How to acquire any language (2018) [video]

https://www.youtube.com/watch?v=illApgaLgGA
2•Curiositry•40m ago•0 comments

Language Agents Mirror Human Causal Reasoning Biases. How Can We Help Them Think

https://arxiv.org/abs/2505.09614
1•badmonster•43m ago•0 comments

Feature-Sliced Design

https://feature-sliced.github.io/documentation/
1•burgerrito•44m ago•0 comments

Fake Audi Websites Are Scamming Used Car Buyers in Europe

https://www.thedrive.com/news/fake-audi-websites-are-scamming-used-car-buyers-in-europe
1•PaulHoule•45m ago•0 comments

Gary Sinise's pain: A lesson in genetics and responsibility

https://open.spotify.com/episode/1ENBsOsHFXK0dLbu2W4NIy
1•Haeuserschlucht•46m ago•0 comments

Symbolic Logic Based LLM

1•sandeeptshelvan•50m ago•0 comments

AI, I love you – a poem

1•Jun8•50m ago•0 comments

MCP: How to Supercharge LLMs with Real-World Data, Tools and Memory

https://guptadeepak.com/mcp-a-comprehensive-guide-to-extending-ai-capabilities/
1•guptadeepak•51m ago•1 comments

In the Dark? A Global Guide to Data-Breach Notifications and Self-Protection

https://guptadeepak.com/when-the-data-breach-alarm-fails-a-global-guide-to-who-should-tell-you-and-how-to-protect-yourself/
1•guptadeepak•52m ago•1 comments

Spotube is banned from using "Spotify API"

https://spotube.krtirtho.dev/
2•zekrioca•56m ago•1 comments

Forecasting Farmed Animal Numbers in 2033

https://rethinkpriorities.org/research-area/forecasting-farmed-animal-numbers-in-2033/
1•bikenaga•59m ago•0 comments

U.S. Unveils Sweeping A.I. Project in Abu Dhabi

https://www.nytimes.com/2025/05/15/us/politics/ai-us-abu-dhabi.html
4•eizaguir-lai•1h ago•1 comments

You Don't Have a Right to a Bank Account

https://www.nytimes.com/2025/05/15/business/trump-debanking-crypto.html
5•like_any_other•1h ago•4 comments