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.7k posts
 
90%
+16 −0
Q&A How to do private encapsulation in C?

The concept you are looking for is referred to as opaque type or opaque pointers. This is the proper method to achieve private encapsulation in C and can also be used for inheritance/polymorphism (...

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

Answer
89%
+15 −0
Q&A What's the correct way to merge a branch and its dependent branch back to master?

I think a branch is a set of commits Well, technically no, it's not. But first things first. DAG (Directed Acyclic Graph) Personally, Git became much more easier to understand after I've r...

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

Answer
89%
+15 −0
Meta Should we allow answers generated by ChatGPT?

I want to let you know that today we (Codidact team) posted our default Gen-AI policy. As far as this community is concerned I think it's consistent with what you're already doing and nothing surp...

posted 2y ago by Monica Cellio‭  ·  edited 2y ago by Monica Cellio‭

Answer
89%
+15 −0
Q&A How should we share some content between two otherwise-independent git repositories?

We have two teams, dev and doc, and I'd like them to have shared access (via git) to a common subset of content. Specifically, I would like the examples that are used in the doc and that are scrip...

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

89%
+15 −0
Q&A For scripting what are the pros and cons of command line arguments versus capturing input at the start?

Pros of CLI arguments/flags include: Easier to leverage the tool in another script or via other automation so that user interaction is not required If certain arguments are optional and/or have...

posted 4y ago by qohelet‭  ·  edited 4y ago by qohelet‭

Answer
89%
+15 −0
Q&A Is omitting braces for single statements bad practice?

While [the Apple "goto fail bug"] is pretty interesting, it's anecdotal evidence. I understand that it's still possible to produce bugs like this. One could also reasonably argue that it could ha...

posted 4y ago by Canina‭  ·  edited 4y ago by Canina‭

Answer
89%
+15 −0
Meta Growing software.codidact

We can't go and shamelessly promote Codidact in SO comments etc just for the sake of it - that's regarded as spamming and might get you banned, plus it will give Codidact a nasty rep. Similarly, SE...

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

Answer
89%
+15 −0
Q&A What does the static keyword do in C?

What exactly does the static keyword do in C? I have seen it used in several diverse contexts: 1) As a variable outside a function: #include <stdio.h> static int x = 5; int main (void) ...

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

89%
+15 −0
Meta Questions easily answered by studying a beginner-level book

What if a question is beginner level? I would say: Someone should answer it. Some of the beginner level questions on stackoverflow have received answers that explain things in wonderful ways. Be...

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

Answer
89%
+15 −0
Meta A milestone for Software Development - congratulations!

When we launch a community on our network, it starts in "new community" mode to ease bootstrapping. This means that all users start with the Participate Everywhere ability, which lifts new-user re...

1 answer  ·  posted 3mo ago by Monica Cellio‭  ·  last activity 2mo ago by Karl Knechtel‭

88%
+14 −0
Meta Should we allow answers generated by ChatGPT?

After some more experience from this bot over a couple of months, I would say that we should ban it simply because: The answers it gives are often wrong. ChatGPT has been hyped up ridiculously. I...

posted 2y ago by Lundin‭

Answer
88%
+14 −0
Meta Should we allow answers generated by ChatGPT?

"Subtle errors" understates the problem. For example, I asked it about uses for std::equal_to, and it tragicomically gave me a code sample passing std::equal_to as the comparison predicate to std::...

posted 2y ago by Fred Wamsley‭

Answer
88%
+14 −0
Q&A How does Zalgo Text work, and how can I prevent my application from accepting it?

A Zalgo Text is something like this: T̃͟͏̧̟͓̯̘͓͙͔o̤̫͋ͯͫ̂ ̥͍̫̻͚̦͖͇̌ͪ̇ͤ̑̐͋̾̕i̢͖̩͙͐͑ͬ̄̿̍̚ͅn̵̢̼̙̳̒̄ͥ̋̐v̡̟̗̹̻̜͕̲ͣ̐ͤͤ͒́oͫ͂̆͑ͩ҉͇̰͚̹̠̫͔̗k̷̭̬̭͙̹̺̯ͩ̌̾̒̋̓ͤ͛͘͠e̥͙̓̄̕ ̵̫͈ͪţ̱̺̺̑̿̉̌͛̂̇h͙̣̬̓̂͞ę̡̲̟͎͉̟͛̓̉̆̉͘ ͬ̒...

1 answer  ·  posted 4y ago by hkotsubo‭  ·  last activity 1y ago by hkotsubo‭

Question string character
88%
+14 −0
Q&A Why are list comprehensions written differently if you use `else`?

The following list comprehension worked when I tried it: [num for num in hand if num != 11] But this doesn't work: [num for num in hand if num != 11 else 22] It gives a SyntaxError, highlightin...

2 answers  ·  posted 3y ago by true_blue‭  ·  last activity 1y ago by Karl Knechtel‭

88%
+14 −0
Q&A Why don't format specifiers work with lists, dictionaries and other objects?

When you use the variable without any format specifier (print(f'{variable}')), internally its __str__ method is called. Considering your Test class, it already has this method: class Test: def...

posted 4y ago by hkotsubo‭

Answer
88%
+14 −0
Q&A Is it unsecure to use a password on the command line to run a MySQL script on Windows?

As with every other security-related question, the first step toward answering this is that you'll need to answer for yourself: what are you trying to protect against? Security isn't a binary quant...

posted 4y ago by Canina‭  ·  edited 4y ago by Canina‭

Answer
88%
+14 −0
Q&A Does the location of an import statement affect performance in Python?

Summary The location within a module where an import statement is found by the interpreter is not expected to cause differences in performance such as speed or memory usage. Modules are singleton ...

posted 4y ago by ghost-in-the-zsh‭  ·  edited 4y ago by ghost-in-the-zsh‭

Answer
88%
+14 −0
Q&A What gets allocated on the stack and the heap?

"Stack vs heap" is a common over-simplification and not really a meaningful one, since those two areas have quite different, specialized uses. And no, those are not the only memory regions used by ...

posted 4y ago by Lundin‭  ·  edited 4y ago by sth‭

Answer
88%
+13 −0
Q&A Are there best practices for sticking conditions in WHERE clauses vs the JOIN statement?

SQL is a declarative language, and the form of the query does not dictate the form of the query plan that actually retrieves the data. So these two queries might be not only the same speed, but act...

posted 4y ago by Bruce Alderman‭

Answer
88%
+13 −0
Q&A Is omitting braces for single statements bad practice?

Not using braces is considered bad practice by widely recognized industry coding standards (MISRA-C:2012 rule, 15.6, CERT C EXP19-C and others). Once upon a time I liked to skip out braces too, bu...

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

Answer
88%
+13 −0
Q&A What is undefined behavior and how does it work?

Undefined behavior (informally "UB") is a formal term in the C language, defined in C17 3.4.3 undefined behavior behavior, upon use of a nonportable or erroneous program construct or of erroneous ...

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

Answer
88%
+13 −0
Q&A Different behavior with relative imports when using flask vs py

I have a small new Python 3.8 Flask project with some relative import quirks. For the DB I use SQLAlchemy with Flask-Migrate. My project has the following general structure: controllers/ static/ te...

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

88%
+13 −0
Q&A Is it wrong to demand features in open-source projects?

It is not wrong to ask for changes or features or report problems, so long as you realize that the maintainer of the project is under no obligation to make those changes. You aren't paying them, so...

posted 4y ago by Charlie Brumbaugh‭

Answer
88%
+13 −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

Some of you may know me from Stack Overflow or the broader network. In light of recent actions by the company, I finally decided to move over to Codidact. I am a subject matter expert on Google App...

5 answers  ·  posted 1y ago by Oleg Valter‭  ·  last activity 1y ago by Lundin‭

88%
+13 −0
Q&A What are statements and expressions?

When I have tried to read technical explanations of the syntax rules for programming languages, and when I am trying to decipher error messages, I often encounter the terms expression and statement...

4 answers  ·  posted 1y ago by Karl Knechtel‭  ·  last activity 1y ago by Dirk Herrmann‭