« first day (984 days earlier)      last day (3041 days later) » 

6:00 PM
(and once you know .NET, you'll want to totally drop Java and use C# instead mwahaha)
 
I heard something about windows moving towards PS for deploying stuff
 
@Mat'sMug lol, right... ;p
 
@Quill It sure did.
Windows Store apps are installed with PS.
 
@Mat'sMug If you want to buy @Phrancis a windows PC for dev work, you know ... ;P
 
0
Q: Simple data structures for representing graphs in Java

coderoddeMotivation I do a lot of graph-theoretic code, and, by now, I feel substantial need for data structures that can represent weighted graphs, both directed and undirected. Up till now, I was in a habit of writing a graph node type along with the weight function (in my prior posts, something like D...

 
6:01 PM
ugh, I always forget he's on a Mac
@CaptainObvious nice post
 
I've used Powershell a little when manipulating NuGet packages from the NuGet package manager command line
 
^ yeah, me too
I'd love to have a reason to use it, like a valid reason besides curiosity
 
@Matt what do people use PowerShell for in real-life?
 
Here is your hello world script
"Hello World"
 
riiiight
 
6:03 PM
If I can use PS to automagically get and do my assignments, submit them to the U, and everything, sign me up.
 
Sys admin mostly.
 
We were working in a project where we deployed our own (micro-)services as nuget packages. This did however require from time to time that we had to manually up- or downgrade the packages to match packages, and here using the PS command line helped us as we could simplify some of the typing and execution of the commands
 
you mean I could write myself a sysadmin and replace the bald guy that's sitting behind me?
4
 
@Mat'sMug Don't cheat @Malachi or @Phrancis out of a job
 
possible answer invalidation by Nathan Jones on question by Nathan Jones: codereview.stackexchange.com/posts/115923/revisions
 
6:05 PM
 
@duga That should be rolled back should it not?
 
I rolled it back
 
Do you guys get a lot of dups here? I would guess no
 
not at all. the occasional migrated SO post that got cross-posted, perhaps
 
BTW, @Duga is a bot run by Simon, @RoboSanta is a bot run by janos, and CaptainObvious is a question feed.
 
6:07 PM
@Matt You got to be really fast to be able to actually be able to do a roll back here...
 
@Hosch250 I totally need to write something to join that list ;-;
 
Sometimes we get a VBA/VB.NET dupe.
 
I was only able to roll it back because @Jamal seems off-duty
2
 
codereview.stackexchange.com might be a better place for this — depperm 47 secs ago
 
@Mat'sMug You're telling us he does other things than editing?
 
6:08 PM
lol
 
s/off-duty/too busy ninja training
 
@Quill My guess is that would break off at the first space, then fail due to invalid syntax.
 
wat
 
You probably need to use quotes or something to tell it to replace the whole string.
 
nope, it's a horrible implementation that works off .split("/")
 
6:09 PM
@Hosch250 Are you reviewing the regex?
 
That command, wouldn't the command prompt think it ended at the first space?
Oh, OK.
@holroy That isn't regex, that is a *nix command prompt, or so I've heard.
 
That feeling you get when someone finally reviews your code: :D The feeling you get when they clearly point out how much you really suck at this language: :(
10
 
0
Q: Creating an Entity, persisting it to the DB, and sending a welcome email

Robert CaloveThe reason I'm posting this piece of code is because I want to know how I'm supposed to properly handle the change in requirements/specifications and how I should accommodate it in unit testing. /** * Create an Affiliate */ public function createUser($username, $password, $email, $firstName, $...

 
Looks like sed but you need a trailing slash
 
str => if (str.startsWith("s/")) str.replace(str.split("/")[0], str.split("/")[1])
 
6:11 PM
@CaptainObvious oh, Jamal is here
 
If they have more than 30 points to make then you must REALLY be doing something wrong. lol
 
@Hosch250 I've never seen a command prompt like that?!
 
s/command prompt/terminal
 
s/terminal/command
 
Which terminal? ( /me is slightly confused... I do see the reference to sed/regex/..., but I haven't that at the command prompt without doing something extra first, like going into search mode or similar)
 
6:18 PM
@janos You around?
@SimonForsberg I don't understand your comment. — janos ♦ 23 mins ago
(Sorry to others who have debated this already)
I am missing the option "Leave the question as-is, answer it if you want" from your answer, @janos.
 
@SimonForsberg hey
 
btw I revised my answer
(I'm further revising, actually)
 
I'm not sure what there is in my comment that you don't understand.
 
"Ideally it should be made a better fit yes, but what if it isn't?" <- what does "it" refer to in the 2nd sub-sentence?
 
6:22 PM
isn't "it" the same "it" as in the 1st part?
 
@janos s/it/the question/
yes, it's the same it
 
as in, "what if the question isn't a better fit" ?
 
assert.isTrue(it.isSame(it)); // whatever
 
which doesn't make sense to me
 
I see bluetalk
 
6:24 PM
@janos isn't changed to become a better fit
 
you killed it @skiwi
 
i.e. what if the question is left unchanged
 
you're having a meta discussion about a comment left on a meta discussion about a site about meta programming
 
@SimonForsberg then probably best to leave it alone
 
I'm voting to close this question as off-topic because its better suited for Code ReviewScott Holtzman 41 secs ago
 
6:26 PM
@Quill Metalicious!
 
yo dawg, heard you like meta, so I meta'd your meta about meta
 
... or possibly metalic?
 
@janos Without answering? Just leave it as a zombie?
 
that's up to each reviewer what they do with it
wasn't this asked before btw?
 
@Duga Hmm... Kinda unclear whether it is working or not. The start indicates non-working, the latter part (of first paragraph) indicates working...
 
6:29 PM
@janos Okay, that I can agree with. But your meta answer still says While the question is in a controversial state, please refrain from answering which I cannot agree with.
 
@SimonForsberg actually I edited that out just now
 
I should really use some time on SO so I can get "cast close and reopen votes" privileges...
 
Thanks
 
Zak
@holroy It's working AFAICT
Hoping it comes over so I can tear it to pieces offer some feedback
 
Now, just one more question @janos. Do you think this recent question that triggered the meta debate is different from this old question of yours? If so, how?
72
Q: '100' is a magic number

janosMagic numbers are bad... I totally agree. But there's one magic number I find hard to fix: '100' is a magic number. Consider this code: public double getPercent(double rate) { return rate * 100; } public double getRate(double percent) { return percent / 100; } Sonar will raise 2...

 
6:30 PM
@SimonForsberg thanks for the comments. I feel I could still improve this answer....
 
@Zak Seems like it is good, but it would be nice to be reworded before entering CR...
 
@janos That's what comments are for, isn't it? :)
 
IKR :)
@SimonForsberg (read the question only now) yeah, it's the same kind of question
and not the kind that we like
 
except one has a better title
 
@Mat'sMug Which one?
@janos I have nothing against your question.
 
6:37 PM
I vaguely remember that I cross-posted on SO, or maybe Programmer's, but the answer I got was about Sonar configuration tricks, which was really not what I wanted
 
@SimonForsberg the one with the 72 votes I'd say ;-)
 
@SimonForsberg kind of a skeleton in my closet, like my early posts on CR, questions, answers, meta posts.... scary stuff (for me)
 
@Mat'sMug I thought we wanted our questions to have titles that describe what their code was doing!?!??
 
@SimonForsberg IKR
damn, it's a bad post. recommend deletion.
 
+ punny =)
 
6:39 PM
there's even an UPDATE section that says "from the answers, ..."
 
I have nothing against @janos old question. I think it is a good question, and I think both that kind of question, and this most recent ones, and the ordinal questions we get are on-topic for this site.
 
Sorry @Quill site discussion going on :)
 
@Phrancis Thanks. I was just about to tell @Quill "Nice way of interrupting site business".
 
I'd call it borderline, but yeah I wouldn't have any solid grounds for hammering it
 
6:41 PM
my stuff usually gets moved whether or not site business is going on anyway
 
I have nothing against @janos old title either.
 
the fun part:
> Post Closed as "primarily opinion-based" by amon, Josay, Vogel612, MrSmith42, Simon Forsberg♦
 
@Mat'sMug I think we should think about what value is added to the site rather than to strictly follow our "rules". And we should definitely think both twice and thrice before voting to close (or using hammer) on a question with 72 upvotes.
 
@SimonForsberg The questions seems kind of off-topic for me as a new comer (based on read site rules and actions seen in the last half year), but then again I would like for the site to handle this kind of question. Could/should possibly be an exception to the stub/non-complete code rule...
 
6:43 PM
I think I'd call it "historical value"
 
@Mat'sMug Oops :) I am happy that it was re-opened though.
 
@Mat'sMug Would you hammer it, if it came in now?
 
@Mat'sMug But still not off-topic, therefore it does not deserve a lock IMO.
 
@holroy I wouldn't object to close votes. but no, I wouldn't hammer it.
 
@holroy I don't think @janos old question is stub code at all. It is short code, yes, but all we need to know is right there in the question.
 
6:45 PM
I know - and I don't object to close one-liners and comparative-reviews either ;-)
I just don't hammer 'em
 
@Mat'sMug I see your point of view. I think I would like for the rules to clearer allow this kind of question. (I don't see it as stub code either, but I reckon the VTC's would use that rule)
 
if we had a too specific close reason, I'd use it there though
 
This will sound like a rhetorical question (because it is) but, who came up with the rules in the first place?
 
The community?
 
The Others
Do not question it
 
6:49 PM
both questions in question seem like they fit more in either programmers or SO, though I can't say I would necessarily expend the effort to close vote them :P
 
@DanLyons I think we need to eat our own dog food, so-to-speak, and remember that "better fit on another site" != "off-topic on original site"
 
@Mat'sMug Aren't all our questions too specific?
 
@Phrancis in these cases, while the questions are providing specific examples, they are really asking general questions: "should I use the magic number 100 when dealing with percents? should I use CA1004?"
 
@DanLyons But as we often say to SO users, better fit elsewhere is not a close reason.
2
 
^^
 
6:53 PM
Self-note: Read first, write later.
 
the questions aren't really asking for a review, though
 
Seems like @Phrancis said the same thing. Don't know why mine is starred but not @Phrancis'...
@DanLyons Are general questions off-topic for Code Review?
 
The one from this morning I think could also have fallen into the "questions about code reviews are off-topic" if you look at it a certain way
Since it had to do with C#'s (I assume VS) code review inspections tool
 
@Phrancis Elaborate, please. How is the question from today about code reviews?
@Phrancis the warning was caused by that tool, yes. That doesn't make the question about code reviews
 
@SimonForsberg That is an interesting question, and sadly my initial response is that my impression would be "yes, general question feels off-topic"
 
6:59 PM
@holroy Why are they off-topic in that case?
 
@SimonForsberg That is what confuses me sometimes about this site. I don't think they should, but it feels like they are based on general opinions... Similar to the statement by Phrancis that "questions about code reviews are off-topic", which feels like the general consensus, but still they should be really on-topic at Code Review SE.
 
@SimonForsberg according to the help > asking page, yes: codereview.stackexchange.com/help/on-topic
 
@holroy I think that the differentiation there is: Here we do Code Reviews, we don't discuss how to do Code Reviews (that's Programmers).
@DanLyons what part of that page specifically?
 
A question on "Why do reviewers argue this concept" (with a specific concept), feels like it should be a good match, and a good opportunity to educate users. But such a question would most likely be closed down rather soon.
 
Highly relevant btw:
9
Q: Is a question on topic if its asking to improve code, but not for a code review?

Winston EwertThere is some blurryness to the definition of on-topic here that has existed for as long as I've been around. However, deciding where that line is has become a recurring problem as a moderator. So I want to get community input. If somebody asks a specific question rather than asking for a review...

 
7:03 PM
@holroy I would love questions like that
 
However, if your question is not about a particular piece of code and instead is a generally applicable question about… then your question is off-topic for this site.
 
Those are the ACTUAL interesting Code Review questions
 
@holroy I'm not sure if I know what kind of questions that would be.
@DanLyons What about general questions about a specific piece of code? (Which, IMO, is what both today's question and '100 is a magic number' is about)
 
@SimonForsberg example: why should you use try-cast + null check instead of is/as in C#. Something like that is what I think he has in mind
 
@SimonForsberg I mean, too specific would encompass questions asking about a specific coding issue (aka broken code), ...and one-liners
 
7:05 PM
It fits on Stackoverflow equally well
 
@JeroenVannevel Something like that yes... Or possibly stuff related to "why not magic numbers" (like the "100 numbers" questions already referenced)
 
@Mat'sMug "too specific" can be so much more than that. "too specific" seems very vague, and would introduce YAGA (Yet Another Gray Area) (and I just introduced YAA - Yet Another Acronym, and oh look, now I did it again!).
 
lol
2
 
@JeroenVannevel @holroy If you can do that about a specific piece of code that has not been stripped of context and that is otherwise on-topic, I wouldn't deem it off-topic.
 
There is no context, that's the thing with those questions
A magic number is a magic number. It can be 100 to significant the cooking boiling point and it can be 42 to signify my level of awesomeness
 
7:09 PM
@SimonForsberg Neither would I, but I'm not sure if the current rules are clear enough to allow them, and that should possibly be addressed somehow. And I do believe some of them might be prematurely closed as off-topic.
 
@holroy I agree with you there. I think for such questions we should ask ourselves "Does it add value to the site?" more, not just "Does it follow our rules?"
 
But do people ask that, or do they simply close down stuff?
Sadly, I would say that my general feeling is that we're a little to trigger happy...
 
I don't mean that we should allow questions to break our rules and say "It adds value!", I mean that we should reflect on why our rules exist before we vote to close.
 
@JeroenVannevel I thought the boiling point was approximately 212 at 1 atmosphere.
 
@holroy Sadly, it is my feeling too at times. But I think that is likely to happen when a community grows. Just look at Stack Overflow....
 
7:13 PM
Interesting fact 100 == 212. We just didn't use units.
 
@Hosch250 False. It is 4...
 
@Hosch250 imperial units are evil and I wish we would end their use :|
 
I don't know how you can support the imperial system after what they did to Skywalker
 
Aaaaand that killed the discussion....
 
@SimonForsberg I guess a part of the question is whether we should try to adapt the rules to allow for "questions which adds value", and not only "follows current rules"?
 
7:14 PM
Anyway, I need to do some Machine Learning assignments, but I have a feeling that we're not completely done here.
 
@SimonForsberg OK maybe I was wrong in stating that (sorry was afk for a bit)
 
@holroy I think we should reflect on our rules and adapt them as needed. We need to ask ourselves what questions we want to exclude with our rules and which ones we want to keep, and how the rules can best help with that.
 
No problem for me, I've got some other stuff I should attend to. And I think this is and should be a somewhat ongoing discussion.
 
Agreed.
In other news: Incoming commitstrip.
And I have actually already experienced #1...
 
7:20 PM
Have experienced more than one...
 
0
Q: ExcelVBA loop exports data from spreadsheet to table within Excel

MisterGTI want to nest a for loop to cycle through the Range.Value but ("B4") throws me off and this can't be avoided. I was considering using an array to do this but can't seem to get the format correct. "Q3" is a spreadsheet and "Bac Form" is the attached table imported from a PDF that must be kept. ...

 
http://www.commitstrip.com/en/2016/01/13/questions-you-should-never-ask-a-coder-in-an-interview/
CommitStrip
Questions you should never ask a coder in an interview
CommitStrip
1452712530
 
You'll get more help there then here, as the focus of SO is different than Code Review. :) The question will also most likely get closed on SO. So removing it from SO and posting on Code Review is probably your best bet :) — Scott Holtzman 1 min ago
@engineer - your coding standards should insist on them, and your code review process should catch both that they are missing and that a mistake like this has been made... that's the ideal, anyway *8-) I wouldn't expect anyone to be running ad hoc deletes without a good reason, and even then they should be being careful. Yeah, also the ideal... — Alex Poole 25 secs ago
 
So do a bunch of you guys work in the same office then?
 
@Matt I've thought that some times, but it seems like nobody is actually working together. Although some of the guys work on the Rubberduck project together
 
7:24 PM
So Virtual Office then.
 
nope
not Office
just the same project
huge difference
 
Virtual project? :-p
 
Yeah, three of us are regular contributors to RD, and a fourth is a reviewer/translator.
Two of us are more/less regular contributors to VSD, and another two or three are regular contributors to CardShifter.
Any other notable community projects?
 
VSD?
 
7:27 PM
VSDiagnostics.
 
I've seen CardShifter mentioned, but don't know that one either. Do you have the links for both of those?
 
@Hosch250 BRAINDUCK!
 
Yeah, Simon works on BrainDuck.
And Duga.
 
@Hosch250 Oh damn, how could I forget @Duga!
Anyway, I need less distractions and to focus on Machine Learning for a while. Catch you later.
 
@SimonForsberg I was just about to "shout" at you to concentrate on your Machine Learning!
@SimonForsberg Sorry to say, but you/they should hire a graphic designer for Card Shifter! :-)
 
7:31 PM
Rubberduck has 140 stars.
4
 
@holroy Yes, I made most of the graphics on there and web layout/design, but graphics is not my thing :)
@holroy any suggestions/ideas/things to contribute, feel free to mention it in this room
 
@Phrancis Remind mind of that in a few weeks time. I'm going on a vacation tomorrow, and should really be packing and preparing some stuff which should have been done before tomorrow... :-)
 
Okay
 
0
A: What should we do about questions asking to "fix" warnings?

Mat's MugThere's nothing wrong with this question. The compiler warning basically says this: EnumExtensions.SelectListFor<BrochureTypes>() Is bad because the compiler can't infer the generic type parameter from usage, which forces client code to specify a type parameter, which isn't a very friendly A...

4 close votes in???
 
7:47 PM
Sounds like a nice use-case. But I have still don't understand what you're asking from us, which makes it impossible for me to provide an answer aside from "sounds cool, go ahead". If you already have some code and wonder if it's correct, how to improve it (more something for codereview.stackexchange.com though), post that. Otherwise I suggest you write some of that code and if you get stuck, post a question with both your JSON data and the minimal code. — Frank van Puffelen 43 secs ago
@Tony there's a completely different forum for that, checkout codereview.stackexchange.comPoorBob 34 secs ago
That's also off topic here. You should try codereview.stackexchange.com (though please read the FAQs there to make sure that your question is up to whatever standards they have, as far as specificity of questions, etc). — yshavit 16 secs ago
 
@Duga grumble grumble
 
So is one of the function of duga to scrap for any mention of CodeReview on SO?
 
Unfortunately this is off topic for this website. However, there is the Codereview StackExchange site. You would be able to post individual snippets of your code there and receive constructive feedback. — Ryan 41 secs ago
 
@Matt Yes.
 
And you guys can check to see if it is migration worthy sooner
 
7:55 PM
isn't @Duga awesome :)
 
Mostly prevent it from being migrated.
 
@Duga And sometimes respond with proper links to guides or corrections if their advise is not so good...
 
Welcome to Stack Overflow! Please read a Guide to Code Review for Stack Overflow usersholroy 26 secs ago
 
Zak
'night @all
 
7:59 PM
@Matt It also allows us to guide/advice before it is posted on Code Review. And especially for new users, this is very useful as otherwise the new comers are met by a closure on SO, and then possibly a closure on CR. That is not a good way to feel welcome...
So any guidance on the transition, if it is suitable, is good, and helpful for both communities and the OP's
 
@electrometro you don't suck, you're just not as good as you will be one day :)
6
 
Oh I know
But in comparision!
 
> “Dude is a pro. I don’t know whether to be inspired or discouraged by the level of talent that’s out there.”
 
@DanPantry awesome! Great read
 
8:06 PM
> So while I might have moments where I feel like I’m not measuring up, I’ve got to try to remind myself that the people I’m comparing myself to have been at this game for years – and there are still people looking up to me.

> Just keep doing good work and making big plans. The other stuff will come.
2
 
^^^ that's pretty much the most important takeaway
 
0
Q: Java simple bucketlist app

ruben de grootI am 13 years old, how good is this repo based on my age? https://github.com/47b3n/myBucketList

 
@CaptainObvious dafuq
 
Reposted that in some other chats
@Mat'sMug lol
 
@CaptainObvious i'm 12 and what is this?
 
8:10 PM
@DanPantry I thought you were closer to 21.
 
@DanPantry "What is this I don't even" <-- LOL
 
@Matt Sadly, not all bother to read the advice given, and they simply repost, and it gets closed immediately here.
 
@Mat'sMug Can we please delete?
 
ooh yes
 
8:15 PM
Do you get VTD privs at 10K?
 
So is it a badge if I get to get a close vote..... Things work pretty fast around here.
Oh and thanks for the warm welcome. This place is awesome.
3
 
Sometimes so fast that you can't blink your eyes, before something has happened...
 
@Matt Thanks for the contributions :)
 
You get a badge when "you down vote"
 
8:19 PM
@Matt Wait, you're not Mast?
I completely skipped over the t in your name and read it as s and thought "hm, @Mast has a new avatar, that's a first"
Welcome to 2nd!
 
And the confusion begins... :-p
 
@Matt @Mast @Mat'sMug @MathiasEttinger. Too many Ms.
 
@DanPantry That's only a limited subset.
 
the More the Merrier
 
Zak
pretty sure I also went and registered @Matt'sMast and @Mast'sMug at some point :p
2
 
8:21 PM
@Matt You ain't seen nothin' yet! (cc @Phrancis! :p)
 
@CaptainObvious Wonder if someone could write a function for that
 
(he hates that song)
 
repo quality over age
 
@skiwi Are you calculating the ratio?
 
No, I've got better things to do ;)
Such as writing a Neural Network, with which I woudl be able to do that
 
8:23 PM
LOL. I deliberately twisted what you said.
 
@skiwi In Lua?
 
-1
Q: Out of bounds error

Yogi_CSpublic class ArrayMeth { public int[] values; public ArrayMeth(int []avalues) { values = avalues; }[![enter image description here][1]][1] public int getAlternateSum() { int num = 1; int total = 0; for(int i = 1; i < values.length; i++) ...

 
@skiwi If you code your neural network in Lua, you could get some bonus point answering often featured question on siamese networks in Lua!
 
@CaptainObvious I thought you'd be nuked by now.
 
@Hosch250 I tried, but was too late...
 
8:26 PM
@holroy I knwo there's a Torch library available in Lua, but you really need to code one yourself (imo) to be able ot understand them
Which will be in Gorovy in this case
 
Hmm... Groovy answer on Lua question?! :-p
 
yikes
look_of_disapproval huh
 
@holroy No, I'm going to code it in Gorovy
 
Right... here we go for another round of this song being stuck in my head for days XD
 
@skiwi I know... Just twisting your words into maybe answering the re-featured question
 
8:33 PM
@Phrancis No matter how bad you think it is it could always be worse
2
 
I'm discovering today just how Agile fragile configurations in SQL can be
And also, how much of a bad practice it is to replace null values with empty strings to avoid XML parsing errors that would otherwise point out that something fundamental is broken
 
Hiding errors are never good...
 
@Matt YYYYYYYYMCAAA
 
Having an empty XML-tag does indicate that you've thought about it, and included the empty tag, instead of ignoring it totally
 
@skiwi LOL
 
8:36 PM
@skiwi I was think more of Hamster Dance ...
 
@Phrancis Do you have an example of the null values, vs the empty string version?
 
There's also some Gunther songs if you really insist...
 
hmm.... That is something different... Now you need to consider whether it is the database design which is faulty having NULL values, or your converter to XML which should map the NULL value to something sensible...
 
0
Q: String helper class

DacorieSI have class with some basic string operations. Any suggestion to improve the class class StringHelpers { function replace_between($str, $needle_start, $needle_end, $replacement) { $pos = strpos($str, $needle_start); $start = $pos === false ? 0 : $pos + strlen(...

 
8:44 PM
@holroy Or if this is the time where you open your window
 
In general I would not change the database, unless that is a well based database design choice or policy. Would probably look into the XML converter...
 
It still amazes me how good the content of any popular well-written book is versus trying to find information on the internet
 
@Phrancis Having null values in a database could be good and needed, but when joining you have to resort to the outer joins to avoid the NULL values. In this case, you need to reconsider whether storing NULL is the correct choice, or using empty strings (with the potential downfalls further down the road).
 
@holroy Yeah, I know... Currently it is one of @Phrancis friends that has done some stuff, and @Phrancis has done some stuff. Unfortunately, overall there is really little progress being done on Cardshifter these days.
 
"Little progress" seems familiar... Have the feeling that is the headline of today (and some other days lately) and for some earlier projects of mine...
 
8:54 PM
> • Subject: errors
Gotta love tickets like these from customers.
@holroy Right, that's also my understanding. The "correct" way to do this would be letting the error be thrown and the user notified that this mapping is missing. But instead, the error is simply circumvented by the substitution, which makes it fail way later in the workflow
 
Awesome fortune: "You are wise, witty, and wonderful, but you spend too much time reading this sort of trash. "
2
What a great MOTD
 
@Phrancis Then start working on correcting the error the correct way!
 
Naruto answer; accepted non-selfie answer with 0 score: Non-curses pager in C (revision 2)
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: Decoding custom packets with Python using Twisted
 
@RoboSanta HeHe... Looked through this answer, and was thinking to upvote it... Then I discovered it was my own answer! :-)
3
 
@holroy Ah, good old memory
(Or lack thereof)
 
9:07 PM
More the latter...
 
@Mat'sMug I'll write a meta if you like, but it'd probably be easier to just ask why this answer was deleted. codereview.stackexchange.com/a/116701/41243
Looks legit to me. Not great, maybe not even good, but a legit answer.
 
@RubberDuck I also deleted the comments that justified it...
 
I'd vote to undelete, but I can't cuz you're a mod now.
 
the OP was modified to include the full code from the fiddle instead of just a snippet
and the self-answer incorporated into the OP
 
Uhh. Okay. I'm confused.
I'll take your word for it that there was context that I'm missing.
 
9:10 PM
 
@Mat'sMug Memo to self: Gotta work harder so I get up to 10K, and can see deleted stuff again...
 
0
Q: Is this a good example of encapsulation?

JustinI am following the course at http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-092-introduction-to-programming-in-java-january-iap-2010/assignments/MIT6_092IAP10_assn02.pdf and am on assignment 2 titled "Foo Corp". The code I wrote below calculates a an employee's total pay...

 
@holroy deleted comments are invisible for mere mortals non-moderators ;-)
3
 
Gotta work even harder to become a moderator then..
 
@skiwi Seems like it... But that gotta be a long-time goal/vision, not the short-time goal...
 
9:16 PM
It's fascinating to think about how hard all easy-looking problems are to solve
Hypothetical task: Build software for building control using facial recognition
 
If the code works as intended, you may not be aware that Code Review specializes in exactly this: turning working code into great code. Just saying ;-) — Mat's Mug 14 secs ago
 
0
Q: Is this a good way to create a unique file name in c#

John BustosI find that I am often writing files where the names either: Need to be incremented (rather than overwriting a file that already exists in the directory with the same name) Need to be timestamped And, so, I've created the following methods to do so: public static string CreateDatedFileName(s...

 
Oh lol, sorry I missed it! this is why locals & parameters should be camelCase ;-) — Mat's Mug ♦ 8 secs ago
2
 
@Mat'sMug Next step is having RubberDuck automatically parse all incoming VBA questions?
 
don't... tempt... me...
 
9:28 PM
You could even build a site on that ;)
Drop your VBA project in here and get immediate feedback!
 
@skiwi I've actually been toying with the idea of an online version of the Code Inspections.
 
Nice
I should quickly try to file a patent then
 
It'll require a bit of an architectural change, but I think I can manage it.
 
I better hope it can't be given for something like this
@RubberDuck Like exposing a web server to the public?
 
@skiwi the webserver isn't the biggest problem
what's hard is the whole interop stuff calling into API and that the Parser is a little intertwined with the VBE
 
9:32 PM
@RubberDuck I'm pretty sure all you need to do is make the website project reference Rubberduck.dll (requires Rubberduck.Parsing.dll and all other dll's though), grab the text from the web UI, create a Mock<VBE> out of it, and feed it to the parser.
 
@Vogel612 Ah right... I forgot about that part
 
but we can mock the VBE in the blink of an eye
I totally don't see a problem with mocks in production.
 
@Mat'sMug well... yeah, but I'm pretty sure Rubberduck won't install without office...
 
@RubberDuck just needs the PIA's
 
that's probably the least of your problems...
 
9:34 PM
...which are called "PIA" for a reason...
 
is there possibly a T missing?
 
@Vogel612 Abso-frickin-lutely is.
 
Primary Interop Assembly. What else did you think? haha
@RubberDuck it builds on AppVeyor... I'm pretty sure it would work.
 
Do I really need to say it?
@Mat'sMug good point!
 
how's that website coming along? I'm renewing the WebSiteBuilder subscription?
 
9:36 PM
Wouldn't be a very nice API to work with in general, but it'd be working with the same internal one that we use.
@Mat'sMug No wife or kids on Saturday. Planning to get it together then.
The CSS will be the hardest part. I'm just going to mimic what we already have.
 
the 2.0 WPF treeview?
 
Huh? No. The new site will mimic the current one.
I'm no designer, but I can copy well enough.
 
what do you need, I can fire you a few lines of clean css?
 
eh, just seeing RD inspections running on the web will be awesome - even in plain ol' HTML
and then we can .... gasp ... implement a web-based VBA IDE!
 
@Mat'sMug yeah. I've thought about that too.
@Vogel612 no such thing exists...
I just need a few hours to chuck an MVC app together to be honest.
I've actually gotten decent at it lately.
 
9:45 PM
I'm already out of stars :(
 
Travesty
 
I'm voting to close this question as off-topic because it belongs at Code Review. — Federico 43 secs ago
@Federico This does not belong on Code Review because there is no code in the question. — Hosch250 36 secs ago
 
@RubberDuck Now I was just thinking: Is it just a coincidence that API is an anagram of PIA?
@Duga But if the code was included in the question!
 

« first day (984 days earlier)      last day (3041 days later) »