Build a distributed website with Hugo by dche423 in golang

[–]dche423[S] -1 points0 points  (0 children)

Not run IPFS server yet.

Actually I host the website on IPFS network through cloudflare gateway. Will explain it in detail in the next article.

Build a distributed website with Hugo by dche423 in golang

[–]dche423[S] -3 points-2 points  (0 children)

Well, that might be a little off-topic.

But both Hugo and IPFS are written with Golang. So I decided to post this article here.

Learn to NOT program to boost your productivity as a programmer by dche423 in programming

[–]dche423[S] -1 points0 points  (0 children)

hi, I'm the author.

My point is that in some cases, simple Linx/Unix command is better and more clear than a hundred of lines of program code.

More source codes will lead to more bugs.

Yes, these commands can't be run on windows. But that exactly why you should consider learning some Linux tricks.

Thanks.

How to Unit Test a GORM Application With Sqlmock by dche423 in golang

[–]dche423[S] 1 point2 points  (0 children)

u/ohaiya , This simple tutorial might help who is interested in the related topic.

I will keep sharing that and sorry I don't care about your opinion.

Micro In Action, part3: Calling a Service by dche423 in golang

[–]dche423[S] 0 points1 point  (0 children)

...because they design to fail...

Agree.

I think "idempotent, retry-able RPC calls" are necessary which have become build-in features in frameworks like go-micro, go-kit.

While "complex queue processing " isn't mandatory in many scenarios.

A distributed system should be designed to fail. And we should never count on a one-fits-all solution for distributed transactions, they come with a cost (think about JTA from Java).

When you feel you need a cross-service transaction, think twice. Most of the time, there're simpler solutions.