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.6k posts
 
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 3mo ago by Hyperlynx‭  ·  last activity 2mo 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 3mo ago by talex‭  ·  edited 3mo 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 2mo ago by harmony‭

Answer
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 21d ago by Alexis Wilke‭

Answer
71%
+3 −0
Q&A How does the strict aliasing rule enable or prevent compiler optimizations?

Inspired by https://meta.stackoverflow.com/questions/432242, and the relevant main-space questions. I have heard that C and C++ something called the "strict aliasing rule", which means for exa...

2 answers  ·  posted 1mo ago by Karl Knechtel‭  ·  last activity 1mo ago by Lundin‭

71%
+3 −0
Meta Comparing our site scope to Stack Overflow

The main difference between Stack Exchange and Codidact is that SE loves to spawn off hundreds of sites with lots of overlapping scopes, whereas Codiact has the category system, which means that co...

posted 1mo ago by Lundin‭

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 1mo ago by Karl Knechtel‭  ·  edited 1mo ago by Karl Knechtel‭

Answer
71%
+3 −0
Meta Comparing our site scope to Stack Overflow

We've had discussions before about the site's intended scope (range of permissible topics and questions), but for new users coming from the Stack Exchange network, I think it would be useful to dra...

2 answers  ·  posted 1mo ago by Karl Knechtel‭  ·  last activity 1mo ago by Lundin‭

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 2mo ago by LyndonGingerich‭  ·  last activity 1mo 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 2mo ago by Lundin‭

Answer
71%
+3 −0
Q&A Understanding Virtual Environments for Python

Why The most important ideas behind virtual environments are: Since there is a separate site-packages, you can isolate the dependencies of your project. This is especially important for testi...

posted 6mo ago by Karl Knechtel‭

Answer
71%
+3 −0
Q&A Choosing between multiple Python installations (environments) on the same computer

I have multiple installations of Python on my machine. When I run Python, what determines which installation is used? How can I control this?

1 answer  ·  posted 7mo ago by Karl Knechtel‭  ·  edited 6mo ago by Karl Knechtel‭

71%
+3 −0
Q&A Regex to get text outside brackets

I am trying to capture the content outside square brackets in groups, using this regex: (.*)\[.*?\](.*) And it works perfectly for a simple string like this: testing_[_is_]_done This is the...

2 answers  ·  posted 6mo ago by TonyMontana‭  ·  last activity 23d ago by hkotsubo‭

Question regex python-3
71%
+3 −0
Q&A How can I start my Python code, from the code itself?

I have already learned how to tell the Python interpreter to run my code, but the standard approach feels a little unsatisfactory. I want the user experience to be that my program starts with the a...

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

Question python startup
71%
+3 −0
Q&A Why does `tkinter` (or `turtle`, or IDLE) seem to be missing or broken? Isn't it part of the standard library?

General This question and answer are adapted from my original write-up on Stack Overflow, which you may consult for more details. This version is crafted as to be a clear overview, without referri...

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

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

Contrary to popular belief, Pip is not part of the Python standard library - although it comes as part of a standard distribution of Python. Pip is developed and maintained by the arms-length Pytho...

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

Answer
71%
+3 −0
Q&A Choosing between multiple Python installations (environments) on the same computer

This answer assumes only installations of the reference "CPython" implementation, as provided by the official website at https://www.python.org. Other installations - such as those provided by th...

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

Answer
71%
+3 −0
Q&A Where does the name of the `pure` function in the `Applicative` type class come from?

A direct answer to your question of where the name comes from is the paper that introduced Applicative functors, Applicative programming with effects (PDF). Quoting from there: The idea is that ...

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

Answer
71%
+3 −0
Q&A What's the difference between colorMode and uiMode?

In setting android:configChanges in AndroidManifest.xml, what is the difference between colorMode and uiMode? I hear uiMode is for changes between light/dark modes, which sounds exactly what colorM...

1 answer  ·  posted 7mo ago by Ullallulloo‭  ·  last activity 6mo ago by zmzaps‭

Question android
71%
+3 −0
Q&A What does "parameterised type in the positive / negative position" mean in the context of invariant functors?

"Invariant" isn't really the right word to search, though that's clearly not obvious. The idea is that we have covariant functors where if we have a -> b we can make f a -> f b, and contravar...

posted 7mo ago by Derek Elkins‭

Answer
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 6mo ago by Derek Elkins‭  ·  edited 6mo 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 6mo ago by congusbongus‭

Answer
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 6mo ago by ghost-in-the-zsh‭  ·  last activity 2mo ago by ghost-in-the-zsh‭

Question rust
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 6mo ago by Alexei‭  ·  last activity 3mo ago by Lundin‭

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 6mo ago by Melkor-1‭  ·  edited 6mo ago by Melkor-1‭

Question c c23 typeof