Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

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‭

211 posts
50%
+0 −0
Q&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 t...

posted 1y ago by Alexei‭

Answer
71%
+3 −0
Q&A 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 d...

2 answers  ·  posted 1y ago by Alexei‭  ·  last activity 1y ago by Derek Elkins‭

75%
+4 −0
Q&A 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 a...

1 answer  ·  posted 1y ago by Alexei‭  ·  last activity 1y ago by r~~‭

50%
+0 −0
Meta 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...

posted 1y ago by Alexei‭

Answer
70%
+5 −1
Meta 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 ...

posted 1y ago by Alexei‭  ·  edited 1y ago by Alexei‭

Answer
90%
+17 −0
Meta Should we allow answers generated by ChatGPT?

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 ...

9 answers  ·  posted 1y ago by Alexei‭  ·  last activity 11mo ago by Monica Cellio‭

Question discussion answers
71%
+3 −0
Code Reviews Implement translatable UI in a Single Page Application when working with ngRx

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...

0 answers  ·  posted 1y ago by Alexei‭

81%
+7 −0
Q&A How can I provide additional information when raising an exception?

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...

posted 1y ago by Alexei‭

Answer
60%
+1 −0
Q&A Datagrid in MVVM saves edits but not inserts

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...

posted 1y ago by Alexei‭  ·  edited 1y ago by Alexei‭

Answer
50%
+0 −0
Q&A How to define Polly policies when working with Refit library in ASP.NET Core?

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...

posted 1y ago by Alexei‭

Answer
50%
+0 −0
Q&A How to define Polly policies when working with Refit library in ASP.NET Core?

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...

1 answer  ·  posted 1y ago by Alexei‭  ·  last activity 1y ago by Alexei‭

60%
+1 −0
Q&A How to refer to the same class twice from one Entity Framework entity?

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...

posted 1y ago by Alexei‭  ·  edited 1y ago by Alexei‭

Answer
81%
+7 −0
Meta Should asking about book recommendations directly connected to software development be on-topic?

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 ...

7 answers  ·  posted 1y ago by Alexei‭  ·  last activity 8mo ago by Karl Knechtel‭

50%
+0 −0
Meta Renaming GNU/Linux tag to gnu

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...

2 answers  ·  posted 1y ago by Alexei‭  ·  edited 1y ago by Alexei‭

Question discussion tags
60%
+1 −0
Meta Dealing with table tag

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...

0 answers  ·  posted 2y ago by Alexei‭  ·  edited 1y ago by Alexei‭

50%
+0 −0
Q&A Working with a generic class that uses a type that should be of generic type

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...

0 answers  ·  posted 2y ago by Alexei‭

Question c# generics .net .net-6
50%
+0 −0
Q&A How to migrate NLog configuration from XML file(s) to application settings (JSON)?

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...

posted 2y ago by Alexei‭  ·  edited 2y ago by Alexei‭

Answer
50%
+0 −0
Q&A How to migrate NLog configuration from XML file(s) to application settings (JSON)?

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 ...

1 answer  ·  posted 2y ago by Alexei‭  ·  last activity 2y ago by Alexei‭

60%
+1 −0
Q&A How to generate lots of hyperlinks rather fast using ClosedXML library?

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...

posted 2y ago by Alexei‭

Answer
60%
+1 −0
Q&A How to generate lots of hyperlinks rather fast using ClosedXML library?

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...

1 answer  ·  posted 2y ago by Alexei‭  ·  last activity 2y ago by Alexei‭

60%
+1 −0
Q&A Order a subcollection from linq

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...

posted 2y ago by Alexei‭  ·  edited 2y ago by Alexei‭

Answer
80%
+6 −0
Code Reviews Measuring the impact of using exceptions instead of return values in an ASP.NET Core application

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...

1 answer  ·  posted 2y ago by Alexei‭  ·  last activity 2y ago by Dirk Herrmann‭

75%
+4 −0
Q&A What version of runtime environment does a .NET 5 application actually needs?

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...

0 answers  ·  posted 2y ago by Alexei‭  ·  edited 2y ago by Alexei‭

75%
+4 −0
Q&A WPF MVVM ListBox not updating

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...

posted 2y ago by Alexei‭

Answer
50%
+0 −0
Q&A How to get rid of HTML tags and convert entities in SQL Server?

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...

posted 2y ago by Alexei‭

Answer