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
 
57%
+2 −1
Q&A How to keep git blame ignored commits up to date?

[Disclaimer: This is an alternative workaround, and not really answering your question.] When blaming files in a git repository in which I am working at the moment, I usually blame from the master...

posted 5mo ago by alx‭  ·  edited 5mo ago by alx‭

Answer
57%
+2 −1
Q&A Call custom Lua function in Vimscript function

In init.vim, I have a Vimscript function that calls a Lua function and returns its value: function! CallLuaFunction() return luaeval("require('functions').say_hello()") endfunction The Lua ...

1 answer  ·  posted 2mo ago by Matthias Braun‭  ·  last activity 2mo ago by Matthias Braun‭

Question lua Neovim
57%
+2 −1
Q&A "google.auth.exceptions.RefreshError: Reauthentication is needed.": How can I extend the authentication time?

I use Gemini via CLI via Google Vertex AI. I keep getting google.auth.exceptions.RefreshError: Reauthentication is needed. Please run gcloud auth application-default login to reauthenticate. ...

0 answers  ·  posted 11d ago by Franck Dernoncourt‭  ·  last activity 6d ago by Alexei‭

Question google-cloud-platform
57%
+2 −1
Q&A How shall I refer to the documents and the context in the prompt when using the Azure RAG-QA framework?

I use Azure OpenAI RAG-QA (aka "bring our data"): which I call via e.g.: import os import pprint from openai import AzureOpenAI #from azure.identity import DefaultAzureCredential, get_bear...

0 answers  ·  posted 1mo ago by Franck Dernoncourt‭  ·  edited 30d ago by Franck Dernoncourt‭

Question azure azure-cognitive-services
55%
+3 −2
Meta Closing self-answered question due to not being clear enough

Poorly asked questions should be closed. Why they are poorly asked (with confusing being only one instance of that) should have no bearing on closure. Whether a question has answers or not should...

posted 10mo ago by Olin Lathrop‭

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

As the error message indicates, the assignment is to the variable row. The for loop will repeatedly assign to row. But why is there a problem? Because Python's scoping rules are bad/broken. There ...

posted 2y ago by Derek Elkins‭

Answer
55%
+3 −2
Q&A How to proportionally convert a number in the range of -1 and 1 to a number in the range of 0 and 319

I have float noise values, between -1 and 1, for every x,y coordinate in a 2D area and I am trying to convert that to a whole number between 0 and 319 which represents a vertical z coordinate to re...

3 answers  ·  posted 2y ago by cuzzo‭  ·  last activity 2y ago by Dirk Herrmann‭

Question java 3d math
55%
+3 −2
Q&A PHP emails are sent when $message is a string, but not when its an array

From the PHP mail manual mail ( string $to , string $subject , string $message , array|string $additional_headers = [] , string $additional_params = "" ) : bool PHP manual syntax (typical for...

posted 4y ago by manassehkatz‭  ·  edited 4y ago by manassehkatz‭

Answer
55%
+3 −2
Q&A Git: How to clone only a few recent commits?

This is called a shallow clone and it's supported by a git-clone argument: git clone --depth 5

posted 1y ago by matthewsnyder‭

Answer
55%
+3 −2
Q&A Java cannot find class within same package

eclipse has a built-in compiler. When developping in eclipse (or any other Java IDE), you can run from eclipse, you can package as a JAR file from eclipse, and even run a full fledged maven / gradl...

posted 3y ago by meriton‭

Answer
55%
+3 −2
Q&A Uncaught TypeError: Failed to construct 'FormData' [closed]

I am trying to submit a form with Ajax from a well-configured shared hosting environment. Emails don't arrive to my email client although I have already sent emails without Ajax from this environm...

1 answer  ·  posted 3y ago by deleted user  ·  closed 3y ago by Alexei‭

Question javascript contact-form
55%
+3 −2
Q&A Why does fopen return NULL?

#include<stdio.h> #include<stdlib.h> int main (void){ FILE *cfPtr; char name[15]; int ID; if ((cfPtr = fopen("draft.txt","w")) == NULL){ printf("File could n...

2 answers  ·  posted 3y ago by dumplings‭  ·  edited 3y ago by dumplings‭

Question c file-handling stdio fopen
55%
+3 −2
Q&A How should we share some content between two otherwise-independent git repositories?

First off, all the things @meriton said, I think overall you would be better in a single repository as your docs and code should be changing at the same rate (or should be). Having said that if you...

posted 4y ago by staticvoid‭  ·  edited 4y ago by staticvoid‭

Answer
55%
+3 −2
Meta Community feedback: What type of questions can I ask here?

Overall feedback: To better understand what is on-topic and what is offtopic, please read the following sections. followed by a total of 16 bullet points ... folks, no first time visitor will car...

posted 4y ago by meriton‭

Answer
54%
+4 −3
Q&A How can I make --reset-author the default?

I do a lot of rebasing and amending of my topic branches. I don't think it's especially useful for me or my colleagues to see in the logs what date it was when I first started working on the partic...

3 answers  ·  posted 4y ago by Hyperlynx‭  ·  last activity 4y ago by Charlie Brumbaugh‭

Question git
54%
+4 −3
Meta Do we want a wiki (or similar) alongside Q&A?

I am not categorically opposed, but I currently don't see a use case for articles. For one, wikis already exist. What would be the benefit of hosting our own rather than participating on Wikipedia?...

posted 4y ago by meriton‭

Answer
54%
+4 −3
Meta How are we supposed to give feedback for poor questions if such comments are deleted?

Providing feedback can be done using comments. However, these comments are supposed to add constructive criticism and/or links to relevant resources. Your first comment does exactly this and it is ...

posted 4y ago by Alexei‭

Answer
54%
+4 −3
Q&A Is `git pull` dangerous?

git pull is dangerous, but not a security problem. The only danger is that it's difficult or inconvenient (but not impossible) to recover to the state prior to the pull, if it would be necessary. ...

posted 8mo ago by alx‭  ·  edited 8mo ago by alx‭

Answer
54%
+4 −3
Meta How can we grow this community?

Emphasize and expand content that competitors fail at or deliberately exclude. This section of What type of questions can I ask here? is already a big deal, but it could be bigger: Best practic...

posted 1y ago by Kevin Krumwiede‭  ·  edited 1y ago by Kevin Krumwiede‭

Answer
53%
+5 −4
Q&A What is an example for a URI which is not a URL?

Every URL is a URI but not every URI is a URL is a saying I know from long ago, but what is an example for a URI which is not a URL (whatever the user agent would be - a web browser, a *nix utility...

1 answer  ·  posted 4y ago by deleted user  ·  last activity 4y ago by Wezl‭

Question terminology url uri
53%
+5 −4
Q&A What's the difference between Inheritance and Polymorphism?

I'm using Java code as an example, but this can be answered if you don't know Java. class Bird{ public void sing(){ System.out.println("Testing"); } } class anClass ex...

2 answers  ·  posted 3y ago by deleted user  ·  edited 3y ago by Alexei‭

Question java polymorphism oop inheritance
53%
+5 −4
Meta Should we allow answers generated by ChatGPT?

My oppion is that they should NOT be allowed if they are not checked by a human for correctness and/or 100% copy pasted without a single thing changed. If they (the poster) checks for correctness a...

posted 2y ago by Ethan‭

Answer
53%
+5 −4
Meta Software recommendations category

Hello all, I was taking a look at proposed communities and saw the discussion about code reviews that lead to the creation of the category. In the process I remembered of Software Recommendations ...

2 answers  ·  posted 3y ago by nelson777‭  ·  last activity 3y ago by Alexei‭

Question discussion feature-request
50%
+0 −0
Q&A Mocking methods with arguments

I managed to do it with lambda. Something like this: Set<U> ulist = new LinkedHashSet<>(); @Test void test() { doAnswer(i -> { U arg = i.getArgument(0); ...

posted 3y ago by klutt‭  ·  edited 3y ago by klutt‭

Answer
50%
+0 −0
Q&A Mocking methods with arguments

You mean, aside from giving the team that made B a stern talking to? ;-) You could introduce another layer of indirection, and mock that. For instance like this: interface MockFriendlyB { pu...

posted 3y ago by meriton‭

Answer