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.
Posts by Alexei
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 t...
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 d...
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 a...
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...
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 ...
We got our first (mostly) ChatGPT answer in our community. Also, a question includes an adapted ChatGPT code that does not seem to do the job. StackOverflow has already banned ChatGPT answers and ...
I am currently working on an Angular SPA that supports multiple languages and relies on ngRx for state management. Although the application state is handled by ngRx, the current language is stored...
Python documentation suggests that you can simply add other parameters when raising the Exception and retrieve them using args: Code try: raise Exception('spam', 'eggs') except Exception as in...
Entity Framework is able to save the changes by using a tracking mechanism (i.e. what is added, deleted, removed). I guess _repository.GetAllGoals() implementation is something like _context.Goals...
Refit allows such configuration out of the box bt using AddRefitClient (which resembles the well-known AddHttpClient). This indeed requires explicit configuration for the HttpClient, but the config...
Note: this is based on my question on SO and subsequent activity there I am trying to add resilience using Polly to HTTP calls that are performed using Refit library. I am using the Refit factory...
I tried to replicate your case and the only workable solution I could find is to use OnModelCreating configuration (fluent style) instead of attributes: public class Contestant { public int Id...
Context We have recently received a suggestion to allow questions about recommending books directly connected to software development. The way I see this now (pros and cons) Pros: allow more ...
I have noticed that we have several questions tagged with GNU/Linux. I would like to rename this tag to gnu to reflect what seems to be the canonical name and also be consistent with tag naming (a...
This question which is tagged with table tag. I am trying to find a better replacement for it since there are multiple types of tables such as HTML tables or data tables. The question seems to re...
I have followed Nick Chapsas' tutorial to avoid throwing a ValidationException to treat validation errors and instead rely on LanguageExt.Common.Result<> from LanguageExt library. I have ma...
FreeFormatter resource mentioned in the question is useful and I could use the output as a base for getting to a working configuration. All the changes were manually performed. - enable throw conf...
I have just created an ASP.NET Core 6 application and added NLog support for logging: NLogBuilder.ConfigureNLog("nlog.config").GetCurrentClassLogger() However, this API is almost deprecated as ...
One faster alternative is to use a formula to create the hyperlink. An example is provided below: public static IXLCell SetHyperLink(this IXLCell cell, string url, string text = "link") { if (s...
I am using ClosedXML library to generate an Excel containing thousands of hyperlinks using cell's Hyperlink property: cell.SetValue(text).Hyperlink = new XLHyperlink(url); Such a call takes abo...
If you are using .NET Core 5.0 or more you should be able to write something like the following (not tested): var data = context.TblOrder .OrderBy(o => o.OrderDate) .Select(o => ne...
Context This Q&A from SO suggests that throwing exceptions is incredibly expensive when compared to returning values (return codes): that with return codes instead of exceptions the same pr...
Our team deals with a legacy application that relies on a rather old deployment process and infrastructure: we deploy the application on an environment very similar to the production called Clon...
I haven't worked in WPF for a long time, but you might try setting a new list (clone the old one and add the new element) instead of adding the element to the existing list: _demo.Value++; var ne...
One way is to create a scalar function that takes an NVARCHAR(MAX) input and performs the following operations: replaces frequent tags with they plain text equivalent (e.g. <br> with chars...