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 #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 | — | over 4 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 4 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 4 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 4 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 4 years ago |
Edit | Post #277891 |
Post edited: |
— | over 4 years ago |
Edit | Post #277891 | Initial revision | — | over 4 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 4 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 4 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 4 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 4 years ago |
Edit | Post #277576 |
Post edited: |
— | over 4 years ago |
Edit | Post #277576 | Initial revision | — | over 4 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 4 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 4 years ago |
Edit | Post #277540 | Initial revision | — | over 4 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 4 years ago |
Edit | Post #277537 |
Post edited: |
— | over 4 years ago |
Edit | Post #277537 |
Post edited: |
— | over 4 years ago |
Edit | Post #277537 | Initial revision | — | over 4 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 4 years ago |
Edit | Post #277536 | Initial revision | — | over 4 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 4 years ago |
Edit | Post #277488 |
Post edited: |
— | over 4 years ago |
Edit | Post #277488 | Initial revision | — | over 4 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 4 years ago |
Edit | Post #277486 | Initial revision | — | over 4 years ago |