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
 
81%
+7 −0
Q&A Can you have syntax highlighting for streaming text in Python?

The answer is "it depends". It depends on the language, how much buffering you're willing to allow, how much you're willing to accept some approximate/incorrect syntax highlighting, and whether you...

posted 10mo ago by Derek Elkins‭

Answer
81%
+7 −0
Q&A Why is the new auto keyword from C++11 or C23 dangerous?

The auto feature was indeed mainly meant to solve long cumbersome template container declarations in C++. But when introduced to C23 - where there are no templates let alone template containers - i...

posted 10mo ago by Lundin‭  ·  edited 10mo ago by Lundin‭

Answer
81%
+7 −0
Q&A After git fetch, how to fast forward my branch?

The answer by hkotsubo is correct. But just in case you're being very specific about fast-forwarding, it's worth stressing that you can use --ff-only as an option on the merge to abort if it requir...

posted 10mo ago by Michael‭  ·  edited 10mo ago by Michael‭

Answer
81%
+7 −0
Q&A Where to place digit separators in C23?

C23 introduces the digit separator ' which can be placed anywhere inside an integer constant for the purpose of clarity and self-documenting code. These are otherwise ignored by the compiler when d...

2 answers  ·  posted 11mo ago by Lundin‭  ·  last activity 11mo ago by John C‭

Question c code-style c23 digit-separators
81%
+7 −0
Q&A Where to place digit separators in C23?

Since this is all new, there might still be time to establish a consensus before this style feature too ends up "all over the place" (like upper/lower case hex, upper/lower case integer constant su...

posted 11mo ago by Lundin‭

Answer
81%
+7 −0
Q&A How to verify if a year is leap in Java?

How to verify if a year is leap? Given a numeric value (such as 2023) or some object that represents a date (such as Date, Calendar, LocalDate, etc), how can I do it?

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

Question java date
81%
+7 −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

Hi and welcome to the site. :) I think the idea of a canonical like the one you linked is great. A lot of newbies have too little understanding of their topic to identify common patterns. So they ...

posted 2y ago by matthewsnyder‭

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

You want git worktree: https://git-scm.com/docs/git-worktree. The idea is that you can have multiple branches of the same repository checked out to different directories, but they're still the "sa...

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

Answer
81%
+7 −0
Q&A How do I add functionality to the back button?

How do I add functionality to the back button in Android without reimplementing the back button entirely? Prior to last year, I would just call onBackPressed() and then simply override it: overri...

1 answer  ·  posted 2y ago by Ullallulloo‭  ·  edited 2y ago by Ullallulloo‭

Question android
81%
+7 −0
Q&A What are disadvantages of static functions (ie functions with internal linkage) in C?

There is basically only one reason not to use static functions in C, as opposed to functions with global scope. That's if you want to access the function from outside the module. Otherwise, if th...

posted 2y ago by Olin Lathrop‭  ·  edited 2y ago by Lover of Structure‭

Answer
81%
+7 −0
Q&A Qt Button changes drastically when setting its `border-radius`.

See this comment: https://forum.qt.io/topic/60546/qpushbutton-default-windows-style-sheet#3 Stylesheets are a totally different beasts. The default native drawing doesn't use stylesheets. They ...

posted 2y ago by r~~‭

Answer
81%
+7 −0
Q&A What does this function definition mean in Haskell?

fn x [] = [] means that if the second argument to fn is an empty list, return an empty list. fn x (True:ys) = x : fn x ys means that if the second argument to fn starts with True, return a list th...

posted 2y ago by r~~‭

Answer
81%
+7 −0
Meta Are questions about language design on-topic?

I was chatting with somebody who's involved with a proposal on SE for a site about language design and who is interested in other options too. Some sample questions: What are the tradeoffs b...

2 answers  ·  posted 2y ago by Monica Cellio‭  ·  last activity 2y ago by Lundin‭

Question discussion scope
81%
+7 −0
Q&A How can I provide additional information when raising an exception?

Python documentation suggests that you can simply add other parameters when raising the Exception and retrieve them using args: Code try: raise Exception('spam', 'eggs') except Exception as in...

posted 2y ago by Alexei‭

Answer
81%
+7 −0
Q&A Qt Button changes drastically when setting its `border-radius`.

In a Qt application I have nothing more than a window with a button as its direct child. I set its background color and all is fine: Window::Window(QWidget *parent) : QWidget(parent) { but...

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

Question qt css
81%
+7 −0
Q&A What is the purpose of grouping the tests in a `tests` module and is it possible to split them?

What is the purpose of grouping the tests in a tests module like this #[cfg(test)] mod tests { use super::*; #[test] fn test_function_1() { // test code for function 1 g...

3 answers  ·  posted 2y ago by ShadowsRanger‭  ·  last activity 2y ago by Moshi‭

Question rust testing
81%
+7 −0
Q&A Is there any benefit to using new?

I've heard that in modern C++, smart pointers are preferred to raw pointers for ownership (the so-called RAII principle, as I understand it). This makes sense, and since then I've always used them...

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

Question c++ memory-management smart-pointers keyword-new
81%
+7 −0
Q&A How to use grep to print only specific word from a string

While I agree with Dirk Herrmann that basename is the right tool for the job, I think it is still worthwhile to know how to do it with grep, because you might one day encounter a sufficiently simil...

posted 3y ago by celtschk‭

Answer
81%
+7 −0
Q&A How to use grep to print only specific word from a string

I have a variable that contains a string: $CCSR = "branches/features/arm_and_musl" I want to get only the part after the last /. In this case it's "arm_and_musl" but it can be anything. So som...

3 answers  ·  posted 3y ago by Megan‭  ·  edited 3y ago by hkotsubo‭

Question bash shell
81%
+7 −0
Meta Asking and answering FAQ style questions

After spending my time on SO, I found that some of the FAQ style questions were VERY helpful, especially with things such as SQL injection in PHP/MySQL (for example How can I prevent SQL injection ...

3 answers  ·  posted 2y ago by Can O' Spam‭  ·  last activity 2y ago by Monica Cellio‭

Question discussion
81%
+7 −0
Meta Should asking about book recommendations directly connected to software development be on-topic?

Context We have recently received a suggestion to allow questions about recommending books directly connected to software development. The way I see this now (pros and cons) Pros: allow more ...

7 answers  ·  posted 2y ago by Alexei‭  ·  last activity 1y ago by Karl Knechtel‭

Question discussion questions ontopic
81%
+7 −0
Meta Should I delete my trivial, lack-of-research question?

I agree with Dirk Herrmann‭'s answer about this: What if a question is beginner level? I would say: Someone should answer it. Some of the beginner level questions on stackoverflow have rece...

posted 2y ago by Alexei‭

Answer
81%
+7 −0
Q&A grep AND search for multiple words in files

Your grep invocation will first search for files which contain foo and print a list of the lines from each which contain the word foo; the second grep invocation will take this list and filter it d...

posted 2y ago by Canina‭

Answer
81%
+7 −0
Q&A Common string handling pitfalls in C programming

This is a self-answered Q&A meant as a C string handling FAQ. It will ask several questions at once which isn't ideal, but they are all closely related and I'd rather not fragment the post in...

2 answers  ·  posted 3y ago by Lundin‭  ·  last activity 6mo ago by Karl Knechtel‭

Question c string string-literals string.h
81%
+7 −0
Meta Why did my question get a downvote?

For me the following reasons might lead to downvoting: Posts that are not related to a specific programming issue, but are rather meant to start a discussion. Example Asking for software ...

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

Answer