Better HN
topnewbestaskshowjobs
Log inSign up

DomBlack

113 karma · joined Feb 23, 2012 (14y ago) · 63 submissions

Life long developer, mostly in the fintech space.

GitHub.com/domblack

Submissions

comment 3mo ago · link · parent

I saw this blog post title and wanted to read it, as I thought this is something we really wanted when I worked back at Encore - and lo and behold what website I ended up on!

Great work lads, seeing those old shell scripts brought back memories, but this is awesome to see you've solved the problem now to make your own lives easier!

Any plans to open source crackling? I was looking into cross platform microVM's after reading about sbx recently.

comment 1y ago · link · parent

You can use oauth tokens with the permissions of auth_key write to use long lived tokens to permission ephemeral nodes

comment 2y ago · link · parent

Hi folks,

I just wanted to share that the latest release of Encore automatically captures a trace of every test, providing much more visibility into what's happening and making it easier to understand why a test failed.

The test traces automatically include everything you expect: API calls (including mocked calls with Encore's new mocking support!), Database queries, Pub/Sub messages, HTTP requests, etc.

And it does all of this without the user having to change or add any code outside what they would normally write for a Go test.

4.

Encore releases automatic tracing in tests(github.com ↗)

1 points · by DomBlack · 2y ago · 1 comment

5.

The PaaS Dilemma - Balancing Trust, Vendor Lock-in, and Open Source Solutions(encore.dev ↗)

1 points · by DomBlack · 3y ago · discuss

6.

What do we mean by microservice configuration?(encore.dev ↗)

1 points · by DomBlack · 4y ago · discuss

comment 4y ago · link · parent

This has been my first technical blog post in a long while, so any constructive feedback is greatly appreciated.

8.

How we used Go 1.18 generics when designing our Identifiers at Encore(encore.dev ↗)

12 points · by DomBlack · 4y ago · 1 comment

comment 4y ago · link · parent

I agree; there are entirely different ways to achieve this same goal without generics. I mentioned using a struct and including the data from the struct in the post. However, what I wanted to show within the post is how generics can make this problem easier for us.

> As boilerplate goes, if you look at it, it isn't even that much more. Interfaces can still be used to ensure that the correct methods are guaranteed to be implemented.

Yeap, we implemented many different interfaces on our ID types, and the resource type also implements a couple of interfaces (such as methods to get the Postgres type information). Unfortunately, this means we still need to create receiver methods for each of these interfaces so we can use the ID types with those underlying libraries (such as `JSON` or the `SQL` scanners) which ends up being 14 methods per resource type (and we have quite a number of resource types). We would have ended up code generating these, and generics just saved us that work.

> Underscores are too common in identifiers.

We picked underscores, as they are not included in the base32 encoding of XID. They're also safe to put in URLs without needing to perform any encoding. Our static analysis tools during CI check that all code generation has been completed and prevent the prefixes from having underscores. That means we don't need to worry about escaping as we can always unambiguously split it. However, even if your prefixes allowed underscores, you can always just split the string at the last underscore; as the XID portion of the string cannot contain it.

I'd be interested to know how you were bitten by it in the past?

10.

How we used Go 1.18 generics when designing our Identifiers(encore.dev ↗)

10 points · by DomBlack · 4y ago · 3 comments

comment 9y ago · link · parent

> Always build your architecture in a way that will avoid becoming trapped into a specific service. Amazon’s AWS Lambda sitting between any services and your app is a strongly recommended path!

Isn't using AWS Lamba as your gateway, trapping you into using a specific service, just as much as firebase was?

comment 9y ago · link · parent

We spent a good hour or two when Chrome 56 came out trying to work out why our .eu domain didn't work but the .com did. Even though it was the same startssl cert on the same IP. Turned out our .eu wasn't popular enough to remain allowed even though it was our primary domain up until last year.

I had read the original blog post but my original understanding was that existing certificates would remain trusted and simply newer ones would not be. Hidden in the paragraph was the parts out then staring to distrust existing certificates. Very poor communication from Google

comment 9y ago · link · parent

Two others in my office read the front page, but quite none of us have yet found invites (not that we've looked hard), but the idea of an invite only community sites feels counter productive

comment 10y ago · link · parent

I'm interested in what you're looking at which says that. Against the dollar 2.5-3 years ago GBP was never below 1.47, since the referendum, the highest it has been is 1.34 and that was the lowest we got in the 2008/2009 crash.

comment 10y ago · link · parent

Source? I'm interested into reading why - given Henry VIII.

comment 10y ago · link · parent

I was under the impression that online shops didn't get Sales tax (not sure where I heard that, thanks for clarifiying)

comment 10y ago · link · parent

Interseting to see that the UK price is £269.99, and the US price is $289.99 (£203.95). Seems a steep price different, even accounting for VAT.

Edit: Wasn't taking into account Sales tax, it's not that bad actually

comment 10y ago · link · parent

I tried the beta briefly, but to be honest it came no where close to http://www.sequelpro.com for ease of use.

comment 10y ago · link · parent

I've been looking to move to FastMail for a while, but Mailbox was holding me back (the whole zero-inbox with the remind me this weekend stuff).

Does anybody know of a good zero-inbox client for FastMail?

comment 11y ago · link · parent

How far down the FCA application process are they? As far as I know only 2 companies have been granted permissions in the UK so far this year. One is a law firm, the other a stock broker.

Their site says they are still applying, thus how can they be accepting people's money already?

comment 11y ago · link · parent

Link to the paper http://arxiv.org/pdf/1509.03622v1.pdf

comment 11y ago · link · parent

Don't forget the Google Closure compiler in advance mode.

23.

Fire the US Army's next-gen laser cannon with an Xbox controller(wired.com ↗)

1 points · by DomBlack · 12y ago · discuss

comment 12y ago · link · parent

I had never heard of this product until now. Who uses it? Why would a company outsource it's authentication to an unknown body?

25.

Why downloads on OS X show a modified date of 24 Jan 1984(gizmodo.com ↗)

2 points · by DomBlack · 12y ago · discuss

comment 12y ago · link · parent

It always concerns me when big companies like this do weird things when it comes to passwords. Why do banks for instance have stupid password requirements; max lengths, disallowing certain characters, etc.

Surely if they are hashing the passwords in any form then it doesn't matter how long the password is or what characters it contains.

I understand perhaps the view is some people are not good at remembering passwords and so would forget a complicated password - but they are unlikely to use a long password or special characters if that's the case.

Or am I just missing something major here?

comment 12y ago · link · parent

I used Wave quite a lot, it was great to arranging meet ups of groups of people as you could all have an active conversation and use the "Poll" widget to say if you where coming or not.

I also used it for other things, but organising groups of people was the main use. Once it was discontinued I tried to run the open source version, but it was never really that stable and in the end we swapped back to emails.

It's a great shame to see this dead

comment 12y ago · link · parent

This is an April Fools joke.

comment 12y ago · link · parent

I'd been thinking about buying Arq for the last month or so, thank you for posting this link, it made buying Arq a no brainer.

How come it isn't advertised anywhere on their site or blog? I checked for one this morning!

123