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 #278470 |
I made some attempts to gather consensus about this once the site was launched, but there was neither consensus nor enough interest. And if there isn't even enough interest to come up with a site scope, well then perhaps there wasn't enough interest to launch the site-about-something to begin with. T... (more) |
— | over 4 years ago |
Comment | Post #278470 |
Scope is of course subject to change as the site matures, but there needs to be some foundation upon site launch. Instead of "lets release a random programming site and see what happens". As it stands, everyone seems to have some vague, personal opinion of what the site is about. (more) |
— | over 4 years ago |
Comment | Post #278470 |
The complete lack of response might indicate that it's a good idea to assign (temporary) moderators and coming up with a site scope _before_ launching a new community. Seems we have neither. What should the moderators do other than enforcing CoC? This site has been floating around here for many month... (more) |
— | over 4 years ago |
Edit | Post #278385 |
Post edited: |
— | over 4 years ago |
Comment | Post #278468 |
@Monica Cellio Can each category get custom close reasons? See the discussion in comments below my posted answer. (more) |
— | over 4 years ago |
Comment | Post #278472 |
@jrh As for close reasons, maybe we should bring that up on general meta as a feature request and discuss a close vote mechanism that gives category-specific reasons? So that when you close vote a post in the Code review category, you get Code review-specific close reasons only. (more) |
— | over 4 years ago |
Comment | Post #278472 |
@jrh I would agree that a site of its own would be ideal, when we can gather the user base for it. Which we can't currently, we can't even gather enough for general programming Q&A. We shouldn't open up ghost town communities, so the idea is to host code review as a category here for now, then let it... (more) |
— | over 4 years ago |
Edit | Post #278472 | Initial revision | — | over 4 years ago |
Answer | — |
A: Should we have a Code Review Section / category? I agree and I think it should be a separate category, with separate posting rules. There are several examples of how the rules for each category would likely be fundamentally different: Main Q&A category 1. Encourages minimal examples to reproduce the problem, particularly when asking for debug h... (more) |
— | over 4 years ago |
Comment | Post #278450 |
Isn't the biggest problem here indeed the rebalancing of the tree after each insertion? Algorithm theory typically fails to take that in account and relies on rebalancing happening instantly through "magic". I suppose the most efficient would be to add a whole branch of a contiguous sequence and then... (more) |
— | over 4 years ago |
Comment | Post #278390 |
@Stephen C My point is rather that registers _do_ play a part in that abstract model, because on some very low-end computers they replace the stack entirely. And on any computer, registers may be used instead of stack storage because of optimization or calling convention. As explained in the answer ... (more) |
— | over 4 years ago |
Comment | Post #278393 |
@Monica Cellio Ok. Seems a bit cumbersome to monitor _n_ number of metas instead of one, though? (more) |
— | over 4 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 4 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 4 years ago |
Edit | Post #277341 |
Post edited: Code formatting |
— | over 4 years ago |
Edit | Post #278384 |
Post edited: |
— | over 4 years ago |
Edit | Post #278384 |
Post edited: |
— | over 4 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 4 years ago |
Edit | Post #278385 |
Post edited: |
— | over 4 years ago |
Edit | Post #278385 | Initial revision | — | over 4 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 4 years ago |
Edit | Post #278384 | Initial revision | — | over 4 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 4 years ago |
Edit | Post #277536 |
Post edited: |
— | over 4 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 4 years ago |
Edit | Post #278303 |
Post edited: |
— | over 4 years ago |
Edit | Post #278303 | Initial revision | — | over 4 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 4 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 4 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 4 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 4 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 4 years ago |
Edit | Post #278265 | Initial revision | — | over 4 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 4 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 4 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 4 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 4 years ago |
Comment | Post #278197 |
Also, all hooks are not used for code injection. (more) |
— | over 4 years ago |
Edit | Post #278202 | Post undeleted | — | over 4 years ago |
Edit | Post #278202 |
Post edited: |
— | over 4 years ago |
Edit | Post #278202 | Post deleted | — | over 4 years ago |
Edit | Post #278202 | Initial revision | — | over 4 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 4 years ago |
Edit | Post #278190 | Initial revision | — | over 4 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 4 years ago |
Edit | Post #278172 |
Post edited: |
— | over 4 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 4 years ago |
Edit | Post #278172 |
Post edited: |
— | over 4 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 4 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 4 years ago |