« first day (266 days earlier)      last day (3741 days later) » 
00:00 - 21:0021:00 - 00:00

9:03 PM
2
Q: Shorten a sorting function

Marius MarusaniciI have this function: int sort(book *data, int books, char mode, char sortBy) { int i, j; book aux; aux.cat = malloc(sizeof *(aux.cat)); if(sortBy == 'n') { for(i = 0; i < books; i++) { for(j = i; j < books; j++) { if(mode == 'a') { if(strcmp((data + i)->fname, (dat...

 
0
A: How to train your growing community to self-moderate?

retailcoderHow active is your chatroom? This may sound like a weird answer, but on Code Review we managed to get a core nucleus into the main chatroom. With the @StackExchange bot posting questions (and ideally answers too), it's very easy for everyone to spot off-topic questions, and, with an answers feed...

 
This is a room for moderators, right?
 
The chatroom? Nope. It's for everyone :)
Anyone with >20 rep can participate in chat.
 
@SakhalTurkaystan This is a room for "General discussion about Code Review." (officially, besides that it's mostly and the usual )
 
OK ;)
So what are your specialities in programming?
 
9:15 PM
It's not a room for moderators, but it is a room where a lot of regular users of the site hang out. And as the StackExchange model works, the more reputation you have, the more powers you get.
 
0
A: MySQL in Vb to update every field of every page of a form in the database

lol.upvoteI'm hoping all that's missing from your code is Sub DoSomething at the top and End Sub at the bottom. That's a very lengthy procedure you have here, and aside from the length itself, one sign is the "need" to append numbers to your identifiers (conn0, cmd0, rdr0, insertQuery2, ...). Naming Gett...

 
@SakhalTurkaystan: This is CR's main chat room now, but I happen to stick around for any kind of chatting. In general, you won't be able to see moderator-only rooms as they're kept private.
 
I'm a Java guy. But I've worked with a whole bunch of languages.
 
Yes, but every language can be used for several purposes, as well
 
This is especially what I like to do since I have a lot of time to moderate. Of course not every avid user will utilize chat, but any kind of coaching really helps. Perhaps some of these regular chat users will strive to become diamond moderators. — Jamal 3 mins ago
@Jamal was that a hint?
 
9:18 PM
True indeed :) I'm mostly into Android programming and Desktop applications programming. Although I have done a bit of web development as well (in both Java and PHP, and ASP, and JavaScript, and...)
 
Why so much obsession for power? :)
 
@lol.upvote A few second ago I was given a "one shot, one kill" acceptance on a 'revival badge' zombie. frolics
 
@SakhalTurkaystan he meant privileges :)
 
@lol.upvote: Not necessarily, but it at least gives those users more exposure to diamond moderator coaching.
 
I'm just here by pure chance... so I don't think about privileges, but knowledge :)
2
 
9:21 PM
StackExchange is about learning, too - but one thing you quickly learn is that it's addictive :)
 
Many sites are addictive... that's not good for productivity
2
 
@SakhalTurkaystan Say that again when you come back tomorrow :)
 
@SakhalTurkaystan: I do like the power, but not for bossing people around or whatever. I like it because it allows me to do more beneficial things, such as cleaning up crap, for the site that I love. I suppose I feel that posting answers isn't enough, as I really really want this site to graduate and succeed.
 
0
A: MySQL in Vb to update every field of every page of a form in the database

lol.upvoteI'm hoping all that's missing from your code is Sub DoSomething at the top and End Sub at the bottom. That's a very lengthy procedure you have here, and aside from the length itself, one sign is the "need" to append numbers to your identifiers (conn0, cmd0, rdr0, insertQuery2, ...). Naming Gett...

 
OK :) I don't know how I will do here
 
9:23 PM
@ChrisW Congratulations on reaching 1k on MSO.
 
^^ Fresh from the RSS feed :)
 
Did anyone of you ever programmed tile engines?
 
@SakhalTurkaystan some dozen years ago, I had something like that for a Final Fantasy -like RPG project in VB6. Never finished it.
 
What drove you out of the project?
 
I... got a girlfriend. lol. Then I lost the source code.
4
 
9:32 PM
I see... no longer owner of your life? :)
 
oh, that was in the early 2000's, now I have two new owners of my life (twins!)
 
well, I tested VB for the first time then and I was unable to do anything right :)
 
0
Q: Looking for helping cleaning/organizing my JS code

user2931930I know this has been asked many times before, but I'm looking for specific help. I'm wondering if anyone would like to give me some solid advice on how to better organize my main.js file. I should probably break the file into multiple files and decrease the amount of global variables. That's my h...

 
@ChrisW because it's the only way reputation points can be generated.
And we need more of that.
 
9:42 PM
^ To answer @SakhalTurkaystan voting is meant to help improve the quality/availbility of the knowlege
 
@SakhalTurkaystan Depends on what you mean by tile engines... I believe I have, if my understanding of "tile engine" matches yours.
 
I referred to tiles used in games, such as isometric or square, hexagonal, etc...
 
OK, in that case I've only worked with square tiles.
And now you gave me an idea of making some of my code even more super-flexible than it already is.
 
how could I give you and idea? :)
an idea * sorry
 
You mentioned "isometric or square, hexagonal" in the same sentence.
 
9:52 PM
Yes, so you intend to make an engine that can be set to any of those types?
 
Perhaps someday. I have enough ideas for now.
But the good old strategy pattern alarm set off in my head
 
0
Q: Looking for helping cleaning/organizing my JS code

user2931930I know this has been asked many times before, but I'm looking for specific help. I'm wondering if anyone would like to give me some solid advice on how to better organize my main.js file. I should probably break the file into multiple files and decrease the amount of global variables. That's my h...

^ Candidate for being reopened
 
1
A: Shorten a sorting function

200_successThe code for the two cases (sorting by name and sorting by price) have nearly nothing in common. You may be better off writing two functions. Even if you really like this interface, it might make sense to have the master function to call a sort-by-name function or a sort-by-price function to do...

 
0
Q: F# and Rx code that throttles can it be done without ref cells (and possibly with active patterns?)

VeksiI'm basically redoing a piece of reactive C# code posted in SO code in F#, please, see below. The translation is fairly literal, I've just written the infinite loop as a recursive function and rearranged the conditions for breaking the recursion. Any notes regarding style and so forth, even the m...

 
gotta go, later everyone!
 
10:11 PM
Later!
 
0
Q: MVP of Game of Life in C#

user2900210I want to learn how to write clean code from the start. This is my first project, an MVP of Conway's Game of Life in C#. Mostly I want to know if my code is readable, clean, understandable, etc. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; usi...

 
"MVP"?
 
10:59 PM
Yeah, it doesn't feel so much MVP about it...
I'm considering if I should write a review there or not
 
0
Q: Specific PHP Data Access Class review

Alex Las part of a fun project to help build my knowledge of PHP I've written a Data Access Class here to bridge the site to the database. I know there are a lot of posts and articles out there explaining this type of thing, but I needed some individual feedback from people. It does work, but I'm open...

 
is it supposed to mean 'model view presenter'?
i'm reviewing it, fwiw
 
@ChrisW I suppose it's supposed to mean that, yes. Or possibly "My View Prompt"?
Let me know when you're done, then I can see if I want to add something.
 
11:16 PM
will do
 
Well, ain't this typical? While going through my code and preparing it for review, I'm already addressing several things myself. Removing unused methods, making things private, changing return types of methods to make more sense...
I still hope there will be something left to comment on though.
 
Nothing left to comment on => you'd be creating a new zombie?
 
11:33 PM
@ChrisW I'm planning to create a new zombie anyways.
 
@SimonAndréForsberg “Rubber Duck Refactoring”. I wish everyone posting to CR would be doing this.
 
@amon I hope my question will receive extra up-votes because of it.
 
11:46 PM
codereview.stackexchange.com/questions/39579/… invited answers even if the original code seemed too good to comment on.
 
@ChrisW: The OP has even been going against my rollbacks a bit as well. If it continues to happen, despite warning, I'll handle it from there.
 
Instead of progressing the editing of a post towards infinity, you might want to consider posting a follow-up question. — Simon André Forsberg 7 secs ago
@Jamal Five users have now disagreed with the active flag, I think you can remove that irritating yellow 1 in the top right of my screen now.
 
@SimonAndréForsberg: Alright. :-)
 
Perhaps he's just trying to clean up (not ask a follow-up question), i.e. show the finished result.
 
@SimonAndréForsberg: My dismissal will have to reflect on the NAA flag (rejection), so I'll see how it'll appear to everyone who has raised an invalid flag.
 
11:57 PM
@Jamal invalid flags – Simon André Forsberg 4 hours ago disputed - a moderator reviewed your flag, but found no evidence to support it
 
Right. As it's disputed, it doesn't hurt anyone. Either way, I'm keeping that answer there.
 
00:00 - 21:0021:00 - 00:00

« first day (266 days earlier)      last day (3741 days later) »