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
Q&A Storing more bytes than a union member has, but less than the union size, with memcpy(3)

Let's say we have an object, we store it in a union (into some other narrower type, but with memcpy(3), so it's allowed --I guess--), and then read it from the union via it's original type (so no a...

2 answers  ·  posted 2y ago by alx‭  ·  last activity 2y ago by Lundin‭

Question c strict-aliasing type-punning language-lawyer
77%
+5 −0
Q&A Library that is platform-specific via selective compilation?

The proposed library would sit alongside cross-platform libraries in Xamarin apps for iOS and Android. However, it would include files with names like MyLibraryFile.android.cs MyLibraryFile.ios...

1 answer  ·  posted 2y ago by plod‭  ·  last activity 2y ago by Olin Lathrop‭

Question c# cross-platform
77%
+5 −0
Meta Should we allow SEO related questions?

We have recently received a search engine optimization (SEO) question. Our scope currently does not explicitly include or exclude such questions, so I thought we should clarify this. Possible opt...

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

Question discussion scope
77%
+5 −0
Meta Should we allow answers generated by ChatGPT?

The expectation for all posts is, that a post is always understood as the own work of the poster, who has the copyright and responsibility for it and offers it to the site according to the site's c...

posted 2y ago by Dirk Herrmann‭

Answer
77%
+5 −0
Q&A Can freed pointers undergo lvalue conversion?

char *p, *q; p = malloc(1); free(p); q = p; // lvalue conversion Is the last lvalue conversion (= p;) Undefined Behavior or not? We didn't take the address of the local p. C11::6.3.2.1...

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

Question c pointers language-lawyer
77%
+5 −0
Q&A Why can parentheses cause exceptions in Python when using for loops?

A single element tuple has a trailing comma Note that the example in the question does not form a tuple, as there is a special syntax for single element tuples. A single element tuple has a traili...

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

Answer
77%
+5 −0
Q&A What is the Python Global Interpreter Lock?

What exactly is the Python Global Interpreter Lock (GIL)? As someone who is relatively new to Python, is this something I need to be aware of, or is this just some implementation detail of the inte...

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

Question python python-gil
77%
+5 −0
Meta Participate Everywhere ability without meeting the requirements?

Software Development Codidact is currently set to "New Site Mode". When we first launch a community, we've been launching with adjusted settings that make it easier to earn certain Abilities. On...

posted 3y ago by Mithical‭

Answer
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 3y ago by Quasímodo‭  ·  last activity 3y ago by Quasímodo‭

Question git git-merge git-merge-conflict
77%
+5 −0
Q&A How to use grep to print only specific word from a string

I wouldn't use grep. As the other answers already said, it's not the right tool for this job. Considering your specific case (fields separated by /), basename is the most straighforward way, as st...

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

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 Cast uninitialized variable to (void)

It depends. This boils down to whether or not the expression cast to void contains any side effects, such as accessing a volatile-qualified object or modifying any object. C17 6.3.2.2: If an ex...

posted 3y ago by Lundin‭  ·  edited 3y ago by Ethan‭

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 3y ago by Dirk Herrmann‭  ·  edited 3y ago by Dirk Herrmann‭

Answer
77%
+5 −0
Q&A Child div doesn't inherit parent's div background-color

I have a parent div with two child divs. I want the parent div and the child divs to have a blue background color when it's hovered. But the child divs doesn't inherit the background color. It is o...

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

Question html css
77%
+5 −0
Q&A ffmpeg: apply a filter from a start time to the end of the video

I think I found a solution myself. Instead of using the between() function, you can use the gte() (greater than or equal to) function. So the command above would be: ffmpeg -i video.mp4 -vf "yadif...

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

Answer
77%
+5 −0
Q&A Can I access an array element from a pointer to an object contiguous with but outside the array?

The problem with undefined behavior due to array out of bounds happens whenever we use pointer arithmetic, which is only defined to work within the bounds of an array. Where plain variables, "scala...

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

Answer
77%
+5 −0
Q&A What determines where the focus goes back to when clicking on a browser's back button?

As far as I can tell, it is in part determined by the HTML spec's History API1, specifically the value of history.scrollRestoration. Quoting the HTML spec's scroll restoration mode paragraph: ...

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

Question html accessibility html5-history screen-readers
77%
+5 −0
Q&A Why does RFC 3986 (URI generic syntax) declare the "host" component to be case-insensitive when the syntax rules show it to be case-sensitive?

This question probably stems from misunderstanding what case sensitivity is. Being case insensitive does not mean only allowing one case - in fact, it implies the opposite! If one case was treated ...

posted 1y ago by Moshi‭

Answer
77%
+5 −0
Q&A How can one import two classes with the same name in Java8?

Some development tools provide an error message when a user tries to import two things (classes, packages) with the same name. Some programming languages offer a syntax to import one of those thing...

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

Question java java-8
77%
+5 −0
Q&A Why does this work? .collect() automatic conversion to function return type

I'm completing the rustlings exercises as part of self-teaching Rust. While working on the third iterators exercise, I solved the exercise but don't quite understand why my solution works. Specifi...

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

Question rust
77%
+5 −0
Q&A Are there technical reasons to pick one struct coding style over the other?

Arguments in favour of "struct tag style": Less namespace clutter. C has a peculiar name space system where all identifiers belong to one of: labels, tags, members, ordinary. Struct tag style...

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

Answer
77%
+5 −0
Q&A Are there technical reasons to pick one struct coding style over the other?

C offers two different styles when it comes to structs (and union/enum too). Either declare them using a struct tag only ("struct tag style"): struct my_type { ... }; struct my_type x; Or ...

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

Question c code-style struct
77%
+5 −0
Q&A Is there any rationale for the lack of local constants in PHP?

The last few years, PHP has basically exploded with lots of modern language constructs that makes the life easier. But local constants are still missing, and I find that very strange. I have found...

0 answers  ·  posted 1y ago by klutt‭

Question php
77%
+5 −0
Q&A How to delete a local branch in git?

The safe way: [1] git branch --delete <branch-name> It will fail if the branch isn't merged. If this is ok then you can delete it anyway like this: [2] git branch --delete --force <br...

posted 1y ago by Iizuki‭

Answer
77%
+5 −0
Q&A How to provide meaningful names for emails in Maildir?

This is pretty much exactly what formail is good at. Specifically useful for this case, formail lets you extract headers, given an email message on RFC 822-esque format. In bash, if you have the ...

posted 1y ago by Canina‭

Answer