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
 
77%
+5 −0
Q&A Recursion without a procedure ("function") in JavaScript

Yes, it's possible. In a more general way, every recursive algorithm can be converted to an iterative one (and vice-versa). You just need to use a stack. Internally, a recursive function will use...

posted 2y ago by hkotsubo‭

Answer
77%
+5 −0
Q&A What does a variable followed by parentheses ("ptr()") mean?

What does ptr() mean in this code? An expression like ptr followed by parentheses as in ptr() is a function call. In your example, ptr is a variable of type "pointer to function" because of t...

posted 2y ago by Dirk Herrmann‭  ·  edited 2y ago by Dirk Herrmann‭

Answer
77%
+5 −0
Q&A Recursion without a procedure ("function") in JavaScript

The typical way to do something like this without involving recursion would be to build an array and iterate through that. However, in this case, recursion is a more appropriate option. With tree ...

posted 2y ago by ArtOfCode‭

Answer
77%
+5 −0
Meta Software recommendations category

At some extent, you can ask about (programming-related) software recommendations if you manage to narrow down the scope to something specific. A question like "which one of compiler x and compiler ...

posted 3y ago by Lundin‭

Answer
77%
+5 −0
Meta Should I post a link to the Github repo for code reviews?

Welcome! It's best if the code being reviewed is here on the site, for ease of reference and defense against link rot. That sounds like a sizable program; are there key parts you'd like review on...

posted 3y ago by Monica Cellio‭

Answer
77%
+5 −0
Meta Software recommendations category

Shouldn't it be a category of Software Development too? Probably not Unless it is a very specific question as in the examples provided by Lundin which are clearly related to software developm...

posted 3y ago by Alexei‭

Answer
77%
+5 −0
Q&A noreturn function with non-void return type

Is it legal ISO C to declare a function as noreturn with a non-void return type (but of course not actually returning)? As far as I can read from the standard, it seems legal. Example: noreturn ...

1 answer  ·  posted 3y ago by alx‭  ·  edited 3y ago by alx‭

77%
+5 −0
Q&A Is it OK to use scanf with a void pointer?

Void pointers are compatible with every other object pointer type and as mentioned in another answer, 7.21.6/10 speaks of the type of the pointed at object, not the type of the pointer. This is con...

posted 3y ago by Lundin‭  ·  edited 3y ago by Lundin‭

Answer
77%
+5 −0
Q&A Conditions which always matches returns no result with CTE

Wrong operator. To test for NULL, use the IS NULL and IS NOT NULL operators ... You cannot use arithmetic comparison operators such as =, <, or <> to test for NULL.

posted 3y ago by Peter Taylor‭

Answer
77%
+5 −0
Meta Specify framework / library version in the answer

As Stack Exchange (Stack Overflow mostly) is struggling to deal with outdated answers, they came with a proposal that we can learn from: Version labels for answers As already most of the feedback...

2 answers  ·  posted 3y ago by Alexei‭  ·  edited 3y ago by Alexei‭

Question discussion answers
77%
+5 −0
Meta Are general questions (hopefully resulting in comprehensive, 'canonical' answers) in scope

Generally these questions are fine, though they should come with specific examples, so that they become clearer and can get narrowed-down. I've done a lot of self-answered Q&A here and the hard...

posted 3y ago by Lundin‭

Answer
77%
+5 −0
Meta Are general questions (hopefully resulting in comprehensive, 'canonical' answers) in scope

I think that questions about programming paradigms fall under the umbrella of "questions about software design or software architecture" and are thus on topic. There have also been several questio...

posted 3y ago by meriton‭

Answer
77%
+5 −0
Q&A How to open a file and edit its content in groovy script

I have a Makefile in my Jenkins job's workspace, that I want to edit out certain parts from and then save it, before running next part of the script that uses this Makefile. The part that I want t...

2 answers  ·  posted 2y ago by Megan‭  ·  last activity 2y ago by Alexei‭

Question jenkins shell groovy
77%
+5 −0
Q&A Is it possible to write protocols for enumerations in Python?

There's one big difficulty with the proposed pattern. Enum instances are singleton instances of their particular class, and in general two enums from different classes are not equal even if they wr...

posted 2y ago by r~~‭

Answer
77%
+5 −0
Q&A How this recursive treewalker works?

To understand the concept of recursive tree traversal, I would like to give you an analogy. Imagine a labyrinth of rooms connected like a tree structure. That is, there is an entry to the first r...

posted 2y ago by Dirk Herrmann‭  ·  edited 2y ago by Dirk Herrmann‭

Answer
77%
+5 −0
Q&A Explaining the result of an arithmetic expression in JavaScript

The concept that is important to understand here is the concept of operator precedence. Assume you have an expression a + b * c. What does it mean? You could have the following options: (a + b) ...

posted 2y ago by Dirk Herrmann‭  ·  edited 2y ago by Dirk Herrmann‭

Answer
77%
+5 −0
Q&A How should one match a specialized version of a variant?

Let's say I have a variant that can hold a bunch of different types of values (say I got them from parsing a JSON or similar). using Value = std::variant<std::monostate, int, double, std::strin...

1 answer  ·  posted 2y ago by Moshi‭  ·  last activity 1y ago by Baum mit Augen‭

Question c++ variant
77%
+5 −0
Q&A Why can't a derived class add a const qualifier to a method?

Say we have an abstract class Foo declared as so: class Foo { public: virtual void test() = 0; }; Let's say that we make a derived concrete class FooDerived, and decide to mark it's ve...

2 answers  ·  posted 2y ago by Moshi‭  ·  last activity 2y ago by Dirk Herrmann‭

77%
+15 −3
Meta Questions easily answered by studying a beginner-level book

This scenario is not yet a problem for this site, but we will get there, since it's a huge problem for Stack Overflow: Someone just picks up a well-known programming language for the first time. T...

6 answers  ·  posted 3y ago by Lundin‭  ·  last activity 1y ago by Karl Knechtel‭

Question discussion on-topic
76%
+8 −1
Meta 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 -...

posted 3y ago by Alexei‭  ·  edited 3y ago by Alexei‭

Answer
76%
+8 −1
Q&A Styling with classes vs styling with CSS

I've noticed that a lot of sites have something like this going on: <div class="has-margin-0 has-padding-4"> <div>...</div> <div>...</div> ... </div>...

1 answer  ·  posted 4y ago by Moshi‭  ·  last activity 4y ago by luap42‭

76%
+8 −1
Meta Email alerts for notifications

How can I get an email when I get a notification on Codidact? I missed an answer because I thought I would get an email for it.

2 answers  ·  posted 10mo ago by LyndonGingerich‭  ·  last activity 9mo ago by Olin Lathrop‭

76%
+11 −2
Meta Do we want a wiki (or similar) alongside Q&A?

In addition to Q&A, Codidact supports another post type, article. Articles can be used for blog posts, wiki pages, and other resources. Articles, like questions, use tags, so searching for a ...

5 answers  ·  posted 4y ago by Monica Cellio‭  ·  last activity 1y ago by matthewsnyder‭

Question discussion
76%
+11 −2
Meta Should we allow answers generated by ChatGPT?

Now that we've had a few of these answers, I really don't like them. It seems there are three separate problems with the ChatGPT answers we have seen: Quote-only. Just like we don't allow link-o...

posted 2y ago by Olin Lathrop‭

Answer
75%
+4 −0
Q&A How would I fix my IntelliJ IDE? It cannot open and re-installing does not work.

So I was looking around for some async solutions and I found one on github, https://github.com/electronicarts/ea-async I follow the setup instructions for maven. Only to realize it didn't work (I ...

1 answer  ·  posted 2y ago by cuzzo‭  ·  last activity 2y ago by cuzzo‭