So, there's the possibility of a hat for me.... and unusual one... how much can I 'game things'. If I talk about it here, will I create a 'chat-effect' problem?
but, can I add a comment to the question saying "if you decide to accept my answer, please do it before you upvote it, if you're going to upvote it...?"
How about: "If you feel my answer is worthy of accepting, it would help me earn a Winterbash 'hat' if you could accept it before the answer gets any votes".
Here are some things I see that might help you improve your code:
Use more whitespace
Lines like this one:
char*lFillEnd=((char*)pToFill)+pToFillSize;
make my eyes bleed.
char *lFillEnd = ( (char*)pToFill ) + pToFillSize;
That version is much easier for humans to parse because of the judi...
Because you asked a question here looking for reviews of your code. It is essentially an admittance that you need some opinions on how to make it better. How can you downvote someone who did that, even if you disagree?
But even on something like white space. "Well, I prefer this way and this code is for my eyes only." Wrong. If you posted code here, it's not for your eyes only.
hey @nhgrif, have you seen this question? codereview.stackexchange.com/questions/73736/… i thought you might want to weight in on it. The existing answer is alright, but it feels wrong to accept an answer that recommend a singleton :)
Code for your eyes only does need a review really. I answer every question assuming the code will be maintained by 273 different monkeys over the next 20 years
Hey @konijn. JavaScript question for you: Is it possible to create "unhackable" values in JavaScript? Variables that you can't modify from outside, no matter how hard you try?
@konijn The reason for why I am asking is my memory game, created with Google Web Toolkit. I am unsure if GWT has compiled my Java code to JavaScript using closures or not. I essentially want to know if it is "hackable"
Description
This is the good old game Memory with a twist: Every time you pick a wrong pair, the two tiles you chose will switch their location. So sometimes you might think that a tile is at one location when in fact... it has moved. And it might feel like you have no idea where it is anymore.
...
This is my first time asking a question on this site. The idea is to use functions in order to transpose matrices. For some reason C won't allow me to return the arrays themselves so I tried using pointers. I'm not very good with pointers, so this ended up in a mess. Below is my code, would y...
I am new to programming but I tried to make my code as readable as possible! Hopefully you can see what it does before you run the program. I did not implement a ups or fps controller, the animation may be fast for some computers and slower for others. I also tried to use the information provided...
The previous and initial iteration at Parallel for loop in Java 8.
Changes are as follows:
ParallelLoopBody removed; java.util.Function used instead.
The actual parallel loop synchronizes on a class monitor.
forp does not ask for the output list in arguments; instead, it creates a new list of ...
I have a pixel shader that needs to output either a plain colored pixel or a texel sampled from one of three textures - selected by a switch statement operating on an index fed in by the vertex shader:
// textures
tbuffer textures
{
SamplerState sState;
Textu...
As stated in the Help Center, one of the criteria for a question to be on topic is:
Is it actual code from a project rather than pseudo-code or example code?
What is the rationale for that rule?
@Phoenix It would probably be a good idea to familiarize yourself a bit with the Help Center when you have time, it has some very good posts about what is on- and off-topic, and what makes for good answers :)
@user4371180 fair point - you may want to expand a bit on the why; the other class also has a redundant default constructor, you can mention that as well - but +1 nonetheless
Meme: TS | RSA
Originator: SimonAndréForsberg (TS), rolfl (RSA)
Cultural Height: star-power
Background: The 2nd Monitor is quite a star-happy chatroom. How many of you know that there's only a number of times you can "star" a chat post - a star cap (like the rep cap and the vote cap, a star ca...
I have been thinking about a way to implement this and I am not sure that what I have done is correct, because it surely sounds kinda dirty to me.
Basically what I have is a WCF duplex service which multiple clients subscribe to. My problem is the authentication. What I have done is I pass the u...
My program (a daemon hosting a Minecraft server) exposes a D-Bus interface to allow interaction with the server from other processes. To that end, and to avoid a chain of repetitive conditionals in the invocation handler, I'm using a map of Glib::ustring keys (the method invoked) to std::bind-cre...
So I am making a simple duplex WCF service. It is nothing special. It has a subscribe and unsubscribe methods and all of the subscribers are kept in an array and every few seconds a message is sent to them. My problem is that when I try to debug it, I get an BindingFailure exception.
Here is th...