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
 
75%
+4 −0
Meta Best practices for posting tabular data

I am trying to find how tabular data is presented in Software Development. So far, I have found one question, How to pivot text?. The question presents tabular data using code blocks, dash to indic...

3 answers  ·  posted 1y ago by Wicket‭  ·  last activity 1y ago by Wicket‭

75%
+7 −1
Q&A Automatically install all packages needed

When running various Python scripts, I often need to do this annoying dance: $ python script.py ... ModuleNotFoundError: No module named 'foo' $ pip install foo $ python script.py ... Module...

3 answers  ·  posted 1y ago by matthewsnyder‭  ·  last activity 1y ago by meta user‭

Question python-3 pip
75%
+4 −0
Q&A Are there other reasons why useEffect might not be defined apart from not importing it?

I am creating a button that once clicked will change from off to on with react and i am also creating a responsive clock through useEffect. Yet the code still return that useEffect is undefined th...

2 answers  ·  posted 1y ago by Brian‭  ·  last activity 1y ago by jmathew‭

Question reactjs react-hooks
75%
+4 −0
Q&A How to use self referential N-M relationship to make 2 users friends using RedBean PHP ORM?

I am working with PHP and RedBean PHP ORM. I have a table user like so: id | username ---|--------- 1 | Alice 2 | Bob I want Alice and Bob to become friends. So I want to create M-M juncti...

0 answers  ·  posted 1y ago by Vanity Slug ❤️‭

75%
+4 −0
Q&A How to make Husky run git hook?

Breakthrough, I found it, mere minutes after posting here. A workaround more than an answer, but it gets the script working. Reading up on husky.sh I decided that I don't have it and I don't wan...

posted 1y ago by LAFK‭

Answer
75%
+4 −0
Q&A How to make Husky run git hook?

How to make Husky run git hook? I have a working git hook, prepare-commit-message, but the moment Husky was installed, the hook stopped working. Not finding much luck, I then tried to make it a "H...

1 answer  ·  posted 1y ago by LAFK‭  ·  edited 1y ago by Alexei‭

Question git husky git-hook
75%
+4 −0
Meta Merge [functions] with [function]

As I mentioned in a previous post, I'm new here and looking around. I suggest to "merge" functions with function. I don't know how exactly this should be done here. I think the word's singular for...

1 answer  ·  posted 1y ago by Wicket‭  ·  edited 1y ago by ArtOfCode‭

75%
+4 −0
Meta How are software recommendations handled?

How are software recommendations handled on https://software.codidact.com/ ? https://outdoors.codidact.com/ has a "gear recommendations" section, so it seems like Codidact is open to the idea. I s...

1 answer  ·  posted 1y ago by matthewsnyder‭  ·  last activity 1y ago by Lundin‭

Question discussion
75%
+4 −0
Q&A Are there other reasons why useEffect might not be defined apart from not importing it?

Including the full file in the question The question states that useState has been imported, but the codeblock does not include import { useState } from 'react';. Is this the full file or just an ...

posted 1y ago by trichoplax‭

Answer
75%
+4 −0
Q&A Queries to count points lying on arbitrary line

Some answer-specific terminology to make describing things simpler: I will refer to the N points as candidate points. I will refer to the integer points inside the bounding box of the N points ...

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

Answer
75%
+4 −0
Q&A When is it OK for duplication of information between message header and payload in a distributed software application?

A friend is involved in rewriting a distributed software application and while discussing the architecture, we noticed that in many cases the messages had duplication between headers and payload. ...

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

75%
+4 −0
Q&A How to prevent Visual Studio Code from opening an extra blank window?

When I run code . in a directory, Visual Studio Code opens two windows. The first is empty, the second shows directory I was in as expected. I checked ~/.config/VSCode/Workspaces and there is only...

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

Question vs-code
75%
+4 −0
Q&A How to programmatically get current wallpaper file path?

I have written a screensaver program that, in part, uses the current wallpaper for some visual effects. However, finding the current wallpaper in different operating systems and environments is les...

1 answer  ·  posted 2y ago by ghost-in-the-zsh‭  ·  last activity 2y ago by ghost-in-the-zsh‭

75%
+4 −0
Q&A Adding elements to wrapper after calling wrap doesn't work

Remember that jQuery selectors in general can match more than one element. If you had multiple <p> elements in your page, $('p').wrap(wrapper) would put wrapper divs around each of them. So ....

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

Answer
75%
+4 −0
Q&A When would one not want to return an interface?

IList<T> is not necessarily representative of the general case; it's an interface that is (A) widely implemented by a variety of classes from a variety of sources, which themselves (B) tend t...

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

Answer
75%
+4 −0
Q&A Is partial allocation of an object Undefined Behavior?

Since I don't think the C standard says anything explicitly about cases like this, it is probably undefined behavior, under the "not mentioned in the standard" variety. If something isn't mentioned...

posted 2y ago by Lundin‭

Answer
75%
+4 −0
Meta Deciding if a concept can be materialized to a tag

Note: this is inspired by the comments on this post and especially this one which mentions: We have tags for languages because people have interest or expertise in languages; likewise frameworks...

1 answer  ·  posted 2y ago by Alexei‭  ·  edited 2y ago by trichoplax‭

Question discussion tags
75%
+4 −0
Q&A What's causing mypy to give an `[assignment]` error in this nested for loop?

I started adding types to my (working) solution to Exercism's "Kindergarten Garden" exercise, to learn how typing with python and Mypy (strict) works. While doing so, I ran into a Mypy error that I...

2 answers  ·  posted 2y ago by true_blue‭  ·  last activity 2y ago by Moshi‭

Question python mypy
75%
+4 −0
Meta interface and interface-type tags

My most recent question was tagged with interface-type. I had seen the interface tag when I was creating the question, but the usage information says Please avoid using this tag, as it is too g...

1 answer  ·  posted 2y ago by Moshi‭  ·  last activity 2y ago by Alexei‭

Question discussion tags
75%
+4 −0
Q&A Create self-referencing many-to-many relation

I'm taking a significant leap by guessing what you are trying to do from your other questions. If you provide some additional info, this answer might become more or less relevent. (I am also using...

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

Answer
75%
+4 −0
Q&A Dealing with code maintenance when saving a large and complex entity in a single business transaction

Context I am currently working on migrating a legacy application to an ASP.NET Core + Angular application. The Web API's main project is based on Jason Taylor's template (clean architecture) and a...

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

75%
+4 −0
Code Reviews Writing a testable console program

is there a way to write MockIO so that I don't have to change the signature of IO::println() for the sake of the test class? Yes, implementing mock objects is one of the recommended uses for R...

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

Answer
75%
+4 −0
Q&A Is it possible to get the current function in a trace function?

CPython only very recently started keeping a reference on frames to function objects internally, and that reference isn't exposed from inside Python. There's an old PEP that would have defined a _...

posted 1y ago by r~~‭

Answer
75%
+4 −0
Code Reviews JSON log formatter

I'd suggest using Black to format the code. While there are a number of formatters, it helps to pick one to make the code consistent. (See https://github.com/psf/black) The use of .update({"excep...

posted 1y ago by SLott56‭

Answer
75%
+4 −0
Code Reviews Writing a testable console program

I have a class Foo that prints something to stdout and I want to be able to write tests for it. So I created a trait to abstract println!, and gave it a prod implementation and a test implementati...

2 answers  ·  posted 1y ago by KevinG‭  ·  last activity 1y ago by LAFK‭

Question rust