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 #278393 @Monica Cellio‭ Ok. Seems a bit cumbersome to monitor _n_ number of metas instead of one, though?
(more)
over 3 years ago
Comment Post #278393 Sounds like a network-wide problem and arguably it is a bug. Might want to post this on https://meta.codidact.com/ so that it gets attention from the right people.
(more)
over 3 years ago
Comment Post #278390 "In short, register and cache storage don't play any part..." Well, they do. Because not all computers have a stack: there's very low end microcontrollers that are stripped down of everything to reduce price, typically used for consumer electronics. On such admittedly rather exotic computers, you onl...
(more)
over 3 years ago
Edit Post #277341 Post edited:
Code formatting
over 3 years ago
Edit Post #278384 Post edited:
over 3 years ago
Edit Post #278384 Post edited:
over 3 years ago
Comment Post #278385 This was about C, but C++ behaves the very same up to version C++14. In C++17 and later, as well as all versions of Java, the assignment operator has well-defined sequencing, making `i=i++;` etc well-defined. But C++17 and beyond still does not allow completely wild stuff like `i++ + ++i`.
(more)
over 3 years ago
Edit Post #278385 Post edited:
over 3 years ago
Edit Post #278385 Initial revision over 3 years ago
Answer A: Why can't we mix increment operators like i++ with other operators?
These examples have undefined behavior and unspecified behavior all at once! Operator precedence has nothing to do with the order of execution, see What is the difference between operator precedence and order of evaluation? From that post we can also learn that most of the above examples have unsp...
(more)
over 3 years ago
Edit Post #278384 Initial revision over 3 years ago
Question 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 same expression. But I get mighty strange results when I use the same variable more than once. One examp...
(more)
over 3 years ago
Edit Post #277536 Post edited:
over 3 years ago
Comment Post #278190 @jrh The main issue besides non-existent structure was quality. There was various excited students writing examples that were just plain bad or incorrect. See the various crappy tutorial sites out there as reference for how easy it is to get things wrong. I can relate to the students writing all this...
(more)
over 3 years ago
Edit Post #278303 Post edited:
over 3 years ago
Edit Post #278303 Initial revision over 3 years ago
Answer A: 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. - Questions about writing plug-ins for web browsers or accessing an API/library provided by web brows...
(more)
over 3 years ago
Comment Post #278265 But a reasonable speed vs program size compromise could be a 16 bytes large nibble-based one, which doesn't make the program that much slower, but saves 64kb executable size. An answer can list all sensible options if the requirements are listed.
(more)
over 3 years ago
Comment Post #278265 @Peter Taylor‭ Of course, but you can list which requirements are the most important. Such as for example 1) execution speed (most important) 2) RAM use (important) 3) executable size (less important). If the question then is how to implement some search algorithm for a 16 bit integer key, the pure s...
(more)
over 3 years ago
Comment Post #278277 This particular community will need a number of specific close reasons though, such as "the question is looking for debugging help but didn't provide the minimum code necessary to reproduce the problem" etc.
(more)
over 3 years ago
Comment Post #278238 I agree with you overall, we should have a list of valid close reasons, as per community consensus. We can't have users closing questions based on personal whims or believes. Ideally the close reasons should be well-defined and maybe we can also give a number of examples of what such an off-topic que...
(more)
over 3 years ago
Edit Post #278265 Initial revision over 3 years ago
Answer A: 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-based". Because we hope to allow some form of best practice & design questions here and not be as stri...
(more)
over 3 years ago
Comment Post #278237 The problem is rather that the community has yet to define what's actually on scope here. I gave it a try here: https://software.codidact.com/questions/277235, but it sits at +5/-2 so hardly "community consensus". I think we might need a retake on that, maybe let the community vote on individual deta...
(more)
over 3 years ago
Comment Post #278203 In case of Windows, it's a method provided by the OS, but can be used to modify the behavior of other programs.
(more)
over 3 years ago
Comment Post #278194 Also, in the early stages of a new site, self-answered Q&A can be used to get the activity going and demonstrate what kind of questions that are suitable for the site. Or at the very least show that the site is alive, if there are not enough people asking questions.
(more)
over 3 years ago
Comment Post #278197 Also, all hooks are not used for code injection.
(more)
over 3 years ago
Edit Post #278202 Post undeleted over 3 years ago
Edit Post #278202 Post edited:
over 3 years ago
Edit Post #278202 Post deleted over 3 years ago
Edit Post #278202 Initial revision over 3 years ago
Answer A: What is the difference between a hook and a code injection?
I believe the term "hook" comes from the Windows API where you can register "hooks" - callback functions - to respond to certain events, optionally replacing the original behavior. Not necessarily other processes, it could also be hardware events etc. If you wish to respond to events occurring ins...
(more)
over 3 years ago
Comment Post #278173 Btw keep in mind that this was all decided in 1989-1990. Compilers back then were pretty horrible at optimizing code in general. `register` as a sensible manual optimization still made perfect sense. Other such primitive, manual tricks like `inline` had not even been considered. Modern C compilers in...
(more)
over 3 years ago
Edit Post #278190 Initial revision over 3 years ago
Answer A: 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 something similar to SO's failed "Documentation project" a couple of years ago, where users were to ...
(more)
over 3 years ago
Edit Post #278173 Post edited:
over 3 years ago
Comment Post #278173 @Derek Elkins Source & quote added.
(more)
over 3 years ago
Edit Post #278173 Post edited:
over 3 years ago
Comment Post #278173 @Derek Elkins That's how the rationale was explained to me by someone who was a member of the ANSI C/C90 committee. ISO in particular is very picky with not giving a particular technology an advantage/disadvantage. (That's also the reason C supports dysfunctional things like one's complement and sign...
(more)
over 3 years ago
Edit Post #278172 Post edited:
over 3 years ago
Comment Post #278172 @msh210 Fine, I can remove the C++ part since I don't really want to promote that language anyhow. Any remaining problems after edits?
(more)
over 3 years ago
Edit Post #278172 Post edited:
over 3 years ago
Comment Post #278172 As for compilers, the very point here is that the code has unspecified behavior and may behave differently between any number of compilers, or even when executed several times on the same one. But fair enough I can remove that part.
(more)
over 3 years ago
Comment Post #278172 @‭msh210‭ The C and C++ tags are there because this is a self-answered Q&A post which is meant to be used as a canonical dupe link for C _and_ C++ questions. The languages are identical here. We should not close future C questions with a link to C++ or vice versa. Believe me, I know all about the "C/...
(more)
over 3 years ago
Comment Post #278172 No love for self-answered Q&A I guess. So much for getting this site going... If there is any factual errors in the post, I would very much like to know about them so I can improve it.
(more)
over 3 years ago
Comment Post #278172 ...and the reason for down votes is...?
(more)
over 3 years ago
Edit Post #278173 Post edited:
over 3 years ago
Edit Post #278173 Initial revision over 3 years ago
Answer 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 all. Operator precedence specifies the order in which an expression should be parsed. It is similar to...
(more)
over 3 years ago
Edit Post #278172 Initial revision over 3 years ago