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 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 7mo ago by Karl Knechtel‭  ·  edited 7mo 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 7mo ago by Karl Knechtel‭  ·  last activity 7mo 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 8mo ago by LyndonGingerich‭  ·  last activity 7mo 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 8mo ago by Lundin‭

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 12mo ago by Derek Elkins‭  ·  edited 12mo 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 12mo 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 12mo ago by Alexei‭  ·  last activity 9mo 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 12mo ago by ghost-in-the-zsh‭  ·  last activity 8mo 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 12mo ago by Karl Knechtel‭  ·  last activity 12mo ago by Karl Knechtel‭

Question python standard-library
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 11mo ago by matthewsnyder‭  ·  last activity 9mo 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 11mo ago by Michael‭  ·  edited 9mo 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 12mo ago by Melkor-1‭  ·  edited 12mo 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 11mo 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 12mo ago by trichoplax‭  ·  edited 12mo 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 11mo ago by Andreas demands justice for humanity‭  ·  last activity 10mo 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 12mo ago by Trevor‭  ·  edited 12mo ago by Trevor‭

Question ffmpeg
71%
+3 −0
Q&A Setting custom HTTP status code messages in nginx

In Nginx specifically, you can’t actually override the reason phrase for arbitrary status codes like 200 Could Be Worse via config. The return 200 "message" directive isn’t changing the reason phra...

posted 2mo ago by Ancepaid‭

Answer
71%
+3 −0
Q&A Why force designation of a remote main branch?

As far as I can see, the GitHub documentation does not refer to a "primary" branch but it does refer to a "default" branch. This may seem like verbal nit-picking but I think it's an important disti...

posted 3mo ago by InfiniteDissent‭

Answer
71%
+3 −0
Q&A How to find the last line number of a section in a text file (particular format)

I'm writing a function which reads specified sections in a text file formatted a particular way, but I'm having a hard time figuring out how to locate the last line number. Here's an example of the...

1 answer  ·  posted 3mo ago by pycoder‭  ·  edited 2mo ago by hkotsubo‭

Question python python-3
71%
+3 −0
Meta How can we grow this community?

Cite good Q&A elsewhere For example: I was saddened to realize that, as of me writing this, a question and/or answer from Software Development has never been submitted on Hacker News. The doma...

posted 3mo ago by Karl Knechtel‭

Answer
71%
+3 −0
Q&A What is the advantage of creating instances from a method rather than constructor?

There are at least two reasons I can see that would motivate this decision (and similar decisions generally), but first it pays to read what the documentation says. Quoting the pages you reference...

posted 3mo ago by Derek Elkins‭

Answer
71%
+3 −0
Q&A Casting a non-`void` pointer to `uintptr_t`

If reading the standard strictly by the letter then you are correct. And therefore both CERT and MISRA are picky with these kind of conversions because they strive to cover all poorly-defined behav...

posted 4mo ago by Lundin‭

Answer
71%
+3 −0
Q&A Syntax match any 2 spaces at end of line

A Fix An existing pattern needs to be cleared to allow the new rule to match on any 2 trailing spaces: syntax clear markdownLineBreak syntax match markdownLineBreak '\s\{2}$' conceal cchar=⏎ ...

posted 1y ago by rcmosher‭

Answer
71%
+3 −0
Meta Don't close questions for lack of detail/confusion

I think the problem is in the language of the status. "Closed" is not final, but it does sound like it, and as a new user who is seeking an answer, it can be received as affronting. Can we introdu...

posted 1y ago by milohax‭

Answer
71%
+3 −0
Q&A How to iterate over numpy array axes in array slicing?

In short, I want to access a multidimensional array, starting with an entry, say a 4D array called "new_array". new_array[0,1,2,3] and getting as an output the sliced arrays new_array[:,1,2,3],n...

1 answer  ·  posted 1y ago by purplenanite‭  ·  last activity 1y ago by r~~‭

Question python numpy