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
 
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
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 1y 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 11mo ago by Karl Knechtel‭

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‭

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 3y 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 3y ago by Lundin‭  ·  last activity 1y 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 3y ago by Alexei‭  ·  edited 3y ago by Alexei‭

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 How to properly deal with impersonation in a Web application? (security vs. usefulness for tech support)

If you've poked around the mod tools here a bit, you may have noticed that QPixel has an impersonation feature, live on prod. It's there for much the same reasons: so that developers can test and i...

posted 3y ago by ArtOfCode‭

Answer
84%
+9 −0
Q&A Codidactyl game and code - creation process and obfuscation

Yo. Me here. I used the code for the Codidactyl on the run as basis for the game, added a wrapper checking for the Konami-code by being a simple finite automaton and after that creating the canvas...

posted 3y ago by luap42‭

Answer
84%
+9 −0
Q&A What is a typeless programming language?

‘This language doesn't have types’ and ‘This language only has one type’ are English sentences that communicate the same underlying concept: a typeless language doesn't have a way to distinguish ca...

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

Answer
84%
+9 −0
Q&A What is a good modern language to use for a Business Rules project?

This is a rather vague question, but I'm trying to solve a specific problem and I'm inexperienced in most of the potential solutions, so please forgive the inherent ambiguity. I have access to a d...

3 answers  ·  posted 3y ago by Sigma‭  ·  last activity 1y ago by matthewsnyder‭

Question business-rules
84%
+9 −0
Code Reviews Detecting balanced parentheses in Python

Use a stack while just scanning your string once from left to right. No need for multiple (performance-wise) expensive string replacements. If implemented right, the stack will only ever contain at...

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

Answer
84%
+9 −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 and a commit is a set of deltas, so my concern is that merging feature-B to master would reflect only the work that is unique to feature-B Not quite: a bra...

posted 3y ago by meriton‭

Answer
84%
+9 −0
Meta Using Software Codidact as a private community within a company

You can, in a sense, do I believe even better than using Stack Overflow's hosted, proprietary service. You can run your very own instance of the Codidact software (that is, QPixel) locally, on a s...

posted 3y ago by Canina‭

Answer
84%
+9 −0
Meta Should we allow questions about installation and configuration of software development tools?

A recent flag for this question suggested that it would be a better fit for the Linux community. There is no motivation provided, but I guess it is related to the fact that most of the question and...

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

84%
+9 −0
Q&A Understanding mutable default arguments in Python

Consider this code example: def example(param=[]): param.append('value') print(param) When example is repeatedly called with an existing list, it repeatedly appends to the list, as ...

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

84%
+9 −0
Q&A How to delete a remote branch in git?

With the --delete option of git-push: $ git push <remote-name> --delete <branch-name> For example: $ git push origin --delete my-branch

posted 10mo ago by Iizuki‭

Answer
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 9mo ago by Andreas witnessed the end of the world today‭  ·  edited 9mo ago by Andreas witnessed the end of the world today‭

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