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
 
83%
+8 −0
Q&A Update list based on presence of identifier in a second list

In C#, I have two lists and need to mark records in the first based on the second. Here's a sample: public class Vehicle { public string Make { get; set; } public string VIN { get; set;...

3 answers  ·  posted 4y ago by FrankLuke‭  ·  last activity 4y ago by Andrew Shepherd‭

Question c# linq
83%
+8 −0
Q&A Is `uint8_t` always an alias for a character type if it exists?

Is uint8_t guaranteed to be a character type if it exists? Will using a uint8_t* to examine bytes of an object cause violation of the strict aliasing rule? Is the following legal code: #include &l...

1 answer  ·  posted 4y ago by Ayxan Haqverdili‭  ·  edited 4y ago by Lundin‭

Question c++ strict-aliasing type-punning character stdint.h character-type
83%
+8 −0
Q&A Is it correct to run code inside a method whose object has been destroyed?

Consider an object for which a method is invoked. Beyond certain point the method no longer accesses this at all. No read/writes of non-static members. No invocation of non-static methods. Is it ...

1 answer  ·  posted 4y ago by Estela‭  ·  last activity 4y ago by Hyperlynx‭

Question c++ multithreading
83%
+8 −0
Q&A Destroy std::mutex referenced but not owned by std::unique_lock?

No, such an operation is not safe. The documentation of std::unique_lock in the standard states that it's UB for the mutex do be destroyed while the lock still has a pointer to it. However, there ...

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

Answer
83%
+8 −0
Meta Are code troubleshooting posts allowed?

tl;dr: Allowing beginner-level "help me diagnose this" questions will generate large volumes of duplicates if the site ever scales. We need to think about how to structure things if we want them. ...

posted 4y ago by dmckee‭

Answer
83%
+8 −0
Q&A Interpreted language: What is its benefit for being written in that way ?

Historically, compiling programs could take a long time. Interpreted languages did not need to be compiled. So if developers wanted to change the program, if it was interpreted they could just twea...

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

Answer
83%
+8 −0
Q&A Path separator for Atom / JavaScript on Windows

I have developed an Atom package which calls SyncTeX (a utility for reverse lookup for LaTeX), and then opens in Atom the file specified in the SyncTeX response. I'm developing on Linux, but now a ...

0 answers  ·  posted 4y ago by A. Donda‭  ·  last activity 3y ago by Kevin M. Mansour‭

Question javascript atom-editor path-separator
83%
+8 −0
Meta Who should the moderators be?

As we have set up communities here on the Codidact network we've been appointing temporary moderators. Usually some people stand out from the proposal process and early activity. Ultimately, of c...

3 answers  ·  posted 4y ago by Monica Cellio‭  ·  edited 4y ago by Monica Cellio‭

Question discussion moderators
83%
+8 −0
Meta Should posting on Meta affect reputation?

When we launched this community, we did not yet have the ability to set different reputation grants for different categories. We've had this for a while but we failed to follow up before now, sorr...

1 answer  ·  posted 2y ago by Monica Cellio‭  ·  edited 1y ago by Monica Cellio‭

Question discussion
83%
+8 −0
Q&A memcmp(3) memory containing invalid values

Regarding undefined behavior/uninitialized variables of automatic storage duration First of all there's some misconceptions here. if (x == 0) is UB only because x was declared as a local variable...

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

Answer
83%
+8 −0
Q&A How to define an object with different subclasses in an if-statement?

Note: I asked this question on TopAnswers a couple weeks ago, but didn't get any response, so I figured I'd ask it here. I am currently learning C++. I have a parent class (Vehicle) and two subc...

1 answer  ·  posted 2y ago by Trevor‭  ·  edited 2y ago by Alexei‭

Question c++ oop inheritance class
83%
+8 −0
Q&A Is partial allocation of an object Undefined Behavior?

Is it valid to partly allocate an object, as long as you only use the allocated part of it? #include <stdio.h> #include <stdlib.h> struct s { int i[100]; }; int main(void) {...

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

Question c object-lifetime language-lawyer dynamic-allocation
83%
+8 −0
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

You want to scale from one linear range to another. That can always be done with     y = mx + b where X is the input value and Y the output value. M is the scale factor, and B the offset. You ...

posted 2y ago by Olin Lathrop‭

Answer
83%
+8 −0
Q&A What allows a string slice (&str) to outlive its scope?

As a relative newcomer to Rust, I'm trying to understand the behaviour of lifetimes, but I am confused by the following code: let s: &str = "first"; let mut r: &str = s; println!("First ...

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

Question rust object-lifetime
83%
+8 −0
Q&A What is the Python Global Interpreter Lock?

The Python Global Interpreter Lock (GIL) is a mutex in the primary Python implementation (CPython) that is acquired whenever Python (byte)code is executing. This means within a single (OS) process ...

posted 2y ago by Derek Elkins‭

Answer
83%
+8 −0
Q&A What allows a string slice (&str) to outlive its scope?

tl;dr, the lifetime of "second" is static The heart of your confusion is this: Since we are taking a long-lived reference r to a string slice inner which is destroyed at the end of its scope, ...

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

Answer
83%
+8 −0
Meta Asking and answering FAQ style questions

As other answers have said, we have some of these, they're helpful, and they can be hard to write. On Codidact there's another option, should the community want to enable it: articles. An article...

posted 2y ago by Monica Cellio‭

Answer
83%
+8 −0
Q&A C naming convention, module trigrams?

For what it's worth, I have some 20 years of experience designing embedded C systems, with large and small code bases both. Code design is some of the hardest things to do, since books about object...

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

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

grep is not the right tool for your case. You can use basename: basename a/b/c --> c basename a/b/c/ --> c or, in your case basename branches/features/arm_and_musl --> arm_...

posted 2y ago by Dirk Herrmann‭

Answer
83%
+8 −0
Q&A What are statements and expressions?

Statements and expressions are two syntactic categories that are used by many programming languages. Since they are syntactic, they depend on the programming language's syntax. In a real sense, a s...

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

Answer
83%
+8 −0
Q&A Why is git merge from rather than to?

This isn't specific to git merge. The standard Git behaviour is that any content- or history-changing command operates on the current branch. For example, you cannot git commit to a branch other th...

posted 1y ago by deleted user  ·  edited 1y ago by deleted user

Answer
83%
+8 −0
Q&A What are disadvantages of static functions (ie functions with internal linkage) in C?

Functions in C have external linkage by default. In other words, the storage class specifier extern is applied to functions by default, with the effect that they are visible to all translation unit...

3 answers  ·  posted 1y ago by Lover of Structure‭  ·  last activity 1y ago by Dirk Herrmann‭

Question c linkage
83%
+8 −0
Meta Are AI prompt engineering questions on topic?

No. Software Development is about writing software. Yes, you can stretch almost anything that is an input to software to be "writing software". But arguably the closest analogue in actual Software ...

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

Answer
83%
+8 −0
Q&A Why are list comprehensions written differently if you use `else`?

These two uses of if are different The if at the end of a list comprehension syntax: [num for num in hand if num != 11] is a filter; its purpose is to decide whether or not the resulting list ...

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

Answer
83%
+8 −0
Q&A Git-ignoring files with special characters in their names, especially newlines

My actual motivation is to understand the semantics of the .gitignore file syntax in precise detail, for a program which is expected to emulate them as accurately as possible. However, while coming...

1 answer  ·  posted 1y ago by Karl Knechtel‭  ·  last activity 1y ago by Peter Taylor‭

Question git linux gitignore