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
66%
+2 −0
Q&A What are the cons of directly mocking Entity Framework DbSets instead of working with an in-memory database when unit testing the application?

I have recently contributed to a Clean Code project and had a discussion about how to implement unit tests. The project author argues for using an in-memory database (which easily replaces the rea...

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

50%
+0 −0
Q&A How much memory is allocated for a MySQL VARCHAR variable in a stored procedure?

This answers your questions, not what I suspect to be real issue. According to the specifications a VARCHAR(100) will need actual data stored length + 1. So, the actual size would have mattered if...

posted 3y ago by Alexei‭

Answer
60%
+1 −0
Code Reviews Are any downsides of hiding the actual Entity Framework Core DbSets and exposing only some generic methods?

I have recently started a project based on the clean architecture principle and noticed that it did not rely on generic repositories since Entity Framework's DbSets are doing the job just fine. In ...

0 answers  ·  posted 3y ago by Alexei‭

50%
+0 −0
Q&A How to automatically run Entity Framework Core migrations for an application which uses a user with read/write rights on certain tables?

Migrations are applied during the application startup (initialization) only when the application is not accessible yet. One way to go is to leave the existing user as it is and define a designated ...

posted 3y ago by Alexei‭

Answer
66%
+2 −0
Q&A How to automatically run Entity Framework Core migrations for an application which uses a user with read/write rights on certain tables?

I have decided to convert a legacy database-first ASP.NET Core project to code-first. However, I have noticed that the project used the same database as another bigger project and the Entity Framew...

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

71%
+3 −0
Q&A Is there a way to automatically fix MySQL tables where the auto_increment has fallen behind the correct value?

This is possible in two steps by using a dynamic SQL: SET @nextId = (SELECT MAX(id) + 1 FROM `CustomTable` ); SET @sql = CONCAT('ALTER TABLE `CustomTable` AUTO_INCREMENT = ', @nextId[]()); PREPA...

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

Answer
71%
+3 −0
Q&A In MySQL is there a limit to the number of keys in a IN() clause?

According to the documentation for the MySQL IN function: The number of values in the IN() list is only limited by the max_allowed_packet value. The default value for it is 67108864. So, you...

posted 3y ago by Alexei‭

Answer
66%
+2 −0
Q&A How to perform LEFT JOIN using LINQ method call notation?

Note: this was tested in a .NET Framework 4.6.2 project. This answer provides an extension method that greatly simplifies (and makes it more intuitive) the written code: public static IQueryable&...

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

Answer
66%
+2 −0
Q&A How to perform LEFT JOIN using LINQ method call notation?

I am interested in performing a LEFT JOIN using LINQ-2-SQL when working with method call notation. This answer suggests a way that relies on GroupJoin but it is more verbose than expected: var le...

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

66%
+2 −0
Q&A Is it possible in MySQL to require each row in a table have at least one foreign key record in a join table?

ghost-in-the-zsh‭ provided a direct answer and I will try to offer a more general complementary one. One possible thing to try is a trigger that checks the integrity, but it cannot work for insert...

posted 3y ago by Alexei‭

Answer
75%
+4 −0
Q&A Why would an unique index get moved to the primary key after the underlying column is dropped?

I can't say that I fully understood what you did, but I think I got the explanation: removed 1+ columns that were part of the index. The index will be updated to not include that column. If...

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

Answer
62%
+3 −1
Meta Do we really need the [tools] tag?

During my review of the posts and tags, I have seen the tools tags. It is very generic and I am sure if it is helpful. What do you think?

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

Question discussion tags
50%
+0 −0
Q&A How can I add "withCredentials:true" for HTTP requests generated by Swagger UI?

One way to solve this without customizing the Swagger UI is to deal with it on the server side. The following assumes that the swagger docs is served at /swagger relative path. Middleware /// &lt...

posted 3y ago by Alexei‭

Answer
75%
+4 −0
Q&A How can I add "withCredentials:true" for HTTP requests generated by Swagger UI?

I have added Swagger UI for an ASP.NET Core 3.1 application and I have realized that all endpoints requiring Windows Authentication fail. This issue is created by the fact that generated HTTP reque...

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

77%
+5 −0
Q&A Is omitting braces for single statements bad practice?

Already good answers, but I can provide a slightly different perspective here: always use braces if there is a risk of getting into a pitfall. Examples (from C#, but the language is less relevant)...

posted 3y ago by Alexei‭

Answer
71%
+3 −0
Meta What is the point of tagging a question with both a parent and a child tag?

I can provide an answer based on Stack Overflow experience. SO offered watches by tags. By using a general tag along with a more specific tag, users interested in [sql] will also get the question i...

posted 3y ago by Alexei‭

Answer
60%
+1 −0
Q&A How can I can I reduce the size of a SQL Server database after being restored and massive embedded files stripped?

One way to solve this is to shrink the database and reindex all tables to fix the indexes fragmentation: DBCC SHRINKDATABASE (TheDatabase); GO -- reindexing all tables to optimize performance ...

posted 3y ago by Alexei‭

Answer
60%
+1 −0
Q&A How can I can I reduce the size of a SQL Server database after being restored and massive embedded files stripped?

My project has the following set up for the production and preproduction ("clone") environment. Production is not accessible at all for the development team, only the preproduction database. Pr...

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

50%
+0 −0
Q&A How to create a delayed loading indicator when working with ngrx/store?

This heavily relies on this question which deals with another matter. In order to delay the loader, there must be a clear difference between the start of loaded from the caller's perspective and w...

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

Answer
60%
+1 −0
Q&A How to create a delayed loading indicator when working with ngrx/store?

I am working on an Angular application using ngrx and I have a loader state + reducer that is used to display a loader. However, very short AJAX calls cause a flicker and I need to delay showing th...

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

66%
+4 −1
Meta Is there a way to add expiration for questions tags?

Comments from this question reveal that there is some aggressive caching related to question tags (what tags are used for a question). Unfortunately, after changing tags for several questions I ha...

0 answers  ·  posted 3y ago by Alexei‭

Question support tags
60%
+1 −0
Meta What is our policy on tags?

Thanks for raising this question. My answers to your questions: What type of tags will we allow? (Should specific tags like [UrlRewrite] be allowed?) I am not sure what is the best way to deal wi...

posted 3y ago by Alexei‭

Answer
66%
+2 −0
Meta Phantom answer in my notification list

My notification list includes the following entry: New answer to your question 'How many votes are required for special actions...' However, there is no answer for that question. I imagine that ...

1 answer  ·  posted 3y ago by Alexei‭  ·  edited 3y ago by Monica Cellio‭

80%
+6 −0
Meta Should we get rid of [formula] tag and use more meaningful tags like [excel-formula] or [google-sheets-formula]?

We currently have quite a few questions tagged with formula. However, [formula] seems so general that I am inclined to replace it to a more specific formula based on the context. Examples: [excel-...

0 answers  ·  posted 3y ago by Alexei‭

Question discussion tags
80%
+6 −0
Q&A Which abstraction should I choose for background services and why?

I will provide an answer from a pragmatic perspective, rather than a direct answer to your question. This is particularly important when working on a real project (as opposed to homework). Short an...

posted 3y ago by Alexei‭

Answer