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
 
81%
+7 −0
Q&A SQL timestamp for daylight saving day when clock goes 1 hour back.

This behaviour is documented here: "... an ambiguous timestamp that could fall on either side of a jump-back transition is assigned the UTC offset that prevailed just after the transition." S...

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

Answer
81%
+7 −0
Q&A SQL timestamp for daylight saving day when clock goes 1 hour back.

On 25th October 2020 in Europe/Berlin clocks where set back from 03:00 AM to 02:00 AM to change from summer time (CEDT) to winter time (CET). Which means there is a 1 hour separation between 02:30...

1 answer  ·  posted 3y ago by Estela‭  ·  last activity 3y ago by hkotsubo‭

81%
+7 −0
Q&A Map<?, Optional<T>> to Map<?, T>

Using Optional as a value in a Map will lead you to unnecessary complexity and confusion — as you can see. The primary intention of Optional is to serve as a return type, indicating that a value m...

posted 3mo ago by ɯıpɐʌ‭

Answer
81%
+7 −0
Q&A Map<?, Optional<T>> to Map<?, T>

I have a Map with Optional values. I want to filter it to remove empty values. Map<K, Optional<T>> input; Map<K, T> result = input. // here is some code I'm looking for ...

2 answers  ·  posted 3mo ago by talex‭  ·  last activity 3mo ago by hkotsubo‭

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

In older C and C++ standards, the auto keyword simply meant automatic storage duration. As in the compiler automatically handles where the variable is stored, typically on the stack or in a registe...

2 answers  ·  posted 5mo ago by Lundin‭  ·  last activity 4mo ago by celtschk‭

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 5mo ago by Derek Elkins‭

Answer
81%
+7 −0
Q&A how do I get markdown to render # as a shell prompt and not a comment?

Instead of sh, use shell or console. So this: ```shell # echo hi ``` ```console # echo hi ``` Is rendered as: # echo hi # echo hi While this: ```bash # echo hi ``` ```sh #...

posted 12d ago by hkotsubo‭  ·  edited 9d ago by hkotsubo‭

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 6mo ago by Lundin‭  ·  last activity 6mo ago by John C‭

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 6mo ago by Lundin‭

Answer
81%
+7 −0
Q&A Are "strong passwords" at all meaningful?

NIST Special Publication 800-63 says that "strong" password requirements are not only useless but counterproductive. They recommend only a minimum length requirement and a small blacklist of common...

posted 12mo ago by Kevin Krumwiede‭

Answer
81%
+7 −0
Q&A Git apply vs git am

What are the differences between git apply and git am commands? Both seem to be used for applying patches to repositories. When should one be used over the other?

1 answer  ·  posted 11mo ago by Iizuki‭  ·  last activity 5mo ago by Michael‭

Question git
81%
+7 −0
Q&A Git apply vs git am

Each of them has an analog to another Git command. But instead of objects in the repository, these take text file(s) created either by you or someone else. git apply Think of this as Applying a g...

posted 11mo ago by Michael‭  ·  edited 5mo ago by Michael‭

Answer
81%
+7 −0
Q&A What is the point of triggering CI/CD with an empty git commit?

I read posts (e.g., 1, 2, 3) that recommend triggering a CI build process by pushing an empty git commit. I don't understand how this is a good idea as the commit history will be peppered with mea...

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

Question git ci/cd
81%
+7 −0
Q&A Git add/stage only part of a file's changes

Say I've made a bunch of changes to a file and would like to split those changes into two or more commits. Normal git add however stages the whole file in one go. So how to add only some of the ch...

1 answer  ·  posted 1y ago by Iizuki‭  ·  last activity 1y ago by Iizuki‭

Question git
81%
+7 −0
Q&A How to delete a remote branch in git?

The other answer already provides the more straighforward solution (push with --delete option). But there's an older syntax that also works: git push <remote-name> :<branch-name> N...

posted 10mo ago by hkotsubo‭

Answer
81%
+7 −0
Q&A Understanding mutable default arguments in Python

Terminology "Mutable default argument" means exactly what the individual words would suggest: it's an argument which is supplied as the default value for that parameter, which also is mutable. To ...

posted 1y ago by Karl Knechtel‭  ·  edited 1y ago by Karl Knechtel‭

Answer
81%
+7 −0
Q&A How to revert main branch to an earlier commit in git?

How to move the main branch back to an earlier commit in git?

2 answers  ·  posted 1y ago by Iizuki‭  ·  last activity 1y ago by Michael‭

Question git
81%
+7 −0
Q&A How to revert main branch to an earlier commit in git?

With git reset, but first, you may want to save the current state in another branch: $ git switch main $ git branch backup-of-main Now the (perhaps messed up) state is safely stored in branch ...

posted 1y ago by Iizuki‭  ·  edited 1y ago by Alexei‭

Answer
81%
+7 −0
Q&A How do I remove an element from a Java array?

Arrays in Java are created with a fixed length, which cannot be changed in its lifetime. The only way to really change the length of the array is to create a new array with the intended length and ...

posted 1y ago by E_net4‭

Answer
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 1y 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 1y ago by Andrew‭  ·  edited 1y 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 1y ago by Ullallulloo‭  ·  edited 1y 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 1y ago by Olin Lathrop‭  ·  edited 1y ago by Lover of Structure‭

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 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 1y ago by Alexei‭

Answer