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
 
77%
+5 −0
Code Reviews Is this HTML sanitizer safe?

Is there any disadvantage of doing it this way that I should be aware of? In general whitelisting is the best way to sanitise, but it does create important error classes, especially missing it...

posted 3y ago by Peter Taylor‭

Answer
77%
+5 −0
Q&A updating a function within a struct

You are correct in your analysis (though I would not call new_b a "parameter" but a captured variable). What you want is for the closure (anonymous function) to take responsibility for new_b and n...

posted 3y ago by Derek Elkins‭

Answer
77%
+5 −0
Q&A updating a function within a struct

What I want: An object that contains a function that I can update after creation. I created a struct that contains a parameter b and a function(closure?) named Internal_Fn. struct MyThing { ...

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

Question rust lifetime
77%
+5 −0
Meta Is it correct to ask customer service-related questions?

Asking customer service-related questions is generally offtopic unless there is a connection to the software development process. Taking your examples one by one: How do I get my Facebook deve...

posted 4y ago by Alexei‭  ·  edited 3y ago by Alexei‭

Answer
77%
+5 −0
Meta Renaming a tag to an existing one fails silently

If I try to rename a tag to an existing one it silently fails. Example: trying to rename data-archiving to archiving fails with console error only: application-f4dc10c11dc65439a992f7c98cb554bfbc...

0 answers  ·  posted 4y ago by Alexei‭  ·  edited 3y ago by Alexei‭

Question bug tags
77%
+5 −0
Q&A grep AND search for multiple words in files

From your description ... I have text (xml actually) files. Some files contain 'foo', some contain 'bar', some contain neither and some contain both. It's the both I'm interested in. ... I co...

posted 2y ago by Dirk Herrmann‭  ·  edited 2y ago by Dirk Herrmann‭

Answer
77%
+5 −0
Meta Should I delete my trivial, lack-of-research question?

I asked this trivial question recently: DocuSign eSignature API SDK: java.lang.NoClassDefFoundError errors. It turns out, my problem was because I did not do enough research before asking a quest...

3 answers  ·  posted 2y ago by Vanity Slug ❤️‭  ·  last activity 2y ago by Wicket‭

Question discussion
77%
+5 −0
Q&A Automatically install all packages needed

The best approach is probably to just check the script beforehand, something like the following grep import script.py should list all imports and you can then evaluate and install them. If you...

posted 2y ago by cafce25‭

Answer
77%
+5 −0
Q&A What is the purpose of grouping the tests in a `tests` module and is it possible to split them?

The reason to put tests in a separate module is so they are grouped. Another advantage is that you can put helper functions that are only needed for tests, but are not themselves tests in the modu...

posted 2y ago by cafce25‭

Answer
77%
+5 −0
Q&A Possible drawbacks for having duplicate local sources of the project tracking the same Git remote

Context I have started working on an Angular upgrade for a medium-sized project (from v. 10 to v. 15) and this is a rather long activity that is interrupted by other changes that need to be perfor...

2 answers  ·  posted 2y ago by Alexei‭  ·  last activity 2y ago by Andrew‭

Question git angular upgrade npm
77%
+5 −0
Q&A How to configure Python pip to look for packages in a private index first?

When I run pip install foo, pip looks for foo in PyPi. I want it to look for it first in a private repo, let's say pypi.bar.com. Only if foo cannot be found in pypi.bar.com, should pip then look f...

1 answer  ·  posted 2y ago by matthewsnyder‭  ·  last activity 2y ago by tripleee‭

Question python-3 pip
77%
+5 −0
Q&A When would one not want to return an interface?

I think the main reason to do this is when the interfaces fail to account for some subtlety of the contract between caller and implementation. For example, let's pretend for a moment that your use...

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

Answer
77%
+5 −0
Q&A Using DBUS and GTK in one perl program

Perl is by far the language I have the most experience with, and I have (big) parts of the functionality I want in the new program in existing programs. So I'm looking for a way to do this in perl,...

1 answer  ·  posted 2y ago by Grove‭  ·  last activity 2y ago by deleted user

Question perl dbus gtk gtk3
77%
+5 −0
Meta Server error 500 when clicking on suggested edit details

I get an error page with server error 500 when clicking the link to view my suggested edit activity on my activity page. The suggested edit has the status helpful. Error ID 6ca4f8c8-4a0d-425d-8e09...

0 answers  ·  posted 2y ago by riQQ‭  ·  edited 2y ago by Monica Cellio‭

Question bug status-completed suggested-edit
77%
+5 −0
Q&A Is it worth using the Java Platform Module System in application code?

If you are planning to share the application with individual users (rather than deploying it to a server), declaring your module dependencies explicitly allows jlink to create a stripped-down Java ...

posted 2y ago by VGR‭

Answer
77%
+5 −0
Q&A Lemmy API: how to get list of followed/subscribed communities.

Context Using the lemmy API, I'm trying to get a list of sublemmies (lemmy communities) that a user is following. Reading the documentation, I using the /site endpoint, I should be able to get a ...

1 answer  ·  posted 2y ago by elvis_depresley‭  ·  last activity 1y ago by tgxn‭

Question rest lemmy curl
77%
+5 −0
Q&A Programmatically import, edit and export DBC files

I am looking for a way to programmatically edit and save .dbc files that are meant for J1939 CAN communication. I have a few large files that need to be compared/edited. Being able to import, edit...

1 answer  ·  posted 2y ago by HinkyDinky‭  ·  last activity 1y ago by HinkyDinky‭

Question dbc can-bus
77%
+5 −0
Meta To transfer, or not to, that is the question: whether 'tis nobler to let it stay or to take arms against Stack Overflow's dominance of FAQ canonicals

You are a thoughtful person, aren't you? /me bows in thanks I for one think it would be valuable, even if you were to port it as is. In other words: it's valuable. Period. I like what Stephen s...

posted 1y ago by LAFK‭  ·  edited 1y ago by Stephen Ostermiller‭

Answer
77%
+5 −0
Meta Self answered questions about an unclear quickstart

Yes Quick starting with an API is definitely ontopic and especially helpful for newbies who struggle to understand the "spirit" of that API. Even if nobody else from the community is into Google ...

posted 2y ago by Alexei‭

Answer
77%
+5 −0
Q&A Programmatically import, edit and export DBC files

Credit go to @Lundin‭ for pointing me in the right direction. Kvaser has a CAN SDK free of charge. I added this to my VS22 C# project by adding "...\Kvaser\Canlib\dotnet\x64\netstandard2.0\Kvaser...

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

Answer
77%
+5 −0
Q&A How to move a tag in git?

I have created a tag in my project, using git tag v2023 However, I forgot to commit a few changes. Now I would like to move this tag to the current point (after having committed the changes I had...

1 answer  ·  posted 1y ago by mr Tsjolder‭  ·  edited 1y ago by meta user‭

Question git version-control
77%
+5 −0
Q&A How to move a tag in git?

You can (forcibly) replace a tag with the -f, --force flag: git tag -f v2023 (assuming the current HEAD is where you want the tag to end up)

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

Answer
77%
+5 −0
Q&A Create a list of Niven numbers in Python

The way your code handles the variable i within the for loop seems to indicate a wrong understanding of the meaning of for i in range(1,n+2): range(1,n+2) will provide an object of type range. ...

posted 2y ago by Dirk Herrmann‭  ·  edited 2y ago by Dirk Herrmann‭

Answer
77%
+5 −0
Q&A Any testimonials for any C++ units of measure library?

The question is about libraries that extend the data type system to ensure physically realistic computations. Think std::chrono but for distance and mass and other things as well as for time. Inste...

1 answer  ·  posted 2y ago by Fred Wamsley‭  ·  last activity 2y ago by Ben‭

Question c++ units-of-measurement
77%
+5 −0
Q&A Keep local branch changes to resolve all remaining conflicts in a merge

On branch-x, I do git merge branch-y Now there are some conflicts, and git status shows Changes to be committed: new file: a new file: b Unmerged paths: (use "git a...

1 answer  ·  posted 2y ago by Quasímodo‭  ·  last activity 2y ago by Quasímodo‭

Question git git-merge git-merge-conflict