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
 
66%
+2 −0
Q&A Can I conditionally include class members without using #ifdef?

There's nothing as elegant as if constexpr, unfortunately. However, it is possible to achieve the practical effects (member functions and data only present conditionally). Start by creating a clas...

posted 10mo ago by Angew‭

Answer
66%
+2 −0
Q&A Can I conditionally include class members without using #ifdef?

#ifdef sections can, of course, be used to include or exclude chunks of code based on some criteria known at compile time. One big problem is that when the condition is evaluated to false, the chun...

1 answer  ·  posted 10mo ago by Hyperlynx‭  ·  last activity 10mo ago by Angew‭

Question c++
66%
+2 −0
Q&A Understanding the `if __name__ == '__main__':` idiom

I've seen many examples of Python scripts that include a line that says: if __name__ == '__main__': Sometimes the following block contains a bunch of code, but other times it just makes a singl...

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

66%
+2 −0
Q&A Why does `venv` seem to be missing or broken? Isn't it part of the standard library?

venv is indeed part of the standard library. However, some Linux distros modify Python to exclude some parts for various reasons, and venv might be among them. On Debian-based Linux distros you ...

posted 8mo ago by Karl Knechtel‭

Answer
66%
+2 −0
Q&A What does "parameterised type in the positive / negative position" mean in the context of invariant functors?

From PureScript's Data.Functor.Invariant documentation (emphasis mine): A type of functor that can be used to adapt the type of a wrapped function where the parameterised type occurs in both the...

1 answer  ·  posted 9mo ago by toraritte‭  ·  last activity 9mo ago by Derek Elkins‭

66%
+2 −0
Q&A Why does `pip` seem to be missing or broken? Isn't it part of the standard library?

I already know that the pip command might not correspond to the same Python that python runs. But in my case, it seems not to exist at all. I can't even run it as a Python module: $ python -m pip ...

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

66%
+2 −0
Q&A Why can't I use a library I just installed with Pip?

I tried installing package-installation-test[1] using Pip, and it appeared to be successful. But I can't use it as advertised, either by itself or by importing it from my code: Failed attempts ...

1 answer  ·  posted 8mo ago by Karl Knechtel‭  ·  edited 8mo ago by Karl Knechtel‭

66%
+2 −0
Q&A How can I access and use command-line arguments in Python?

At startup, Python loads the sys standard library module (without waiting for any code to import it) and sets up several useful values. Among these is sys.argv, which stores command-line arguments ...

posted 8mo ago by Karl Knechtel‭

Answer
66%
+2 −0
Q&A How can I access and use command-line arguments in Python?

In many other programming languages, the execution of code starts in a specifically named function (such as main) which is expected to have a specific signature, which allows that function to recei...

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

66%
+2 −0
Q&A Understanding the `if __name__ == '__main__':` idiom

Whenever Python loads code from a .py file, that code gets its own namespace for global variables - so they're not truly global, but per-file values. (When you look at an imported module "from outs...

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

Answer
66%
+2 −0
Q&A Android Studio IDE refuses to find my device

As per the troubleshooter I updated to the latest SDK Platform Tools (35.0.1) and it detected the device. The Xenial VM has 35.0.0 so I'm not convinced, but it's working.

posted 9mo ago by JohnRando‭  ·  edited 9mo ago by FractionalRadix‭

Answer
66%
+2 −0
Q&A Regex to get text outside brackets

First, we need to define some semantics. While it may not matter for your actual inputs, I propose that it should be valid for the output elements - the parts of the text found outside of brackets ...

posted 8mo ago by Karl Knechtel‭

Answer
66%
+2 −0
Q&A How do I trim a sorted list in Python?

Python has inbuilt list filtering syntax: l = [1,3,5,6,7,8] trimmed_list = [item for item in l if item > 4]

posted 9mo ago by mellen‭

Answer
66%
+2 −0
Q&A Reinstall old Python libraries after update

The pip freeze command may output individual dependencies with format zipp @ file:///Users/abcxyz/work/recipes/ci_py311/zipp_1677907997878/work Using this output will not work (unless you happen ...

posted 9mo ago by mudskipper‭

Answer
66%
+2 −0
Q&A How is this code "dividing" by a string?

Python allows for operators to be overloaded (the subject of a separate future Q&A). The / operator doesn't strictly mean division in a mathematical sense; it means whatever the operands define...

posted 9mo ago by Karl Knechtel‭

Answer
66%
+2 −0
Q&A How can I start my Python code, from the code itself?

Mac/Linux In this environment, Python scripts can be given a shebang line that tells the operating system that the file is a script, and what interpreter (i.e., Python) to use for it. Because # st...

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

Answer
66%
+4 −1
Q&A Where to place digit separators in C23?

This probably makes for a thoroughly unsatisfying answer, but there's probably far stronger cultural pressure than technical pressure. In European-derived cultures, we mostly group numbers by powe...

posted 9mo ago by John C‭

Answer
66%
+2 −0
Q&A What happened, or is happening, to other parts of the standard library? Why are they going missing?

A handful of standard library modules either have been, or will soon be, removed from the Python standard library, as part of a general cleanup effort. These modules are seen as out of date and no ...

posted 8mo ago by Karl Knechtel‭

Answer
66%
+2 −0
Q&A Run Spark code without Spark?

There's not always a Spark cluster on hand to test Spark code. Is there some simple program that you can install locally, which has the same behavior as Spark (can run normal Spark scripts) withou...

1 answer  ·  posted 8mo ago by matthewsnyder‭  ·  last activity 8mo ago by congusbongus‭

Question apache-spark
66%
+2 −0
Q&A What's the difference between include_directories and target_include_directories?

include_directories works on all targets in the current CMakeLists.txt file, whereas target_include_directories only adds them for the specified target. include_directories is fine to use for simp...

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

Answer
66%
+2 −0
Q&A Managing a dependency for a C application

It depends on what you are distributing. There are two types of distributions: Binary (application is already compiled) Source (users download raw source code and compile themselves) Becaus...

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

Answer
66%
+2 −0
Q&A What's the difference between colorMode and uiMode?

Although they sound similar, they serve different purposes. You are correct in thinking that putting uiMode into your android:configChanges allows your app to handle light/dark mode changes. It al...

posted 8mo ago by zmzaps‭

Answer
66%
+2 −0
Q&A How to manage decibel meter?

I was reading the Wiki of Decibel. Unfortunately, I "forgot" there's different between amplitude ratio and dB level. After reading the wiki. When I looked at my source code, I saw sounddB was unuse...

posted 4y ago by deleted user  ·  edited 4y ago by deleted user

Answer
66%
+2 −0
Q&A Changing the font of an entire JTable column.

I know I can change the font of each cell individually by overriding getCellRenderer(row, col) in JTable but I want to be able to change the font of an entire column at once and, ideally, have the ...

0 answers  ·  posted 4y ago by cuzzo‭  ·  edited 4y ago by cuzzo‭

Question java swing JTable
66%
+2 −0
Code Reviews Shared hosting Apache PCRE .htaccess file for personal MediaWiki websites

A shared hosting based Apache PCRE public_html/.htaccess file for a website with the common features: MediaWiki based (most of the website interaction is backendish --- there barely are any fron...

0 answers  ·  posted 4y ago by deleted user  ·  edited 3y ago by deleted user