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
 
75%
+4 −0
Q&A When should I parenthesize macro arguments in C?

Simply put: parenthesis are used whenever we suspect that there may be operator precedence issues. Either because the user passed an expression containing several operands and operators to the...

posted 1y ago by Lundin‭

Answer
75%
+4 −0
Q&A What actually is a pytest fixture?

The term long predates Pytest and is not at all specific to Python. The idea is described on Wikipedia: In the context of software a test fixture (also called "test context") is used to set up s...

posted 8mo ago by Karl Knechtel‭

Answer
75%
+4 −0
Q&A What's the difference between include_directories and target_include_directories?

I have seen others allude to include_directories as disfavored: Having trouble adding include directories Summaries from CMake's documentation: target_include_directories include_directori...

1 answer  ·  posted 10mo ago by nogjam‭  ·  last activity 10mo ago by congusbongus‭

Question cmake
75%
+4 −0
Q&A Android Studio IDE refuses to find my device

I've installed Android Studio Jellyfish (snap) on an Ubuntu Fossa VM and was finally able to generate an apk for my project after struggling with Gradle, Java, plugins, etc. The device is detected...

1 answer  ·  posted 11mo ago by JohnRando‭  ·  last activity 10mo ago by FractionalRadix‭

Question android ubuntu usb
75%
+4 −0
Q&A Understanding Virtual Environments for Python

Why The most important ideas behind virtual environments are: Since there is a separate site-packages, you can isolate the dependencies of your project. This is especially important for testi...

posted 10mo ago by Karl Knechtel‭

Answer
75%
+4 −0
Q&A Regex to get text outside brackets

I am trying to capture the content outside square brackets in groups, using this regex: (.*)\[.*?\](.*) And it works perfectly for a simple string like this: testing_[_is_]_done This is the...

2 answers  ·  posted 10mo ago by TonyMontana‭  ·  last activity 5mo ago by hkotsubo‭

Question regex python-3
75%
+4 −0
Q&A Why does `tkinter` (or `turtle`, or IDLE) seem to be missing or broken? Isn't it part of the standard library?

I had understood that Python is supposed to come "batteries included", and that the "batteries" specifically include: the tkinter standard library, a simple GUI framework a simple IDE cal...

1 answer  ·  posted 10mo ago by Karl Knechtel‭  ·  last activity 9mo ago by Karl Knechtel‭

Question python installation tkinter
75%
+4 −0
Q&A How to sort the output of meta / slash commands in `psql`?

For example, how to sort the output below by the values in "Column" in the psql shell itself? my_db=> \d auth_user Table "public.auth_user" Column ...

1 answer  ·  posted 11mo ago by toraritte‭  ·  edited 11mo ago by MER‭

Question database postgresql psql
75%
+4 −0
Meta RSS feeds for tags

There are RSS feeds for tags already, linked at the bottom of the tag page. (Yeah, I missed it too; I'll see if we can make that more obvious.) For example, here's the RSS feed for the feature-re...

posted 11mo ago by Monica Cellio‭  ·  edited 7mo ago by Monica Cellio‭

Answer
75%
+4 −0
Q&A How to sort the output of meta / slash commands in `psql`?

It's been a while, but the answer is "yes and no," I believe. No: The describe-schema command doesn't (last I heard) allow any modification. Yes: The describe-schema command also doesn't do any...

posted 11mo ago by John C‭  ·  edited 11mo ago by toraritte‭

Answer
75%
+4 −0
Meta RSS feeds for tags

How can i get a per-tag RSS feed? I only see the general feed at the main pages and i don't want to subscribe to tags via email.

1 answer  ·  posted 11mo ago by JohnRando‭  ·  edited 7mo ago by Monica Cellio‭

Question feature-request status-completed
75%
+4 −0
Q&A How to iterate over numpy array axes in array slicing?

slice(None) will give you a value that's equivalent to a bare : in slice syntax. So you can write, for example, for i in range(4): print(new_array[tuple(slice(None) if i == j else n for j, n ...

posted 11mo ago by r~~‭

Answer
75%
+4 −0
Q&A Syntax match any 2 spaces at end of line

I'm using the following syntax match to conceal 2 spaces at the end of a line with a special character. syntax match Normal '\s\{2}$' conceal cchar=⏎ A line with two spaces at the end of it wou...

2 answers  ·  posted 11mo ago by rcmosher‭  ·  last activity 11mo ago by Michael‭

Question vim
75%
+4 −0
Q&A How do I trim a sorted list in Python?

You can use the functions in the bisect module with a list slicing operator. For example bisect_left finds the index of the insertion point in a sorted list, and if the values are equal, it will fi...

posted 11mo ago by congusbongus‭

Answer
75%
+4 −0
Meta Should beginner-oriented Q&A here include basic use of a terminal (command line) for developers?

It seems that year over year, computers constantly get easier to use, and it becomes easier for people to start learning to program who have never touched it before. This comes with the consequence...

3 answers  ·  posted 10mo ago by Karl Knechtel‭  ·  last activity 10mo ago by matthewsnyder‭

Question discussion scope beginner-questions
75%
+4 −0
Q&A Why does Pip display "error: externally-managed-environment", and what can I do about it?

Reminder: never use sudo to run Pip. This can never properly fix a problem and only introduces serious security risks. Installing third-party packages from PyPI can run arbitrary code at install ...

posted 10mo ago by Karl Knechtel‭  ·  edited 10mo ago by Karl Knechtel‭

Answer
75%
+4 −0
Q&A Why does Pip display "error: externally-managed-environment", and what can I do about it?

My (non-Windows) operating system came with Python, but that Python didn't include Pip. I followed instructions to install Pip for the included Python, using my system's package manager. But now w...

2 answers  ·  posted 10mo ago by Karl Knechtel‭  ·  last activity 10mo ago by Alexei‭

Question python linux pip
75%
+4 −0
Q&A Managing a dependency for a C application

One of my applications has a dependency on a stb-library. Now I am publishing this application to Github. Should I: Include the header that was used during development with the code? Have an in...

2 answers  ·  posted 10mo ago by Melkor-1‭  ·  edited 9mo ago by matthewsnyder‭

Question c package
75%
+7 −1
Q&A how do I get markdown to render # as a shell prompt and not a comment?

Note: This is a general question about Markdown formatting for any Markdown renderer (e.g., Gitlab, Github, Codidact). So this is not just a question about Codidact's renderer. When displaying she...

2 answers  ·  posted 4mo ago by Trevor‭  ·  last activity 3mo ago by bignose‭

Question markdown syntax-highlighting
75%
+4 −0
Q&A 2D-array pointer as a struct member

If you don't mind the extra memory, you can do it with an extra array: struct basket { char *item_memory; char **items; int itemcount; }; /* I omitted any error handling */ voi...

posted 3mo ago by celtschk‭  ·  last activity 3mo ago by Alexei‭

Answer
75%
+4 −0
Q&A How to disable debug windows automatically opening up when I hit a breakpoint in vscode?

In vscode, when I hit a breakpoint it automatically opens "Run and Debug" window. I don't want that because I am using a small screen (and that sidebar takes up space) and I don't always need to us...

1 answer  ·  posted 3mo ago by Vanity Slug ❤️‭  ·  last activity 2mo ago by Alexei‭

Question debugging vs-code
75%
+4 −0
Q&A Why is atoi dangerous and what should be used instead?

The atoi family of functions should never be used for any purpose - they are broken by design. The reason why can be found in the C standard C23 7.24.1: The functions atof, atoi, atol, and atol...

posted 4mo ago by Lundin‭

Answer
75%
+4 −0
Meta What is the difference between `back-end` and `backend` tags?

Quite obviously, these are the same. The name of the two is literally the same except for a hyphen. They only have one question each. Looking at the questions, they are indeed used for the same pur...

posted 7mo ago by Andreas demands justice for humanity‭

Answer
75%
+4 −0
Q&A Json deserialization of enum, forbid int

This is something that could go really wrong. I remember using this, and it was fine initially, until the enum in question evolved, and the ordinals changed, so the values didn't correspond anymore...

posted 7mo ago by ɯıpɐʌ‭  ·  edited 7mo ago by ɯıpɐʌ‭

Answer
75%
+4 −0
Meta What is the difference between `back-end` and `backend` tags?

I found two tags: back-end and backend. Should we merge them?

1 answer  ·  posted 7mo ago by talex‭  ·  last activity 7mo ago by Andreas demands justice for humanity‭

Question discussion tags