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.

Activity for Alexei‭

Type On... Excerpt Status Date
Answer A: Why static code analyzers such as SonarQube indicate a high code complexity for switch statements?
I would skip the theoretical part of actually computing the cyclomatic complexity of a switch statement and mention that it can see as a bunch of `if` statements. Since each `if` adds to the complexity, the higher the number of `case`s, the higher the complexity. While a simple switch such as the ...
(more)
about 3 years ago
Edit Post #285836 Post edited:
added language tag
about 3 years ago
Edit Post #285836 Post edited:
added relevant code
about 3 years ago
Edit Post #285836 Initial revision about 3 years ago
Question Why static code analyzers such as SonarQube indicate a high code complexity for switch statements?
During a presentation of a pipeline configuration, a colleague showed a SonarQube integration and one of its reports. A warning was caused by overrunning the max value for the code complexity threshold in a function containing a fairly large switch statement. Why are switch statements considered t...
(more)
about 3 years ago
Comment Post #285829 I agree and I will wait for a few days for other feedback before adding a line to the on-topic list.
(more)
about 3 years ago
Edit Post #285828 Post edited:
fixed the title
about 3 years ago
Edit Post #285828 Initial revision about 3 years ago
Question Should we allow questions about software quality assurance?
I would like to ask a question about the pros/cons of using a library or more generally a way of assertion of complex data models. This is more related to testing than it is to actual coding, but it is certainly tied to writing code. I am wondering if we should allow such questions in our comm...
(more)
about 3 years ago
Edit Post #285823 Initial revision about 3 years ago
Question Migrating HTML strings to a more secure alternative
Our team will have to migrate an old application to use a new tech stack. One of the features involves the usage of HTML editors which serialized the content as HTML and I am able to see valid HTML in the database for those fields. The HTML editor is quite limited (text formatting, links, but no s...
(more)
about 3 years ago
Edit Post #285784 Question closed about 3 years ago
Edit Post #285810 Post edited:
added relevant tag + minor title fix
about 3 years ago
Edit Post #285812 Post edited:
added relevant tags + minor fixes
about 3 years ago
Edit Post #285807 Initial revision about 3 years ago
Question Rationale of using database-level transactions inside a store procedure when application layer already manages a transaction
One of the legacy applications my team has to maintain has almost always this pattern for dealing with data modification: ```c# try { // get the connection // begin transaction // optional execution of some changes // optional call stored procedure // optional execution of o...
(more)
about 3 years ago
Edit Post #285769 Post edited:
removed irrelevant tag
about 3 years ago
Comment Post #285800 @#8176 I have used "branch prediction" in this case. Your answer already has +4 and I can make amendments to the on-topic/off-topic section as feedback comes.
(more)
about 3 years ago
Edit Post #285801 Post edited:
added relevant tag
about 3 years ago
Comment Post #285800 I have already integrated your feedback in the What type of questions can I ask here? section as it provides a good explanation about what is on-topic and what is not. Thanks.
(more)
about 3 years ago
Edit Post #278625 Post edited:
added UI/UX feedback from Lundin
about 3 years ago
Edit Post #285735 Post edited:
fixed the reference
about 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)
about 3 years ago
Edit Post #285735 Post edited:
added action based on feedback
about 3 years ago
Edit Post #278625 Post edited:
added UI/UX in the ontopic list
about 3 years ago
Edit Post #285770 Initial revision about 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)
about 3 years ago
Edit Post #285769 Initial revision about 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)
about 3 years ago
Edit Post #285750 Post edited:
made the title easier to read
about 3 years ago
Edit Post #285750 Post edited:
added relevant tag
about 3 years ago
Edit Post #285745 Post edited:
simplified the title
about 3 years ago
Edit Post #285746 Initial revision about 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)
about 3 years ago
Edit Post #285745 Post edited:
fixed the title
about 3 years ago
Edit Post #285745 Initial revision about 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)
about 3 years ago
Edit Post #285742 Post edited:
added relevant tags
about 3 years ago
Edit Post #285735 Post edited:
simplified the title
about 3 years ago
Edit Post #285739 Post edited:
about 3 years ago
Comment Post #285735 @#8049 Done. It makes more sense as you mentioned. Thanks.
(more)
about 3 years ago
Edit Post #285739 Initial revision about 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)
about 3 years ago
Edit Post #285735 Post edited:
removed proposal info from the question
about 3 years ago
Edit Post #285735 Initial revision about 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)
about 3 years ago
Edit Post #285676 Post edited:
added relevant tag
about 3 years ago
Edit Post #285620 Post edited:
added relevant tags
about 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)
about 3 years ago
Edit Post #285574 Initial revision about 3 years ago