Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Activity for Alexei
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Comment | Post #287818 |
Thanks for the code review. My initial code was a complete mess. I have applied your second suggestion. Indeed I also favor composition over inheritance (which is also favored due to using DI basically everywhere except for some infrastructure code). (more) |
— | almost 2 years ago |
Edit | Post #287804 |
Post edited: added rewritten code based on review |
— | almost 2 years ago |
Comment | Post #287783 |
@#53549 I am wondering if it wouldn't be easier to read the registry key using [winreg](https://docs.python.org/3/library/winreg.html) instead of doing it indirectly using Powershell. (more) |
— | almost 2 years ago |
Edit | Post #287807 | Nominated for promotion | — | almost 2 years ago |
Edit | Post #287799 | Nominated for promotion | — | almost 2 years ago |
Comment | Post #287785 |
Did you check the EventViewer? I expect for IIS to log something there when a worker is crashing. (more) |
— | almost 2 years ago |
Comment | Post #287783 |
@ghost-in-the-zsh Sorry about that. I didn't notice the Python tag. I have rolled back to your last version until we found a way to make it work when calling it from Python. (more) |
— | almost 2 years ago |
Edit | Post #287783 |
Post edited: rolled back to previous version because there are issues running it in Python |
— | almost 2 years ago |
Edit | Post #287783 |
Post edited: added info for Windows 11 |
— | almost 2 years ago |
Comment | Post #287783 |
@#53549 AFAIK, all Windows versions after Windows 7 include a PS installed. This is confirmed by [this article](https://learn.microsoft.com/en-us/powershell/scripting/learn/ps101/01-getting-started?view=powershell-7.3). No need for enterprise, I have mentioned it because it was the OS I was using for... (more) |
— | almost 2 years ago |
Edit | Post #287804 | Initial revision | — | almost 2 years ago |
Question | — |
Health checks with caching in ASP.NET Core Context I noticed that an application was flooding the database with simple SELECTs. The investigation revealed some bugs in the health check which theoretically implemented caching (to avoid querying external sources too often), but it was not working properly. The application health check in... (more) |
— | almost 2 years ago |
Edit | Post #287782 | Nominated for promotion | — | almost 2 years ago |
Edit | Post #287783 |
Post edited: added information about Windows 10 |
— | almost 2 years ago |
Edit | Post #287754 | Nominated for promotion | — | almost 2 years ago |
Edit | Post #287697 |
Post edited: fixed the code |
— | almost 2 years ago |
Comment | Post #287682 |
I have closed this question because it is basically a typo. (more) |
— | almost 2 years ago |
Edit | Post #287682 | Question closed | — | almost 2 years ago |
Edit | Post #287659 | Nominated for promotion | — | almost 2 years ago |
Edit | Post #287659 |
Post edited: added relevant tag |
— | almost 2 years ago |
Edit | Post #287660 | Initial revision | — | almost 2 years ago |
Answer | — |
A: EF-core Find method doesn't include other entities What you want would be called `DbSet<>.Find()` combined with eager loading of the related entities. According to the docs, eager loading is not mentioned and its sole purpose is to easily get an entity based on its type and keys: > Finds an entity with the given primary key values. If an entity w... (more) |
— | almost 2 years ago |
Edit | Post #287630 | Nominated for promotion | — | almost 2 years ago |
Edit | Post #287635 | Initial revision | — | almost 2 years ago |
Question | — |
Deciding if a concept can be materialized to a tag Note: this is inspired by the comments on this post and especially this one which mentions: > We have tags for languages because people have interest or expertise in languages; likewise frameworks, design patterns, etc. Who is an ‘interface’ enthusiast? This discussion made me question the way... (more) |
— | almost 2 years ago |
Edit | Post #287612 | Nominated for promotion | — | almost 2 years ago |
Edit | Post #287602 | Nominated for promotion | — | almost 2 years ago |
Comment | Post #287616 |
Indeed, my solution is a poor man's solution to configuration management, and using a dedicated solution such as Consul is better. I have chosen this following my more ops-inclined colleagues' advice, but it is not set in stone and we can transition to the modern way of doing it. Thanks. (more) |
— | almost 2 years ago |
Edit | Post #287612 |
Post edited: added drawing tool reference |
— | almost 2 years ago |
Edit | Post #287614 | Initial revision | — | almost 2 years ago |
Answer | — |
A: How to inject environment configuration values when deploying an Angular application in Kubernetes or similar infrastructure? Note: this is mainly based on Build your Angular App Once, Deploy Anywhere article. Read this article, especially the drawbacks section. The basic idea is to create and read a configuration file that is kept as is when the Angular application is built (transpiled). I have made the following steps:... (more) |
— | almost 2 years ago |
Edit | Post #287613 |
Post edited: added relevant tags |
— | almost 2 years ago |
Edit | Post #287613 | Initial revision | — | almost 2 years ago |
Question | — |
How to inject environment configuration values when deploying an Angular application in Kubernetes or similar infrastructure? Context I am currently migrating a Web application from on-prem infrastructure to K8s. The legacy infrastructure relies on defining some tokens in the configuration files and these are replaced during the deployment as follows: - ASP.NET Core: appsettings.json tokens are replaced - Angular... (more) |
— | almost 2 years ago |
Edit | Post #287612 | Initial revision | — | almost 2 years ago |
Question | — |
Dealing with code maintenance when saving a large and complex entity in a single business transaction Context I am currently working on migrating a legacy application to an ASP.NET Core + Angular application. The Web API's main project is based on Jason Taylor's template (clean architecture) and among others relies on MediatR library. The UI/UX experience for already migrated business flows rel... (more) |
— | almost 2 years ago |
Comment | Post #287607 |
@#53410 As referenced in my post, the (language agnostic) concept of interface is quite heavily used on SO. It is also an important concept used for most applications developed in C# or Java. (more) |
— | almost 2 years ago |
Comment | Post #287607 |
AFAIK, "interface" is virtually the same thing in C# and Java. Not sure about other languages that seem to use the concept (e.g. ADA - https://www.adaic.org/resources/add_content/standards/05rat/html/Rat-2-4.html ). I guess that multiple languages that do not support multiple inheritance needs the co... (more) |
— | almost 2 years ago |
Comment | Post #287606 |
I do not have a MAC to check this and could not find the docs about this difference, but it seems to refer to the same thing. Taking a look at the debugging settings from [here](https://github.com/MicrosoftDocs/visualstudio-docs/blob/main/docs/debugger/map-methods-on-the-call-stack-while-debugging-in... (more) |
— | almost 2 years ago |
Edit | Post #287607 | Initial revision | — | almost 2 years ago |
Answer | — |
A: interface and interface-type tags Yes, I have added that tag. I tried to create a tag to match the "interface when working with objects" concept. I am not happy with interface-type because it suggests `typeof(ISomeInterface)`, but I think it is less ambiguous than interface. What about interface-object-type? I am open to su... (more) |
— | almost 2 years ago |
Edit | Post #287602 |
Post edited: added relevant types |
— | almost 2 years ago |
Comment | Post #287598 |
What is the context of " I don't know what to do with the movies_scenes relation"? Why did you create this table in the first place? (more) |
— | almost 2 years ago |
Edit | Post #287594 |
Post edited: split in paragraphs for better readability |
— | almost 2 years ago |
Edit | Post #287595 |
Post edited: fixed typo |
— | almost 2 years ago |
Edit | Post #287595 | Initial revision | — | almost 2 years ago |
Answer | — |
A: Closed Question Too Generic, Reason Unhelpful I will provide an answer to this question in the context of this, now deleted question which included this relevant text before being edited and removed: > How to implement a variable trust-based privileges system, so that there []() always the same number of users with the top trust level and an... (more) |
— | almost 2 years ago |
Edit | Post #287594 |
Post edited: minor fixes + added relevant tag |
— | almost 2 years ago |
Edit | Post #287585 | Nominated for promotion | — | almost 2 years ago |
Edit | Post #287568 |
Post edited: added extra reference to newly received question |
— | almost 2 years ago |