Simon Klinkert

Results 12 comments of Simon Klinkert

Hmm I'm not really sure if a programming language should forbid things like this. I mean it's a tool. No more, no less. I think at the end it's up...

@devalexandre thanks for approving it :) @tmc can you merge it?

@ImPedro29 Have you tried it with the latest version of langchaingo? I had the same error but it worked for me after upgrading it.

Would be super helpful as it opens new use-cases for PocketBase e.g. blog/website backend.

Thanks for looking into that! I guess we can remove the `max=1` completely because it'd override the max setting here https://github.com/sklinkert/igmarkets/pull/3/files#diff-8e05d2c8a06fada86cee4628e78ce189R537 wdyt?

Hi @pfeak, if the the cache is specific to the DB implementation (e.g. Postgres) then I'd put it close to the postgres implementation in the infrastructure layer, e.g. [here](https://github.com/sklinkert/go-ddd/blob/master/internal/infrastructure/db/postgres/connection.go#L8).

It's doable but I think the code is bit easier to understand and write if you reference `domain.MyService` instead of `service.MyService`. Because you could argue the same for `application` layer...

In general, constructors (factory functions) in your domain serve three main purposes: Centralize and enforce invariants: - Every time you create a Product, you want to ensure it has a...

In DDD the anti-corruption layer (ACL) lives right at your Bounded-Context border. In Go you typically split it between: If your core domain logic needs to “call out” into another...

Hi @maranqz > I never see this approach before either [Blue Book](https://www.domainlanguage.com/ddd/blue-book/) of Eric Evans (repository [example](https://github.com/citerus/dddsample-core/blob/2f09a00d09785e35e196ae4dc0ed7c0bb13d39ff/src/main/java/se/citerus/dddsample/infrastructure/persistence/jpa/CargoRepositoryJPA.java)) or [Red Book](https://www.amazon.com/Implementing-Domain-Driven-Design-Vaughn-Vernon/dp/0321834577) of Vaughn Vernon (repository [example](https://github.com/VaughnVernon/IDDD_Samples/blob/master/iddd_collaboration/src/main/java/com/saasovation/collaboration/port/adapter/persistence/repository/EventStoreCalendarEntryRepository.java#L50)). This is why it is...