« first day (786 days earlier)      last day (3217 days later) » 

5:00 AM
Not to get overly political, but I thought some here might find it funny, and since we're not talking about codez or anything
 
@Phrancis Also, God didn't write the Bible
> a God by whom a Bible might be written
 
Well, yeah, of course not. Their words, not mine :)
 
@Phrancis I know, just pointing out their fallacy.
0
A: Very simple Python preprocesser that allows "until" and "unless" statements

QuillYour code looks really good, and there's very little I can see here that can be improved, nonetheless, the show goes on. with open(file_path, "r+") as code_file: return code_file.read() I can't see that you re-use code_file, other than to open, meaning plain r is acceptable, over r+. ...

 
5:20 AM
I was pretty happy with return [file_string.replace(k, v) for k, v in changes.items()] took me a moment
Hey @Phrancis, is the following a proper way to filter search parameters?
> Tags LIKE @Tags AND Tags NOT LIKE @BadTags
SEDE pls
For a single input, it works for multiple it doesn't
it comes out like %laravel%%mvc%
Yeah
Here, take a look
 
in VBA Rubberducking, 46 secs ago, by Stack Exchange
Rubberduck 1.4 is here! Get your VBE out of 1998 and into 2015! #VBA #Refactor #Navigate #GitHub #SourceControl
TTGTB
 
@Mat'sMug 'Night
@QPaysTaxes doesn't seem to work for me
Huh?
Tag Length
Yes, I set the max length fairly high
Should I change it?
I'm confused
Oh, right
the text-only option didn't click on for me
So, I'm supposed to put '<mvc> <laravel>' in the input box?
There's a space in between
transformed into %<mvc>%%<laravel>%
2 hours ago, by QPaysTaxes
I'm a dumbass
This applies to me
 
5:50 AM
0
Q: Heap implementation

creationistI have implemented a heap data structure for Coursera's algorithms course. The problem I have to solve is : The goal of this problem is to implement the "Median Maintenance" algorithm. The text file contains a list of the integers from 1 to 10000 in unsorted order; you should treat this as a str...

0
Q: Project Euler - Problem 54: testing poker hands

RyanJust completed this. It was a very fun and thought provoking problem, and I'm quite proud of the way I was able to pull it off. I broke it down into 2 parts, testing and comparing Testing each group of cards for a playable hand. This returns a boolean value depending on if the cards meet the cr...

 
Oh, it's searching for a combination of the two
rather than seperately
I see.
I wanted to add the tags, though
Sure, I'll take it on board
Also, what month is your birthday, I want to know who's older ;P
So's mine
5th here, you?
Hah, I win!
Quill > Q > Ethan
5 years, 2 employed for it
I didn't even have a computer back then, so twas a bit hard
I just opened a data handler and found sloppy if-elses everywhere
goddamn
well, I'm going home, later
I updated the Python question about r+ too
 
6:32 AM
0
Q: C process program is not able to read more than two messages?

Nawar YoussefI have wrote this simple code to learn more about processes. my goal was to fork 4 process A, B, C and D and send message from each one to the parent. When I run my program the parent can only gets two messages? What happened to the others messages? This is my code: int main(int argc, char *argv...

 
6:57 AM
Monking
 
Monking
 
@QPaysTaxes which is where I actually live..
and since it's "monk-middle-of-the-bloody-night" at where you are, you should definitely go to sleep
even moreso since you're still young
surely not, but it definitely helps :D
then again I rarely sleep before 2 AM....
and that when I need to work the next morning.....
 
@QPaysTaxes <= Yep.
@QPaysTaxes You could have known, there are a couple of Europeans around.
@QPaysTaxes Just remember what we told you yesterday. Being tired doesn't make for great answers.
 
7:23 AM
hey @QPaysTaxes
 
7:35 AM
If you're asking for tutorials, then your question is off-topic. If you're asking for a code reveiw, then it should be posted to codereview.stackexchange.com. — JB Nizet 9 secs ago
 
-1
Q: Production ready Socket server in Java

Jack DanielThere are many tutorials where explains about socket server/client sides, but all them are very trivial. Is there any tutorial for production ready code? I'm new in sockets. There is a client, that sends strings to server. I must create the server side. in server side I read string from client an...

-1
Q: How can i use the regional languages in the Webpages other than php?

raja manickamI want to change the input's which are stored in the mysql database as the language other than English. I have searched and got some of the steps like Creating the @fontface as a regional font and changed the whole body of the webpage. using the tags like: <meta http-equiv="Content-Type" cont...

 
8:01 AM
sheesh...
3 Deployments of the same application...
on the two testservers one single thing doesn't work..
on my local machine it works fine.
logs empty, no js errors no nothing...
 
8:37 AM
@CaptainObvious Burned.
 
8:49 AM
Code Review or Programmers or something for this, IMO. — Adam Houldsworth 7 secs ago
 
@Duga No.
 
@AdamHouldsworth Example code is off-topic for Code Review. — Mast 54 secs ago
 
@QPaysTaxes Stop saying you're a dumbass or we may start to agree with you.
@QPaysTaxes It's immature.
 
@Mast Hmm actually I'm not entirely sure I understand the Code Review requirements. To me this is a working piece of code, with a request about whether it is good practice or not. — Adam Houldsworth 30 secs ago
 
@QPaysTaxes Do that somewhere else.
NIMBY
 
8:59 AM
@QPaysTaxes no, that wouldn't be fun.
@Mast hmm... yes, seems like one of the countless steps we need to do for a build was forgotten.
 
@Vogel612 I don't even want to recall how often that happened to me.
Who here was recently looking for automated CMake configurations? I'm inclined to agree it's a necessary evil...
 
@QPaysTaxes well... there is that ant build script..
but ermph...
make the buildscript pull the latest libraries from SVN??
that sounds like you're doing other things wrong..
That being said we might have a small overload-related bug in the java version we use..
 
@QPaysTaxes Crazy... though I'd be hard pressed to detect code like that. I wouldn't just assume Foo means close if the code itself is concrete and makes sense to demonstrate a structure (naming and other code review elements wouldn't play a part in all CR questions, surely). — Adam Houldsworth 43 secs ago
 
Monking
 
9:18 AM
@QPaysTaxes only give some extra sentences..
also "Yeah looks good" is an answer I've tried not to give..
code can almost always be improved.
 
I'm voting to close this question as off-topic because it's code review. — Jubobs 26 secs ago
 
9:42 AM
@QPaysTaxes Valid, but if you ever dare to answer one of my questions with it I'll break my habit of never down-voting answers.
As Vogel said, there's always something.
I don't review code that short, I consider it stub.
And you found plenty of suggestions for it.
 
Its not code review. I want help in converting the equations to matrix form. I provided the code to show what I had tried. — shubham sharma 29 secs ago
 
9:59 AM
0
Q: Copy data from list to an array C#

SeveSeveI copy addresses from the endpoints to an array that should only hold the endpoint addresses. This works but it seems so old school :/ Can I make this faster, better, more sexy (LINQ)? public static EndpointAddress[] Find() { EndpointAddress[] endpointAddresses = null; var discoveryCli...

 
10:26 AM
0
Q: Sun's HttpServer Simple HTTP server design

Johny19For an assignment I had to write a simple Http server (multithreaded) with the help of Sun's HttpServer. This server has to handle 4 resource (/login (GET), /cards (GET), /send (POST) , /list (POST)) I have never used Sun's HttpServer before (I used to use jetty which is way more flexible). I...

 
10:54 AM
 
@RMunroe Good luck with that, Margaret.
2
@QPaysTaxes There are times when you should not continue commenting on SO questions about whether or not it is on-topic on CR.
 
@RMunroe I DON'T WANT COMICS!!! I WANT A NEW WHAT-IF!!oneeleveneleven
Also I'd love to get an answer to my latest CR question...
 
11:19 AM
@Vogel612 Set an alert:
Note: What If updates are temporarily on hold,
and will resume on July 14th, 2015 at 7:49:59 AM EDT.
 
herpa-derpa
 
11:39 AM
This is pretty creepy...
5
Q: My 9 year old son regards life as meaningless

ConcernedMotherMy son, who is currently 9 years of age, tells me that life is absolutely meaningless and that "we're all here to waste time". When he first told me this, I felt both angry and depressed. And no, this is not because I am religious. I am an atheist, but I think his outlook on life is detriment...

 
@SimonAndréForsberg That happened to me earlier
 
@skiwi Don't all kids have such a phase at some point?
 
@Mast I don't know, I can imagine thinking about some things in life as meaningless, but not everything
 
@skiwi I agree with the highest up-voted comment on that question though. Kids that age don't talk like that. Something is off.
@skiwi My solution was to read 'De wereld van Sofie'. Made me realise there are many, many ways to look at life and it's aspects.
 
11:58 AM
This is a question that belongs in CodeReview.Stackoverflow — barq 20 secs ago
 
Greetings, Programs.
 
@Donald.McLean Greetings, Signal.
 
@Donald.McLean Greetings, Stargazer
 
@barq ",it shows cannot resolve symbol 'in'and i'm not able to understand where am i missing a semicolon or a curly brace in the second error i marked" indicates that the code doesn't work correctly, so no, it does not belong on Code ReviewSimon André Forsberg 19 secs ago
 
@Duga Indeed.
 
12:02 PM
@Duga There is no "CodeReview.Stackoverflow" damnit.
 
@SimonAndréForsberg Ssssh, remember the intelligence of the average internet user.
3
 
oh, right.
 
@SimonAndréForsberg Is this a POI joke?
Mar 10 at 12:21, by Simon André Forsberg
@Donald.McLean Greetings, Samaritan.
 
@Mast you think? :)
 
How did he deserve that title? :P
 
12:05 PM
@Donald.McLean Greetings, User
 
@Mast He watches POI. That's it, I guess :)
 
Is this not hypothetical/stub code?
6
Q: Code Golf challenge that plays Mafia

Faraz MasroorI am working on writing a Code Golf King of the Hill challenge, the details of which can be read here. You can read the full code here. Briefly, the game proceeds in cycles of night then day. There are two mafia, who collectively kill one person at night, and five town sided players (some of who...

 
@nhgrif no..
 
public abstract class Player {
    ...
    static ArrayList<Identity> Identities = new ArrayList<Identity>();
    public static int numTown, numMafia;
    public int hat, role; //hat is basically the players ID number, unrelated to the players actual role in the game.
    Player otherMafia;
    Identity pub, priv;
    String Role;

    public Player() {...
    }
 
@nhgrif No. It just doesn't compile as-is. Some code has been stripped away, true, but the code that is there is real.
 
12:07 PM
@SimonAndréForsberg I think @Mast is trying to point out that I'm not a soulless society controlling AI.
 
Since when is stripping code away okay?
 
the actual implementations of the Player class come from the contestants on the
 
Oh.
 
the Player just gives a structure..
 
@Donald.McLean true that. I don't remember why I called you Samaritan honestly :)
 
12:07 PM
Wait
 
@Donald.McLean I'm fairly sure you're skynet.
 
basically the Player is a skeleton to be filled by contestants.
 
Nevermind, I don't understand enough Java to really get what's going on here... but it seems extraordinarily strange.
 
and the actual code "under review" is the last block
 
So nothing in public abstract class Player is up for review?
 
12:09 PM
correct
 
And nothing in public class Identity is under review?
 
it's just context
also correct
 
Then I will make that more clear.
 
well actually they are reviewable,... but not in the context of an implementation..
the actual implementation is after all what comes from the contestants.
nice quote blocks :)
 
Here's what I don't even remotely like about the question
> I have put ... in place of some methods which aren't terribly important for this question.
When it's not clear that the blocks of code containing the ... are not up for review, then it sounds as if he has decided what is or isn't important, which we don't ordinarily allow.
 
12:14 PM
I'd normally put //... though rather than ...
 
0
Q: scala: depth and bredth first search

ValerinI have this implementation: class Vertex(val label: Char) { var wasVisited: Boolean = false //... } class Edge(val source: Vertex, val destination: Vertex) { //... var weight: Int = 1 } abstract class GraphA { var vertices: List[Vertex] var...

 
Perhaps, but all the same, the point is that we don't allow ... or // ... sections in the actual review parts of the code.
@CaptainObvious Like this...
 
@nhgrif Why would it be disallowed? Some parts are just really not interesting at all to the reviewer
 
Because we don't let the reviewer make that decision. We've always close questions like this...
We stipulate that you must be okay with a review of any and all aspect of the code.
Replacing sections of code with ... or // ... says you're not.
 
@nhgrif I highly doubt what you are saying there, if I have a Player class that is being used by other classes in my code then I can include that class but only leave in the relevant parts
It may have tons of methods (arguably a bad design) which are totally irrelevant for that review
 
12:22 PM
You can include it for context if you're also making it clear that you don't want Player reviewed.
 
Adding in irrelevant pieces of code only adds clutter to your question and will lead to less answers as people get bored by it
 
You can do whatever you want for context. In which case we really just need the publicly accessible parts of that code (like just the .h in languages like C, C++, or Objective-C)
So we know what the object we're consuming looks like.
But you can't cut out sections of a class you deemed uninteresting and expect that class to be reviewed.
 
But we don't have "context" and "parts I want to have reviewed" headers, so it's always going to be implicit
 
If you want to skip the uninteresting bits, just ask for reviews of the handful of individual methods.
 
@nhgrif The posted parts can still be reviewed if they don't directly interact with the other methods
 
12:24 PM
@skiwi The question needs to find a way to make it clear. I usually prefer the quote blocks. rolfl will regularly edit questions and mark sections as context code.
@skiwi They could be reviewed, but if you're asking for a review and you've cut out sections and replaced them with ... or // ... then this is part of the reason why we have the 2nd off-topic close reason.
It has never been allowed...
 
@nhgrif If it's the only code in question then it becomes doubtful, but as far as I'm aware it is a normal practice in bigger questions that consist of multiple classes
 
19
A: Why is hypothetical example code off-topic for Code Review?

200_successHypothetical code makes poor Code Review questions, which produce poor answers. For example, here is a code excerpt that made a poor Code Review question: bool f(const string& key, const string& value) { // some codes for input check exec_cmd("cmd %s %s", key.c_str(), value.c_str()); ...

 
@nhgrif Of course, but that's not the point, if you're leaving out parts of individual method calls then it cannot be reviewed
 
@nhgrif Is ... being named there?
 
No, but how is ... different from // an actual explanatory comment which would arguably be more helpful
 
12:32 PM
Just because code contains ... does not mean that the rest is hypothetical code.
It's not black and white.
 
If you can leave out multiple method calls and it is no issue whatsoever when reviewing that code, then I don't see how it will hurt
 
By the way, the question in question actually has some of these // comment explaining what's missing
If I'm being asked to review a class, how can I review that class accurately if I am not presented with the full implementation of that class?
 
I don't think it's possible to have a clear "rule" about what is and what is not hypothetical code.
 
We have never let the asker decide what parts of his code is important or unimportant. For context code, that's fine, just mark it as contextual code (as I did with the quote blocks)
  public abstract int nightMafia(int i, int mafiaChoice);

  ... //Various methods such as isPlayerDead,
    ... //etc. which will give players information
    ... //about other players statuses easily.
}
 
I don't like your usage of "always" and "never". I'm sure there are questions which goes against that.
2
 
12:35 PM
0
Q: When should [oop] be instantiated?

nhgrifI have heard site regulars often scoff at oop and its usage. Is oop a meta tag that has until now slipped under the radar? If not, when is it appropriate to use oop? What sorts of questions should use this tag? What sorts of questions should not? I don't have a case for its removal necessary...

 
@SimonAndréForsberg Exactly, there's no hard lines we can draw when we are discussing this, is my opinion
 
In this case, those comments are acceptable because the Player class is only there for context. It's apparently the competitors in the competition which submit the actual implementation of this class.
So with that said, the Player class in this question isn't even actual code, but rather part of a set of contest rules.
But the Player class is here as context, which is fine.
 
@Donald.McLean That. Unless there's something you haven't told me yet.
 
But in this case, the // ... comments are being used to eliminate actual contextual code. It's especially egregious here as there is a request for a refactoring...
If he only wants the dfs method reviewed, he can simply post that (outside of the class, clarifying that it is part of the class) and then tell us about whatever context is necessarily (which might necessitate posting actual code snippets of the context parts).
... I just got a "Too Broad" close vote on that meta question? Really?
 
I always found the tag quite meaningless. It doesn't tell much about anything.
 
12:43 PM
If you have a case for its burnination, you're welcome to make that case in an answer.
I want to talk about the tag. If no one can explain what sort of question it should legitimately be used on, that's a case for burnination as far as I'm concerne.d
 
I don't have a strong opinion on it or anything. I would be glad with it being burninated but I don't know whether I care enough either :/
 
@nhgrif Wrote an answer. It's usage is ambiguous at times.
 
I don't understand the downvotes on my question either. I haven't stated an opinion. Normally a meta downvote is a sign of disagreement with the question's premise. Are people disagreeing that I don't understand ?
 
@nhgrif A meta downvote on a often indicates 'I disagree'. But since there's no statement there is nothing to disagree with.
Downvotes can be many things.
It doesn't even have to mean people don't like your question.
 
So besides "I disagree", since there is nothing to disagree with, what could it mean?
What is wrong with my question?
 
12:52 PM
Or as one of our monkeys stated:
May 28 at 14:45, by rolfl
@QPaysTaxes Dislike and downvote are often different things
 
Help me see what about my question warrants down votes.
If I were asking outright for burnination, I would understand.
 
downvoted on a question about downvotes
ultimate irony
 
I already had such a discussion yesterday, not going to do it again if you don't mind.
 
okay...
I'm just asking for perspective.
I understand downvotes, how they work, and I know not to take them personally. That's not what I'm doing.
Usually a downvote means the question isn't a good one. On meta is sometimes simply means "I don't agree". I don't see anything to agree or disagree with in my question (and I intended for there not to be, so if I missed that I need to fix it).
 
@nhgrif Usually. Not necessarily.
 
12:56 PM
> Are people disagreeing that I don't understand ?
Probably this
It's probably better, if you have a problem with something some asked, to disagree in the comments, or a chat room rather than cowardly downvoting without explanation
 
Huh? Are you saying the downvoters should've left a comment or said something in chat? Or that I should've left a comment or said something in chat?
 
The downvoters, of course
 
0
A: What would you say is the biggest problem Code Review is facing as a site as of June 2015?

nhgrifNot enough downvotes. The only questions I see with a negative score are questions that are either on hold, closed, deleted, or accumulating close votes on their way to being put on hold. Frequently, I'll find that my downvote is the only downvote on a post. Often times, I feel that a post's s...

 

« first day (786 days earlier)      last day (3217 days later) »