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
 
71%
+3 −0
Q&A What is the meaning of "short circuit" operators?

It's an unfortunate analogy. Apart from being confusing, it does indeed assume some basic electronics knowledge. In electronics a short circuit (or the common jargon "a short") does not necessarily...

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

Answer
71%
+3 −0
Q&A How to overwrite lines of STDOUT in Python?

You can use the carriage return control character "\r" to return to the beginning of the line and overwrite text. When using the print function you additionally have to make sure not to write the ...

posted 1y ago by mr Tsjolder‭

Answer
71%
+3 −0
Q&A How to overwrite lines of STDOUT in Python?

The solution proposed by the other answer works, but there's a corner case. If the last message is shorter than the previous one, you might not get what you want. Example: print("this is some text...

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

Answer
71%
+3 −0
Q&A Set transform of SVG element

<set> does seem to be a bit finicky for this case, doesn't it? You can use <animateTransform> if you set the values attribute on it instead of the to attribute, like this: <animate...

posted 1y ago by r~~‭

Answer
71%
+3 −0
Q&A How should open source forks, with a mix of upstreamable and non-upstreamable commits, be maintained?

I have a few different projects that rely on open source technology that I wish to make modifications to (say, to add key features for business or personal use) that will vary between upstreamable ...

1 answer  ·  posted 1y ago by eoin.oneill‭  ·  last activity 1y ago by matthewsnyder‭

Question git repository
71%
+3 −0
Meta Handling common wrong approaches and misguided motivations for basic technique questions

Background This is inspired to some extent by https://software.codidact.com/posts/289597 . I'm trying to provide a large amount of content (gradually!) that novices (mainly to Python) will find u...

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

71%
+3 −0
Meta Are questions about (abstract) algorithms and datastructures considered on-topic?

As the author, this is my defense. Design and modeling are on-topic The site topicality documentation explicitly includes "Software design, architecture, or modeling" as on topic. There doesn't s...

posted 1y ago by Karl Knechtel‭

Answer
71%
+3 −0
Meta codidact profile editing requires 30 characters but has no error message

This has now been indirectly fixed for all Codidact communities by removing the minimum character requirement altogether. See Is there a reason for preventing user profile content being less than 3...

posted 1y ago by trichoplax‭

Answer
71%
+3 −0
Meta Are questions about (abstract) algorithms and datastructures considered on-topic?

I just noticed this question about data structures in the Q&A. Although algorithms and data structures are often (part of) a solution to a problem when writing software, this question is const...

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

Question discussion scope
71%
+3 −0
Q&A How do I customize merge behavior for a shared git repo?

Frame challenge, the "bubbles" aren't useless First off, I'll challenge the premise of the question: the "merge bubbles" are not useless, because they represent meaningful development history. In ...

posted 1y ago by GrantMoyer‭

Answer
71%
+3 −0
Q&A Pipeline for zipping multiple file chanel into a single output channel

Well, ain't this fun hehe Turns out I failed to see .reader launches its own job, which resulted in multiple coroutines contending for the zip stream, each trying to write an entry... 🤦 The solut...

posted 1y ago by tmpod‭

Answer
71%
+3 −0
Q&A Alternatives to `EXPLAIN ANALYZE` for queries that won't complete

You can try to break up the query into CTEs, and then see if any of the individual CTEs are unusually slow. I am guessing the query is not just one select, but probably has subqueries, window func...

posted 1y ago by matthewsnyder‭

Answer
71%
+3 −0
Q&A Understanding mutable default arguments in Python

Possible justifications It may make sense to use a mutable default argument in the following situations: For simplicity Consider for example an argument that should be some kind of mapping, wher...

posted 1y ago by Karl Knechtel‭

Answer
71%
+3 −0
Q&A How do I pass field names containing dashes in dbt source yml file?

Working with dbt version 2 I'm trying to set up source checks but I'm running into an issue where the column names I'm setting tests for have dashes (e.g. my_table.some-field-with-dash). I current...

1 answer  ·  posted 1y ago by Sigma‭  ·  last activity 1y ago by Sigma‭

Question database-schema dbt
71%
+3 −0
Q&A Replace leaf arrays with joined strings in a nested structure in jq

As the walk documentation describes: When an array is encountered, f is first applied to its elements and then to the array itself In other words, walk is bottom-up. So when you apply your fi...

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

Answer
71%
+3 −0
Q&A How to convert Dos paths to Posix paths in Powershell

What is the best way to convert Dos paths to Posix paths in Powershell? eg given: C:\Program Files\PowerShell\Modules\ I want something like: /Program\ Files/PowerShell/Modules/ Is the only so...

1 answer  ·  posted 1y ago by kjw‭  ·  last activity 1y ago by H_H‭

Question powershell
71%
+3 −0
Meta What categories could we benefit from having?

Categories should be used when the posting rules for certain types of question differ. For example a debugging question posted below Q&A should have a minimal, relevant example. Whereas a code ...

posted 1y ago by Lundin‭

Answer
71%
+3 −0
Q&A Reaching to a directory in git-bash

You can narrow down the problem by using cd to navigate to the different nested directories in the path one at a time, starting from the one on the left. The first one that gives you an error tells...

posted 1y ago by trichoplax‭

Answer
71%
+3 −0
Q&A How can a Python program send itself to the background?

Is it possible for a Python program to send itself in the background? For example, on Linux you can do nohup some_cmd & and any program will run in the background. Some programs also support s...

1 answer  ·  posted 1y ago by matthewsnyder‭  ·  last activity 1y ago by r~~‭

71%
+3 −0
Q&A OpenGL: Pass a double vector from vertex shader to fragment shader

TL;DR: How to pass a interpolated double vector, such as a dvec2, from the vertex shader to the fragment shader? I have a vertex shader. In this the output variable out vec2 uv; is set. And i have...

1 answer  ·  posted 1y ago by H_H‭  ·  last activity 1y ago by H_H‭

Question glsl OpenGL
70%
+5 −1
Q&A Why is global evil?

The basics of good vs bad program design All programs are divided in classes. (Or modules/abstract data types/interfaces etc - a rose by any other name.) Each class should only be concerned with i...

posted 9mo ago by Lundin‭  ·  edited 9mo ago by Michael‭

Answer
70%
+5 −1
Q&A Read all data from TCP stream in Rust

I'd like to write a TCP client in Rust that can receive the entire message sent by a server, but I have no information about the length of a message. I'm aware that TCP doesn't preserve message bo...

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

Question rust tcp
70%
+5 −1
Meta Closed Question Too Generic, Reason Unhelpful

I will provide an answer to this question in the context of this, now deleted question which included this relevant text before being edited and removed: How to implement a variable trust-based ...

posted 2y ago by Alexei‭  ·  edited 2y ago by Alexei‭

Answer
70%
+5 −1
Meta On self-answered questions, is it inappropriate to mark my own answer "Works for me" immediately?

I don't think it is inappropriate for someone to mark their own answer "Works for me" on self-answered questions, but it feels a little bit redundant since the answer is expected to work for the po...

posted 1y ago by Alexei‭

Answer
70%
+5 −1
Q&A Terms for types of functions with respect to side effects

I don't think there are any formal names for the various versions you list. First of all, please note that output in a programming context most often refers to printing something on a screen or to...

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

Answer