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 dmckeeâ€
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Answer | — |
A: Should "Hello", "Thank you", "Morning" and similar greetings be removed from posts? Just to have a differing viewpoint represented. Addressing questions and answers The stated reason for stripping politese Somewhere Else (which I largely agree with) is that while posts are created and improved as a human interaction, their main function is as a long-lived informational resourc... (more) |
— | almost 3 years ago |
Answer | — |
A: How do I communicate with a subproject in qmake? Options There are three basic channels to choose from Shared build-include (`.pri`) files `CONFIG` `.qmake.conf` and I discuss the practicalities of each below. Shared `.pri` files Set or add to things like `INCLUDEPATH` or `DEFINES` that should affect your whole project in a `.pr... (more) |
— | almost 3 years ago |
Question | — |
How do I communicate with a subproject in qmake? When working with a qmake subdirs project you may want to share configuration between multiple projects. In a less common case you may including a external project within your own as code and want to configure the build of the included project. Either way, the solution is to communicate decisions ... (more) |
— | almost 3 years ago |
Answer | — |
A: Write to same file from multiple threads Because you are using Qt in particular there is something to be said for not solving this problem yourself. Instead, create a single object that owns the stream or file and offers a `writeLine` slot. In the simplest case the signature might be `writeLine(const QString & line)`. Then your threads s... (more) |
— | about 3 years ago |
Answer | — |
A: Are code troubleshooting posts allowed? tl;dr: Allowing beginner-level "help me diagnose this" questions will generate large volumes of duplicates if the site ever scales. We need to think about how to structure things if we want them. I have certain reservation about this. I've said before that I don't think question-and-answer ... (more) |
— | about 3 years ago |
Question | — |
Scheme for cross-platform warning control? []()tl;dr I'd like to learn a compact, cross-compiler way of selectively suppressing compiler warnings. Consider the case where you really mean to make an exact floating-point comparison using `==`, or the case where you capture a return value that you don't use in production but want to `asse... (more) |
— | over 3 years ago |
Answer | — |
A: Do we need the fullstack tag? This is another argument for a fullstack tag not being appropriate. Or perhaps an elaboration of Peter's argument. The manner in which a problem could be a "fullstack problem" is by being a communication or coordination problem between tools running at the front end and at the back end. In that... (more) |
— | over 3 years ago |
Answer | — |
A: Is omitting braces for single statements bad practice? I'm in the "Use the braces. Just use them every time" camp [^1]. As others have suggested you or your tooling will catch a lot of cases where you screw up on this, but the ones that slip through can really hurt. So, I was surprised to hear Robert "Uncle Bob" Martin opine that he's "on a mission to... (more) |
— | over 3 years ago |
Question | — |
I object to [stl] Currently the tag [[stl]](https://software.codidact.com/categories/38/tags/3925) is marked as a sub-tag of c++, implying a meaning of "standard-template-library". However I see both of the questions currently using the tag mean the 3D object description format). As I see it both meanings are relev... (more) |
— | over 3 years ago |
Answer | — |
A: Are reference requests welcome here? Just to stir the pot a little, on Physics SE we ended up allowing them within certain limits. Though I was against it I would say that the results were rather better than I expected. We did set up a post notice for the category that reads: > Before answering, please see our policy on resourc... (more) |
— | over 3 years ago |
Question | — |
Pros and cons of various type_traits idioms My work tasks have recently started requiring me to use the `typetraits` header to restrict the classes that may be used in template functions, methods, and classes. And while I used it for a long time now, I learned C++ on the job. I've seen at least four patterns (see below) for actually coding ... (more) |
— | over 3 years ago |
Answer | — |
A: For scripting what are the pros and cons of command line arguments versus capturing input at the start? I'd like to move the frame out a little and use that as a discussion for how to make these decisions. Input models You've listed two input models, but I think we need to add a third before we begin. I'm going to call them 1. Command line arguments 2. Interactive read at run-time 3. Non-int... (more) |
— | over 3 years ago |
Question | — |
Add link dialog should capture enter I think we have a UI problem with the "add link" dialog box in the editor: it doesn't capture enter keystrokes which then fall through to the submit button. > I'm merrily typing a post when I realize that it would be improve by linking a phrase. So, I copy the link, highlight the text, click the L... (more) |
— | over 3 years ago |
Answer | — |
A: What gets allocated on the stack and the heap? While Lundin has written a reasonably complete answer, I think it suffers a bit from the expert view: conflating core issues with implementation details related to modern hardware architecture. I'd like to try to separate these notions. Kinds of variables To start with I'm going to divi... (more) |
— | over 3 years ago |