-12

Where on Stack Overflow or Stack Exchange might I ask questions which are related to C++ coding, but could verge on opinion-based topics, despite still being quite technical? Or is there another place I can do so?

For example, I was taught that C++ code shouldn't use global variables, but I have many real cases where I can't understand where to put the data so that it could be easily accessed and yet not global. Or, for example, when somebody says that interfaces must be always used and data must be hidden, why can't I treat my std::vector member as an interface, rather than data? And what about structures for points in 2D and 3D, why do they need interfaces?

Please don't send me to forums for beginners. I have been using C++ since 1992 and participated in many complex projects. I just want to see if people have found better solutions since then.

What would be the best place to publish such questions?

15
  • 12
    The internet is not divided to Stack Overflow and "forums for beginners". There are plenty of communities for experienced developers which allow open ended discussions. Nov 11 at 12:28
  • 3
    These topics look fine for Stack Overflow as long as you post it as an actual question and not a forum discussion.
    – Dharman Mod
    Nov 11 at 13:10
  • Or softwareengineering.stackexchange.com/… for various questions related to the use of std::vector.
    – Marijn
    Nov 11 at 13:28
  • 2
    @StoryTeller-UnslanderMonica, that's exactly what I am asking for. What are those "plenty of communities for experienced developers which allow open ended discussions". I am not born with embedded knowledge about them and googling doesn't help much here. At least, for me. That's why I am asking. Is it bad to ask? Nov 11 at 14:02
  • @Dharman, I see where you coming from but the question about globals, for example, would come to "kill" against "feel free to use" opinion-based discussions with very hard time to find the balance. Interfaces even worse and opinions totally depend on the learning path of the person. So, I am not sure how to shape the questions to make them safe. Will see the links below from Marijn. Nov 11 at 14:05
  • @Marijn, thank you, this helps. Although these questions more technical (how to avoid, how to control) rather than common "Why?" and "When?", they are close. I will read more carefully and give a try for mine one. Of course, std::vector was an example of "data vs interface". I don't have any questions on std::vector and its usage. My point why getData() interface is must and just std::vector data is evil. And I know everything about encapsulation, changes, even about insulation. My questions are like "is it worth in real project?" Nov 11 at 14:07
  • 1
    They could probably find a home at Reddit. For example, r/coding is overrun by (essentially) link spam (most posts seem to violate at least one of the rules), but they may (or may not) very much welcome a post that isn't link spam. The rules explicitly mention r/learnprogramming for posting beginner questions. Nov 11 at 22:28
  • 2
    "What are those "plenty of communities for experienced developers which allow open ended discussions". I am not born with embedded knowledge about them and googling doesn't help much here." - Really? I literally tried putting c++ forum for experts into a search engine and got isocpp.org/std/forums off the top. There are tons of options out there. Nov 11 at 23:46
  • 3
    "My questions are like "is it worth in real project?"" - If you have to ask, then yes. If you are actually an expert, you are perfectly well equipped already to try it, see what happens, recognize the consequences, and evaluate for yourself. A topic like that doesn't simply verge on opinion-based; it's blatantly opinion-based, and nobody can make the decision for you except by patronizing you. Nov 11 at 23:52
  • 3
    Asking for off-site resources is off-topic on SE sites. Including here. PS This post reflects no research effort.
    – philipxy
    Nov 12 at 1:43
  • @KarlKnechtel, thank you for the perfect exemplar. Can you please pinpoint a specific place at [socpp.org/std/forums](socpp.org/std/forums) where these topics could be discussed? As I see from the front page of the site, this is forum for highly technical stuff like proposals for new standard, discussion of very specific technical topics, etc. I am quite sure that for these questions people will again answer like "Focus on real specific tasks and don't waste time on meaningless decorations". Nov 12 at 13:14
  • @KarlKnechtel, on your second comment. I see where you coming from, but I have here two goals: (1) To learn if people have found nice solutions for this during these years that I could have missed; (2) I want to have more good arguments when it comes to defend my stand during architect or code reviews. Nov 12 at 13:17
  • @philipxy, I see people already fixed my mistake, so no requests for off-site resources anymore. I see the reason. On the lack of research effort, what visible outcome in question would you like to see? The list of all SO areas sorted by suitability in my opinion? Something else? I just don't know where is better to do this and I ask, what's wrong with it? When you ask for a road in a city, nobody asks you if you walked around last day to find yourself, people just provide information which you could use for forming better questions. This is the effort as I see it. Correct me, if I am wrong. Nov 12 at 13:21
  • @PeterMortensen r/coding does not even allow text posts, so there does not even seem to way to ask a question there. I use r/learnprogramming or r/c_programming the most often. Nov 13 at 0:36

1 Answer 1

6

Some other Stack Exchange sites such as Code Review or Software Engineering have different criteria for what might be considered a subjective question, and the former will tell you if you have a specific piece of code that you want to ask about improving or has bad practice, which would be closed on Stack Overflow. You could write a working real-world C++ program that uses global variables or exposed data members and post that to Code Review and see what they say.

Questions about language design rationale could be asked on Programming Language Design or Implementation. Be sure to browse existing recent questions or check their help or Meta pages to get an idea of what is considered on topic.

Alternatively, you could try asking in chat, for example, in C++ Questions and Answers. Chat is a less formal environment than the Q&A and may be more accepting of subjective questions.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .