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

Answer
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 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 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 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 8mo ago by talex‭  ·  last activity 8mo ago by hkotsubo‭

Question java stream
83%
+8 −0
Q&A After git fetch, how to fast forward my branch?

I did git fetch to quickly get latest commits. I did this instead of git pull so I could deal with merge conflicts offline. But my repository is still stuck on the old commit, and now git pull fail...

2 answers  ·  posted 10mo ago by matthewsnyder‭  ·  last activity 4mo ago by hkotsubo‭

Question git
83%
+8 −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 10mo ago by Lundin‭  ·  last activity 9mo ago by celtschk‭

Question c c++ storage-duration c23 c++11
83%
+8 −0
Meta What to do with GenAI tags?

We are getting a lot of GenAI-related tags: llm, gpt, gpt-3 and so on. None which have anything to do with programming, nor are they programming tools. These tags are IMO about the end goal of an ...

1 answer  ·  posted 1mo ago by Lundin‭  ·  last activity 1mo ago by Franck Dernoncourt‭

Question discussion tags
83%
+8 −0
Q&A Setting custom HTTP status code messages in nginx

I think it would be funny if my web application that is hosted using an nginx reverse proxy (proxy_pass) returned something like 200 Could Be Worse rather than 200 OK, when the page load was succes...

1 answer  ·  posted 2mo ago by luap42‭  ·  last activity 1mo ago by Ancepaid‭

Question http nginx
83%
+8 −0
Q&A Reusing HTML without rewriting it

Use a static site generator. There are other possibilities, but they seem more complicated or worse for your use case. A static site generator takes in source data in some combination of markup fo...

posted 10mo ago by Derek Elkins‭  ·  edited 9mo ago by Karl Knechtel‭

Answer
83%
+8 −0
Q&A Are email addresses case-sensitive?

Usually not in practice, but the user name part of an email address can be case-sensitive. Going way back to RFC821 (emphasis mine): Commands and replies are not case sensitive. That is, a comma...

posted 3mo ago by Olin Lathrop‭

Answer
83%
+8 −0
Meta Call for moderators (2025)

Sure, I'll step up for this, since nobody else has yet. I think my credentials speak for themselves, but just in case: I'm an accomplished Python developer with a long history of helping people ou...

posted 4mo ago by Karl Knechtel‭

Answer
82%
+12 −1
Q&A Why is it considered bad practice to use float for representing currency?

This is intended to be a canonical post for this problem which is pretty common. Especially among beginners. I've heard that I should avoid using floating point variables for representing curren...

2 answers  ·  posted 3y ago by klutt‭  ·  last activity 3y ago by klutt‭

Question integer floating-point currency
82%
+12 −1
Meta How will you balance demanding high quality questions with maximising the number of users?

There is a well know trade-off between a site aiming for questions/answers that are of a high quality and useful for people who arrive from Google and a site being nice to new users who often only ...

3 answers  ·  posted 5y ago by Ringi‭  ·  edited 4y ago by Ayxan Haqverdili‭

Question discussion
81%
+7 −0
Q&A Does using an Integer have any speed/performance benefits over a string in JSON

Before doing any performance testing, I think you have already noticed that the payload is significantly smaller by missing those double quotes. However, what I think is more important, especially ...

posted 4y ago by Alexei‭

Answer
81%
+7 −0
Q&A Should I cast to (void) when I do not use the return value

Yes, it is generally good practice to always cast the return value of functions to (void) if not used. This is self-documenting code showing that you aren't using the return value on purpose and di...

posted 5y ago by Lundin‭

Answer
81%
+7 −0
Meta Importing Selected Q&A?

I personally have several (10s) of Q&A where I posted the question and\or answer, on related SE sites. These Q&A are ones I go back to for reference for myself and others. I know and under...

1 answer  ·  posted 5y ago by James Jenkins‭  ·  last activity 5y ago by Olin Lathrop‭

Question discussion
81%
+7 −0
Meta Community feedback: What type of questions can I ask here?

I propose adding, at the top of the list: On-topic questions about writing software, where software is understood to include any means of specifying to a computer actions to be performed later. (...

posted 4y ago by r~~‭  ·  edited 4y ago by r~~‭

Answer
81%
+7 −0
Meta Should we have a Code Review Section / category?

I agree and I think it should be a separate category, with separate posting rules. There are several examples of how the rules for each category would likely be fundamentally different: Main Q&...

posted 4y ago by Lundin‭

Answer
81%
+7 −0
Meta Add link dialog should capture enter

I think we have a UI problem with the "add link" dialog box in the editor: it doesn't capture enter keystrokes which then fall through to the submit button. I'm merrily typing a post when I real...

1 answer  ·  posted 4y ago by dmckee‭  ·  last activity 4y ago by Monica Cellio‭

Question bug status-completed editor
81%
+7 −0
Q&A Why can't we mix increment operators like i++ with other operators?

I'm experimenting with different operators and have a hard time understanding the outcome of certain expressions. I try to combine the ++ operators with other operators such as assignment in the sa...

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

Question c undefined-behavior unspecified-behavior increment-operator sequence-points
81%
+7 −0
Q&A .elf file - What contributes to the resulting .bin file size?

I have found this nice library for parsing/writing .elf files as output by e.g. the GCC toolchain: ELFIO I have a bare metal embedded project with an ARM Cortex M target. My goal is to overwrite...

0 answers  ·  posted 4y ago by sktpin‭  ·  edited 4y ago by sktpin‭

Question c elf linker
81%
+7 −0
Q&A How to choose backend technology for my project?

Firstly, the technology stack of a commercial project should be selected based on several different decision factors. Staff availability is paramount. The developers, QA and associated team m...

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

Answer