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
 
71%
+3 −0
Q&A Check if a file exists in Node.js

You can use existsSync: import { existsSync } from 'node:fs'; if (existsSync('/path/to/file')) { console.log('Found'); } else { console.log('Not found'); } If you want to avoid block...

posted 1y ago by philipp.classen‭  ·  edited 1y ago by philipp.classen‭

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

How do I trim a sorted list in Python, so that I only keep the elements greater than a certain value? For example, if I have this list: l = [1, 3, 5, 6, 7, 8] How can I efficiently get a list of...

3 answers  ·  posted 1y ago by congusbongus‭  ·  last activity 1y ago by mellen‭

Question python array search
71%
+3 −0
Q&A Testing an opaque type's internals

"Black box testing" makes sense when dealing with opaque types so that's the first thing you should be doing and probably the most meaningful test too, so that's where you should put most of yo...

posted 1y ago by Lundin‭

Answer
71%
+3 −0
Q&A PEP20 on namespaces: What exactly is it saying to do?

To start with, it's worth noting that the Zen of Python is more about development of Python, rather than development with Python. That may mean that some bits of its wisdom are more applicable to q...

posted 1y ago by BlckKnght‭

Answer
71%
+3 −0
Q&A Where does the name of the `pure` function in the `Applicative` type class come from?

At this point in my learning journey, I simply accepted that this function is called pure (both in Haskell and in PureScript), but it would have helped a lot if I had known the reasoning behind thi...

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

Question functional-programming haskell purescript etymology
71%
+3 −0
Q&A Understanding Virtual Environments for Python

Several times now, I've seen advice in tutorials, setup/install instructions for Python-based projects, etc. to use a virtual environment to keep things organized and make it simpler to manage the ...

1 answer  ·  posted 1y ago by Karl Knechtel‭  ·  last activity 1y ago by Karl Knechtel‭

Question python runtime-environment python-venv
71%
+3 −0
Q&A Choosing between multiple Python installations (environments) on the same computer

I have multiple installations of Python on my machine. When I run Python, what determines which installation is used? How can I control this?

1 answer  ·  posted 1y ago by Karl Knechtel‭  ·  edited 1y ago by Karl Knechtel‭

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

General This question and answer are adapted from my original write-up on Stack Overflow, which you may consult for more details. This version is crafted as to be a clear overview, without referri...

posted 12mo ago by Karl Knechtel‭  ·  edited 11mo ago by Karl Knechtel‭

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

Contrary to popular belief, Pip is not part of the Python standard library - although it comes as part of a standard distribution of Python. Pip is developed and maintained by the arms-length Pytho...

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

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

I have already learned how to tell the Python interpreter to run my code, but the standard approach feels a little unsatisfactory. I want the user experience to be that my program starts with the a...

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

Question python startup
71%
+3 −0
Q&A Choosing between multiple Python installations (environments) on the same computer

This answer assumes only installations of the reference "CPython" implementation, as provided by the official website at https://www.python.org. Other installations - such as those provided by th...

posted 1y ago by Karl Knechtel‭  ·  edited 1y ago by Karl Knechtel‭

Answer
71%
+3 −0
Q&A Where does the name of the `pure` function in the `Applicative` type class come from?

A direct answer to your question of where the name comes from is the paper that introduced Applicative functors, Applicative programming with effects (PDF). Quoting from there: The idea is that ...

posted 1y ago by Derek Elkins‭  ·  edited 1y ago by Derek Elkins‭

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

In setting android:configChanges in AndroidManifest.xml, what is the difference between colorMode and uiMode? I hear uiMode is for changes between light/dark modes, which sounds exactly what colorM...

1 answer  ·  posted 1y ago by Ullallulloo‭  ·  last activity 12mo ago by zmzaps‭

Question android
71%
+3 −0
Q&A What does "parameterised type in the positive / negative position" mean in the context of invariant functors?

"Invariant" isn't really the right word to search, though that's clearly not obvious. The idea is that we have covariant functors where if we have a -> b we can make f a -> f b, and contravar...

posted 1y ago by Derek Elkins‭

Answer
71%
+3 −0
Q&A Extracting Firefox Local Data

Having looked up how Snappy compression works, I'm going to upgrade my comment to an answer as I'm almost certain this is what's happening. Based on the Firefox source code, it inserts LSValues wh...

posted 1mo ago by Derek Elkins‭

Answer
71%
+3 −0
Q&A how to update RPROMPT each time a key is pressed in zsh

In zsh, I want to create a function that updates RPROMPT when I have typed cd .. into the terminal. As a starting point, I know I can, for example, add the + character to my RBUFFER when I have typ...

1 answer  ·  posted 12d ago by Trevor‭  ·  last activity 4d ago by Trevor‭

Question terminal zsh
71%
+3 −0
Meta Should we merge the scope, on-topic and off-topic meta tags?

Different tag sets per category It is important to be aware that the Q&A category and the Meta category have distinct sets of tags. This question is about the Meta tags only, which cannot be u...

posted 1mo ago by trichoplax‭

Answer
70%
+5 −1
Q&A Use cases for raising a 'NotImplementedError' in Python

This is in the docs. To paraphrase: Used for abstract methods that must be overridden in subclasses When the implementation is still WIP, but you want to leave a placeholder for the method name...

posted 11mo ago by matthewsnyder‭  ·  edited 11mo ago by matthewsnyder‭

Answer
70%
+5 −1
Q&A Is it a bad idea to block proxies/vpns for interacting with my app?

I run a small website and Im considering blocking proxies and vpns with ipquery to cut back on spam. I keep having bots autofill the contact us even though im using recaptcha. Does anyone have any ...

2 answers  ·  posted 6mo ago by jefforce‭  ·  last activity 6mo ago by matthewsnyder‭

Question proxy vpn
70%
+5 −1
Meta Do we want MathJax?

Some Codidact communities have MathJax enabled, which allows using mathematical notation in posts. For examples of what this looks like, see the end of the Mathematics Codidact formatting help. Wo...

3 answers  ·  posted 5mo ago by trichoplax‭  ·  last activity 3mo ago by Michael‭

Question discussion
70%
+5 −1
Q&A How to disable jobs in GitLab CI after they are successfully executed

I'm working with GitLab CI. The pipelines I'm designing contain several jobs that, once executed successfully, there shouldn't be any reason to retry/rerun them. This is an example: default: # ...

1 answer  ·  posted 4mo ago by ɯıpɐʌ‭  ·  last activity 4mo ago by Alexei‭

Question gitlab-ci
70%
+5 −1
Q&A How and where does Python code start running? How can I control that?

Starting up Python There are several key ways to use the python command from the command line: python by itself starts a REPL that allows typing in and running Python code on the fly, one sta...

posted 1y ago by Karl Knechtel‭  ·  edited 1y ago by Karl Knechtel‭

Answer
70%
+5 −1
Q&A Where did my proper divisor sum program went wrong?

Here in Python, I created a program for this challenge and I'm having trouble debugging it. I already fixed most errors I have on my program but here's what I have left: x=y=z=[];i=0.0;a=int(input...

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

Question python debugging
70%
+5 −1
Q&A Freeing sub-process resources?

I'm using Python to invoke another program in a sub-process. I've noticed my memory sometimes gets so large as to crash the system, and I'm wondering if I'm not correctly cleaning up the memory som...

0 answers  ·  posted 4y ago by Hyperlynx‭  ·  edited 4y ago by Patol75‭

Question python memory-management subprocess resources memory-leaks
70%
+5 −1
Q&A How do I get the error message out of a requests exception?

I'm trying to log error messages from Requests exceptions. Example: try: make_web_request() except RequestException as ex: logging.error(ex) Example output: ERROR : ('Connection abo...

2 answers  ·  posted 4y ago by ajv‭  ·  last activity 4y ago by hoverhell‭

Question python http-request