MurphyA/hacker-news huggingface dataset:
Show HN: Go-DDD: Production-ready DDD patterns and clean architecture in Go
by sklinkert | 2025-07-30 10:15:25+00:00
Hey HN! I've been working on a comprehensive example of Domain-Driven Design implementation in Go that demonstrates clean architecture principles in practice.

The repo includes:

Hexagonal architecture with clear separation of concerns - CQRS (Command Query Responsibility Segregation) patterns for scalability & reliability - Event sourcing examples - Operating only on validated domain entities - Dependency injection setup - Handling Idempotency - Repository patterns with multiple storage backends - Testing strategies

What makes this different from other DDD examples is the focus on practical, production-ready patterns rather than just theoretical concepts. I've tried to show how these patterns actually work together in a real application structure. The codebase is designed to be educational – each layer is clearly separated and documented so you can see how data flows through the application and where business logic lives versus infrastructure concerns.

Would love feedback from the Go community on the patterns used and whether this helps clarify DDD concepts for others who've struggled with implementing clean architecture in Go projects.
by hermitcrab | 2025-07-30 10:15:52+00:00
Peter Kyle has not been on my radar. I agree that giving a senior government post to someone with a reading age of 8 (assuming that is true) is alarming. It is also noticeable that Rayner, the deputy Prime Minister, left school at 16 with no qualifications. Hardly confidence inspiring.

I despise Farage. But I think equating him with Savile because he didn't agree with a bill, was totally unacceptable and Farage deserves an apology (probably the only time I am ever going to say that).
by mentalgear | 2025-07-30 10:17:48+00:00
Looks great & kudos for making it local-first & open-source, much appreciated!

From a business perspective, and as someone looking also into the open-source model to launch tools, I'd be interested though how you expect revenue to be generated?

Is it solely relying on the audience segment that doesn't know how to hook up the API manually to use the open-source version? How do you calculate this, since pushing it via open-source/github you would think that most people exposed to it are technical enough to just run it from source.
by dotancohen | 2025-07-30 10:18:12+00:00
> the best quality I can reasonably obtain.

Cellphones absolutely can produce high quality results. Especially if you add the constraint "best quality I can reasonably obtain" as many consider carrying a dedicated camera all the time to not be reasonable. And this was the case even before the advent of the smartphone. How many people did you see carrying a camera in 1980, or 1990, or 2000? Almost zero.

The best camera, is the camera you have on you.
by AndrewHart | 2025-07-30 10:18:51+00:00
Thanks for the feedback. I wanted to keep it balanced to be accessible but also insightful.

To answer your point: we have the digital map, can use that to understand obstacles etc in the space. In some of those larger stores you see in the visual, we typically survey the entire store within 2-3 hours, it's low-effort work, not a blocker.
Built a new app for real treasure hunt in your city, the prize is credit card
by DropCatch | 2025-07-30 10:19:50+00:00
Hey everyone, I recently launched a project called DropCatch.live and I’d love your feedback. We drop prepaid virtual cards in real-world zones. If you’re nearby and quick, you can claim it and spend it instantly via Apple or Google Pay. If you miss it, it’s gone.

Each drop is:

Time-limited

Geofenced

Prepaid (not a loan, not crypto)

Shared across users in the area, first-in first-served mechanic.

It runs on a weekly subscription — users unlock access to local drops. If someone claims multiple in a day, they unlock “Power Drop Mode” — a short period where they can access bigger drops with less competition.

We’re experimenting with how finance can be behavior-driven, not balance-based.

Would love your thoughts on:

Would you try this?

What would make it more valuable?

Does the model make sense?

Let me know if you want the waitlist page or screenshots — happy to DM it.

Thanks!
Ask HN: Tool that generates B2B sales briefs from URLs, feedback?
by samehsbs | 2025-07-30 10:20:28+00:00
Hi HN,

I'm working on a tool that automatically creates sales briefs for B2B outreach.

You paste in a company name or website, and it generates a short, strategic brief: - Company summary - Likely pain points - Talking points - Suggested outreach message - Objection handling

It’s built on top of a research agent, with some modifications for structured output.

My goal is to make high-quality, personalized outreach easier for solo founders, SDRs, and agencies, not spam at scale.

I’d love feedback from anyone who’s: - Done B2B sales manually - Built AI wrappers before - Curious about workflow automation

Questions I’m thinking about: - Is this too niche or just focused enough? - Would you want it as a Chrome extension, web app, or CRM plugin? - Any red flags I’m not seeing?

Thanks for reading and happy to share demo if useful.
by piva00 | 2025-07-30 10:20:48+00:00
They are a bit smaller but, to me, not that much of a difference when I compare my old Olympus M43 setup to my current Fuji X ones. Haven't really experienced any portability issues (also tend to carry the camera + 3 lenses when traveling), at the same time I do not use long lenses so I can agree with you there might be size advantages for those cases.
by anupshinde | 2025-07-30 10:21:21+00:00
I'm confused. My kid does this on my ChatGPT account all the time. What is new here?

I cannot emphasize how good a teacher ChatGPT is, until it misinforms (and human teachers also do). And it also stays open to questioning without making the student feel stupid for asking. The good part is that ChatGPT will accept a mistake, but a human teacher will get annoyed.

The only thing I keep reminding my kid is to keep the BS detector on and verify everything that ChatGPT says and never trust it blindly. (feels too similar to the "don't talk to strangers" advice)

Unrelated - check with kids and teenagers. Once, a teen told me, "AI is a dark evil force," and it's what their teachers told them.
by patates | 2025-07-30 10:22:28+00:00
why do you think that this must happen on the front-end? you can make a breaking change and when the user submits an invalid state

a) serve an error page, leaving that to the backend (at some point the backend must validate anyway)

b) serve the regular front-end and react to the invalid state with error messages. there are libraries like zod that should make your job easier.
by ksynwa | 2025-07-30 10:23:53+00:00
As a permanently amateur photographer my favourite aspect of this comparison is portrait photographs. Beginner cropped frame DSLRs with a high aperture prime lens take so much better portrait pictures than any phone camera. Now I understand that it is not really fair to compare a specialised equipment with a phone camera. But it is a testament to how timeless and beautiful a prime len's bokeh is. Phones try to simulate it with depth estimation but it never looks good to me.
by goku12 | 2025-07-30 10:24:10+00:00
If the chats also leaked, then those innocent women's reputations will be intact. Identity theft however, is a different matter. Overall, it shows what a rotten influence that social media has been on interpersonal relationships in the society.

Apps like these show the apathy of authorities towards slander (especially of men) and the presence of predators who want to worsen and take advantage of the gender wars and other forms of bigotry. Ultimately, people must introspect and reassess the influence of these venomous propaganda on their biases and emotions. This sort of radical beliefs is never healthy for anyone.
by amelius | 2025-07-30 10:25:39+00:00
Can we also have "helpdesk mode"?

Right now when you ask an LLM to solve some problem, it immediately responds with many steps, whereas as a user I want to go through it step by step. It would be nice if the LLM provided the solution in that way. This also makes it less cumbersome to tell the LLM where the solution went wrong.
by ethbr1 | 2025-07-30 10:26:06+00:00
To me, one of the most fascinating facts about pollinators in general is their interconnectedness, which spirals off into a myriad of everyday touch points for most people.

One fact a friend shared recently was that magnolia trees pre-date many modern pollinators.

>> At the time of their evolution, many common pollinators we think of today, such as bees, butterflies, and moths had not evolved yet. As a result, magnolias developed flowers for pollination by beetles and flies, which were the primary insect pollinators 100 million years ago. https://extension.illinois.edu/blogs/garden-scoop/2018-05-05...
by neomantra | 2025-07-30 10:27:38+00:00
Has anyone used this Candid9 service or QR code photo sharing workflow? Does it work well?

I happen to be making a RPi Camera for Burning Man and was incorporating a QR code workflow into it. With a thermal printer for either a low-res pic or a QR code to print or snap. I devised something along the lines of this service, but dead simple URL generation to filename+hash in an S3 bucket.
by sunshine-o | 2025-07-30 10:27:47+00:00
Yeah agreed but I am just a bit skeptical about the one server as the single point of failure.

Building on your idea, wouldn't using 'talk' over a private yggdrasil mesh (so not connected to public peers) [0] or tinc be an elegant solution ?

What I am not sure is I believe you still need to have at least 1 peer with a fixed IP address (so not a mobile phone) for a yggdrasil to work.

- [0] https://www.complete.org/easily-accessing-all-your-stuff-wit...
by GnomeKev | 2025-07-30 10:28:17+00:00
Hi everyone!

I’ve lost count of how many times I’ve opened a Google Sheet just to run a quick calculation, then either deleted it or left behind a trail of clutter in my Drive.

So I decided to build a lightweight spreadsheet app that lives in the menu bar of my Macbook, coded it in public and hope it can help some other people as well.

This app is one of many free private apps we are launching (together with a close friend) under the name "GnomeApps" (https://gnomeapps.com).
by SilentTiger | 2025-07-30 10:29:02+00:00
I think the issue you're overlooking is: what happens to your product if model providers further enhance their capabilities?

To be honest, I once had a similar idea—to build a system like this. But I gradually realized that model providers are becoming increasingly powerful, and they’re even venturing into application development themselves, not just focusing on the models. This makes anyone building applications on top of LLMs seriously consider whether the model providers might eventually replace them and do a better job.

I can even give you what I think is a very representative example: Manus. You can’t possibly not know this product. But now, both OpenAI and Google are developing their own full-featured agents. If Manus can’t come up with new ideas, I think they might be in serious trouble.
by ben_w | 2025-07-30 10:29:12+00:00
> So, do you want to actually have a conversation comparing ChatGPT to Google and Wikipedia, or do you just want to strawman typical AI astroturfing arguments with no regard to the context above?

Dunno about the person you're replying to (especially given the irony re that linked reddit thread), but I would like to actually have a conversation (or even just a link to someone else's results) comparing ChatGPT to Google and Wikipedia.

I've met people who were proudly, and literally, astroturfing Wikipedia for SEO reasons. Wikipedia took a very long time to get close to reliable, editors now requiring citations for claims etc., and I still sometimes notice pairs of pages making mutually incompatible claims about the same thing but don't have the time to find out which was correct.

Google was pretty reliable for a bit, but for a while now the reliability of its results has been the butt of jokes.

That doesn't mean any criticisms of LLMs are incorrect! Many things can all be wrong, and indeed are. Including microfilm and books and newspapers of record. But I think it is fair to compare them — even though they're all very different, they're similar enough to be worth comparing.
by maxbond | 2025-07-30 10:29:44+00:00
> My bad for assuming that you were an AI zealot.

Thank you for the acknowledgement, that's rarer than it should be and I appreciate it.

I'm sure there's an issue with low quality PRs to open source projects, and that LLMs are making it worse, but I think the Twitter style of discourse where we identify some random person who said something ill advised and lay into them is just scapegoating. I don't think it's going to help open source maintainers deal with bad PRs or help prospective contributors understand how to make a PR (or when not to make one).
by antonyh | 2025-07-30 10:31:48+00:00
I'm actively looking. NextCloud is on my list of maybes, as is S3 or S3-compatible services like OVH. I'm using Fastmail files as a stopgap via WebDav, but it's slow, doesn't give offline files, and I'll need to rig my own backup solution.

Everything I've looked at lacks a native client for at least one of my devices or has privacy concerns. Proton would be my first choice if they offered a Linux client.

The other route I need to explore is rclone - it claims to connect to everything. It would need to poll / cronjob to update rather than instant updates like the mainstream options. The downside is uncertainty - if Proton or whatever changes their private API or encryption scheme then things will cease to sync.
by Jimmy6929 | 2025-07-30 10:33:01+00:00
So this one for now, we just aim to make it work first but later on we are thinking to let user to choose which 3D AI models to generate coz different AI model are good at different test from my experience.

You can download the models and give it to other to print it or order it from us and we will print it for you. we dont mind :))
by chrismorgan | 2025-07-30 10:33:23+00:00
Although that has a plausible sound, I don’t think it’s it: the window size is what matters, not the screen size, and you can’t guarantee any sort of divisibility for either anyway. For example, my screen is actually 2560×1440, which is 1706⅔×960 in CSS pixels given the real devicePixelRatio of 1.5. The established rule when you need an integer is, at least on Wayland, to round things down to the nearest integer; I’m not certain about other platforms. Certainly everything that deals in integer pixels sees 1706×960.

Chromium doesn’t exhibit this behaviour; it’s just Firefox on some of its zoom levels. And when I saw 90% being 0.9090909090909091 (90⁄99 instead of 90⁄100) it triggered a memory of observing this five or seven years ago on my Surface Book (3000×2000 @ 2×). I think it is just that they’ve chosen to display different, slightly inaccurate percentage labels.
by thyristan | 2025-07-30 10:35:16+00:00
Well, let's do some order-of-magnitude calculations: A single 1kW B200 GPU will set you back $50k, and as NVIDIA claims[0] can do 125 tokens per second with LLama4. Let's imagine you can use it for 36 months, at a DC, cooling and electricity price of 20 cents per kWh. That's $4.3E-6 per token for the card and $4E-7 per token for DC and power, together $4.7E-6 per token.

Let's say you are a power user, so your queries and responses are complex and numerous, say 1000 tokens per query+response and 1 query every 10 minutes of an 8h workday. That's 48k tokens per workday, at 20 workdays per month that's 960k tokens per month.

So the cost (not sales price!) for those 960k tokens (roughly 1M) a month should be $4.5

Now you can go over the numbers again and think about where they might be wrong: Maybe a typical query is more than 1000 tokens. Maybe power users issue more queries. You might very well multiply by a factor of 10 here. Nvidia getting more greedy for new GPUs? Add 50%. Data center and power cost too conservative, network and storage also important? Add 50%. 3 years of use for a GPU too long, because the field is very quickly adapting ever larger models? Add 50%. Usage factor not 100%, but lower, say a more realistic 50%? Double the cost. Llama4 not good enough, need a more advanced model? May produce a lot less tokens per GPU-hour, but numbers are hard to come by.

With that, it's easy to imagine that one might still loose money at $200 per month.

To compare, Azure sells OpenAI models in 1M token batches that can easily be compared to the above monthly cost.

https://developer.nvidia.com/blog/blackwell-breaks-the-1000-...

https://azure.microsoft.com/en-us/pricing/details/cognitive-...
by DiogenesKynikos | 2025-07-30 10:36:25+00:00
I know a fair bit about Jewish history, given that I'm generally interested in history and am Jewish myself.

The "fringe minority" POV that I'm reading is the mainstream historiography on the Israeli-Palestinian conflict, including the standard works by Israeli historian Benny Morris.

> Israel was many times on the brinks of defeat in the multiple wars that followed. Only since the fall of the soviet union did it become clear they were here to stay and started to build unmatched military superiority.

This is a completely false and indefensible take on the history. Israel showed massive military superiority over the Arab states in 1967, when it defeated them in a matter of days, and it has been backed by the world's top superpower since then. Israel has been the only nuclear power in the Middle East since the 1960s. Its closest brush with defeat was in 1973, but it still managed to turn that around (with massive American aid), and has never faced any serious military threat since. Israel walked all over Lebanon in the 1980s, and nearly every Israeli war since then has had the same character: they've almost all been wars against small militant groups, not even other states. The only exception was the recent war Israel initiated against Iran, but even there, all Iran could do was lob missiles from a distance while Israel pummeled Iran from the air almost unchecked.

As I said, a major part of Israeli mythology is the idea that Israel is the scrappy underdog that manages to pull off miracles. But that is really just mythology. The reality is quite different, and Israel has had a distinct military advantage in every conflict it has ever fought, going back to its founding.
by itsalotoffun | 2025-07-30 10:36:37+00:00
I WISH this mattered. I wish data breaches actually carried consequences. I wish people cared about this. But people don't care. Right up until you're targeted for ID theft, fraud or whatever else. But by then the causality feels so diluted that it's "just one of those things" that happens randomly to good people, and there's "nothing you can do". Horseshit.
by rfoo | 2025-07-30 10:36:40+00:00
> The only thing that I can say definitively is that there is overhead to doing the literal stack switch. There's a reason async I/O got us past the C10k problem so handily.

You can also say that not having to constantly allocate & deallocate stuff and rely on a bump allocator (the stack) most of the time more than compensate for the stack switch overhead. Depends on workload of course :p

IMO it's more about memory and nowadays it might just be path dependence. Back in C10k days address spaces were 32-bit (ok 31-bit really), and 2**31 / 10k ~= 210KiB. Makes static-ish stack management really messy. So you really need to extract the (minimal) state explicitly and pack them on heap.

Now we happily run ASAN which allocates 1TiB (2**40) address space during startup for a bitmap of the entire AS (2**48) and nobody complains.
by Thorrez | 2025-07-30 10:36:55+00:00
I'm wary of classifying any group as partial people. That's been used as a justification throughout history for causing harm to groups of people.

>We don’t initially, as infants, know the difference between our body and the world. Does this make infants not people? No, not legally or morally, but in some sense they lack aspects we’d associate with personhood.

I agree. I think this supports my view, that someone can be morally a person, even when lacking aspects we'd associate with personhood.
by ben_w | 2025-07-30 10:37:16+00:00
I think the actual important difference in this case is that LLMs are, by design, very willing to admit fault. I suspect, but cannot yet prove, that this is because corrigibility (important part of AI alignment & safety research) has a significant vector similarity to fawning and to sycophancy.

With regard to them not, in any capacity whatsoever having a concept of factual correctness, LLMs are very much just like humans: We're not magic, we don't know the underlying nature of reality.

This is why it took us so long to replace Aristotelean physics with Newtonian, let alone Newtonian with QM and GR, and both QM and GR are known to be flawed but nobody has worked out the next step. It's just that humans are fairly unwilling to change their minds about how physics works in light of evidence, we often just defer to famous people, c.f. to Aristotle, then to Newton, then to Einstein.

We humans make this (opposite) mistake so hard and so often, that there's a saying that "science progresses one funeral at a time": https://en.wikipedia.org/wiki/Planck%27s_principle

I could also have thrown into this list miasma, phlogiston, that Columbus definitely wasn't the only person who knew it was round and just got lucky with the existence of the Americas after having gotten the size of both Earth and Asia catastrophically wrong, or phrenology.
by tialaramex | 2025-07-30 10:37:26+00:00
Because of how humans work TOTP can give false confidence to the user which is a further downside.

Grandma goes to fakesite.com not realising it isn't her real site. It asks her for the TOTP code, she provides her TOTP code and it works. She is reassured - if this wasn't her real site why would the code work?

Now, in theory a neutral security assessor can see that's not reassuring, but that's not how humans work, the fact there was a challenge-response feels like security even though for all they know if was accepting any inputs.

Phishing sites generally have a milder version of this effect. I have vanity mail, so I own the "mail provider" handling my email and yet of course I get those phishing mails saying as the "Administrators" of my vanity domain they need me to type in my password. But they don't know my password of course, so filling in their form with crap "works" the same as anything else, fuckyouscammers, sure that's a reasonable password.

These schemes can't work if you don't rely on stupid shared human secrets ("Passwords") everywhere, but we did and it seems many people are really enthusiastic to keep doing that, so I doubt we'll escape from this self-imposed status. I wanted to make a web site that mimics the famous reusable Onion article but I've never gotten around to it. "No way to prevent this"
by samehsbs | 2025-07-30 10:37:41+00:00
You're absolutely right, and I’ve thought about this a lot too.

I agree that general-purpose agents (from OpenAI, Google, etc.) are evolving fast. But I think there's a real difference between a general agent and a purpose-built product that manages lead briefs, saves past insights, and integrates tightly into CRM and outreach workflows.

For example: - Most agents today give one-off answers, not reusable or editable sales briefs - They don’t help manage a pipeline of leads or show what worked vs didn’t - CRM integrations, export flows, and feedback loops are out of scope for most general agents

So yeah, it’s absolutely something to keep in mind, but I’m betting that vertical-specific UX + workflow integration = real product value beyond what foundation model companies are focused on (at least for now).

Appreciate the thoughtful reply!