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
 
71%
+3 −0
Q&A How can I get the same "not all control paths return a value" behaviour across Clang and MSVC?

You can't - but there are some workarounds. Based on two answers from the VS forums (1 (2020), 2 (2023)), this behaviour is by design, and it doesn't appear to be configurable. Aside MSVC, GCC wo...

posted 7mo ago by Zoe‭

Answer
71%
+3 −0
Q&A How can I get the same "not all control paths return a value" behaviour across Clang and MSVC?

I've recently discovered that it's not actually an error to have control reach the end of a non-void function without returning anything, it's merely undefined behaviour. I want to promote the rele...

2 answers  ·  posted 7mo ago by Hyperlynx‭  ·  last activity 6mo ago by celtschk‭

Question c++ clang msvc
71%
+3 −0
Q&A Execute SQL queries stored in a table

Let's say I have a table with SQL statements in a column. I want to execute them all. create table sql_command( sql_text text ) I know how to execute one SQL statement using EXEC, but I wa...

1 answer  ·  posted 8mo ago by talex‭  ·  edited 8mo ago by Michael‭

Question sql postgresql
71%
+3 −0
Q&A How can I properly implement Hexagonal Architecture and Domain Driven Design in the same application?

Adapters are implemented in different layers based on their function. Input adapters (like REST controllers) are at the application's edge to handle incoming requests, while output adapters (like d...

posted 6mo ago by harmony‭

Answer
71%
+3 −0
Q&A multi-arch code fails on mingw 64bits

I have a C/++ codebase that compiles in Windows x86_64 targeting x86 using the mingw32 32-bit shell of the MSYS64 project. (It also compiles fine on linux x86/x86_64 and android's 4 archs.) Howev...

0 answers  ·  posted 8mo ago by JohnRando‭  ·  edited 8mo ago by JohnRando‭

Question c c++ mingw
71%
+3 −0
Q&A Turn all changes after latest origin/main into a branch

I have a git history that basically looks like this: * commit: XXX (HEAD -> main) | | * commit: YYY | | * commit: ZZZ (origin/main) | | ... Now I would like to turn everything after...

2 answers  ·  posted 8mo ago by celtschk‭  ·  last activity 8mo ago by matthewsnyder‭

Question git
71%
+3 −0
Q&A Recursive traversal of composite tree of mutable "trait objects"?

A root.components field need not exist, so I'm not sure what you're hoping for. Also, I don't know if it's an issue with your description or your code, but the code will only return mutable referen...

posted 10mo ago by Derek Elkins‭  ·  edited 10mo ago by Derek Elkins‭

Answer
71%
+3 −0
Q&A Run Spark code without Spark?

As of version 2.2, installing pyspark will also install spark, so you can run pip install pyspark or equivalent and use it in your normal python environment. The pyspark getting started docs also ...

posted 10mo ago by congusbongus‭

Answer
71%
+3 −0
Meta Closing self-answered question due to not being clear enough

I have a hard time deciding if How to get conditional running cumulative sum based on current row and previous rows? should be closed or not. As mentioned in the comments, it was already flagged t...

3 answers  ·  posted 10mo ago by Alexei‭  ·  last activity 7mo ago by Lundin‭

Question discussion content-quality
71%
+3 −0
Q&A Recursive traversal of composite tree of mutable "trait objects"?

I'm working on a background service/daemon for an embedded device, in Rust. The daemon manages several hardware components and these are structured using the Composite design pattern. The composite...

2 answers  ·  posted 10mo ago by ghost-in-the-zsh‭  ·  last activity 6mo ago by ghost-in-the-zsh‭

Question rust
71%
+3 −0
Q&A What happened, or is happening, to other parts of the standard library? Why are they going missing?

In Python 3.12, I noticed that some libraries seem to be missing or "deprecated": >>> import asynchat Traceback (most recent call last): File "<stdin>", line 1, in <module&gt...

1 answer  ·  posted 10mo ago by Karl Knechtel‭  ·  last activity 10mo ago by Karl Knechtel‭

Question python standard-library
71%
+3 −0
Q&A What is the general process for merging two git branches, reviewing edits on each branch?

For completeness, I'll add some more obscure ways: If your goal is to simply move some changes from one branch to another, you can also use git rebase and git cherry-pick. These give you more cont...

posted 9mo ago by matthewsnyder‭

Answer
71%
+3 −0
Q&A How to format Markdown in terminal

When printing Markdown text to the terminal, how can I get a bit more formatting so it looks nicer? I realize that this is a bit of a contradiction, since terminals generally use only one font. Bu...

1 answer  ·  posted 9mo ago by matthewsnyder‭  ·  last activity 7mo ago by Michael‭

Question markdown python-3 software-recommendation pretty-print terminal
71%
+3 −0
Q&A How to format Markdown in terminal

This is not exactly what you're asking for, but you could use bat, which has source code syntax highlighting and just use the raw Markdown.

posted 9mo ago by Michael‭  ·  edited 7mo ago by Michael‭

Answer
71%
+3 −0
Q&A Are these two function pointer declarations equivalent?

Say I have two functions: FILE* get_input(const char fname[static 1]); FILE* get_output(const char fname[static 1]); And I wish to declare a function pointer and assign it the result of some p...

1 answer  ·  posted 10mo ago by Melkor-1‭  ·  edited 10mo ago by Melkor-1‭

Question c c23 typeof
71%
+3 −0
Q&A Wikidata: How do I ask for the start date of a property in SPARQL?

You can query for P580 (start time) qualifiers on P4033 (Mastodon address) statements like this: p:P4033 ?mastoStatement. ?mastoStatement pq:P580 ?joinedfediverse. Note the use of p: instead o...

posted 9mo ago by Ordoviz‭

Answer
71%
+3 −0
Meta Should beginner-oriented Q&A here include basic use of a terminal (command line) for developers?

Yes, tools used by developers are on topic here From the top of the front page (emphasis mine): General Q&A about programming, scripting, software design & architecture, process, tools,...

posted 10mo ago by trichoplax‭  ·  edited 10mo ago by trichoplax‭

Answer
71%
+3 −0
Q&A Prevent anonymously subclassing

Is it possible to somehow prohibit anonymously subclassing of a specific class? For instance, with a plain public parent class: public class Parent { } Extending this class should not be pos...

1 answer  ·  posted 9mo ago by Andreas demands justice for humanity‭  ·  last activity 8mo ago by Antares‭

Question java inheritance
71%
+3 −0
Q&A ffmpeg - concatenating identical audio-only files results in "non-montonic DTS" warning

I am trying to join some video files and have an issue. I have boiled down the problem to the following minimal working example. I create a 2-second mp4 with a silent audio stream: $ ffmpeg -f l...

0 answers  ·  posted 10mo ago by Trevor‭  ·  edited 10mo ago by Trevor‭

Question ffmpeg
71%
+3 −0
Q&A Understanding "logical OR" and "logical AND" in programming languages

One thing I'd like to add to Lundin and r.zwitserloot‭ answers, which is something that I think is rather important: The "or" in programming is inclusive. The "or" in most languages (all those I k...

posted 5mo ago by Alexis Wilke‭

Answer
71%
+3 −0
Q&A Simultaneous comparison in Python

Using and and or correctly The left-hand side and right-hand side of these operators should both be valid operands, which should each come from a comparison. Thus, we should repeat the comparison ...

posted 5mo ago by Karl Knechtel‭

Answer
71%
+3 −0
Q&A Understanding "de Morgan's laws"

Overview de Morgan's laws are rules of logic that allow you to transform one conditional expression into another, equivalent expression. Because (in Boolean logic) two negations cancel each other ...

posted 5mo ago by Karl Knechtel‭  ·  edited 5mo ago by Karl Knechtel‭

Answer
71%
+3 −0
Q&A Understanding "de Morgan's laws"

While trying to understand logical 'or'/'and', I encountered another problem (I'm writing Python code here, but my question is about the logic, not about any given programming language). I have som...

1 answer  ·  posted 5mo ago by Karl Knechtel‭  ·  last activity 5mo ago by Karl Knechtel‭

Question language-agnostic logic
71%
+3 −0
Q&A Do Where and OfType preserve List capacity?

Unless I am mistaken, myList.Select(a => a).ToList() initializes the resulting list to the capacity of myList.Count. Does myList.Where(a => true).ToList() do so or does it build up from the i...

1 answer  ·  posted 6mo ago by LyndonGingerich‭  ·  last activity 5mo ago by rcmosher‭

Question c# linq iterable list
71%
+3 −0
Q&A How do you implement polymorphism in C?

First of all please note that polymorphism in C is clunky. It won't be pretty. We don't have this pointers, we don't have RAII, we don't have automatic constructors/destructors. Just accept that it...

posted 6mo ago by Lundin‭

Answer