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
 
80%
+6 −0
Q&A How to configure .gitignore to ignore all files except a certain directory

From the docs Example to exclude everything except a specific directory foo/bar (note the /* - without the slash, the wildcard would also exclude everything within foo/bar): $ cat .gitignore...

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

Answer
80%
+6 −0
Meta Participate Everywhere ability without meeting the requirements?

Why do we have the "Participate Everywhere" ability when we haven't yet done anything? Bootstrapping. Our communities are still small, so after we rolled out the abilities system we decided to p...

posted 2y ago by Moshi‭

Answer
80%
+6 −0
Q&A Cast uninitialized variable to (void)

Yes, it is safe unless the variable is volatile. The term used in the C99 standard for the value of an "uninitialized" variable is indeterminate. From C99 standard: Section 6.2.4 Storage duratio...

posted 2y ago by Estela‭  ·  edited 2y ago by Ethan‭

Answer
80%
+6 −0
Q&A What's causing mypy to give an `[assignment]` error in this nested for loop?

The problem is that you are using row twice with different types. for row in self.diagram: # row is str here for row in self.seed_diagram: # row is list[str] here Renaming one or the other m...

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

Answer
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‭

Question standard-library haskell
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 2y 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 2y ago by misk94555‭  ·  last activity 1y 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‭

Question git git-merge branching-strategy
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 2y 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 2y 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 2y ago by andreas‭  ·  edited 1y ago by matthewsnyder‭

Question algorithms julia python-3
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 2y ago by tripleee‭

Answer
78%
+9 −1
Q&A What is do { } while(0) in macros and should we use it?

Background I can see the need to use { } when implementing a function-like macro such as this one: #define HCF(code) fprintf(stderr, "halt and catch fire"); exit(code); Because if we use the f...

2 answers  ·  posted 4y ago by Lundin‭  ·  last activity 1y ago by Karl Knechtel‭

Question c code-style macros
78%
+9 −1
Meta How are we supposed to give feedback for poor questions if such comments are deleted?

I remember reading @meriton's comments on that question and thinking they were good feedback; if I hadn't seen them there, I would have written something similar. This is also an argument against ...

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

Answer
78%
+9 −1
Meta Etiquette for posting comments

Regarding "snark" - it is very hard and subjective to define. Our overall code of conduct says "be nice", but where do you draw the line. On SO, general gruff attitude tends to be treated very diff...

posted 4y ago by Lundin‭

Answer
77%
+5 −0
Meta Is it OK to use abusive content on code?

In SO, I had saw that a person was writing lot of abusive words inside code. Just like, if(a==b){ print("f***") } I had flagged on that post with little bit explanation. The user gave ...

2 answers  ·  posted 4y ago by deleted user  ·  last activity 4y ago by Estela‭

Question discussion code abusive posts
77%
+5 −0
Q&A Modern CSS for splitting form sections into columns

I have a mobile-only HTML contact form divided in source code into three sections; each section should contain fields by a different context. <!DOCTYPE html> <html> <head> ...

1 answer  ·  posted 4y ago by deleted user  ·  edited 4y ago by Alexei‭

Question css css-multicolumn-layout mobile
77%
+5 −0
Meta Etiquette for posting comments

Proposal: Can Include Helpful feedback I'd refrain from restricting the topic of feedback, because there are many possible topics: Clarifying the question Explaining why OP would be ...

posted 4y ago by meriton‭

Answer
77%
+5 −0
Meta Do we need more specific up/down vote reasons for Software Development community?

I agree that these buttons should have tooltips explaining what the buttons are for. That would be far more useful than showing the result of a simple calculation on the displayed votes, and seems ...

posted 4y ago by meriton‭

Answer
77%
+5 −0
Q&A Is the concept of a PHP lint feasible?

If I understand correctly what you are asking for is a static code analysis tool for PHP. A quick search reveals that Psalm would be such a tool.

posted 4y ago by Alexei‭

Answer
77%
+5 −0
Q&A What's the difference between =, == and === operators in JavaScript?

While learning JavaScript, I started to see =, == and === operators. What's the difference between them?

3 answers  ·  posted 3y ago by Kevin M. Mansour‭  ·  last activity 3y ago by hkotsubo‭

Question javascript operators
77%
+5 −0
Meta Allow filtering search for only Meta (or any other category)

You can now add "category:###" to a search, where ### is the number in the URL for the category, to restrict the search to one category. For example, Software Dev Q&A is 38 and Code Review is ...

posted 3y ago by Monica Cellio‭  ·  edited 3y ago by Monica Cellio‭

Answer
77%
+5 −0
Q&A What's the difference between placing <script> in the <head> and placing in the <body>?

Placing <script> in the <head>: Placing <script> in the <head> might affect the performance since the content won't load until the browser complete downloading the JavaScri...

posted 3y ago by Kevin M. Mansour‭

Answer