HNHacker News
TopNewBestAskShowJobs

SuddsMcDuff

683 karma · joined November 12, 2013

submissionscomments
SuddsMcDuff··on Show HN: Queueing theory intro for software developers
See also: https://en.wikipedia.org/wiki/Erlang_(unit)
SuddsMcDuff··on John Carmack on Inlined Code (2014)
Rate of change of a particular piece of code is a factor too, given. In my experience logging boilerplate has a very low rate of change, so I figured it was a good example, but I guess everyones experience is different.
SuddsMcDuff··on John Carmack on Inlined Code (2014)
I think the mistake that people make with DRY is that they apply it at the textual level. They think that if they see the same particular sequence of characters in multiple places that they've violated the principle and need to refactor.

I rather see it at the behavioural level. Important domain logic ought to have a single implementation to avoid discrepencies that can put the system in an inconsistent state. For example your e-commerce platform really ought to just have one way of calculating the total cost of an order.

But, if you've copy pasted the boilerplate code that sets up your logging subsystem in a dozen different places, who cares?

SuddsMcDuff··on German politicians targeted in mass data attack
Not really. They were seen as a single-issue party and as soon as the Brexit referendum happened their raison d'être disintegrated.

They are still going under different leadership, focusing on other typical right-wing issues. Depending on how things go with Brexit they might well come back into the limelight this year.

SuddsMcDuff··on Microservices Circuit-Breaker Pattern Implementation: Istio vs. Hystrix
I found the blog post to be awful, the rationalization of a man stuck in a particular mindset who failed to adapt to a new paradigm. The line "You have publish-subscribe, but you really want request-response." says it all. He simply cannot imagine a software design which doesn't depend on synchronous request/response.
SuddsMcDuff··on Microservices Circuit-Breaker Pattern Implementation: Istio vs. Hystrix
Are you basing that on personal experience, or just on that blog post?
SuddsMcDuff··on Microservices Circuit-Breaker Pattern Implementation: Istio vs. Hystrix
I'd be interested to know if anyone's had success with distributed transactions in a microservice architecture. I've gotten into a world of pain every time I've tried.

We did have some success at one of my previous companies (wiggle.co.uk), but that was mainly due to pretty tight integration between MSMQ, MSDTC and MS Sql Server. Even then, we tried to avoid distributed transactions as much as possible.

SuddsMcDuff··on Microservices Circuit-Breaker Pattern Implementation: Istio vs. Hystrix
Your comment seems to be a slightly clumsy way of saying "I don't know much about this area of software design, please tell me more", so I'll respond to it in that spirit.

Firstly my terse hand wavey statement was at least clear on the fact that it was talking about communication between services. It said nothing about web browsers or any other human interface.

But since this relatively narrow context is clearly the one which you can most relate to, I'll stay within it. If you think about it, the HTTP request/response cycle is actually an illusion of synchronous communication on top of a transport mechanism which is fundamentally asynchronous. It's an abstraction layer which shields you from the complexities of asynchronous communication. Broadly speaking this is known as the [request/response](https://en.wikipedia.org/wiki/Request%E2%80%93response) pattern.

HTTP by no means the only implementation of the request/response pattern. Even in asychronous messaging systems it's not unusual to see it implemented - https://www.enterpriseintegrationpatterns.com/patterns/messa....

But request/reply is just one of the patterns which exists in the realm of asynchronous communication. There are other, much more common patterns such as send/receive and publish/subscribe. Exploring these patterns opens up whole new approaches to software design.

I wholeheartedly recommend the book [Enterprise Integration Patterns](https://www.enterpriseintegrationpatterns.com/) by Gregor Hohpe and Bobby Woolf. It's quite old now but is still the best and most complete introduction to asynchronous design.

An alternative perspective is from the viewpoint of [Command Query Separation](https://en.wikipedia.org/wiki/Command%E2%80%93query_separati...), and it's relative at the architural level, [Command Query Responsibility Segregation](https://martinfowler.com/bliki/CQRS.html).

SuddsMcDuff··on Microservices Circuit-Breaker Pattern Implementation: Istio vs. Hystrix
Usually better to use asynchronous communication between services.
SuddsMcDuff··on Tell HN: Aaron Swartz's website is offline
> "Every source of information will be biased, and you have to take that into account by being critical."

A thousand times this. Bias is everywhere. I think people who say they're looking for an 'unbiased' source of information are really looking for a source of information they can just blindly consume without doing any pesky thinking. And if you're blindly consuming information without thinking, you're allowing someone else to think for you.

SuddsMcDuff··on Giving Mono Souper Powers
Do x-platform games using mono within Unity count?
SuddsMcDuff··on Brain.fm: Music to improve focus, meditation and sleep
Hey, I'm very glad you took this feedback in a positive & constructive way. FWIW although my initial experience was somewhat sour, I have spent a good part of today using up my trial sessions and I do quite like your service :) I have 1/5 remaining which I'll use at work tomorrow, that'll be the real acid test!
SuddsMcDuff··on Brain.fm: Music to improve focus, meditation and sleep
And, of course, there's no way to delete your account.
SuddsMcDuff··on Brain.fm: Music to improve focus, meditation and sleep
It's only after hitting the "start listening now" button, after you input your name and email address, that it's made clear you're only getting 5 free sessions. I feel like I've been duped into giving my personal information away.

If anyone from brain.fm is reading, don't underestimate how much resentment this kind of dishonest manipulation generates.

SuddsMcDuff··on Ask HN: Best Command-Line Applications?
sox - the Swiss Army knife of sound processing programs

http://sox.sourceforge.net/

SuddsMcDuff··on Winds of Change: The Case for New Digital Currency
This is the elephant in the room, and the key component of cryptocurrencies which is yet to be solved. Cryptocurrencies can trustlessly manage intangible tokens which were themselves issued on the blockchain. But when you want to interact with real world, tangible assets, blockchains can only manage proxies of the real asset. There has not yet been a trustless way to ensure the link between the tangible asset and the blockchain proxy.
SuddsMcDuff··on Sweden's cashless society is no longer a utopia
> "what would be the rationale or incentive for a private payment processor (in a competitive payments market) to reject a legitimate transaction?"

Paypal cite the following reasons that they may freeze or suspend an account (at their sole discretion):

    - You’ve received an abnormally large amount of money in your account that is way above your average
    - Someone has filed a complaint to Paypal about your business
    - A series of chargebacks have been placed against your account
    - Your website has questionable content
    - You are in violation of Paypal’s use policy. For example if you sell drugs or anything illegal, you may get banned
    - Your account information is not up to date or your account is not fully verified
    - Someone has logged into your Paypal account from a strange location.
    - Your credit score is low or something with your background history makes you a higher risk customer
    - They have detected fraudulent activity on your account.
Some of these are reasonable. Some of them are highly questionable. Some of them are outrageously open to abuse.
SuddsMcDuff··on ASP.NET Core 3.0 will only run on .NET Core
Ah, I see. I wasn't using VS (which is why I found the wildcard trick). It seems like VS was the issue then, and one of the reasons donet core has a better experience is because it's much less bound to VS.
SuddsMcDuff··on ASP.NET Core 3.0 will only run on .NET Core
Wildcards have been supported for source files for many years.

    <Compile Include="**/*.cs" />
I was doing this back in the .NET 3.5 days.

But nitpicking aside your point is well taken, the developer experience is far better with dotnet core.

SuddsMcDuff··on Humanity has wiped out 60% of animals since 1970, major report finds
"the main purpose of that line is to hide the wrongdoing"

I think by focusing in on that line you're missing the bigger picture. What I'm trying to say is that we're primarily a threat to ourselves, not to the 'planet'.

I think people would be much more engaged if it weren't "save the planet" but rather "save the human race".

SuddsMcDuff··on Humanity has wiped out 60% of animals since 1970, major report finds
"We only have one small planet to live on, and we are destroying it."

We're not destroying the planet, we're destroying our habitat, and the habitat of those animals unfortunate enough to live at the same time as us. The planet is going to be just fine, it's us who's going to suffer.

I love this quote from George Carlin:

"The planet has been through a lot worse than us. Been through earthquakes, volcanoes, plate tectonics, continental drift, solar flares, sun spots, magnetic storms, the magnetic reversal of the poles … hundreds of thousands of years of bombardment by comets and asteroids and meteors, worldwide floods, tidal waves, worldwide fires, erosion, cosmic rays, recurring ice ages … And we think some plastic bags and some aluminum cans are going to make a difference? The planet isn’t going anywhere. WE are!

We’re going away. Pack your shit, folks. We’re going away. And we won’t leave much of a trace, either. Maybe a little Styrofoam … The planet’ll be here and we’ll be long gone. Just another failed mutation. Just another closed-end biological mistake. An evolutionary cul-de-sac. The planet’ll shake us off like a bad case of fleas."

SuddsMcDuff··on Coinbase is launching support for the USDC stablecoin
> "I've already showed you that exchanges can freeze your assets"

Your point is well taken, however it needs to be made clear: exchanges can only freeze those assets which you yourself have placed in their control.

SuddsMcDuff··on How Fish and Chips Migrated to Great Britain
> "I had beautiful fish and chips in Whitby"

Funny you should mention Whitby, that little town was on my mind the whole time whilst reading these comments. I happened to pass through there maybe 25 years ago and the fish & chips were absolutely divine. Even today, when I think about good fish & chips, I think about Whitby.

Is there something special about that town? Is fish & chips their thing?

SuddsMcDuff··on Air pollution linked to “huge” reduction in intelligence
How big of a problem is bike theft in the Netherlands?

I live in the UK and I probably wouldn't consider getting a bike again, simply because I know it would be nicked within a month.

SuddsMcDuff··on Ask HN: What are some of the best technical talks you've heard?
"The Power of Composition" by Scott Wlaschin

https://www.youtube.com/watch?v=WhEkBCWpDas

SuddsMcDuff··on War Without End
I can well imagine that lofty ideals like defending democracy "for queen & country" quickly go out of the window when bullets starts whizzing past your head.

But what motivates people to sign up, go through months of training & travel to far off foreign lands to fight? Without those motivations, the desire to defend the 'person next to you' would only manifest when your homeland was under threat of invasion.

SuddsMcDuff··on Ask HN: What are the most interesting emerging fields in computer science?
It's an unfortunate characteristic of many in the cryptocurrency community, that they think anyone who doesn't support crypto simply doesn't understand it. And by extension, as soon as they do understand it they will become supporters.

No. There are those who do understand blockchain and still don't support it. A great example is professor Jorge Stolfi. He is one of the more prominent detractors, and yet he routinely displays a very thorough understanding of the technology.

SuddsMcDuff··on Ask HN: What are some niche communities you enjoy?
I love painting miniatures. It's a kind of meditation for me.. the attentional to detail. It's a little bit like pruning a bonsai tree.

The community at http://www.reddit.com/r/minipainting is wonderful and always willing to provide constructive feedback if you ask genuinely. Also http://www.coolminiornot.com to see some of the amazing work other people are doing (or just to feel bad about your own).

SuddsMcDuff··on Why the UK has so many words for bread
What? There are bakeries in nearly every high street. They have survived much better than greengrocers and butchers shops have.
SuddsMcDuff··on India: Google engineer latest victim of mob lynchings fueled by WhatsApp rumors
Surely the real problem here is that there are a great many people who are both gullible and prone to violence.
← PreviousPage 4 of 8Next →