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
72%
+6 −1
Meta Are questions about web browsers on topic on Software Applications?

The site is called Software Development, not "Applications". Meaning programming. On-topic: Questions about different behavior of web browsers in the context of web application programming. Questi...

posted 3y ago by Lundin‭  ·  edited 3y 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
71%
+3 −0
Q&A Strict aliasing rules and function boundaries

Assuming that there are no alignment problems between the two pointer types (impl-defined), the code is otherwise well-defined. As per the quoted 6.3.2.3 C allows pretty much any form of wild and c...

posted 1y ago by Lundin‭

Answer
71%
+3 −0
Meta Asking and answering FAQ style questions

Yes it is fine and probably encouraged even. I have written several self-answered Q&A here and they were mostly well-received. They aren't all that easy to write though, especially getting the ...

posted 1y ago by Lundin‭

Answer
71%
+3 −0
Meta Renaming GNU/Linux tag to gnu

I don't think GNU can be used as a stand-alone tag. Apart from the OS, GNU is also a tool collection of various programs, many used for programming, making is a very ambiguous tag which can't stan...

posted 1y ago by Lundin‭

Answer
71%
+3 −0
Q&A noreturn function with non-void return type

Syntax-wise it is a function specifier and may in theory appear everywhere where inline (or rather the syntax item function-specifier:) can appear, since the standard doesn't say otherwise. Though ...

posted 2y ago by Lundin‭

Answer
71%
+3 −0
Q&A Why object-oriented instead of class-oriented?

As with anything computer science-related that dates back to the 1960s and 70s, things just happened at a whim. Everything was new and highly experimental back then. Nobody knew how to write or des...

posted 2y ago by Lundin‭

Answer
71%
+3 −0
Q&A Question regarding an error message in my compiler to do with my code on linked list.

To use the identifier Node without typing struct Node, you must use a typedef: typedef struct Node{ // this here is a stuct tag int data; struct Node* next; // this has to be struct Node...

posted 2y ago by Lundin‭  ·  edited 2y 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
71%
+3 −0
Meta Community feedback: What type of questions can I ask here?

I propose that we add the following: Off-topic Questions about code golf, programming puzzles and challenges. Please use Code Golf instead.

posted 2y 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
71%
+3 −0
Q&A Are there practical reasons for designing a method-only class/object?

Many languages support the concept of functors or function objects which are classes only containing a method/member function. Most notably C++ STL was designed around this - whenever you declare ...

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

Answer
71%
+3 −0
Q&A Why does this code that uses a pointer-to-pointer-to-int segfault?

Bugs: int **range = 0; should be int *range; and then call the function like ft_ultimate_range(&range, min, max);. That's the whole reason the parameter is pointer-to-pointer, so that you c...

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

Answer
71%
+3 −0
Meta Code formatting of previews

I just noticed that I'm not getting code formatting in the preview window when I write an answer or make an edit. This is very useful to have. Not sure if it's a bug so I'm posting this as a featu...

0 answers  ·  posted 3y ago by Lundin‭  ·  edited 3y ago by Monica Cellio‭

71%
+3 −0
Q&A Static and thread_local initialization order

TL;DR The initialization of the variables a and b in your question are indeterminately sequenced in relation to each other. The initialization order is not guaranteed between them. The initiali...

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

Answer
71%
+3 −0
Code Reviews Counting number of assignments that a `fscanf` format strings implies

Consider using look-up tables to increase execution speed (at the cost of some 200 bytes .rodata use). For example this: static const char specifiers[] = "diouxaefgcspAEFGX"; could be replaced wit...

posted 3y ago by Lundin‭

Answer
71%
+3 −0
Meta Community feedback: What type of questions can I ask here?

On-topic questions dealing with how to write software documentation I propose that a note about tool use is added: On-topic questions dealing with how to write software documentation or how t...

posted 3y ago by Lundin‭

Answer
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
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
68%
+11 −4
Q&A What is the difference between operator precedence and order of evaluation?

It is a common mistake is to mix up the concepts of operator precedence and order of evaluation. Beginner classes and books often address the former in detail, but forget to mention the latter at a...

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

Answer
66%
+2 −0
Q&A Can freed pointers undergo lvalue conversion?

p is assigned a value and then it becomes indeterminate when the pointed at object has reached the end of its lifetime (C17 6.2.4). Pointers may have trap representations (C17 6.2.6.1/5) and in ca...

posted 1y ago by Lundin‭

Answer
66%
+2 −0
Meta How to best ask about algorithmic problems

This question was of very poor quality and should have been closed. I closed it but someone disagreed, for reasons unknown. I'm not sure if it's an actual algorithm question or just a request for f...

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

Answer
66%
+2 −0
Q&A What does the greater than 0 indicate in the case of this statement 'if (compare(A[j], A[j+1]) > 0)' ? Thank you.

Generally speaking, comparison callback functions in C are often implemented to return an integer lesser than zero, equal to zero or greater than zero - depending on if the first object is lesser t...

posted 2y ago by Lundin‭

Answer
66%
+2 −0
Meta Give actionable feedback when closing questions

We rather need to make a close reason for every kind of off-topic reason. In this specific case, the reason could for example be Purely subjective question rather than the old "primarily opinion-ba...

posted 3y ago by Lundin‭

Answer
66%
+4 −1
Meta Meaning of the tag software practices?

Some new tag "software practices" just popped up, no wiki. What's the purpose of this tag and how is it useful? What exactly in software development is not "software practices"? Seems quite superfl...

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

Question discussion tags