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.

Search

Advanced Search Options

To further refine your search, you can use additional qualifiers such as score:>0.5. For example, the search score:>=0.5 created:<1y grammar would return only posts mentioning "grammar" that have a score >= 0.5 and were created less than a year ago.

Further help with searching is available in the help center.

Quick hints: tag:tagname, user:xxx, "exact phrase", post_type:xxx, created:<N{d,w,mo,y}, score:>=0.5

Filters
2.3k posts
 
60%
+1 −0
Q&A How do I share a type between a client and server, but make a specific field optional for one and required for the other?

The existing answer is fine, but you can achieve similar results in many ways using some of TypeScript's utility types. Required<T> While you cannot use (only) Partial to do this, TypeScrip...

posted 10d ago by Jacob Raihle‭  ·  edited 10d ago by Jacob Raihle‭

Answer
50%
+0 −0
Q&A How do I choose the correct Perl module from these variations?

Realistically in 2024, you should be using Cpanel::JSON::XS, and JSON::MaybeXS. Cpanel::JSON::XS is by far the best JSON implementation for Perl, but not every platform will have it, so you can use...

posted 10d ago by ivan‭

Answer
60%
+1 −0
Q&A Can I conditionally include class members without using #ifdef?

There's nothing as elegant as if constexpr, unfortunately. However, it is possible to achieve the practical effects (member functions and data only present conditionally). Start by creating a clas...

posted 10d ago by Angew‭

Answer
60%
+1 −0
Q&A How do you fix 'Failed to load the dll hostfxr.dll' when starting an x86 .NET process in a test run via dotnet test?

Remove DOTNET_ROOT environment variable before process start process.StartInfo.EnvironmentVariables.Remove("DOTNET_ROOT"); Another option is to use the x86 .NET SDK for running the tests: ...

posted 11d ago by riQQ‭

Answer
50%
+0 −0
Q&A How do you fix 'Failed to load the dll hostfxr.dll' when starting an x86 .NET process in a test run via dotnet test?

How do you fix the error 'Failed to load the DLL hostfxr.dll' when running a .NET test executed via dotnet test and starting an x86 .NET application in the test? I'm using .NET 8. Failed to load ...

1 answer  ·  posted 11d ago by riQQ‭  ·  last activity 11d ago by riQQ‭

Question .net
50%
+0 −0
Q&A How to hide files from the VS Code sidebar without pattern matching?

There are a few VSCode extensions that may be useful: Simple hide files allows you to hide individual files using a pane in the side bar. Make hidden allows you to hide a file via a right-click m...

posted 11d ago by TomJB1‭

Answer
50%
+0 −0
Q&A Tools for debugging coredumps

It's rare that you find a software tool that does exactly what you want in the way that you want. Hence the popularity of scripting languages among software developers for doing all sorts of littl...

posted 12d ago by Invisible Mender‭

Answer
66%
+2 −0
Q&A Can I conditionally include class members without using #ifdef?

#ifdef sections can, of course, be used to include or exclude chunks of code based on some criteria known at compile time. One big problem is that when the condition is evaluated to false, the chun...

1 answer  ·  posted 12d ago by Hyperlynx‭  ·  last activity 10d ago by Angew‭

Question c++
50%
+0 −0
Q&A Maven exec:exec fails to see executables

The groupId and artifactId are wrong (this plugin is not from Maven but from codehaus). Additionally, the configuration is not applied to the relevant execution. If you reshuffle the part like so… ...

posted 12d ago by mirabilos‭

Answer
60%
+1 −0
Q&A ServletContext matched by more than 1 path

The javadoc for ServletContext.getContextPath() says that It is possible that a servlet container may match a context by more than one context path. I was trying to find any explanation how t...

0 answers  ·  posted 19d ago by morgwai‭

50%
+0 −0
Q&A When to use custom iterators versus pointers

However, I suspect that most iterators can be written as iterating over an array. From my experience, I wouldn't expect this to be the case. From the standard library containers, only std::vec...

posted 20d ago by Angew‭

Answer
60%
+1 −0
Q&A Migrating from Az Co DB NoSQL to Az Co DB MongoDB, error?

From my own trial and error the solution was to temporarily increase the Read Units Per Second for the MongoDB. Then it worked flawlessly to import.

posted 24d ago by propatience‭

Answer
50%
+0 −0
Q&A Migrating from Az Co DB NoSQL to Az Co DB MongoDB, error?

With Azure Data Factory I tried migrating from Azure Cosmos DB NoSQL to Azure Cosmos DB MongoDB. The export went fine from the NoSQL but the import to the MongoDB did not work. I got no reasonable ...

1 answer  ·  posted 24d ago by propatience‭  ·  last activity 24d ago by propatience‭

75%
+4 −0
Q&A How and where does Python code start running? How can I control that?

Files with .py extension are scripts. You run them with python myscript.py. Python is an imperative language, so executing a file will run each line one by one, starting from the top, and exit whe...

posted 24d ago by matthewsnyder‭

Answer
71%
+3 −0
Code Reviews Github workflow for a C application

This is my first try at automating building and testing some C code for these platforms: Linux Windows MacOS OpenBSD (arm64 and x86-64) FreeBSD (arm64 and x86-64) NetBSD Oracle Solaris Om...

0 answers  ·  posted 25d ago by Melkor-1‭  ·  edited 21d ago by Melkor-1‭

Question yaml github ci/cd
40%
+0 −1
Q&A Addressing W25Q64 flash IC [closed]

I am using a W25Q64 flash ic to store some stuff for an ESP-32 project. I used this library from Github as it seems intended for ESP. It seemed weird that the read function uses two 16-bit paramet...

0 answers  ·  posted 25d ago by HinkyDinky‭  ·  closed 25d ago by Lundin‭

Question flash-memory ESP-32
66%
+2 −0
Q&A Why does `distutils` seem to be missing or broken? Isn't it part of the standard library?

Understanding distutils and setuptools: the history The short version of "why does installing Setuptools fix the problem?" is that Setuptools provides its own distutils package, overriding anythin...

posted 25d ago by Karl Knechtel‭  ·  edited 25d ago by Karl Knechtel‭

Answer
60%
+1 −0
Q&A Why does `distutils` seem to be missing or broken? Isn't it part of the standard library?

Sometimes when I try to install a third-party library for Python, I get an error saying that either distutils, or some part of it like distutils.core or distutils.util, could not be found. It's sho...

1 answer  ·  posted 25d ago by Karl Knechtel‭  ·  last activity 25d ago by Karl Knechtel‭

66%
+2 −0
Q&A Best practices for business versioning within Web APIs

Context Our team is developing a solution mainly composed of several microservices relying on ASP.NET Core. We have decided that the simplest and most cost-effective solution would be for service...

0 answers  ·  posted 27d ago by Alexei‭  ·  edited 27d ago by Alexei‭

50%
+0 −0
Q&A PGP sign emails sent with git-send-email(1)

git-send-email(1) uses sendmail(8) as the MTA by default. However, this can be changed by passing the --sendmail-cmd option. $ man git-send-email | sed -n '/--sendmail-cmd=/,/^$/p' --sendma...

posted 27d ago by alx‭  ·  edited 27d ago by alx‭

Answer
60%
+1 −0
Q&A What determines where the focus goes back to when clicking on a browser's back button?

Short answer The HTML specification only addresses scroll position restoration behavior, so the main factors that influences where focus will land when navigating the browser history are: user ...

posted 28d ago by toraritte‭  ·  edited 28d ago by toraritte‭

Answer
70%
+5 −1
Q&A How and where does Python code start running? How can I control that?

Starting up Python There are several key ways to use the python command from the command line: python by itself starts a REPL that allows typing in and running Python code on the fly, one sta...

posted 29d ago by Karl Knechtel‭

Answer
77%
+5 −0
Q&A How and where does Python code start running? How can I control that?

Suppose I have some code in a file myscript.py like: def my_function(): print("Test") What steps do I need to take in order to make my_function run? That is to say: how do I get Python to ...

2 answers  ·  posted 29d ago by Karl Knechtel‭  ·  last activity 10d ago by Monica Cellio‭

75%
+4 −0
Q&A When to use custom iterators versus pointers

I am working on a toy project where I have a container for which I would like to write an iterator that iterates over the values in the container. Because the values are stored in a (c-style) arra...

1 answer  ·  posted 1mo ago by mr Tsjolder‭  ·  last activity 20d ago by Angew‭

Question c++ iterator
60%
+1 −0
Q&A How to merge Django model query results?

Just found the How Can I Combine Two or More QuerySets in a Django View? article by James W. that perfectly answers my question (and just learned that a "Django model query" is called a QuerySet). ...

posted 1mo ago by toraritte‭

Answer