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
 
80%
+6 −0
Q&A How to use function composition for applying a function to first elements of a list?

Can anyone explain to me why my Haskell function gives rise to a type-definition error? Originally, I wrote the following function to subtract one from the first n elements in a list: dec_first :...

2 answers  ·  posted 1y ago by mr Tsjolder‭  ·  last activity 1y ago by mauke‭

80%
+6 −0
Q&A Why are commas not needed for modulo string formatting when printing?

The modulo operator is a binary (2 argument) operator which returns a single value, and can be used for both numeric calculations and strings: x = 5 % 2 print(x) # prints "1" y = "hello %s" % ...

posted 2y ago by deleted user  ·  edited 1y ago by MattDMo‭

Answer
80%
+6 −0
Code Reviews JSON log formatter

Here's a JSON log formatter for Python. I want to be able to log details of exceptions (and have some capability to debug-by-logs). I want to be able to log extra data in JSON format (in addition...

2 answers  ·  posted 1y ago by misk94555‭  ·  last activity 11mo ago by Karl Knechtel‭

Question python logging
80%
+6 −0
Meta Can I repost here the answers to questions I get answered elsewhere?

Your own questions If the original question was your own, then you own it and there is no restriction on also posting it to Codidact. Other people's answers For a question or answer posted by so...

posted 2y ago by trichoplax‭

Answer
80%
+6 −0
Q&A Why is git merge from rather than to?

I can't speak for the people who designed it, but I guess it was made this way because you can merge multiple branches all at once. Let's say I've created multiple branches: C---D => ...

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

Answer
80%
+6 −0
Q&A Why is git merge from rather than to?

Why does git merge take the source branch rather than the destination branch as a parameter? The most common merge case by far for me is "Okay, this branch looks good, let's merge it into branch X...

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

80%
+6 −0
Meta Are code troubleshooting posts allowed?

These questions are very helpful to the person asking, and great for driving activity. I think it is good to allow these questions to be asked and to answer them. At the same time, they are not go...

posted 1y ago by matthewsnyder‭

Answer
80%
+6 −0
Q&A Automatically install all packages needed

You can use pipreqs It will automate the generation of a requirements file. This can spare you the annoying dance without necessarily mixing environment setup and script execution.

posted 1y ago by Goyo‭  ·  edited 1y ago by meta user‭

Answer
80%
+6 −0
Q&A How do I find disjoint sets in a dataset

I have a dataset of car bookings like this: car_id user_id 1 1 2 1 1 2 3 3 1 2 3 3 In this dataset, two separate groups/sets of cars and users...

2 answers  ·  posted 1y ago by andreas‭  ·  edited 1y ago by matthewsnyder‭

80%
+6 −0
Q&A How to configure Python pip to look for packages in a private index first?

The pip command accepts an option --index-url to specify the primary index (defaults to PyPI) and zero or more --extra-index-url options to specify secondary indices. So for your use case, try pip...

posted 1y ago by tripleee‭

Answer
80%
+6 −0
Q&A What is the meaning of "short circuit" operators?

When reading about various operators used by programming languages, the term "short circuit behavior" is often used. For example in this C code: int a = 0; a && b++ Someone explained t...

2 answers  ·  posted 1y ago by Lundin‭  ·  last activity 1y ago by matthewsnyder‭

80%
+6 −0
Q&A How do I properly render a quad in OpenGL using a GL_TRIANGLE_STRIP primitive?

It looks like your vertexSizeBytes stride variable doesn't include uvSize. To figure things like this out, use this kind of logic: The shape of the image isn't a square, so something is wrong wit...

posted 1y ago by djm‭

Answer
80%
+6 −0
Q&A What is the difference between hashing and encryption?

What specific algorithm makes it possible to scramble data into an unrecoverable form, yet still be usable for its intended purpose? It isn't any one specific algorithm. There are many differe...

posted 10mo ago by manassehkatz‭

Answer
80%
+6 −0
Q&A What is the point of pipx?

They are tools for different audiences. pipx does not replace pip. In some more detail, pip answers the question "As a Python developer, how can I install Python packages and their dependencies" w...

posted 1y ago by tripleee‭  ·  edited 1y ago by tripleee‭

Answer
80%
+6 −0
Q&A Is it okay to use python operators for tensorflow tensors?

No, you can't use and for this. In Python, a and b always, always, always means b if a else a. It cannot be overridden and cannot mean anything else. Likewise not, and any other boolean keywords, ...

posted 1y ago by r~~‭

Answer
80%
+6 −0
Q&A Name for host + path (parts of a URL)

Among other things, a URL consists of a host and a path: I was wondering (and couldn't find anything) if there's a name for the combination of host and path. Is there a name for these: examp...

1 answer  ·  posted 1y ago by Matthias Braun‭  ·  edited 1y ago by Matthias Braun‭

Question url
80%
+6 −0
Meta How should I organize material about text encoding in Python into questions?

I want to write one or more self-answered Q&As on the topic of text encoding in Python, to serve as canonicals and preempt future lower-quality questions. I can think of the following things th...

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

80%
+6 −0
Q&A How can I properly type-hint methods in different files that would lead to circular imports?

Import modules rather than names first to avoid a circular reference in the import statements; then use forward declarations, as before, to avoid a circular reference in the type annotations - like...

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

Answer
80%
+6 −0
Meta Email alerts for notifications

This feature has not yet been implemented. However, there is a feature request on Codidact Meta that requests it for all communities. You (and anyone else who would like to see this) can add your ...

posted 9mo ago by trichoplax‭

Answer
80%
+6 −0
Q&A What is a reasonable minimum for making a FOSS project inviting to contributors?

I don't actually know the answer to this, but I'll post a provisional one while we wait for someone wiser than me to chime in. I think this is a small subset of the real answer. Don't forget the...

posted 9mo ago by matthewsnyder‭

Answer
80%
+6 −0
Meta Is software system design on topic here?

Is software system design on topic for the software development site? For what I mean by system design, consider the "system design interview" commonly held these days when recruiting software eng...

1 answer  ·  posted 9mo ago by matthewsnyder‭  ·  last activity 9mo ago by Lundin‭

Question discussion scope
80%
+6 −0
Meta Don't close questions for lack of detail/confusion

No. Terms like "too generic", "unclear", "too broad", "off topic" are absolutely not euphemisms for "stupid question, go away". They mean what they say; and when they are used Somewhere Else, mult...

posted 9mo ago by Karl Knechtel‭

Answer
80%
+6 −0
Q&A How to compare a git stash to the current working tree?

In git you can put your current changes aside for a moment with git stash. This is really neat but what often ends up happening is that you forget what was in there, and what was the state of the b...

1 answer  ·  posted 1y ago by Iizuki‭  ·  edited 1y ago by Iizuki‭

80%
+6 −0
Q&A How do I share a type between a client and server, but make a specific field optional for one and required for the other?

Let's say I have a client/server application with a data structure on the server side: type User = { name: string; superSecretGovernmentIdNumber: string; }; These fields are both non-nul...

2 answers  ·  posted 1y ago by Emily‭  ·  last activity 7mo ago by Jacob Raihle‭

Question typescript
80%
+6 −0
Q&A What are the benefits of starting a Git repo with an empty commit?

This sounds to me like someone had a problem once and they've decided upon a somewhat silly way to keep that from ever happening again. The big repository hosts have a different way of addressing ...

posted 1y ago by Michael‭  ·  edited 1y ago by Michael‭

Answer