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 |
---|---|---|---|---|
Edit | Post #285735 |
Post edited: fixed the reference |
— | almost 3 years ago |
Comment | Post #285799 |
I remember working on a project where the initial devs defined explicit mappings for all the members, including the ones that were identical between the mapped models. The final code was way larger than using simple assignments. (more) |
— | almost 3 years ago |
Edit | Post #285735 |
Post edited: added action based on feedback |
— | almost 3 years ago |
Edit | Post #278625 |
Post edited: added UI/UX in the ontopic list |
— | almost 3 years ago |
Edit | Post #285770 | Initial revision | — | almost 3 years ago |
Answer | — |
A: What are the disadvantages of using auto mapper libraries? Based on my experience auto-mapping has some drawbacks: - "find all references" not working as expected - anyone relying on the "find all references" functionality or similar will miss the implicit assignments happening only at runtime due to automapping - property rename - if any of the proper... (more) |
— | almost 3 years ago |
Edit | Post #285769 | Initial revision | — | almost 3 years ago |
Question | — |
What are the disadvantages of using auto mapper libraries? I have noticed that lots of projects (both in real-world and within online courses) use Automapper to map domain models to view models, API models. The main advantage seems to be convenience by removing the need for lots of assignments when dealing with models with lots of properties. However, ... (more) |
— | almost 3 years ago |
Edit | Post #285750 |
Post edited: made the title easier to read |
— | almost 3 years ago |
Edit | Post #285750 |
Post edited: added relevant tag |
— | almost 3 years ago |
Edit | Post #285745 |
Post edited: simplified the title |
— | almost 3 years ago |
Edit | Post #285746 | Initial revision | — | almost 3 years ago |
Question | — |
In the current development context (2020+), is there any reason to use database triggers? I have not used a database trigger in years in the projects of the teams I have worked in, but I have seen them being used by other teams. Back in 2009, it seemed like a heated debate, but I am wondering if they are useful anymore for modern software applications. By modern software application... (more) |
— | almost 3 years ago |
Edit | Post #285745 |
Post edited: fixed the title |
— | almost 3 years ago |
Edit | Post #285745 | Initial revision | — | almost 3 years ago |
Question | — |
When stored procedures are preferred over application layer code? []()A person I used to work with several years ago was hired to rewrite a product using a .NET-based modern tech stack. One of the aspects that stroke me was that he believes that the product should mostly rely on stored procedures and less on the ORM (e.g. Entity Framework). I have also heard this a... (more) |
— | almost 3 years ago |
Edit | Post #285742 |
Post edited: added relevant tags |
— | almost 3 years ago |
Edit | Post #285735 |
Post edited: simplified the title |
— | almost 3 years ago |
Edit | Post #285739 |
Post edited: |
— | almost 3 years ago |
Comment | Post #285735 |
@#8049 Done. It makes more sense as you mentioned. Thanks. (more) |
— | almost 3 years ago |
Edit | Post #285739 | Initial revision | — | almost 3 years ago |
Answer | — |
A: Should we allow UI/UX questions in our community? Yes I would allow UI/UX questions with some limitations. Examples: - on topic - UI/UX questions related to an interface that also involves some programming (e.g. web interfaces) - offtopic - questions about choosing fonts for banners or graffiti, color to be used in some ads etc. (more) |
— | almost 3 years ago |
Edit | Post #285735 |
Post edited: removed proposal info from the question |
— | almost 3 years ago |
Edit | Post #285735 | Initial revision | — | almost 3 years ago |
Question | — |
Should we allow UI/UX questions in our community? []()A significant fraction of software developers also needs to make some UI/UX-related decisions. I am wondering if we should such questions in the Software Development community. Based on feedback for this question, I have updated []()What type of questions can I ask here?. (more) |
— | almost 3 years ago |
Edit | Post #285676 |
Post edited: added relevant tag |
— | almost 3 years ago |
Edit | Post #285620 |
Post edited: added relevant tags |
— | almost 3 years ago |
Comment | Post #285569 |
@#36363 Questions not about code are OK, as long as they are close to the development process. Example: https://software.codidact.com/posts/285389. Here I am not providing any code and neither do the answers. However, I am speaking about specific implementation details, not just a rough idea. (more) |
— | almost 3 years ago |
Edit | Post #285574 | Initial revision | — | almost 3 years ago |
Answer | — |
A: Appropriate HTTP status code for "user confirmation required" Unless there are reasons for keeping the "check for unintended consequences" and "perform the action" in the same endpoint, I would split them into two parts: 1. `GET /api/v1/action-can-charge-the-client/{id}`. This should respond with 200 and the required information so that the client knows that... (more) |
— | almost 3 years ago |
Comment | Post #285569 |
@#36363 Software developers should understand the business requirements and think about a way to implement them. If they are not sure about a particular aspect of the architecture, they can come to Codidact, provide the relevant details and ask about the particular aspect they want to clarify.
Of... (more) |
— | almost 3 years ago |
Comment | Post #285569 |
Can you please make the question more about Software Development? Currently, it sounds more like a "marketing" or UX at best. (more) |
— | almost 3 years ago |
Edit | Post #285569 | Question closed | — | almost 3 years ago |
Edit | Post #285566 |
Post edited: added relevant tag |
— | almost 3 years ago |
Edit | Post #285534 |
Post edited: minor fix in the code |
— | almost 3 years ago |
Edit | Post #285542 | Initial revision | — | almost 3 years ago |
Answer | — |
A: How to mock LazyCache when performing unit testing? LazyCache provides CachingService as a concrete implementation of the IAppCache. When unit testing simply instantiate the tested service using CachingService: ``` var testInstance = new FooService(new CachingService()); ``` (more) |
— | almost 3 years ago |
Edit | Post #285541 | Initial revision | — | almost 3 years ago |
Question | — |
How to mock LazyCache when performing unit testing? A few of my services rely on LazyCache and they use it by injecting IAppCache. For unit testing, I would like to mock this. I have found MockCachingService, but it does not do any caching (as specified in the comments). What is the way to perform unit testing in this scenario? (more) |
— | almost 3 years ago |
Edit | Post #285533 |
Post edited: minor formatting fix |
— | almost 3 years ago |
Edit | Post #285534 | Initial revision | — | almost 3 years ago |
Answer | — |
A: How to create fire and forget tasks Q&A in ASP.NET Core with dependency injection support? The way I made this work is not very quick but might provide extra benefit in the future. I have added Hangfire support to the application and use its BackgroundJob enqueuing mechanism as follows: Plugging Hangfire ``` using Hangfire; using Hangfire.MemoryStorage; public void ConfigureServ... (more) |
— | almost 3 years ago |
Edit | Post #285533 | Initial revision | — | almost 3 years ago |
Question | — |
How to create fire and forget tasks Q&A in ASP.NET Core with dependency injection support? One of the legacy applications our team manages contained the following pattern (in the controller): ``` // initialization private readonly IServiceScopeFactory serviceScopeFactory; public FooController(IServiceScopeFactory serviceScopeFactory) { serviceScopeFactory = serviceScopeFactor... (more) |
— | almost 3 years ago |
Comment | Post #285489 |
@#53280 Yes, I have not realized the XY problem in my post. I have added a paragraph to clarify this. (more) |
— | almost 3 years ago |
Edit | Post #285489 |
Post edited: clarified the purpose of my question |
— | almost 3 years ago |
Comment | Post #285489 |
Unfortunately, the application I am developing now is running on servers that are shared by multiple .NET applications and the memory is not that generous (although its price is pretty low when compared to other software development costs). (more) |
— | almost 3 years ago |
Edit | Post #285502 |
Post edited: improved readability |
— | almost 3 years ago |
Edit | Post #285502 | Initial revision | — | almost 3 years ago |
Answer | — |
A: How to deeply clone an array in Angular / TypeScript? These can be achieved in several ways, but there might be some drawbacks: - through JSON serialization/deserialization: `const cloned = JSON.parse(JSON.stringify(array));` The advantage is that it works for any type of object, but there are some drawbacks such as converting some values like... (more) |
— | almost 3 years ago |