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 |
---|---|---|---|---|
Answer | — |
A: What categories could we benefit from having? Categories should be used when the posting rules for certain types of question differ. For example a debugging question posted below Q&A should have a minimal, relevant example. Whereas a code review question should have the complete code as-is, without modification. This merits different categories,... (more) |
— | 8 months ago |
Edit | Post #287123 |
Post edited: |
— | 8 months ago |
Edit | Post #287123 |
Post edited: |
— | 8 months ago |
Edit | Post #283441 |
Post edited: |
— | 9 months ago |
Comment | Post #285870 |
@#61018 This isn't the actual rules but a draft when something was changed at one point. (Nothing gets changed without the community having a say first.) The most recent version is found by clicking help -> What type of questions can I ask here? https://software.codidact.com/help/on-topic (more) |
— | 9 months ago |
Edit | Post #289497 |
Post edited: |
— | 9 months ago |
Edit | Post #289497 |
Post edited: |
— | 9 months ago |
Edit | Post #289497 |
Post edited: |
— | 9 months ago |
Edit | Post #289497 |
Post edited: |
— | 9 months ago |
Comment | Post #289488 |
"I heard it through the grapevine"? :) This was just recently discussed at SO, I may be to blame for starting that discussion https://stackoverflow.com/a/76945224/584518. (more) |
— | 9 months ago |
Edit | Post #289497 |
Post edited: |
— | 9 months ago |
Edit | Post #289497 |
Post edited: |
— | 9 months ago |
Edit | Post #289497 | Initial revision | — | 9 months ago |
Answer | — |
A: Why does calloc accept 2 arguments, and with what arguments should one call it? It has 2 parameters for weird historical reasons that nobody seems to know the rationale for any longer. Like most functions in the C standard library, the function API was not well-designed. Keep in mind that many of these functions were designed in the 1960s(!) and early 1970s, some 20 years before... (more) |
— | 9 months ago |
Comment | Post #289415 |
@#64628 That sounds like a different question you could ask separately. I'd rather not derail this post with yet another "spaghetti programming" debate - basically programmers have been debating this endlessly since the 1960s. (more) |
— | 9 months ago |
Edit | Post #289415 |
Post edited: |
— | 9 months ago |
Edit | Post #289415 |
Post edited: |
— | 9 months ago |
Comment | Post #289429 |
Ok so this one "provide some sort of meaningful info" was where we have different opinions over at EE. Taking a look at the front page of Software Development now, tags that would fall for this rule would be `package`, `format`, `output`, `focus`, `text` - these arguably adds _no_ meaningful info and... (more) |
— | 9 months ago |
Comment | Post #289429 |
I'm so used at SO that I didn't even consider that Codidact allows case-sensitive tags until very recently. After getting used to the idea, it sounds like it could be a very useful thing to a programming community in particular - few communities care about upper/lower case but we ought to. As a rando... (more) |
— | 9 months ago |
Comment | Post #289415 |
@#64047 Basically any embedded compiler. Codewarrior in particular is known to whine about return values, but if you use a MISRA checker you'll get that as well - some compilers like IAR have MISRA checkers integrated as an option. (more) |
— | 9 months ago |
Edit | Post #289420 | Initial revision | — | 9 months ago |
Question | — |
Tag creation/deletion criteria for Software Development? Ok so we have fairly lax tagging rules here, as do most Codidact sites. Recently the Electrical Engineering community has started a clean-up of strange and off-topic tags. I wrote this over there: Tag creation/deletion criteria. Those who have a background at SO might recognize the huge system pr... (more) |
— | 9 months ago |
Edit | Post #289415 |
Post edited: |
— | 9 months ago |
Edit | Post #289415 |
Post edited: |
— | 9 months ago |
Edit | Post #289415 | Initial revision | — | 9 months ago |
Answer | — |
A: What is C23 and why should I care? C23 will be a major revision, certainly the biggest one since C99. It contains lots of changes and new features, both big and small. The linked draft in the question contains a complete list of changes, but it might be a bit overwhelming to read unless you are a "C nerd" and if you aren't used at rea... (more) |
— | 9 months ago |
Edit | Post #289414 | Initial revision | — | 9 months ago |
Question | — |
What is C23 and why should I care? The C language has gone through many iterations and the latest one not yet released is informally called "C23", supposedly because they hoped to release it in 2023. The latest draft version N3096 is available for free from the ISO C working group. The previous standard C17 (ISO 9899:2018) didn't r... (more) |
— | 9 months ago |
Comment | Post #289327 |
@#53398 In this context, a function can return a value and that is the expected outcome. Other things changing the program or environment are side effects. An interrupt is never re-entrant because it always has side effects. It may be "thread safe" or interrupt safe might be a better name in that sit... (more) |
— | 9 months ago |
Edit | Post #289327 |
Post edited: |
— | 9 months ago |
Edit | Post #289327 | Initial revision | — | 9 months ago |
Answer | — |
A: Terms for types of functions with respect to side effects I don't think there are any formal names for the various versions you list. First of all, please note that output in a programming context most often refers to printing something on a screen or to a file, or updating graphics. "Function output" is not a common programming term - almost every lang... (more) |
— | 9 months ago |
Edit | Post #285910 |
Post edited: |
— | 9 months ago |
Edit | Post #289273 | Initial revision | — | 9 months ago |
Answer | — |
A: On self-answered questions, is it inappropriate to mark my own answer "Works for me" immediately? On the contrary, I think that it is appropriate and recommended practice. That way you (the poster of the question) can pick your own answer as the "official" one, since these post often (ought to) take a lot of time to write. Although others are obviously also welcome to post other answers even ... (more) |
— | 9 months ago |
Edit | Post #289043 | Initial revision | — | 10 months ago |
Answer | — |
A: To transfer, or not to, that is the question: whether 'tis nobler to let it stay or to take arms against Stack Overflow's dominance of FAQ canonicals I would recommend to post it anew here as a self-answered Q&A and update it if needed. You can use the "works for me" reaction to label your own answer the "official" one. As an example of how this can be done, I once wrote this answer on SO. It needed some tweaks and updates, more sources added e... (more) |
— | 10 months ago |
Comment | Post #288916 |
The only reason why it isn't used when it should is because the programmer is inexperienced, and that's about it. There's no disadvantages but many advantages. Private encapsulation, less namespace clutter, easier for the compiler to inline and so on. (more) |
— | 10 months ago |
Comment | Post #283890 |
@#52991 Ah yeah. These were copied fragment from a complete string library. That's some function returning a `char*` or `const char*` similar to C++ `std::string::cstr`. Unfortunately this lib is proprietary so I'm already in questionable territory sharing bits and pieces of it. (more) |
— | 10 months ago |
Comment | Post #282489 |
@#52991 I did write one after this. [How to do private encapsulation in C?](https://software.codidact.com/posts/283888) It covers the basics at least. (more) |
— | 10 months ago |
Comment | Post #287301 |
@#52991 Yes indeed, it would be very valuable as a source to for example programming teachers, who have usually have intermediate knowledge but not to the point where they can question if a certain book is valid or not. As you can tell from the whole story in this post, I did try to get this working ... (more) |
— | 10 months ago |
Comment | Post #285813 |
@#52991 A C++ reference does not pass the object to the function either. Array decay only makes arrays equivalent to pointers in the first dimension, `int arr[n]` decays to `int*`. But that is not true for `int arr[x][y]` which decays to `int (*arr)[y]`, which is pretty much 100% equivalent to a C++ ... (more) |
— | 10 months ago |
Comment | Post #288845 |
Ok seems that you might be able to answer your own question then :) Which is fine - it is encouraged to post answers to your own questions if you found it yourself. (more) |
— | 10 months ago |
Comment | Post #288845 |
Have you checked with the various companies that specialize in CAN tools and software? IXXAT, Kvaser, Vector etc. If not then what's the requirements, does it have to be open source? Any particular language(s)? (more) |
— | 10 months ago |
Comment | Post #288768 |
@#53890 That would just be weird. I don't really see any application for it, on meta or elsewhere. (more) |
— | 10 months ago |
Edit | Post #288768 | Initial revision | — | 11 months ago |
Answer | — |
A: Should posting on Meta affect reputation? Codidact has already managed somewhat to separate domain knowledge from moderator suitability. So far so good, but reputation is also a measurement of activity. It might make sense that being active on meta should be rewarded somehow, just as being active on the main site is rewarded over time. ... (more) |
— | 11 months ago |
Comment | Post #288576 |
Maybe we could draw the line of what's considered programming at VBA? VBA essentially being an integrated programming language. Sure you can do lots of programming-like things with excel formulas, but it is as clunky as can be... (more) |
— | 11 months ago |
Comment | Post #288304 |
@#61308 Regarding "debug" tag, I don't think that won't work... teaching new users how to use tags correctly always was mission impossible. A debug category might work though, given that regular/trusted users can move posts between categories somewhat effortlessly, without having to call for a modera... (more) |
— | 11 months ago |
Comment | Post #288304 |
@#61308 When closing something as duplicate and it isn't obvious how the link solves the problem, at least I think it's appropriate to explain why in comments. Although this is much easier to do when you have a "dupe hammer" and can close posts unanimously. In case there are multiple problems, you ca... (more) |
— | 11 months ago |