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‭

143 posts
63%
+5 −2
Meta Do we want a wiki (or similar) alongside Q&A?

Please no. I had a bad experience of SO's failed and cancelled "Documentation" project. I raised the same concerns on the Electronics site here. I'll quote that post: The worst that can happen is ...

posted 3y 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
82%
+12 −1
Q&A What is the difference between operator precedence and order of evaluation?

When doing something simple such as this int a=1; int b=2; int c=3; printf("%d\n", a + b * c); then I was told that operator precedence guarantees that the code is equivalent to a + (b * c)...

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

62%
+3 −1
Meta Strategy to migrate meaningful content from Stack Overflow

Please note that migrate in this context means grabbing the exact post as-is from a SE site and importing it here. This is allowed, with attribution given, as per licensing model. Codidact staff c...

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

Answer
91%
+20 −0
Meta Getting rid of "company tags" early on

So it appears that we've gotten our first "company tag", Apple. We know from SO that company name tags were always problematic since: Questions are about products, not companies. Given that the pr...

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

Question discussion tags
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
84%
+9 −0
Q&A Generate SIGSEGV without undefined behaviour.

SIGSEGV is defined in the C header signal.h. To generate the signal, it should be sufficient to just do raise(SIGSEGV);. As far as I know, this is well-defined behavior.

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

Answer
72%
+6 −1
Meta How does the community feel about resource requests?

These are fine, IMO: Here is my specification of what the program should do /--/. I'm stuck at x, (optionally: here is my code), where do I go from here? Is this implementation of x (code follows)...

posted 3y ago by Lundin‭  ·  last activity 3y ago by Lundin‭

Answer
88%
+14 −0
Q&A What gets allocated on the stack and the heap?

"Stack vs heap" is a common over-simplification and not really a meaningful one, since those two areas have quite different, specialized uses. And no, those are not the only memory regions used by ...

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

Answer
77%
+12 −2
Q&A What gets allocated on the stack and the heap?

I was told by my professor/book that computer programs use two kinds of memory and that all variables get allocated either on the stack or on the heap. Is this true? How can I tell where a variable...

2 answers  ·  posted 3y ago by Lundin‭  ·  edited 3y ago by Alexei‭

88%
+13 −0
Q&A What is undefined behavior and how does it work?

Undefined behavior (informally "UB") is a formal term in the C language, defined in C17 3.4.3 undefined behavior behavior, upon use of a nonportable or erroneous program construct or of erroneous ...

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

Answer
86%
+11 −0
Q&A What is undefined behavior and how does it work?

I have created this sensational program: #include <stdio.h> int* func (void) { int local=5; return &local; } int main (void) { printf("%d\n", *func()); } This prints 5 even thoug...

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

92%
+21 −0
Q&A What must a C compiler do when it finds an error?

The C standard does not speak of "errors" and "warnings", those are not formal terms. The compiler is only required to produce a diagnostic message, as specified in C11 5.1.1.3: Diagnostics A c...

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

Answer
90%
+18 −0
Q&A What must a C compiler do when it finds an error?

What exactly must a C compiler do when it finds a compile-time error? The most obvious kind of errors are language syntax errors, but the C standard also speaks of constraints, which are rules tha...

1 answer  ·  posted 3y ago by Lundin‭  ·  edited 2y ago by ghost-in-the-zsh‭

75%
+4 −0
Q&A What is a standard definition (or a CS theory based formal definition) for Escaping?

The term escape sequence apparently dates back to the telegraph and pre-computer technology, according to wikipedia: https://en.wikipedia.org/wiki/Escape_sequence. So I doubt there's an universally...

posted 4y ago by Lundin‭

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 4y ago by Lundin‭

Answer
62%
+8 −4
Meta Site scope - draft proposal [duplicate]

EDIT: This discussion thread is mostly obsolete now that a new draft has been posted on the site. Please take further discussion & proposals to this meta post instead: Community feedback: What ...

6 answers  ·  posted 4y ago by Lundin‭  ·  closed as duplicate 3y ago by Lundin‭

85%
+10 −0
Q&A Is it undefined behaviour to just make a pointer point outside boundaries of an array without dereferencing it?

Yes, the second line invokes undefined behavior. First of all, according to C17 6.5.2.1 regarding array subscripting, an expression E1[E2] is just "syntactic sugar" for *((E1)+(E2))). So what appli...

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

Answer