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
 
84%
+9 −0
Meta Don't close questions for lack of detail/confusion

No. Closing is an integral part of maintaining this knowledge repository. If a question isn't up to our standards, it doesn't belong here, and closing is the first step in ensuring that. If a quest...

posted 1y ago by Andreas demands justice for humanity‭  ·  edited 1y ago by Andreas demands justice for humanity‭

Answer
84%
+9 −0
Q&A What is the point of triggering CI/CD with an empty git commit?

There's no point. It just causes unnecessary clutter and confusion. The correct way is to configure a manual way for triggering the CI/CD pipeline. In most systems there should be an API endpoint ...

posted 1y ago by Iizuki‭

Answer
84%
+9 −0
Q&A What is the general process for merging two git branches, reviewing edits on each branch?

There are two major sections to this answer: the Git part and the conflict resolution part. It wasn't clear at first which one was intended by the question, but both are important for a full answer...

posted 10mo ago by Michael‭  ·  edited 10mo ago by Michael‭

Answer
84%
+9 −0
Q&A Why not call nullptr NULL?

It's a long story. Once upon a time, there were three ways to express a null pointer constant: NULL 0 ((char *) 0) This was true at least as far back as Unix V7 (1979). Maybe even further...

posted 7mo ago by alx‭  ·  edited 6mo ago by alx‭

Answer
84%
+9 −0
Q&A Map<?, Optional<T>> to Map<?, T>

Using Optional as a value in a Map will lead you to unnecessary complexity and confusion — as you can see. The primary intention of Optional is to serve as a return type, indicating that a value m...

posted 8mo ago by ɯıpɐʌ‭

Answer
84%
+9 −0
Q&A Is there a naming convention for table aliases?

This can depend on both your flavor of SQL and your personal preference - I've seen a number of schemes in use. For MySQL, the most common scheme I've seen used (and the scheme that my editor uses ...

posted 5y ago by ArtOfCode‭

Answer
84%
+9 −0
Meta Meet the Codidact Team!

As we start on building a new community here together, we're bound to find some sticking points. Those might be bugs, new features you need, things you need support with... whatever they are, the C...

0 answers  ·  posted 5y ago by ArtOfCode‭  ·  edited 5y ago by ArtOfCode‭

Question support announcements
84%
+9 −0
Q&A Why don't format specifiers work with lists, dictionaries and other objects?

When I want to print a number or a string, I can use f-strings (Python >= 3.6) or str.format, and I can use just the variable between braces, or use format specifiers. Ex: num, text = 10, 'abc' ...

1 answer  ·  posted 4y ago by hkotsubo‭  ·  edited 4y ago by sth‭

Question python python-internals
84%
+9 −0
Meta How does the community feel about resource requests?

I think these kinds of questions are fine, but I am just one person. open source product I have been using appears to be poorly-documented is an extremely common problem. I have actually seen the p...

posted 4y ago by manassehkatz‭

Answer
84%
+9 −0
Q&A Generate SIGSEGV without undefined behaviour.

SIGSEGV is defined in the C header signal.h. To generate the signal, it should be sufficient to just do raise(SIGSEGV);. As far as I know, this is well-defined behavior.

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

Answer
84%
+9 −0
Meta Do we need the fullstack tag?

To whether the tag is useful: no. It's useful for tagging people ("this person does frontend and backend") but not questions. I don't see the point of adding "do not use": just delete the tag, whi...

posted 4y ago by Peter Taylor‭

Answer
84%
+9 −0
Q&A How to override default string formatter?

It is possible to create a new formatter class by subclassing string.Formatter class and then to use it like myformatter.format("{foo:customformat}", foo=foo). It's not super-convenient though, and...

1 answer  ·  posted 4y ago by luser‭  ·  edited 4y ago by Alexei‭

Question python string-formatting
84%
+9 −0
Q&A How to read lines into an array in Bash

Your code is correct. You have declared your variable as an array, and you are successfully appending to it. To display all of the elements of your variable, try echo "${my_array[@]}". (Another an...

posted 4y ago by r~~‭  ·  edited 4y ago by r~~‭

Answer
84%
+9 −0
Q&A Python Regex to parse multiple "word. word. word."

First of all, let's understand why your regex didn't work. The first part is \w+\.\s, which is "one or more alpha-numeric characters" (\w+), followed by a dot and a space (\.\s). If the regex was ...

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

Answer
84%
+9 −0
Q&A What are field separators in operating-programming languages (such as Bash)?

In Bash, IFS is an internal variable and it stands for "Internal Field Separator" <- according to this link, it "determines how Bash recognizes fields, or word boundaries, when it interprets cha...

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

Answer
84%
+9 −0
Meta Growing software.codidact

Speaking personally (not as a Codidact admin): One low-key way to promote this community there is to cite it in answers. If you see a question there that you want to answer, see if it's here too....

posted 4y ago by Monica Cellio‭

Answer
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 3y 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 3y ago by r~~‭

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 3y ago by Lundin‭  ·  edited 2y 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 3y ago by Monica Cellio‭

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 3y ago by ajv‭  ·  last activity 3y ago by hkotsubo‭

Question python json security
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 3y ago by Derek Elkins‭  ·  edited 3y ago by hkotsubo‭

Answer
84%
+9 −0
Q&A How to align my content to the left?

If you remove the align="left" then it works fine. My best guess is that you put those in because you didn't want the image in the text flow, affecting the vertical positioning on the text. The ea...

posted 3y ago by Peter Taylor‭  ·  edited 1y ago by Peter Taylor‭

Answer
84%
+9 −0
Q&A Open file in script's own folder

I have a Python script that needs to access some data (or configuration) file in its very own folder. For example, say script.py does something like this: with open('data.txt') as file: data ...

2 answers  ·  posted 3y ago by J-hen‭  ·  last activity 1y ago by Karl Knechtel‭

Question python file-handling
84%
+9 −0
Q&A Behavior of Pointer Arithmetic on the Stack

Consider the following code: #include <stdio.h> int main() { int a = 5; int b; ++*(&b + 1); printf("%d\n", a); return 0; } The output is as expected: 6 ...

4 answers  ·  posted 3y ago by Josh Hyatt‭  ·  last activity 3y ago by Alexei‭

Question c undefined-behavior stack-memory unspecified-behavior