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.

Activity for Lundin‭

Type On... Excerpt Status Date
Comment Post #277263 So far +5 and none against, so I suppose we should implement this unless someone can make a strong argument against it. I think we need to draft up guidelines for how to post these though. Other questions that fit in with this category might be obfuscation and tasks with artificial requirements ("wri...
(more)
over 3 years ago
Comment Post #277983 I agree. Writing some self-answered Q&A on topics you know well seems to be a good way to get a site up and running. Shows that there is good content and active users, whereas imported posts don't really say anything about the state of the site at all.
(more)
over 3 years ago
Edit Post #277981 Post edited:
over 3 years ago
Edit Post #277981 Post edited:
over 3 years ago
Edit Post #277981 Initial revision over 3 years ago
Answer A: 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 can help out with this. Check out the Writing or Scientific Speculation communities for examples, importe...
(more)
over 3 years ago
Comment Post #277962 I think https://serverfault.com/ is the closest match, though I haven't used the site so I can't tell if/how welcome the question would be there. Maybe ask on their meta first with a link to this post?
(more)
over 3 years ago
Edit Post #277962 Question closed over 3 years ago
Comment Post #277962 This isn't a question about software development, but about networking and routing tables etc. So I believe it is off-topic here.
(more)
over 3 years ago
Comment Post #277911 @BobJarvis Oracle-DBMS, Oracle-database or similar. What we especially wish to avoid is someone using 2 tags "Oracle" and "RDBMS" when referring to a specific product by that company. Then next up we get "Oracle" + "JavaVM" etc.
(more)
over 3 years ago
Comment Post #277896 In case you haven't read this old SO meme: [parsing HTML with regex](https://stackoverflow.com/a/1732454/584518) :)
(more)
over 3 years ago
Comment Post #277906 As for the cast to void question, it isn't even subjective. There's industry consensus that doing so when a return value isn't used is mandatory, save for a number of old standard library functions that aren't used in that way out of tradition.
(more)
over 3 years ago
Comment Post #277906 If it is on-topic, then there is no reason to create a tag for this - it becomes a meta tag. It is in my opinion better to spend the effort into drafting help pages for how to ask these kind of questions.
(more)
over 3 years ago
Edit Post #277911 Initial revision over 3 years ago
Question 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 product tag is present, the company tag doesn't add any relevant information to the question. - Th...
(more)
over 3 years ago
Comment Post #277891 @pnuts I have no idea how it works here really. On SE you had to go through all manner of painful rituals and post reviews. But since this site is brand new, we should be able to be more flexible.
(more)
over 3 years ago
Comment Post #277891 @Monica Cellio Okay. Then we should probably remove both tags, without or without space. It is too vague to fill a purpose.
(more)
over 3 years ago
Comment Post #277891 @pnuts I'm asking because this tag was apparently created by site admins and not some clueless beginner.
(more)
over 3 years ago
Edit Post #277891 Post edited:
over 3 years ago
Edit Post #277891 Initial revision over 3 years ago
Question 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 superfluous and very broad. Is it supposed to mark questions that are subjective or asking for best prac...
(more)
over 3 years ago
Comment Post #277551 I'm thinking the root of the problem might be the programmer who writes 140 symbols long LoC and not the site?
(more)
over 3 years ago
Comment Post #277265 @Estela It turns cumbersome to cast everything to `void` when using various common, poorly-designed standard library functions such as `printf`, `strcpy` etc. You do not commonly use the result of those (since it's useless most of the time).
(more)
over 3 years ago
Comment Post #277551 Maybe I don't understand the problem, but code shouldn't get automatically line-wrapped, since doing so might affect the behavior of it in a lot of languages.
(more)
over 3 years ago
Edit Post #277576 Post edited:
over 3 years ago
Edit Post #277576 Initial revision over 3 years ago
Answer 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.
(more)
over 3 years ago
Comment Post #277537 @obround I'd be surprised if a compiler didn't store small size arrays inside registers, given that the array address is never taken. Easy enough to prove, here is an array stored in registers: https://godbolt.org/z/Yb134Y
(more)
over 3 years ago
Edit Post #277540 Initial revision over 3 years ago
Answer A: 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) fine in terms of parameters y and z? Where parameters could be execution speed, memory use, read...
(more)
over 3 years ago
Edit Post #277537 Post edited:
over 3 years ago
Edit Post #277537 Post edited:
over 3 years ago
Edit Post #277537 Initial revision over 3 years ago
Answer 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 your program. To understand where variables end up, we must understand how a computer works. Physical...
(more)
over 3 years ago
Edit Post #277536 Initial revision over 3 years ago
Question 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 gets allocated? Does the compiler handle allocation differently depending on which programming language...
(more)
over 3 years ago
Edit Post #277488 Post edited:
over 3 years ago
Edit Post #277488 Initial revision over 3 years ago
Answer 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 data, for which this International Standard imposes no requirements Meaning that anything ca...
(more)
over 3 years ago
Edit Post #277486 Initial revision over 3 years ago
Question What is undefined behavior and how does it work?
I have created this sensational program: #include int func (void) { int local=5; return &local; } int main (void) { printf("%d\n", func()); } This prints `5` even though I'm returning a pointer to a local variable. It did not pro...
(more)
over 3 years ago
Comment Post #277478 Product recommendation questions ought to be off-topic. Design recommendations asking "what's the best way" need to specify the "best" criteria. Execution speed, RAM use, safety, dev time, portability etc etc.
(more)
over 3 years ago
Comment Post #277423 "Never. The returned value is always meaningful and has always to be treated." That kind of depends on how the function is written, yeah? Take `strcpy` as one example of a function with an often useless return value.
(more)
over 3 years ago
Comment Post #277423 `warn_unused_result` is pretty useless, since it doesn't work unless you pollute your code with non-standard `__attribute__` crap. There is no reason why they can't check for it in standard C.
(more)
over 3 years ago
Comment Post #277429 This is one of the things I'm hoping there will be a place for on this site or another Codidact one. Program design is complex and every programmer needs it.
(more)
over 3 years ago
Edit Post #277217 Post edited:
Changes to reflect an edit of the question.
over 3 years ago
Edit Post #277341 Post edited:
over 3 years ago
Comment Post #277331 Not really. The order of evaluation of + and - is unspecified, so you can't reliably tell if that example evaluates as `(arr - 1) + choice` or `arr - (1 + choice)`. At least the former sub-expression is undefined behavior. In practice the compiler will likely replace it all with hard-coded addresses,...
(more)
over 3 years ago
Edit Post #277341 Post edited:
over 3 years ago
Edit Post #277341 Post edited:
over 3 years ago