Rex Ye
banner
epicerp.app
Rex Ye
@epicerp.app
Senior Software Engineer
.net, react, angular | pulumi, terraform cdktf | azure, aws

epicerp.app, gitHub.com/rexebin, https://dev.to/rexebin, https://uk.linkedin.com/in/rex-ye-a7b0b7121

“The only way to do great work is to love what you do” - Steve Jobs
Thinking we know it all is very dangerous!
December 20, 2024 at 6:45 PM
Reposted by Rex Ye
Even better if you use CliWrap
github.com/Tyrrrz/CliWrap

let! result = Cli.Wrap("path/to/exe")
.WithArguments([
"--foo"
"bar"
])
.WithWorkingDirectory("work/dir/path")
.ExecuteAsync()
GitHub - Tyrrrz/CliWrap: Library for running command-line processes
Library for running command-line processes. Contribute to Tyrrrz/CliWrap development by creating an account on GitHub.
github.com
December 10, 2024 at 8:56 PM
3. Javascript automation script can do anything you can think of.

Personally I hate writing shell scripts because of weird syntax, hard to reuse, zero testability, mostly I think I am not smart enough for it and I am more than ok with it. For me, simplicity wins.
December 9, 2024 at 11:09 PM

Zero mocks means less code to maintain. Tests ignorant of implementation details are also remarkable easy to write and maintain, and they bring freedom to refactoring which lead to easy to read maintainable code.
December 9, 2024 at 10:33 PM
testing the .net webapi backend(ef and postgres) from the outside using Testcontainers library and .net’s WebApplicationFactory also give us very high degree of confidence. Game changer.
December 9, 2024 at 4:01 PM
Take away: ef core 9 support value object in many ways, however I ended up not using any of them:

1. eager loading collection of value object causes performance issue

2. the non-collection value object are treated as stealth entity, polluting audit trails.
November 23, 2024 at 4:41 PM
I do not like the look of the audit log with an implementation detail like owned entity jamming up the audit trail. So with regret, I unpacked the all and use regular properties instead for cleaner audit trails.
November 23, 2024 at 4:37 PM
Moving on, I also implementation audit trails to record all transactions, for the capability of being able to roll back transitions. Then I found that The single owned entity in the domain is being treated as separate entitiy by ef core therefore they uses one entry in the audit log…
November 23, 2024 at 4:35 PM
I am happy with middle ground achieved above where I can apply DDD and enjoy the best performance, with a bit of hack.
November 23, 2024 at 4:31 PM
However these operators are not without downsides. I ended up using regular entities for collection of value object and make them inaccessible from the DBContext to force the use of aggregate. Those entity models can so implementation ValueObject behaviors, Id being one of the property for equality
November 23, 2024 at 4:28 PM
Collection of value objects are mapped to separate tables and they are always eager loaded with the aggregate, this causes potential performance issue. For read only queries, we can use AsNonTracking to improve performance and for commands we can use AsSplitQuery.
November 23, 2024 at 4:25 PM
Maybe the news is too new, did a search, seems no other news reporting the same. Scaled back but nothing about stopping the production.
November 11, 2024 at 12:51 PM
The answer
November 10, 2024 at 12:43 AM
And I told ChatGPT I am Chinese, this is the new picture supposed to reflect my life. What’s up with the hexagons..and my god, the screens I have!
November 10, 2024 at 12:41 AM
In one of my project, I send messages via SignalR when data updated, react query would invalidate the relevant query, so simple to do and improved user experience by a mile.
November 9, 2024 at 10:01 PM
Missing the power of react-query in the remix app I am working on. Cannot wait for TanStack Start!
November 9, 2024 at 9:54 PM