HN user

Roonerelli

439 karma
Posts12
Comments46
View on HN

I get

/api/hn -> 502 {"error":"Search entry should have an initialized schema, command was: [\"SEARCH.AGGREGATE\",\"hn\",\"{\\\"$or\\\":[{\\\"title\\\":{\\\"$eq\\\":\\\"anthropic\\\",\\\"$boost\\\":5}},{\\\"text\\\":{\\\"$eq\\\":\\\"anthropic\\\"}}]}\",\"{\\\"by_month\\\":{\\\"$dateHistogram\\\":{\\\"field\\\":\\\"time\\\",\\\"fixedInterval\\\":\\\"30d\\\"}},\\\"top_authors\\\":{\\\"$terms\\\":{\\\"field\\\":\\\"by\\\",\\\"size\\\":6}},\\\"by_type\\\":{\\\"$terms\\\":{\\\"field\\\":\\\"type\\\",\\\"size\\\":4}}}\"]"}

I've had the misfortune of working on a C# code base that uses this pattern for many years.

I've also used it with F#, where it feels natural - because the language supports discriminated unions and has operators for binding, mapping etc. Without that, it feels like swimming against the tide.

Code has a greater cognitive overhead when reading it for the first time. And there is always a big over head for new starters needing to understand the code.

It feels idiomatic in F#. It feels crow-barred in with C#

I attended the Domain Driven Design Exchange conference in London years ago. They keynote was by Eric Evans (author of the DDD Blue Book)

He said if he wrote the book again, he'd have put all the patterns as an appendix

He thought people concentrate on applying the patterns rather than seeing DDD as a way to communicate. Between developers but also to the business

Is there a particular reason this has been posted today? The last commit to it was in April.

It's a good list for sure, just wondering why it's popped up on HN

The second sentence here is such an odd one to include in the article:

"Benyamin Ahmed is keeping his earnings in the form of Ethereum - the crypto-currency in which they were sold.

This means they could go up or down in value and there is no back-up from the authorities if the digital wallet in which he is holding them is hacked or compromised."

Micky Flannigan, a uk comedian, does a great routine about when he lived in America and people confused his cockney pronunciation of "house" with the American pronunciation of "Ass".

So at the end of a date he's on the doorstep with a girl and they are saying goodbye:

He says: I'd like to come in your house

She looks shocked. So he says: I won't try to kiss you, I just want to come in your house

the generic parameter in this class is never used

public class ApplicationUserManager<TUser>

Plus you could just have IHttpContextAccessor injected instead and have extension methods off the ClaimsPrincipal to retrieve specific claims

but ... horses for courses I guess

there was a victim on the radio this morning saying his account had been breached. But he said the account is one he just uses for savings. He received the card in the post years ago and it has sat in his safe ever since. It's never left his house. So couldn't understand how someone could have ever got his details

I noticed one of these on the UK National Lottery site recently. It asks you how many weeks you want to play for and defaults the choice to "continuously via direct debit"