« first day (1010 days earlier)      last day (2997 days later) » 

8:00 PM
Well, I know a bit of Pascal but it's been a long while since I made it. But the algorithms are all the same.
 
oops
"PONUMBER LIKE  \"%123%\"LINES > 0 AND "
not supposed to happen
 
0
Q: Swift: Reducing the length of init methods

user1107173I would like to reduce the length of init method. struct Person { var id: Int? var firstName: String? var lastName: String? var vehicle: String? var location: String? var timeZone: String? init (id: Int?, firstName: String?, lastName: String?, vehicle: String?, loca...

0
Q: C - Write BMP file writer

LastSecondsToLiveI recently wrote a BMP writer in C. I still have a few questions regarding code quality and portability left, but first the code: bmpWriter.h #ifndef BMPWRITER_ #define BMPWRITER_ #include <stdint.h> int write24BitBMP(const char *outputFileName, uint32_t width, uint32_t height, uint8_t *rgbDa...

 
hears boss saying "who's going to debug your clever code when you're gone?"
3
 
Job Security! Nice
 
@Mat'sMug Job security
 
@Quill Evil.
 
@CaptainObvious hypothetical
 
At least some part of the script is honest.
 
lol
 
oh great, it works depending on the order you compose your query in
"LINES > 0 AND PONUMBER LIKE  \"%123%\""
ah, it's because .Contains is a method call
and I'm not popping any operators on method calls
:)
fixed
 
8:19 PM
0
Q: Java Tic-Tac-Toe Machine Learning first try

HansSo I recently started getting into machine learning and I wanted to write a "beginner-program" which would learn to play tic tac toe. Following this is the code I currently have, which was inspired by a different program I saw. Meaning some ideas(like saving the valid moves in a String) are not f...

 
0
Q: Should answers to clearly off-topic questions be encouraged or discouraged?

ChrisWueThis question is clearly off-topic on code review. However it did receive an answer which essentially points out the problem and makes some suggestions. The problem this potentially causes is that it somewhat encourages users to ask off-topic questions anyway since they may just receive a useful ...

 
Sorry, but I tried use that example: codereview.stackexchange.com/questions/374/…. Maybe you can show some example? — DzLL 41 secs ago
 
Evening all :)
 
@CaptainObvious Hey! That's my next step for my Machine Learning project!
 
Russian chat flags -__-
 
8:26 PM
@StackExchange Good question, though it may be a duplicate.
If it isn't, it's about darn time it got asked. But I think we've talked about it.
 
@CaptainObvious Okay, holy mother of duplication... When I implement Machine Learning for Tic-Tac-Toe, it's certainly not going to look like that!
@Mast There was a short discussion about it in chat recently
 
JsonArray states = jobj.getAsJsonObject("data").getAsJsonArray("state");
java
 
What technique does he use @SimonForsberg? To lazy to go over the lengthy code :D
 
Please note, questions involving code that's not working as intended, are off-topic on this site. If OP edits their post to address the problem and make their post on-topic, they make your answer moot. Protip: There are tons of on-topic questions to answer; you'll make more rep faster if you review code in questions that will get higher view counts for being on-topic. ;-) — Mat's Mug ♦ 11 secs ago
 
@Mat'sMug Questions being off-topic don't make them illegal to answer though, right?
 
8:30 PM
@DJanssens Honestly? Hard-coded Machine Learning, as far as I can see... I wouldn't really call it Machine Learning TBH.
 
0
A: Should answers to clearly off-topic questions be encouraged or discouraged?

Mat's MugNo, we shouldn't encourage this. Broken code is broken code, and we're not Stack Overflow. I left this comment on the answer: Please note, questions involving code that's not working as intended, are off-topic on this site. If OP edits their post to address the problem and make their post on...

@Mast well, we're not SO
 
Would be great if that question of Chris could get multiple well written answers if multiple opinions exist.
@Mat'sMug It's SO style to say people shouldn't be asking questions here because they're asking for something that's on-topic somewhere else. Find a better argument :-)
 
@SimonForsberg :/ that's gonna be a joyful review.
 
I would, but I don't have for this right now :/
 
Happens to the best of us.
 
8:33 PM
@DJanssens If I would have an hour or so to spare, I would review it right away. Unfortunately, I don't.
I might review it at a later time if it hasn't gotten any good answers before then.
 
The long code snippet is a bit discouraging.
 
it's a lot of duplication though it seems
There is a lot of code here, in order to get a better overview of your code, could you add a short description in your introductory paragraph about what each method does? That would help in understanding and reviewing your code. It will probably both give you a faster answer and a better answer. — Simon Forsberg ♦ 4 mins ago
Currently it doesn't live up to my "good question" standards.
 
0
A: Should answers to clearly off-topic questions be encouraged or discouraged?

Quill Should we actively discourage answers to such clearly off-topic questions? We should discourage those in the process of reviewing from posting answers to questions going to be closed, and discourage it in future practice (tell the user who has just done so that it's best not to in future) I...

 
You know what we really should be doing? Write more reviews.
5
 
@SimonForsberg In addition he doesn't seem to have added a single line of comments.
 
8:36 PM
Oops, just realized mine doesn't have any comments either.
 
@Mast has the right idea
 
@DJanssens Running his code and stepping through it in a debugger would probably help, but that takes time...
@Mast B...b...but... I'm busy making commits!
 
0
Q: Constructor with prototype and chainable decorations in JavaScript - can I use JS like this?

ArminMethI was playing around with JavaScript patterns like constructor with prototype, decorations and method chaining and figured out it would be interesting to try and combine those ideas into a single pattern. I looked around the Web to find anything similar and failed, so I decided to try and create...

0
Q: Randomly choose a game executable from a folder 2.0

Nate KerkhofsAfter asking Randomly choose a game executable from a folder, I applied the recommended changes. I also redesigned the program to make use of the MVVM (Model-View-Viewmodel) paradigm, using Prism 6.0. This was such a large change that I bumped the version number to 2.0. The project can be found ...

 
hmm how do I go about implementing navigation properties now
 
I've had an incomplete review open on my laptop for a week, and a different one on my work pc for nearly 2 weeks
 
8:39 PM
@SimonForsberg What, you're preventing crappy code? But we need crappy code to review!
 
@Mast I bet that for every good commit I make there's someone else out there making two crappy ones. I can feel it.
6
 
Fair enough.
 
@CaptainObvious vtc for hypothetical code
31
Q: Making a better image uploader

HynesFor those who don't know me, I'm a product designer here at Stack Overflow. Currently I'm working on a project called Teams (for more information about Teams and other projects, read Tim's post on Meta.SO). Some features we're looking to add to Teams require a more feature-rich image uploader. H...

 
I've closed about 7 issues today already on @Duga.
Although this will be a bigger change.
 
I don't deem it hypothetical code, it does produce an actual output. it's just yet another lame example micro-project that's built solely to implement a design pattern
 
8:43 PM
@Quill Too borderline for me to hammer.
 
var CreateChainableObject = function() {
  this.constructorPropertyOne = 'Constructor Property One';
  this.constructorPropertyTwo = 'Constructor Property Two';
  this.addMandP = addChainableMandP;
};
 
But vote as you wish :)
 
@Mat'sMug YALEMPTBSTOIADP
that's my favourite stack
 
yeah that ;-)
 
@SimonForsberg Good idea.
 
8:48 PM
0
Q: Loading DLLs - Can the efficiency of this code be improved?

DonBoitnottMy application relies on an unknown number of DLLs that each produce a report. The only thing that is known in advance is the location of the files and the classes that each will contain, including the base types. When the user needs to define a new report for use in the application, a list of ...

0
Q: Generate a dictionary of passswords

Ashwin GuptaI have a python script that generates a dictionary of all possible 3 digit password combinations. It essentially works by just nesting for loops. This is fine, but say I wanted to change it so it could generate 4, 5, 6, ... digit combinations. This would require me to keep adding more nested loop...

 
Is there a meta about handling chat flags in rooms of other languages?
 
@SirPython Why would there be
If you can't judge a flag, skip it for someone else
Can you please review the code in more detail. This is a request for review of a pattern. Code is complete and working, question even includes output. Thnx and sorry for the inconvenience. — ArminMeth 1 min ago
wat
> Can you please tell me:
- Can you think of a real-life application of this thing?
 
Well, I'm trying to communicate with the users in that russian SO room, but they are being a little rude.
 
and the mod deleted my message
 
@SirPython It might just be the culture. Russian and German culture, so I've heard, values speaking what they think right out, which makes them seem rude to other, "polite," cultures.
Aren't design reviews off topic?
 
9:00 PM
Naruto answer; accepted non-selfie answer with 0 score: Creating an object-oriented router class in PHP
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: Execute script on remote host and obtain variables on localhost
 
> -- please, learn russian and C# and welcome back :)
a polite way of saying gtfo
@Hosch250 depends
wow, the mod is using a translator. I can't even
 
@Quill Which comment was that? It was apparently deleted.
I remember VTC'ing, but I don't remember commenting that one.
 
sorry, yeah. I, uh, thought you were the one who made SirPython's comment
 
Maybe because I'd made a similar comment on another post shortly after.
Time to go read about criminal liability and cyber law.
 
yay?
 
9:31 PM
Hi Zak, what's a code review? — c2n 40 secs ago
5
 
9:45 PM
0
Q: "Inline" code reviews

EvenI'm quite new to code reviews, so this question might be trivial. I'm looking at a code review tool like "track changes" in Microsoft Word, but a bit more advanced. The process that I'm looking for is: I submit a file or some changes for review. People can directly do the changes in the code. I c...

 
A co-worker of mine just shared this on Facebook: facebook.com/100004260880198/videos/617062731779084
I am so tempted at reviewing all the code in the video and post as a comment...
A lot can be said just about the code in that picture...
 
That video makes me cringe a bit..
 
Yea.
It's a very iffy cover of a known song.
 
And the worst part is that I can't come up with what song it originally is
 
Not much code in it though.
@SimonForsberg Let my google-fu fix that for you.
 
9:52 PM
@SimonForsberg "hello? is it shitty code you're looking for?"
(hello all)
 
@DanPantry ((hello @DanPantry))
 
(define-func hello)
I don't know LISP
 
@DanPantry I can see it in your commits, I can see it on github.
3
 
@SimonForsberg don't stalk my github, the little code that is on there I am not proud of
 
Just trying to finish the song :)
 
9:56 PM
@DanPantry Basically you grab a function and instead of writing define func() you make it (define func). Move the parentheses.
 
@Mast or defun, right?
 
@DanPantry Naturally.
 
@Mast What's that "-fu" stand for anyw... "for you", isn't it? I've always read it as something completely different...
 
@SimonForsberg No.
 
@SimonForsberg kung-fu.
google-fu is just a play on kung-fu
 
9:57 PM
That ^^
 
What?
 
It's google-skills.
google-fu
C++-fu
Python-fu.
Brain-fu
 
> and 夫 (fū) which is alternately treated as being a word for "man" or as a particle or nominal suffix with diverse meanings (the same character is used to write both)
literally, googleman.
Sounds like a superhero.
 
@Mast -ck
9
I'm glad I've finally found the answer to this mystery.
 
Reminds me of Abbott & Co
 
10:09 PM
@SirPython yes there is
 
wow I'm out of stars. that's new
 
9
Q: Option to add comment when flagging messages in chat

JohnPOf late I've noticed that multiple flags are waiting for me when I join the PHP chat room on SO. A bulk of these are flags of non English messages so I have no context on why it was flagged. What would be good is an option to allow people to add a comment/message when flagging messages so that ...

 
TTGTB
 
I'm getting so many messages on the 19th Byte's starboard so much that it's starting to leak over to the 2nd Monitor
 
10:16 PM
@quartata star pro
 
@SimonForsberg This makes me cringe
I wish wildcard imports just weren't a thing
 
Teachers should stop teaching them 'because they're easy'.
 
10:32 PM
@Mast Agreed
 
TTQW
 
0
Q: C# Database Manager (Mediumly Large)

Ash KiplinDatabaseManager.cs using System; using MySql.Data.MySqlClient; using Plus.Core; using Plus.Database.Interfaces; namespace Plus.Database { public sealed class DatabaseManager { private readonly string _connectionStr; public DatabaseManager(string ConnectionStr) {...

 
10:59 PM
1
Q: Checkers in python 3

Hello_worldI'm writing a small checkers game in python (international rules) and I need some pointers here and there. For the moment, I am only drawing the board and checking the syntax of moves with a regex. For review : Usage of a value package for passing around game state (grid, turn_count, and curr...

0
Q: Jquery table with dynamic data

Alejandro GomezI am stumped. I am making a table that loads data from an API. So far, the header loads the information well; however, the data that makes up the rows loads incorrectly as shown here: . Can someone please explain to me why this is so? I think it might have something to do with my jquery selecti...

 
Is your script working or not? If you have working code and are looking for comments on the style or efficiency, codereview.stackexchange.com is the place to post it. SO is for when you can't make it work and need help. — Barmar 36 secs ago
 
11:22 PM
TTQW
 
0
Q: Linq-to-Sage Implementation

Mat's MugFollowing-up on my last question where I wrapped the Sage API with a familiar IRepository interface, I decided to push the abstraction a step further, and... implement an actual LINQ provider. So my client code looks like this: class Program { static void Main(string[] args) { u...

 
you're hitting that point where you're making zombies @mat'smug
 
11:47 PM
0
Q: Would a latitude longitude coordinate make for a reliable id?

chrisIm building a multidimensional array of coordinates and looking to possibly group them by id if its reliable. http://maps.googleapis.com/maps/api/geocode/json?address=vancouver,ca [49.283x-123.121] => Array ( [0] => Array ( [city] => Vancouver ...

 
@CaptainObvious off-topic for no code included
(it's an array dump)
 

« first day (1010 days earlier)      last day (2997 days later) »