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
 
85%
+10 −0
Q&A How to declare variable-length arrays correctly?

C programs are executed from top to bottom. You can't declare a VLA with an uninitialized variable as its size parameter. For the same reason at you can't do this: int x; printf("%d\n",x); scanf...

posted 2y ago by Lundin‭  ·  edited 9mo ago by Lundin‭

Answer
85%
+10 −0
Meta Unfair accusation in a comment and consequent loss of *actual* reputation

I looked at your answer and those comments, skimmed the Wikipedia page, and I do not see direct copies. OOP is a fundamental topic, widely taught and widely written about. It's not surprising to ...

posted 3y ago by Monica Cellio‭

Answer
85%
+10 −0
Q&A How to properly use malloc?

I have seen this construct quite a lot: int *p = (int*) malloc(n * sizeof(int)); Is this how it should be? What is the proper way to use malloc? I have also seen this: int *p = malloc(n * size...

3 answers  ·  posted 2y ago by klutt‭  ·  last activity 9mo ago by Lundin‭

85%
+10 −0
Meta How can we grow this community?

As a (for now at least) casual user, I can report that a bad first impression is that there are way too many "500 server errors". Within a few tens of minutes I ran into two, one for some profile ...

posted 2y ago by Peter Mortensen‭  ·  edited 2y ago by Peter Mortensen‭

Answer
85%
+10 −0
Q&A Is it possible to undo a git reset?

For some reason, I just wanted to undo a commit on my git repository, which I've done with the following command: git reset --soft HEAD~1 So far, so good. However, by mistake I issued the comma...

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

Question git git-reset
85%
+10 −0
Q&A Vim: how to search for all instances of a string, except for those that are between two specific strings

Using Vim, I am trying to search for all instances of a specific string, except for those that fall somewhere in between two other specific strings. For example, I want to determine all instances ...

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

85%
+10 −0
Q&A Is it possible to undo a git reset?

If you've committed, then the commit is in the git repo regardless. All git reset does is change what commit the HEAD references. If you find the hash corresponding to the commit you'd like HEAD to...

posted 2y ago by Derek Elkins‭

Answer
85%
+10 −0
Meta To transfer, or not to, that is the question: whether 'tis nobler to let it stay or to take arms against Stack Overflow's dominance of FAQ canonicals

It would be much better split into separate questions. Users have to scroll, ctrl-f search, or wade through a lot of info that irrelevant to their problem to get to the section that helps them. ...

posted 10mo ago by Stephen Ostermiller‭

Answer
85%
+10 −0
Q&A How to proportionally convert a number in the range of -1 and 1 to a number in the range of 0 and 319

There is one thing to clarify when mapping a float interval to an integer interval, namely how the boundaries of the float interval shall be mapped to the boundaries of the integer interval. Takin...

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

Answer
85%
+10 −0
Q&A How to manage user-specific application data on Linux?

I am developing an application that targets Linux-based OS, and I need to store the user's configuration, metadata and other things in a persistent way (i.e. on the file system). I know that one c...

3 answers  ·  posted 1y ago by Björn‭  ·  last activity 1y ago by celtschk‭

85%
+10 −0
Q&A How to define an object with different subclasses in an if-statement?

What's going on is that the compiler is deciding on what function to call at compile time rather than runtime. Since the type of vh is Vehicle *, it is essentially creating this call: vh->Vehic...

posted 1y ago by Moshi‭

Answer
85%
+10 −0
Q&A What is C23 and why should I care?

C23 will be a major revision, certainly the biggest one since C99. It contains lots of changes and new features, both big and small. The linked draft in the question contains a complete list of cha...

posted 9mo ago by Lundin‭  ·  edited 9mo ago by Lundin‭

Answer
85%
+10 −0
Q&A Git: How to clone only a few recent commits?

How do I clone the repository with only part of the history? It depends on what part you want. It's possible to have shallow clones (which is exactly what you need, only a part of the commit h...

posted 9mo ago by hkotsubo‭  ·  edited 9mo ago by hkotsubo‭

Answer
85%
+10 −0
Meta How can we grow this community?

Search engine optimization? I thought this goes without saying, but apparently we aren't doing too well there for some reason. The other day I was having a discussion with someone at SO regarding...

posted 8mo ago by Lundin‭  ·  edited 8mo ago by Lundin‭

Answer
85%
+15 −1
Meta How can we grow this community?

Just my two cents: I found this community because of someone's username on Stack Overflow. That's probably a good start. However I then typed 'codidact' into Google. The first result was codid...

posted 2y ago by metal.carratt‭

Answer
84%
+9 −0
Q&A How to properly use malloc?

Should we cast the result of malloc? The cast to the intended type is not necessary in C, since during assignment, the void* returned by malloc can be implicitly converted to any other object poin...

posted 2y ago by Lundin‭  ·  edited 9mo ago by Lundin‭

Answer
84%
+9 −0
Meta Should we allow questions about software quality assurance?

My personal opinion (I am not speaking for Codidact) is that we named the community "Software Development", not "Programming". Testing, both unit testing done by the developer and functional/perfo...

posted 2y ago by Monica Cellio‭

Answer
84%
+9 −0
Q&A Should I check if pointer parameters are null pointers?

As with most everything in engineering, how much call arguments to a subroutine should be validated is a tradeoff. There is no single universal right answer. Note that checking for null pointers ...

posted 2y ago by Olin Lathrop‭

Answer
84%
+9 −0
Q&A Is it dangerous to use json.loads on untrusted data?

Short answer: No, it's not dangerous. Short of bugs in the implementation or monkey-patching, there's no reason it would or should allow executing of anything other than the JSON parsing code. Thi...

posted 2y ago by Derek Elkins‭  ·  edited 2y ago by hkotsubo‭

Answer
84%
+9 −0
Q&A Is it dangerous to use json.loads on untrusted data?

I manage a wsgi application that accepts JSON data via POST from potentially untrusted sources. Normally it is treated as a text blob and never parsed, but there is a value in the expected input th...

1 answer  ·  posted 2y ago by ajv‭  ·  last activity 2y ago by hkotsubo‭

Question python json security
84%
+9 −0
Q&A Vim: how to search for all instances of a string, except for those that are between two specific strings

Alternating between the two patterns seems to work! \(abc.*\)\@<!bird\|bird\(.*xyz\)\@! As a bonus, you can enable the very magic mode with \v to avoid backslashes! The resulting expression is ...

posted 2y ago by Quasímodo‭

Answer
84%
+9 −0
Q&A What is Backus–Naur form as applied in computer programming?

For writing pseudocode? No. BNF is a notation—in practice, a family of similar notations, like how Markdown is a family of similar markup languages—for defining grammars. In software development a...

posted 2y ago by r~~‭

Answer
84%
+9 −0
Meta How do I search for "i++"?

I once wrote this post here: Why can't we mix increment operators like i++ with other operators? When using Codidact search looking for that post, I tried to type i++ in the search but it didn't l...

1 answer  ·  posted 2y ago by Lundin‭  ·  last activity 2y ago by ArtOfCode‭

Question support searching
84%
+9 −0
Q&A Are there references in C?

When reading posts at programming sites such as this one, I frequently encounter people saying things like: "There is no pass-by-reference in C, everything is passed by value." People claiming su...

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

84%
+9 −0
Meta Promoting the advantages Codidact Software has over Stack Overflow or similar communities

Note: some of these points are relevant for all communities, but I would like to focus on Software Development for now I am thinking of promoting Software Codidact, but I could not find a single p...

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