It kind of looks like it should be migrated to Super User, but they don't (to my knowledge) have the amazon collective, so it might be better off here in the collective.
@MichaelM. I'd certainly say that's not about programming. But given past experience with highly upvoted questions (no matter how off-topic) is that it's just going to hang around like a giant floater attracting lots of flies.
While I, personally, wouldn't have a problem with that and think that it would be quite reasonable for us to move even older questions to the sites where they would be on-topic, it's not really something that's done.
I believe highly scored questions like that are exactly the thing that prompted the implementation of the block on migrating old questions, because it distorts rep levels on smaller sites.
@JasonLiam This request isn't actionable due to the answer's score being too high to delete. Separately, please don't use this room to ask people to re-flag things where the same flag has already been declined. If you really believe the answer is link-only and should be deleted on that basis, you can use a custom flag. However, I'd expect that to also be declined, as "Take a look at C++20's constinit." is an answer with or without the link.
@RyanM Giving merely advise is not the goal, at least in imo. Answers should be self contained and explained instead of giving a "opinion based advise".
I'll acknowledge that it isn't a very good answer, but it meets our standard for declining NAA/VLQ flags.
ehhh actually given the question it's questionable
but that's what a custom flag is for, explaining that the OP already knows about constinit the question is asking about why something happens and thus this is basically just telling them to read the manual to find that out
err, I mixed up constinit and constexpr, actually.
I dunno. The question is a mess. It should probably just be deleted.
Maybe a new meta question regarding this(whether it is a link only answer and should instead be a comment and so deleted as an answer). Not sure though
reading about the problem constinit is intended to solve...man, C++ has some wild footguns.
I think there's a useful phrasing of this question that could be a useful signpost and to which "use constinit" would be an actual answer, but I don't feel qualified to write it without a bunch more research than it's worth
@JasonLiam I've rephrased the question. None of the linked questions on the constinit canonical have similar phrasing, so it might be a useful signpost now.
@JeanneDark I saw that and thought, surely all those 7 upvotes on the answer were from people over time with similar issues who'd found it and realized their mistake. But no, every single one on the day it was posted.
@KarlKnechtel I meant specifically the problem of "I'm parsing a file in a for loop, but only the last line of the file shows up in the resulting data [because I either overwrote the data in each iteration instead of appending to it or declared the variables inside the loop body]."
but if the answer is "you need to not overwrite your data/redefine your variables each iteration" then you could perhaps gloss over at least many of those differences?
"Why do I only see results from the last iteration of my loop? How can I store all the results?"
and you know, that would be a better target for a lot of people that get sent to the "create variable variables" canonical (which, separately, is not great anyway)
also that seems like a very different problem than variable variables...I assume that's because they're suggesting to create dictionaries or something?
@KarlKnechtel (from the JS side) - most "variable variables" that people ask about are either served by: a) arrays because you can just add sequentially to them b) an object because the user wants to have named things in a pattern. Rather than foo1, foo2, foo3 they want fooA, fooB, fooC for example. A lot of times the b) is still a stealth request for a) as the variable name doesn't matter.
But yes - the vast majority of times, it's just because the user has a loop and wants to create variables out of it.
And from the rest, very often the issue is that the user already has a bunch of sequential variables foo1, foo2, foo3, etc. and they want to write a loop to generate them, instead of doing it "by hand".
And that's a double XY problem. 1. you don't need a loop to generate variables. 2. you probably didn't need the sequential variables in the first place.
Hmm. After I reviewed this answer (and voted to delete), I noticed that it was edited by OP to remove the content; at first, I thought it was just nonsense (sort of). Should the content be restored, or do we respect the OP's wish to have it deleted?
... I guess the OP either doesn't know how to actually delete or doesn't have that option.
Note that in other online places for posting, deleting a post either completely removes it or maybe leaves a small note that it was deleted. The message OP left seems consistent there. Still seeing the post with the content is unusual after deletion.
> The history of PHP is that they don't implement breaking changes without good reason.
I mean... um. No? Plenty of bad reasons, though.
Like the time PHP neutered the hashing function, so you could enter with any password anywhere. I don't think there was a good reason for that.
@tripleee I don't understand your comment there. without quotes, why wouldn't perl, -0777 etc. be separate tokens in the command, and why wouldn't e.g. -0777 be interpreted as a flag for find rather than for perl?
and, I take it, the answer to "but what if you actually needed e.g. nonstandard whitespace in the exec'd command" is "that doesn't happen because posix"?
not sure what you mean by that; you'd quote or escape any tokens just like if the command was run outside of find (and arguably keeping this consistent is one of the good reasons to not require quoting around the entire command)
I was thinking, like, a command that for some reason needed to be tokenized differently. but that's clearly impossible because it's a shell command, so the program would have to have been written to expect the standard tokenization, because it doesn't have a choice
my mindset here is just driven too much by traditional PLs I guess. shells are just weird to me. it still boggles my mind that [ is a command
Anyway. I disagree with closing that question as a typo; there's clearly an underlying conceptual issue about how the command is being interpreted
Am I just getting (even more) cynical, or is this a really bizarre "known good" audit for the First Answers queue? Or maybe, what's bizarre is the fact that it has 14 upvotes?
This reads like a new question - but is it? I don't know anything about Laravel, so maybe it's a poorly-phrased suggested solution. Any experts about?
@Dharman Dunno - quite a while ago. I've read about the incident. It was quickly fixed but it shouldn't have happened. I also mentioned that in relation to "The history of PHP is that they don't implement breaking changes without good reason." which was posted in 2008. And the incident might have already been part of the history at that point.
OK, found the incident. It's from 2011 - the crypt() function, when given salt, returns...the salt. bugs.php.net/bug.php?id=55439
Also I found another bug reported in 2014 which is that crypt() truncates the input without any indication bugs.php.net/bug.php?id=66564
Not sure what's happening here. Has OP actually fixed the code they didn't show, or is this an attempt to 'edit' the question? The two other NAAs suggest that the Q should be closed, anyway.
@AdrianMole The screenshot and the code in the answer are different but not sure if that means the answer is "correct". The screenshot is cut-off, so hard to really say. Also hard because I don't know Dart/Flutter, so I can't really guess.
@VLAZ Actually, I can now see that maybe my misspelt pseudo-epigrammist actually flagged that; the formatting may have been to help the detection process.
It all fairness unless completely obviously mod material I try to edit posts that are completely obviously wrongly formatted. Because I prefer my eyes not to bleed out as I'm trying to read it. I might have probably done the same had I come across that post.
I'd have to agree that it is primarily opinion-based. But it's still useful, so should not be deleted. However, one could argue a case where better answers could be written (e.g., I have a library that I build which can target all sorts of other platforms, so TCHAR really must be used in that). But I shan't be voting to reopen it on that basis.
Hmm, skimming the answers (and not actually knowing much of the subject matter) it seems like the "NO" people are more convincing. In that the answers lay out problems with TCHAR and why it's not advisable to use it. The "YES"-es are more like "sure, it's OK. Source: trust me, bro". OK, I'm slightly downplaying the argument but it doesn't seem super solid. One did seem to have a point about compatibility with libraries but the others didn't convince me.
Again, that's without any sort of background in the subject, so take that with a grain (or more) of salt.
What I'm trying to say is that both the Yes-es and No-es have a point...to an extent. How much - I can't really say.
Perhaps a good answer will go through the pros and cons and explain when each is relevant and what considerations should be taken into account.
@NathanOliver lol...would it sound bad if I said we actually have that already for another product? It's one of the older legacy systems which is being restarted every day at midnight. It apparently solved something at some point in time. I'm not sure anybody in the company knows what or why.
@VLAZ It would not. The last place I worked at we had a citrix server and for whatever reason, it would collect abandoned user sessions and eventually it would become unresponsive as all of the resources were consumed. The IT group just created a scheduled task to reboot the server at 2am when no-one was on and problemed solved, no more abandoned sessions piling up.
Also, I have a timer plug for my fridge. The part that is supposed to regulate temperature is broken. No matter what you set the temperature to, the fridge always strives for absolute zero. So, I just went with the 5 minute solution and have it set up to work 2 hours and not work 1 hour. Or something like that.
At one point the timer plug decided to not switch between on and off. So it was always ON. The milk I had froze in the fridge. Obviously, I only noticed when I tried to put some in my coffee and the milk didn't move at all in the bottle when I turned it over.
@TylerH During the usage of the system. Unfortunately. We identified a couple of problem scenarios for why it was happening. But those only crop up on production, of course, not in the test systems...
@AdrianMole Most definitely not cheese. Source: I've also had milk turn into cheese. 1. It smells. 2. It at least sort of wobbles. The frozen solid milk I had was... I mean it was a solid block. Can't mistake it with cheese. And when it thawed it was milk again.
@AdrianMole I know, right? But apparently nobody thought to try and do multiple hundred thousand imports for several days on the test systems. Which somehow throws a RedisTimeoutException (Redis being the cache for the system) which itself isn't at all to do with the imports but somehow related to all services logging a lot of information. The logs at least shouldn't be connected to Redis... yet there is a link. Most likely a bug in one of the third party libraries.
@SurajRao And from the Meta post announcing the ban: NOTE: While the above text focuses on answers, because that's where we're experiencing the largest volume of such content, the ban applies to all content on Stack Overflow, except each user's profile content (e.g. your "About me" text).
@TylerH Depends on which one. The most impactful one takes out maybe 20-40% of the functionality of the application. But for about 5-10 minutes tops. Others you can restart without any impact. It was the big one and it was annoying because only part of the functionality had a problem. Thankfully we could work around it by checking if the users were active on the system.
There is limited users that are on the application. For now.
@JeanneDark Quite probably. But I don't want to waste a close vote on a question that should, instead, be mod-deleted. (Just like it's not best to cast a CV on spam.)
Any next.js or or other JavaScript fiends around who can help out with prettifying the code in this answer? I fear that any attempt I make might break the syntax, or worse.
@TylerH I mean, right now the users are not many. I don't think it's 100 even. Erm. Until tomorrow when we get more. There was a new release and we hope that fixed the problem.
@TylerH I guess check my attempt at prettifying what isn't really valid code. And I can't really be bothered to try and figure out what the author meant.
In general, unless rather short, I'd expect the conditional operator to be split into three lines: 1. condition 2. true branch 3. false branch.
Problem
As of now, the tag meta (supposed to be used for the HTML-element) is misused for question regarding
Facebook/ different products by Facebook (aka. Meta. Given the relative recency of Facebook's rebranding, this issue is with newer questions.)
The package named "meta" in the programming ...
Hey, I know y'all were telling me recently that the duplicate close reason still tells people to ask a new question and I've looked for that text in the code but I'm not seeing it... have one of you seen the message for the post owner recently to see whether it's still telling them to ask a new question? Reference MSO - meta.stackoverflow.com/questions/394552/…
@Dharman Yeah, cool. :) The code agrees with that. So I'm glad to konw that I don't have ghost code to find in GH. :P
@Dharman This seems pretty OK as is now? Except maybe "already has answers here" bit since duplicates may not have answers? Would something like "This question has been previously asked here:" be better?
Duplicate change right now is just for the non-asker viewers. I still kinda want to add something to the Close modal but I'm not sure. gist.github.com/catija/…
@TylerH But it hasn't, sometimes? Mods can dupe close as duplicates of unanswered questions.
Both. I've definitely seen questions get closed as duplicates of questions that are unanswered. And OPs often don't know... particularly on smaller sites.
@TylerH Yeah, I have to be really careful about keeping it general enough that I'm not forcing policy on sites. Like... in the modal I kinda want to be explicit that users should only close questions that are duplicates, even in cases where the answer is the same despite the questions being different.
@Catija Well, two things then, I guess. 1st: What are these other reasons mods are closing questions as duplicates of unanswered ones for? We need an exhaustive (or at least more complete) list of reasons one would do that...
You don't need a mod to close as self-dupe without an answer. And the problem in this case is the comment which asks "Does this answer your question?" and points to their unanwered question, which looks like mocking.
2nd: OPs often don't actually know why on Stack Overflow, either... but that's not really our problem.
We cannot cater to the lowest common denominator, and if someone cannot realize, for example, that the text of "already has answers" is wrong and also not important when they ask they same question twice in a row and a moderator closes it, then they probably aren't likely to benefit from any answers that do get posted in the first place
@TylerH Consider a smaller site where there aren't many experts in a specific area... it's possible to end up with two questions that are the same but no one is able to answer either of them due to the question being niche ore complex.
@TylerH It's not your problem, no but I'm specifically trying to improve the UX so that we can help users understand what's going on as best I can within the system I have to use to do that. :)
@Catija Ah I see, the "well-received but difficult to answer non-unique problem" situation
I wanna say it's probably not that big of an issue to just leave them both open in those cases for small sites with low traffic and just see which one draws the first answer (if ever)... haven't thought long on it though, of course
> This question currently includes multiple questions in one or is so broad it can't be easily addressed in an answer. It should focus on one problem only.
@Catija Hey, Catija. As ever, I'm probably being a pain in the *** (but that's what I do best, so...). Point is, in the Reopen Queue, we have an option that says something like, "This question is not unique and has already been answered." However, there is no "formal" way to indicate our alleged duplicate target. Sure, we can can add a comment, linking the suggested dupe, but that's not really good enough, IMHO.
I'm guessing he's talking about cases where it's closed as something other than a duplicate? So maybe it was closed as needing detail and now it's been cleared up but it's become a duplicate instead?
@TylerH For example: A question closed as "not in English" (correctly) that has been appropriately translated, but is now a clear dupe. I have no real option to specify that dupe. Also, if it's in one of my "gold tags", I have no ability to use that Mjolnir privilege.
@Catija Honestly, I'd just bring back the "Unclear" and "Too Broad" close reasons. The "Needs details or clarity" and "Needs more Focus" reasons are substantially more confusing for users just in their names.
^ +1 on that!. "Needs focus" should be more specific and not just "more than one question."
... many of the many posts I review in Reopen Votes are closed with "Needs focus" (and many closed by diamond mods). I don't want to reopen them, but the close reason - as it stands - is actualy wrong.
Well-established users and mods are still using "Needs focus" for "too broad". No problem with the thought process behind their vote, but the banner message is just plain wrong.
@Catija Yeah, I get that, But the message given to the OP doesn't reflect that. It says sometihng like, "This asks too many questions..." when, maybe, it only asks one (albeit broad) question.
... like, "How can I make a website that does XXX without the need for YYY?" Really only one question, but far too broad for a reasonable reply on SO. Should be closed, but the banner text needs to be right.
Sure. And that's what I'm trying to do but I don't think going back to phrasing that says a whole book could be written about it is helping askers, either.