GitHub - actions/github-script: Write workflows scripting the GitHub API in JavaScript
Write workflows scripting the GitHub API in JavaScript - actions/github-script
TIL about github.com/actions/gith...
Which allows you to run a bit of JS in your #github actions pipeline, and sets up some default context values for you
I needed to run a bit of logic to extract some information from the tag name that executed a build... this was just what I was looking for
07.01.2025 18:23
👍 3
🔁 1
💬 1
📌 0
Thinking we know it all is very dangerous!
20.12.2024 18:45
👍 0
🔁 0
💬 0
📌 0
What will stop us from learning?
20.12.2024 18:42
👍 0
🔁 0
💬 1
📌 0
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.
09.12.2024 23:09
👍 2
🔁 0
💬 0
📌 0
Instead of writing shell scripts for automation, write them in Typescript or JavaScript and run them with node:
1. Way easier to write and maintain and AI will happily do it for you with higher correctness than the shell scripts
2. Its platform agnostic! Node runs the same way on windows/Linux/mac
09.12.2024 23:09
👍 4
🔁 0
💬 2
📌 0
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.
09.12.2024 22:33
👍 0
🔁 0
💬 0
📌 0
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.
09.12.2024 16:01
👍 0
🔁 0
💬 1
📌 0
Being able to test the whole web application as a black box from outside with Playwright is a project saver. Its like having tons of QAs checking everything all the time. Docker is one the best thing happened to the software industry!
09.12.2024 13:20
👍 3
🔁 0
💬 1
📌 0
The complexity of a distributed microservice architecture with event sourcing and document db is probably 100 times more than a modular monorepo with relational databases!
29.11.2024 22:56
👍 0
🔁 0
💬 0
📌 0
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.
23.11.2024 16:41
👍 1
🔁 0
💬 0
📌 0
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.
23.11.2024 16:37
👍 1
🔁 0
💬 1
📌 0
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…
23.11.2024 16:35
👍 1
🔁 0
💬 1
📌 0
I am happy with middle ground achieved above where I can apply DDD and enjoy the best performance, with a bit of hack.
23.11.2024 16:31
👍 1
🔁 0
💬 1
📌 0
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
23.11.2024 16:28
👍 1
🔁 0
💬 1
📌 0
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.
23.11.2024 16:25
👍 1
🔁 0
💬 1
📌 0
I am having so much fun with dotnet 9 and ef core 9. Ef core have very good support Domain Driven Design, we can use owned entities to model value objects and they are mapped in the database sensiblely. Ef core has good default rules, but we can configuration to the teeth.🧵
23.11.2024 16:20
👍 3
🔁 0
💬 1
📌 0
Just fixed a bug, the remix app rerun the root loader on every page. Turns out we have a link loading favicon and the icon file is missing, adding it fixes the problem.
My guess is the browser tries to reload the missing favicon which is a navigation action, causing a reloading the app.
11.11.2024 12:58
👍 0
🔁 0
💬 0
📌 0
Maybe the news is too new, did a search, seems no other news reporting the same. Scaled back but nothing about stopping the production.
11.11.2024 12:51
👍 0
🔁 0
💬 0
📌 0
The answer
10.11.2024 00:43
👍 0
🔁 0
💬 0
📌 0
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!
10.11.2024 00:41
👍 0
🔁 0
💬 1
📌 0
Microsoft Zero Trust Workshop - YouTube
Microsoft Zero Trust Workshop - Youtube PlayList
A comprehensive technical guide to help customers and partners adopt a Zero Trust strategy and deploy security solutions end-to-end to secure their organizations.
#MicrosoftSecurity
youtube.com/playlist?lis...
09.11.2024 17:13
👍 8
🔁 4
💬 0
📌 0
I can remember what I asked ChatGPT for help in the past few months:
10.11.2024 00:31
👍 3
🔁 0
💬 1
📌 0
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.
09.11.2024 22:01
👍 0
🔁 0
💬 0
📌 0
Missing the power of react-query in the remix app I am working on. Cannot wait for TanStack Start!
09.11.2024 21:54
👍 2
🔁 0
💬 1
📌 0
Wait for it, AI will start generating typos…
09.11.2024 21:17
👍 1
🔁 0
💬 0
📌 0
Feeling at home instantly!
09.11.2024 21:16
👍 1
🔁 0
💬 0
📌 0
Follow this list and join the .NET fun!
09.11.2024 20:59
👍 9
🔁 5
💬 0
📌 0