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 #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 |
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 4 years ago |
Comment | Post #278172 |
...and the reason for down votes is...? (more) |
— | over 4 years ago |
Edit | Post #278172 | Initial revision | — | over 4 years ago |
Question | — |
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)`, since `` has higher precedence than `+`. And so the result is guaranteed to be 7 a... (more) |
— | over 4 years ago |
Comment | Post #278151 |
Might want to post/migrate this to https://meta.codidact.com/ since it is likely a network-wide issue. (more) |
— | over 4 years ago |
Comment | Post #278063 |
Also, since we don't have much in the way of rules for tag wiki , it's important that people realize that tag usage guidelines is the single-most important thing to get right. Explaining what a tag and the technology does is really just fluff that people are better off reading at Wikipedia. Take for ... (more) |
— | over 4 years ago |
Comment | Post #277537 |
@EJP Regarding static variables, I'm not sure why there's some recurring myth about them not getting optimized... just check https://godbolt.org/z/ezoj7q. Not only did the compiler ignore to allocate separate memory for the two static storage variables `a` and `b`, it pre-calculated the result to 3 a... (more) |
— | over 4 years ago |
Comment | Post #277537 |
@EJP How is "a compiler tries..." untrue? This post isn't meant to be an exhaustive list of every detail that happens during compilation, but a brief overall summary. If a variable has the address taken, then indeed the compiler can't store it in a register. (more) |
— | over 4 years ago |
Comment | Post #277962 |
@JohnDoea You could propose starting up such a community on Codidact, if you think we can gather enough of a user base to support it. https://meta.codidact.com/categories/10. (more) |
— | over 4 years ago |
Comment | Post #277235 |
One month later and there's neither a clear consensus nor any constructive discussion. I'm guessing we'll have to stick to a "random programming stuff" site for now. Which is very unappealing to domain experts and power users. Is the aim here to build a much worse and shallow version of SO or somethi... (more) |
— | over 4 years ago |
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 4 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 4 years ago |
Edit | Post #277981 |
Post edited: |
— | over 4 years ago |
Edit | Post #277981 |
Post edited: |
— | over 4 years ago |
Edit | Post #277981 | Initial revision | — | over 4 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 4 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 4 years ago |
Edit | Post #277962 | Question closed | — | over 4 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 4 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 4 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 4 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 4 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 4 years ago |
Edit | Post #277911 | Initial revision | — | almost 5 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) |
— | almost 5 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) |
— | almost 5 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) |
— | almost 5 years ago |
Comment | Post #277891 |
@pnuts I'm asking because this tag was apparently created by site admins and not some clueless beginner. (more) |
— | almost 5 years ago |
Edit | Post #277891 |
Post edited: |
— | almost 5 years ago |
Edit | Post #277891 | Initial revision | — | almost 5 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) |
— | almost 5 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) |
— | almost 5 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) |
— | almost 5 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) |
— | almost 5 years ago |
Edit | Post #277576 |
Post edited: |
— | almost 5 years ago |
Edit | Post #277576 | Initial revision | — | almost 5 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) |
— | almost 5 years ago |