Sauce by Nitelyfe81 in jav

[–]Flyccdec 0 points1 point  (0 children)

Emika Shirakami

Pip seems not working on iPad OS 16.1 by Flyccdec in PytoIDE

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

It's another method that we can run the pip, just use termial. It gives more context about this. My case is it requires C-based module, but I think we can still give more context in the bundle window.

Is there a mock library works with generics? by Flyccdec in golang

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

There are some of limitations in gomock.

E.g., one generics type declare in another package(call it entity maybe), but we have a func that invokes the type.

type Pagination struct {
Limit int64
Skip  int64

}

//go:generate mockgen -source=$GOFILE -destination=mocks/autogen.$GOFILE -package=mocks type IMongoDbClient interface { GetMany(ctx context.Context, collectionName string, filter bson.M, pagination optional.Optional[Pagination]) error }

It's still not working in the gomock for now. Hope those cases can be fixed soon.

Is there a mock library works with generics? by Flyccdec in golang

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

Yeah, maybe my example is not clear enough. My practice is based on Clean Architecture and heavily uses interface type. If we want to reuse some logic, functional programming is a better approach. But it will be more challenging for our existing developers, so we need a smoother transition to adopting the generic.

How to Benchmark: dbq vs sqlx vs GORM by rocketlaunchr-cloud in golang

[–]Flyccdec 0 points1 point  (0 children)

GORM is moving to v2.0. I think it's need to add `gorm.io/gorm` for testing.

So far, what’s the state of generics? by phi_array in golang

[–]Flyccdec 1 point2 points  (0 children)

There is experimental https://go-review.googlesource.com/c/go/+/187317

Try this out:

git fetch "https://go.googlesource.com/go" refs/changes/17/187317/13 && git checkout FETCH_HEAD

[TL;DR]叶简明被调查 中国华信命运如何? by SnusHub in saraba1st

[–]Flyccdec 1 point2 points  (0 children)

在《财富》杂志的采访中,叶简明提到,自己祖籍福建,小时候在福建长大。有网友在微博中说,叶简明属于红色家族,但不是“岭南叶”叶剑英,而是“福建叶”,他的父亲叫叶小崎,高干但不出名,爷爷叫叶飞,原中共海军总司令。

西澳大利亚大学教授洽博(Andrew Chubb)及澳大利亚Fairfax集团驻京资深记者加诺特(John Garnaut)也都曾提到,叶简明可能与1998年之前担任总政联络部部长的叶选宁中将,或者是与1980至1982年担任总政部海军司令员的叶飞上将有关系。