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.

Posts by Lundin‭

142 posts
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 29d ago by Lundin‭  ·  edited 29d ago by Lundin‭

Answer
75%
+4 −0
Code Reviews Pattern / architecture for interfacing with components in C

Code review part: Design (important!) Global variables/external linkage are to be avoided (Why is global evil?). You don't actually have private encapsulation in this code since the inte...

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

Answer
66%
+4 −1
Q&A Why is global evil?

The basics of good vs bad program design All programs are divided in classes. (Or modules/abstract data types/interfaces etc - a rose by any other name.) Each class should only be concerned with i...

posted 1mo ago by Lundin‭  ·  edited 1mo ago by Michael‭

Answer
75%
+4 −0
Q&A How can I manage multiple consecutive strings in a buffer (and add more later)?

When looking at this, we might pretty soon note that storing strings in the same buffer by using null terminators as separator is quite clunky. It blocks us from using handy functions like strtok, ...

posted 1mo ago by Lundin‭  ·  edited 4d ago by Lundin‭

Answer
71%
+3 −0
Meta Is software system design on topic here?

Software design in itself has always been on-topic, as per https://software.codidact.com/help/on-topic. As for system design for a given purpose, I think it is fine within reason. Contrary to popu...

posted 2mo ago by Lundin‭

Answer
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 2mo ago by Lundin‭  ·  edited 2mo 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 2mo ago by Lundin‭  ·  last activity 2mo ago by Lundin‭

Question c code-style struct
71%
+3 −0
Code Reviews Trie Implementation, Graph Visualization and Auto-Completion in C

General/program design: I would have expected a public header file with the API for the whole thing, rather than having some main() test case calling static functions from the same file. Sure,...

posted 2mo ago by Lundin‭

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

Whenever registering to diverse sites on the net, you are often forced to enter a so called "strong password", which would ideally contain both upper case letters, lower case letters, digits, and s...

4 answers  ·  posted 4mo ago by Lundin‭  ·  last activity 9d ago by matthewsnyder‭

75%
+4 −0
Q&A When should I parenthesize macro arguments in C?

Simply put: parenthesis are used whenever we suspect that there may be operator precedence issues. Either because the user passed an expression containing several operands and operators to the...

posted 6mo ago by Lundin‭

Answer
71%
+3 −0
Q&A What is the meaning of "short circuit" operators?

It's an unfortunate analogy. Apart from being confusing, it does indeed assume some basic electronics knowledge. In electronics a short circuit (or the common jargon "a short") does not necessarily...

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

Answer
80%
+6 −0
Q&A What is the meaning of "short circuit" operators?

When reading about various operators used by programming languages, the term "short circuit behavior" is often used. For example in this C code: int a = 0; a && b++ Someone explained t...

2 answers  ·  posted 7mo ago by Lundin‭  ·  last activity 7mo ago by matthewsnyder‭

85%
+10 −0
Meta How can we grow this community?

Search engine optimization? I thought this goes without saying, but apparently we aren't doing too well there for some reason. The other day I was having a discussion with someone at SO regarding...

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

Answer
50%
+0 −0
Meta Handling common wrong approaches and misguided motivations for basic technique questions

I think this is important to consider because it doesn't only concern questions about bad practices or XY questions, but also if we should allow questions with artificial requirements or questions ...

posted 8mo ago by Lundin‭

Answer
50%
+0 −0
Meta Should self-answered Q&A use separate answers for different techniques/approaches (even if there's a caveat that applies overall)?

the answer is incredibly long It really isn't - though it might look that way because of the extensive use of large font headlines. I think it is a good answer - there's no problem in discussi...

posted 8mo ago by Lundin‭

Answer
71%
+3 −0
Meta What categories could we benefit from having?

Categories should be used when the posting rules for certain types of question differ. For example a debugging question posted below Q&A should have a minimal, relevant example. Whereas a code ...

posted 8mo ago by Lundin‭

Answer
75%
+4 −0
Q&A Why does calloc accept 2 arguments, and with what arguments should one call it?

It has 2 parameters for weird historical reasons that nobody seems to know the rationale for any longer. Like most functions in the C standard library, the function API was not well-designed. Keep ...

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

Answer
75%
+4 −0
Meta Tag creation/deletion criteria for Software Development?

Ok so we have fairly lax tagging rules here, as do most Codidact sites. Recently the Electrical Engineering community has started a clean-up of strange and off-topic tags. I wrote this over there: ...

1 answer  ·  posted 9mo ago by Lundin‭  ·  last activity 9mo ago by Alexei‭

Question discussion tags
84%
+9 −0
Q&A What is C23 and why should I care?

C23 will be a major revision, certainly the biggest one since C99. It contains lots of changes and new features, both big and small. The linked draft in the question contains a complete list of cha...

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

Answer
85%
+10 −0
Q&A What is C23 and why should I care?

The C language has gone through many iterations and the latest one not yet released is informally called "C23", supposedly because they hoped to release it in 2023. The latest draft version N3096 i...

1 answer  ·  posted 9mo ago by Lundin‭  ·  last activity 9mo ago by Lundin‭

Question c c23
70%
+5 −1
Q&A Terms for types of functions with respect to side effects

I don't think there are any formal names for the various versions you list. First of all, please note that output in a programming context most often refers to printing something on a screen or to...

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

Answer
50%
+1 −1
Meta On self-answered questions, is it inappropriate to mark my own answer "Works for me" immediately?

On the contrary, I think that it is appropriate and recommended practice. That way you (the poster of the question) can pick your own answer as the "official" one, since these post often (ought to...

posted 9mo ago by Lundin‭

Answer
75%
+4 −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

I would recommend to post it anew here as a self-answered Q&A and update it if needed. You can use the "works for me" reaction to label your own answer the "official" one. As an example of how...

posted 10mo ago by Lundin‭

Answer
86%
+11 −0
Meta Should posting on Meta affect reputation?

Codidact has already managed somewhat to separate domain knowledge from moderator suitability. So far so good, but reputation is also a measurement of activity. It might make sense that being acti...

posted 10mo ago by Lundin‭

Answer
60%
+1 −0
Meta How are software recommendations handled?

See Software recommendations category. Referring to my own answer there, I think these questions should only be on-topic in case the OP manages to narrow down the scope sufficiently. In case the qu...

posted 11mo ago by Lundin‭

Answer