« first day (2572 days earlier)      last day (1227 days later) » 

12:07 AM
@cigien that's not a language problem, but a code edit problem (which I have fixed), anyway it is closable by needs more focus, I think
 
@cigien I see where that came from. As @Vickel states, the post is in English. We don't close posts because there's non-English variable or method/function names or non-English text to be displayed from code, or non-English error messages :)
 
@Scratte cigien didn't see that obviously, because before my edit (intending the first code line) it looked like dutch
 
@Vickel Oh, I see. The rendered markdown threw me off, I thought that Dutch was part of the question.
 
Yes, I agree that was easy to miss.
 
@Makyen Can you bin this please? Wrong close reason.
 
12:12 AM
@cigien it's still a low quality question and due for CV
 
1 message moved to SOCVR /dev/null, by request
 
@Vickel Maybe so. I didn't look. I don't want to make requests with incorrect reasons anyway.
 
@Scratte You probably have that view/preset set to hide the posts which you've visited, which will result in a listed request disappearing when you click on the link for it, because you've then "visited" it.
 
@Makyen Yes. I clicked on a button, and then it showed them to me. I felt.. stupid :)
 
@cigien I know, I followed your reasoning the other day. Hence if you CV "not English" as "Needs details or clarity", you wouldn't have a problem with incorrect close reason... see meta.stackoverflow.com/a/297680/2275490
 
12:18 AM
But then one should probably post a comment. I'm sure that if all details are there, a user could get very confused.
 
@Vickel That's a separate issue. I dislike closing Non-English questions as Needs Details, because I don't know if it needs details. I've seen OPs get confused by that.
And I have read that meta, and I disagree with the using Needs Details advice.
 
therefore I use to add this comment: *Please translate this question into English (the official language of this site) or ask on one of those sites:
[Stackoverflow en Español](https://es.stackoverflow.com),
[Stackoverflow em Português](https://pt.stackoverflow.com),
[Stackoverflow на русском](https://ru.stackoverflow.com), and
[Stackoverflow 日本語で](https://jp.stackoverflow.com).
Here on the main-site, non-English questions will be closed as "*needs details or clarity*" or "*because it is not in English*" and eventually
it covers pretty much all
 
Are we allowed to use Hungarian notation in our code?
 
@Vickel Yes, closing as Needs Details is ok, if a comment is posted saying that. I'll keep that in mind, thanks.
 
@cigien needs details or clarity if you cannot read it, because it is a language you don't understand, it needs details/clarity for you, doesn't it?
 
12:22 AM
@Vickel Hmm, and if I understand that language?
 
But NDC doesn't always get the right message across. It's fine if you also add an explanatory comment.
 
@cigien well it needs still another 2 users to close the question, what about their language skills?
 
But the custom close reason only requires you to type in the words: because it's not in English.
 
@AdrianMole but then, if it comes out not to be a language problem, @cigien would retract the CV, even if the answer is still close worthy, isn't it?
@AdrianMole ^ with the NDC you are still fine if the Q is close worthy
 
I get that - it's a tricky area. NDC + comment is probably the best option.
 
12:27 AM
@Vickel Interesting. So I should use NDC just in case the question would need closing once it's translated?
 
@cigien I don't say you should, but I definitely see an advantage in it, specially as you are "picky" about the correct close reason
 
But it could go all sorts of ways after translation: duplicate, general computing, even spam.
 
Oops, I clicked on the star by mistake :p
 
@dur (@Scratte) Another time, There's a tools page on socvr.org which has descriptions and install links for our scripts.
 
@AdrianMole sure, but if you retract your own CV because "NOT ENGLISH" was wrong, you don't have a second chance
 
12:30 AM
I'm not that bothered about not being able to close a question twice. There are plenty of other people who can VTC.
 
@Vickel I'm going to take a wild guess here: you're in the camp that thinks closing a question is the important thing, and getting the close reason right is at best an added bonus?
 
@AdrianMole not in niche tags
 
But it would have to pass the reopen queue first (probably).
 
waffle
 
@Makyen Thank you :) I knew about that page. I had just completely forgotten about it :(
 
12:33 AM
np. I'm sorry I wasn't around to short-circuit the confusion.
 
@Vickel Just FYI, never feel in a rush to respond to me. Take as long as you want to say what you want. I'm very happy to continue conversations over a long period of time.
Responding quickly can often lead to a loss of clarity, and it's simply not worth it I've found.
 
@cigien cat's on keyboard fault
 
Cats are terrible. I've always maintained that. They should be outlawed ;)
 
^ there are some cool cats, like garfield
 
Garfield is cool, I'll grant you that. Doesn't hurt that it's fictional though :)
 
12:36 AM
@cigien Feature request - target a particular CM. ;-P
 
I don't know the reference. Whom should I be targetting?
 
@cigien it's a double sided sword: to close a Q because it is really bad should be the main concern. Removing a CV because the CV reason isn't adequate anymore, doesn't really make sense to me. Better to add another comment to explain your CV you "booked" in the 1st place and why it may have changed later on
 
@AdrianMole They're a cat fan huh? I shall have to have strong words with them :)
 
I don't understand how someone can not like cats. I'm a squirrel and even I like cats :)
 
12:40 AM
@Scratte ask my dog, he loved cats, used to run after them barking "love, love, love"
 
@cigien There's an actual cat moderator too :)
@Vickel Hmm.. are you being sarcastic there? I've seen a dog once catch up and didn't get a lot of love back though.
 
Cats don't need to be moderated.
 
@Scratte not sarcastic, but nostalgic, my dog is gone for some years now...
 
@Vickel I do see your point, in that I wouldn't retract my close vote if I felt there was still a valid close reason. I might leave a comment or something explaining why my vote is inappropriate. In this case, I didn't feel like spending the extra minute it would have taken to make that judgement, so it was simplest to retract my vote.
Note however, that in either case, I would ask for my request to be binned, since my request reason is wrong. Yes, I know everyone is supposed to make their own judgements, but for my own requests at least, I'd rather not make that assumption.
Crap, now my message looks disconnected :( Thanks eyllanesc ;)
@Scratte Oh, who's that?
 
@cigien mmm, if you want your message not to be cut then write everything together without separating.
 
12:46 AM
@cigien in that case, once binned, would it be ok to make a new "manual" request to the room, or would that be against the one post rule?
 
@eyllanesc I would have, it didn't fit. I'm too verbose for my own good, I'm afraid.
 
@cigien mmm, okay, but it's annoying that you demand something from me that depends on you.
 
@Vickel I'd confirm with an RO, but I don't see a problem. It's not really a re-request if the original one was invalid. Of course, if I feel that a different reason applies, I would ask an RO to edit the close reason. Not sure if they can do that, but 2 of the ROs are mods, and they certainly can.
@eyllanesc I'm so sorry, that was meant completely as a joke. I put a ;) to indicate that. You did absolutely nothing wrong.
 
@cigien I don't like jokes, please avoid making them with me. I like to talk only when necessary, nothing more.
 
@eyllanesc I wasn't aware of that. I'll refrain from doing that in the future. Sorry again.
 
12:52 AM
@cigien never seen a RO to edit a CV reason, but I might have not been looking close enough
 
@Vickel Here's another dog & cat scenario
 
@Vickel As I said, I don't actually know if they can. I do know mods can, though I'm not sure they would do so just to edit a request reason.
 
Is this rude enough for a red flag?
 
No, the offensive content is very easily removable I think.
 
But then it's just NAA (which I flagged it as) - so not really worth editing. Gone now, anyway.
 
12:58 AM
@AdrianMole :) where do you find those?
 
Natty finds them.
 
Yeah, agreed. I would flag as NAA, and leave the vomit and weed in there :)
 
@Scratte I was watching, waiting for the "munch" line, but it never came :)
 
@Vickel It's love.. not death :)
@cigien I liked your joke. You didn't even ping anyone..
 
@Scratte my dog was specialist in running after the felines, chasing them, but never harmed any. More serious problems when I was called by a restaurant owner, that he was in the 1st floor of his restaurant eating from the guests plates :)
 
1:06 AM
lol! Yeah.. I can see that not going down too well :)
@cigien They can't. Only moderators can edit chat messages.
 
@Scratte Thanks, glad it wasn't wasted at least :)
@Scratte Ok, thanks.
 
@cigien Look closely at them. Once you see the cat, the ghost is gone forever :)
 
I see it :) There's also 3 dogs, a butterfly, and a wombat.
 
@Scratte I voted for pretty much all of them, so they must be good :)
 
@Vickel I've only voted once.. There's some of those I have never seen in action.
@cigien There's also a tree. Or perhaps it's a snail or earthworm looking above the grassline after the grass has just been cut :)
 
1:16 AM
@cigien did they walk into a pub? :)
 
@Scratte The name is "TreeWithEyes" so I assume it's a tree.
 
@cigien That's just the undercover name.
 
Oh, cool. Probably a snail then ;)
@Nick I have to assume most of the mods are in a pub half the time anyway. Only way to stay sane on SO :)
 
It reminds me of the minuscule cartoons :)
 
@Scratte haven't seen them for years...
 
1:20 AM
@Nick I just noticed I've never seen #12
 
@Scratte which is that? I suspect I've missed a few, they always used to play them just before the evening news but I didn't always catch the news
 
@Nick It's the youtube combilations. Here's nr. 12 :)
 
@Scratte I can't watch it in Australia... :(
 
@Nick Why not? Youtube is blocking you? Use Opera, it has it's own VPN :)
 
@Scratte yeah, YouTube blocking. I already have 4 browsers installed... can't deal with another!
 
1:30 AM
@Nick Me too. I like Opera the best :)
And you're missing the minuscule winter olympics :D
 
@Scratte @ part1, never seen such a clean fridge in my life :)
 
@Scratte :(
 
@Vickel I've never seen a fridge with the lights on when the door is closed :)
 
hahahaha
 
@Scratte how do you know? When the door is closed you can't tell if the light is on or not...
 
1:42 AM
@Nick I'm a tiny squirrel. I can fit inside.
But.. the trigger thingy on my fridge sets off before the door is completely closed, so I see the light go off even from the outside :)
 
@Nick A cat would know - well, maybe. (Schrodinger's cat?)
 
@Scratte thanks for the link, hooked now :) see you in some days :)
 
@Vickel Heh.. yes. They're very addictive. My favorite is the one where a human goes and collects a bunch of insects and takes them home into his laboratory.
 
 
1 hour later…
3:12 AM
@Joshua cool - I got to use my arrays hammer :)
2
 
3:29 AM
@Daedalus: Can you check whois for getbootstrap.com.vn and verify if its owned by bootstrap or not?
 
Pretty sure it isn't, but I'll check.
 
@Daedalus: So the vn links appear to go back to the right place for me, but I only checked the first link for download bootstrap.
 
@Joshua As far as I can tell, the vn website isn't owned by the bootstrap people, though obviously it is an exact copy of the bootstrap website but in a different language.
At least almost.
 
@Daedalus: It's not exact. The #identifiers are different. Pretty close though.
I flagged the Oct 27 answer for a mod to investigate because I can't tell if it's good or bad and edited in the link to the official site as well.
 
@Joshua A username being the same as the link does not count as a disclaimer, in reference to your comment to that user, just so you know.
Apologies; didn't notice your rep upon sending that notation, however what I said is still true. A disclaimer of some kind is required.
 
3:46 AM
@Joshua "So I think his username discloses he's affiliated with the link" is not disclosure. That post is spam - see meta.stackexchange.com/questions/58032/…
That user's question is also borderline spam. It's hard to see why it exists other than to get you to click the link.
 
@Nick: The link in the question goes to i.stack.imgur.com
I'm still gonna vote to delete Q.
 
@Joshua there's a second link in the block quote that goes to their site
 
user10957435
4:06 AM
Is the tool-tip explaining dupe-hammer new?
 
5:29 AM
@cigien I would say yes, that is on-topic. I don't really see the objection to that question. I'll probably override the close.
@Nick Gotta strongly disagree with you there. That renaming to "community-specific" reasons was a great idea (and not just because it was partially my idea, with major backing from Catija). It was always incredibly confusing that we call questions that lacked a minimal reproducible example "off-topic" when they were clearly about programming, which, as everyone understood it, was the topic of Stack Overflow.
Really, the whole overloading of meanings of "off-topic" has been a disaster.
This is why I've been trying to push for calling it all "unsuitable".
Off-topic would mean only, "this question is not about programming". There would be other close reasons that cover other reasons why the question is unsuitable for Stack Overflow.
Duplicates would still be their own category. Technically implemented as a closure, but distinct in a logical sense, because they are not "unsuitable", just already done.
@cigien Ack! No. That was not the intention.
Requirement dumps are always going to be off-topic because they are not questions!
The change was to clarify that whether something is homework is not a factor in determining whether it is on-topic.
@cigien I really don't understand what the person's question is. Are they disagreeing with the compiler's decision to emit an error there? Is it a language-lawyer question? Or do they just want deleted functions and move semantics explained to them? If the latter, then I think it's a dupe. But if either one of the first two, then it may not be a dupe. Unfortunately, then it's just unclear, at least to me.
Reading the comments didn't help to clarify their question for me at all. If anything, it made things more confusing. And there are a lot of comments.
 
user10957435
5:46 AM
Ah, Good Ol' copy elision!
 
@CodyGray I think the renaming was poor, I think leaving the whole category as off-topic would've been poor (primarily due toe the MCVE reason), "unsuitable" I could however get behind
But then, I also wouldn't have minded a full overhaul
 
You also have to consider other sites, which were putting custom, site-specific reasons under "off-topic", because that was the only place they could put them.
Yeah, unsuitable is really the best.
I argued with Catija that we should just call all the close reasons "unsuitable", and display the entire list in the pop-up dialog, no hierarchy. This would eliminate naming confusion and also make the reasons easier to see at a glance.
She thought that'd be too overwhelming.
 
The 3(!) sub-menus are more overwhelming than a full list would be IMO
 
Agreed
At least two people have told me that they're scared (or unaware) to drill down to other levels of the list, because they think clicking on an option might submit the form.
I...am skeptical of this, considering that there's a proper "Submit" button, but it does seem like a valid UX concern.
 
I'm not, the Submit button should be in the bottom right hand corner, where is standard in UI
2
 
user10957435
5:56 AM
I actually kind of tend to agree with Catija here. One big long list of close reasons sounds like a bad idea. While the current hierarchy may not make sense to all, at least some form of organization is helpful, given how long the list of reasons to close a question is.
 
We need 8 reasons, by my count.
It's a lot, but I'm not sure it's too much.
I could whittle it down to 7 very easily.
 
Details, POB, MCVE, Dupe, No Repro, SU, SF, Other
 
No
 
user10957435
I'm curious: what are your 8? We currently have like 10-15 reasons.
 
Maybe even roll Details and MCVE into one reason, they're essentially the same (as per "include desired behavior, a specific problem or error")
 
user10957435
5:59 AM
@Nick Well, they are now with the new wording. I think the old (or the one in use when I got here) wording gave a bigger difference between the two.
 
(1) Unclear/needs details, (2) too broad (yes, I'd change it back), (3) primarily opinion-based, (4) seeking recommendations, (5) unlikely to help future viewers, (6) a debugging question that needs an MVE, and (7) blatantly off-topic because not about programming.
That's the list for 7. If you want 8, add "general computing" as a specific subset of "blatantly off-topic". The only advantage to that is that it could contain links in the blue box to Super User and Server Fault. (There should not be separate reasons for SU and SF.)
 
user10957435
That's actually a pretty good list. Those are certainly the ones I use the most.
 
@Nick They are not meant to be the same. MCVE is only for debugging questions.
 
Meh, I lumped POB and recommendations under one, recommendations are opinion. And debugging questions needing an MVE means they need details
 
I can see lumping POB and recommendations together. That actually makes a lot of sense.
That'd get us down to only 6.
 
6:02 AM
No, they're not the same, needing an MCVE is a subset of needing details IMO, although keeping them separate for clarity is fair
 
user10957435
Now a single list of 6 reasons, I could do.
 
(1) Too broad, (2) Seeking opinions/recommendations, (3) Unclear/needs details, (4) A debugging question that needs an MVE, (5) unlikely to help future viewers, (6) blatantly off-topic (not about programming)
Perhaps even in that order
Users with full close-vote privileges would get an optional textbox where they could type in a more detailed explanation for #6 (blatantly off-topic), just as they do now.
The generic explanation for blatantly off-topic, printed in the blue box, would mention SU and SF, and also link to the "All Sites" list on the SE homepage.
 
Yep, I'd be happy with that list
"unlikely to help future viewers" this being subtext and not the name of the close reason really annoys me
 
Yeah, since that's literally the whole point.
 
user10957435
Hey, btw, since a couple people active here now, I don't like the look of this question, but I'm having a hard time articulating a good reason to close it. Maybe I'm just confused on what the OP is asking.
 
6:05 AM
"Does anyone have experience" is pretty much textbook "too broad".
 
user10957435
Any suggestions?
 
user10957435
@CodyGray Cool thanks. I think the whole patent thing is what threw me off.
 
I'm not entirely sure it's a programming question. Maybe. But even if it is, it's far too broad. "Can someone explain this patent?" isn't a good fit here.
 
user10957435
Makes sense. Thanks again for the help.
 
@Chipster Also, finally seeing this in the transcript... No. That's not new at all. Been there ever since the hammer was announced. You mean where the big gold badge is shown in the blue banner, and you can hover over it for an explanation, right?
 
user10957435
6:08 AM
Btw: I just noticed the OP tagged Regex. Something tells me that is a poor tool to solve their problem...
 
They also tagged with [c++], which made no sense. Tags have all changed. Keep up. :-)
 
user10957435
@CodyGray Yeah. Somehow I must have never noticed the explanation before. Maybe it's just because I never really held my mouse over it wondering what it was because I read the meta on it.
 
Yeah, probably. Tooltips aren't very discoverable.
 
user10957435
Yeah, the C++ tag is how I found the question in the first place.
 
A mixed blessing for the asker :-)
 
user10957435
6:12 AM
What's a blessing?
 
Putting a popular tag like [c++] on a question gets a lot more eyeballs on it than if you'd just tagged it [malware-detection] or whatever would be appropriate. That's good, because you want your question seen by people. On the other hand, it's bad because they're the wrong audience, and are thus more likely to dispense of a borderline question.
 
user10957435
Ah. I got you now. Yeah, definitely a mixed blessing. It kind of is for us too, since we find their borderline question easier.
 
@CodyGray Interestingly, your argument that "unlikely to help future viewers" is the point of that close reason is the exact opposite of what Shog9 said that close reason was for. Shog9 argues that we should definitely not be closing things because we think that the question won't be helpful to future visitors, because we should not pretend to predict the future. (cc: @Nick)
 
Interestingly... people disagree? :p
 
No... never... everyone always agrees. :)
 
6:23 AM
Or rather, it should be used for things that blatantly won't be helpful to future visitors
Oh you put x=1 instead of x=2? That was foolish
 
@Makyen Yeah, that's a fair point. I know the background well that Shog is referring to. The reality is, both interpretations are fraught with error. If we focus on "unlikely to help future viewers", then we get into a situation where we have to try and predict the future sometimes, which obviously doesn't work well. But if we focus on supposedly objective metrics like "typo", then useful questions that would be helpful to others because of common mistakes get closed.
 
user10957435
They agree, or they don't exist :D
 
@CodyGray Now, that interpretation I agree with. Much more nuance. Reality is rarely binary. :)
 
I'd rather use the "unlikely to help future viewers" as a side constraint when thinking to apply the reason.
So, it has to be a typo or no longer reproducible, but it also has to be unlikely to help future viewers.
Still not perfect, but much better, and much closer to the original intent.
(Thanks for the link to that Shog answer, though. I'd read it years ago, as evidenced by my upvote there, but had completely forgotten about it since.)
 
@Makyen I'm still resisting assimilation!
 
6:35 AM
@CodyGray Yeah, that's how I interpret it. The clauses are not separate.
 
@Makyen Right. What irritates me is that, at the present time, the "unlikely to help future viewers" is the part that is most commonly missed. That's why I emphasize it. If the situation on the ground were different, as it was back in 2017 with the "too localized" reason, I'd be on the opposite side emphasizing something else.
@Chipster Pro tip: if you click on the "MS" link and scroll down to the bottom of the page, you'll find that "why" explanation given there, too.
 
user10957435
@CodyGray Thanks. I forget about that sometimes.
 
@Chipster Is forgetting better than never having known?
 
user10957435
Uh, I'm not really sure :D
 
:sigh: sometimes C++ annoys me
 
6:38 AM
Do tell, @Nick.
 
user10957435
@Nick What'd it do now?
 
(So that I can tell you why it's actually you who is doing it wrong!)
 
So, I don't really know C++ very well, but I'm trying to read all of the lines of a file into a vector using while (std::getline(f, line)) { lines.push_back(line); } and for whatever reason, it'll ignore the last blank line of a file, so if I want a blank line to be read into the vector, I need 2 blank lines
 
user10957435
So, @Cody is someone posting their gmail account something worth editing out of the answer? Like even if it might be relevant to the answer? I'm referring to this ms.
 
user10957435
Cause technically that's personal information, right?
 
6:41 AM
A "line" is defined as "a chunk of text that ends with (a) line-break character(s)".
That's key to understanding the behavior.
 
Why can't it be a chunk of text that ends with a line-break character OR an EOF marker
 
Because that's not how POSIX defines a line.
 
POSIX ruining my life on Windows, RIP
 
In my library code that appends lines to a text file, I actually have code that specifically addresses this situation. Descriptive comment: "POSIX (and good sense) says that a line is defined as ending with a line-ending character (\n). Thus, we should be able to assume that the previous line in the file (if any) does when writing textual output to a file. However, some files out there in the wild don't properly follow this convention, including some of the files generated....
...by <our own legacy software>. So, to ensure that we aren't appending to the end of an existing partial line, we need to read from the file, determine if its final character is a line-ending character, and, if not, append a line-ending character."
 
I'm just arbitrarily slapping a new line onto the end of the file which works for now, really I should sort out my parsing so it doesn't need a blank line to indicate the end of a block
 
6:45 AM
For reading, yeah, you can just handle EOF. See: stackoverflow.com/a/2251612
In my library function that reads all files from a text file, I trim all trailing blank lines from the vector of lines before returning, because I know they aren't ever significant.
 
I don't actually need the blank line, but there's new lines between datasets and it's easier to detect a new line than detect a new line or the end of the vector /shrug, laziness
 
Ah, so you're using blank lines as sentinels, thus recreating the classic mistake of NUL-terminated strings. :-)
 
Exactly!
But it sure does make the code faster to write :p
 
Wrong code can be written very quickly.
This is why my colleagues generally write more lines of code per week than I do...
 
@Chipster You can also use the FIRE userscript, which displays the post and the why information in a popup, which you can open by clicking on a "fire" button which the userscript adds to SmokeDetector reports.
 
user10957435
6:49 AM
@Makyen Thank you. Noted.
 
Yep, if it were important code, I would put in the effort to not need 2 blank lines at the end of an input file, but it's AoC, so.... I'll fix it when I can be bothered
 
Alexandria Ocasio-Cortez?
 
Oh, that's too bad. I was hoping she had contract C++ programmers working for her. I'd apply to that job.
 
user10957435
I like Cody's answer better :D
 
6:52 AM
I don't know who that is :p
American politics is out of my area
 
That's weird. We're doing our best to make our domestic politics the entire world's problem.
9
 
Only at the national level :p
 
user10957435
Clearly we're not trying hard enough...
 
user10957435
Ocasio-Cortez is a HOR member (if I'm not mistaken), so she's at in our national government.
 
user10957435
Or federal government, if you want to get technical...
 
6:55 AM
Yes.
 
Ah, outside the US I don't think we generally pay attention to anything lower than the senate
 
user10957435
The Senate has gotten interesting in recent years because there's been a lot of gridlock in there for various reasons. The HOR is considerably less so.
 
Mmm, fundamental reasons why that is so. But I guess no one wants a historico-political lesson here...
 
#include historico-political lesson
 
7:13 AM
Anyway, issue sorted, wrote a helper function to convert my vector of strings into a vector of vectors of strings
 
My internal memory bean-counter is beginning to raise an alarm...
 
Ahhh, it's not so bad, using variants deeply nested inside other STL types is when stuff starts getting ugly... not that I've done that
 
Eeeeeeeeeeek!
 
Hey, could be worse, not like one of said possible variants is a tuple of 3 pointers or anything :joy:
 
7:29 AM
What is this I don't even
Unless you're interoperating with a C API, there shouldn't even be any raw pointers anywhere in there.
 
I was tired, and I don't know what I'm doing, here. It was to allow me to make an options menu like this and this
If there's anyone you should be blaming, it's Zoe, she knew I didn't know C++ and didn't talk me out of it
(It's also not as nested as I remembered)
 
Oh, I have a ConsoleMenu class.
 
You also know what you're doing
 
It's got a vector of chars, corresponding to the commands (meant to be ASCII characters), a string for the invalid choice message, a string for the prompt message, an input stream, and an output stream.
I have no idea why you need all these pointers.
 
Nor do I :p
That was written at 4am
 
7:36 AM
I mean, it's not brilliant code that I have. I knocked it together in about an hour a long time ago to create a simple text-based utility. I've since reused it in a handful of other text-based utilities. Never had a problem yet.
The major limitation is that it only supports a single ASCII character for the choice, so you can't have an option "10".
 
that's what hex is for
 
But I haven't found a need for that yet. If you need more than 9 options, you either use letters and numbers, or you do nested menus.
 
I'd been meaning to revisit it cause all the menu and text code in there is meh, but I've reinstalled windows and lost half my build tools
 
Code is something like this. I stripped out the templates for different char types (wide/narrow) because that made it look at lot more complicated. But it might not compile now. :-)
Also, you'll need to implement the BuildPromptString function, but that kinda does the obvious. It displays the heading, with each menu item underneath it, indented. Major complexity is it ensures nothing is ever longer than 80 columns.
There's a Gnu library for this, but that's GPL, so didn't work for me.
I prefer handling the tasks in the calling code, rather than passing function pointers for each of the tasks.
 
I'm finishing a project at work where I have to convert decades old process diagrams from some weird non-standard XML format to a new but equally proprietary JSON format (XML format was for some old desktop app, JSON are equivalent diagrams for a web service). Web based format doesn't have multi-line strings, so wrapping text is something I've done a lot of recently
 
7:47 AM
...Why would you need to wrap text in a storage interchange format? Wrapping should only matter for display.
Is the "proprietary" part just adding stupid?
 
unfortunately the people that implemented the modern display part didn't implement multi-line strings (while the old tool for displaying them did support them), so a multi-line string had to be transformed into multiple single line string objects based on expected character width of an unknown original font, known font size and known container size
 
I see.
You should maybe schedule a seminar on "separation of concerns".
 
The format is actually the definition of how to display the diagrams
rectangle here, text here, circle here and the like
I sometimes wish I got paid in hours saved rather than hours worked..., when a project is described as saving "man-years" I could take some time off
 
Weird concept. Haven't thought of that before.
Although I don't often get told nonsense like this work will save man-years.
 
Without the conversion we'd be looking at 2 or 3 days per diagram to redraw them, and there was a few thousand
 
7:59 AM
Rather, I get told, "This must be done in 2 weeks. Nothing can ever take longer than 6 months to develop, because products are obsolete within 6 months, so it cannot possibly take longer than that to build them."
 
the Oil industry moves slow :p
There's software I've worked on older than me
 
8:15 AM
Hmm. What's up with that edit?
 
 
1 hour later…
9:51 AM
@Cody that will be a tp for smokey?
 
It is by my standards. It's been nuked as gibberish.
 
Ok
 
Another day, another plagiarist caught in LA.
 
10:30 AM
Arash Markazi was just the tip of the iceberg, eh?
(I wonder who is going to get that reference.)
 
@CodyGray I didn't catch him unfortunately.
 
That case was handled already.
 
Who knows, maybe they will (or already did!) create an SO account and then... ;)
 

« first day (2572 days earlier)      last day (1227 days later) »