« first day (849 days earlier)      last day (3466 days later) » 

11:00
-1
Q: A basic Tic-Tac-Toe game programmed in Java

Hassan AlthafI have programmed a Tic Tac Toe game in Java using JavaFX for the UI. I have improved my previous version of the game after it got reviewed here. I will be highly satisfied if you can point out how to make my code cleaner, more efficient, and how could I achieve separations of concerns or better ...

@CaptainObvious oh god the copy paste
Holy sweet mother of God!
Zak
Zak
@CaptainObvious has it actually improved from the first question?
@Zak If it's completely identical, flag it as such.
Zak
Zak
A quite scroll suggests it's not identical
11:03
@Mast it isn't identical
it's just not applying the useful stuff..
Zak
Zak
But it's difficult to tell what (if anything) they've actually improved
If it has slightly different code, it isn't duplicate.
@Zak diff
@CaptainObvious This one has more imports
@maaartinus I've implemented most of the stuff you mentioned, but I cannot seem to implement the MVC pattern in JavaFX. Any recommended resources I could refer to? Also, I have posted a new question onto how to improve the code again. — Hassan Althaf 14 mins ago
import java.net.URL;
import java.util.List;
import java.util.ArrayList;
import java.util.ResourceBundle;
import java.util.Random;
import javafx.scene.input.MouseEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.shape.Circle;
import javafx.scene.control.Label;
import javafx.event.ActionEvent;
import javafx.scene.shape.Rectangle;
import java.net.URL;
import java.util.ResourceBundle;
import java.util.Random;
import javafx.scene.input.MouseEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.shape.Circle;
import javafx.scene.control.Label;
import javafx.event.ActionEvent;
The code is a tiny bit different
11:06
@IsmaelMiguel you're beating a dead horse
it's not a dupe
we all agreed on that :)
I just said it
@Quill There's a bunch of comments on this post that are flaggable, quick get in your flags
interestingly hassan posted the question to the SO Java room.
which was how I found the question before Cpt. O posted it here
11:07
Nice work on that Python answer, @SuperBiasedMan
Zak
Zak
> Are you not supposed to review my code and not link to yours?
That sounds a bit snarky :)
I've heard that this user is a trouble-maker
(Some classify me as such too, but that's another point)
@Quill Thanks! Surprised how I've found multiple people misusing for loops. I'd have thought for x in iter was easier and clearer for people.
@IsmaelMiguel I could pull the transcript from BB's account of your starwall :P
@SuperBiasedMan Yeah, I really lol'd at that point
@Quill How would that make me a trouble-maker?
11:11
In the end it turned out quite differently to what I originally had in mind (and to what you demonstrated here). I posted it at codereview.SE, hoping to iron out the remaining not-so-niceties. — DevSolar 15 secs ago
The root cause for that is how you ask your questions. Also I already told you there and I'll tell you here again. Ask the answerer for clarification, not unrelated people in a chatroom on a different site. And don't expect us to prioritize you over everything else, especially not when we aren't even remotely related to the question and you don't seem to be putting in any effort in asking... — Vogel612 1 min ago
Other sites have asked for starwall makers to be kickmuted before, so something along those lines
@Quill wat?
@Vogel612 I have no source for clarification, as whenever I ask something in the Java room, you guys just troll... — Hassan Althaf 4 mins ago
yea... we troll....
11:12
@Quill Never heard of that.
if that guy comes in any of the two rooms I am RO of, and starts to help-vamp again, I'll just effing kick them
Zak
Zak
@IsmaelMiguel IT's generally people continuously unstarring/restarring stuff
I'm extremely pissed right now....
^ best to do that
Zak
Zak
@IsmaelMiguel I remember seeing a meta about it somewhere
11:13
@Zak mainly that
There's a star-rate limit, you know?
@Zak I saw the meta too. It was some guy staring/unstaring stuff everywhere
you cannot star more than once a second.
@IsmaelMiguel I'll find the meta, give me a moment
and unstarring also counts...
11:14
I think it's 2
37
Q: Prevent repeated starring and unstarring of messages

badpIt appears that you get to blink stars on any message as frequently as you want, as long as you want. Some child on The Bridge has just found out about this and the only approach I can think of - banning people at random until the abuse stops - is not something I feel like applying right now. Pl...

1
Q: Boost.Spirit UTF-8 string literal parser with escape support

DevSolarI wrote (as part of a greater work) a Boost.Spirit grammar that would parse string literals, including support for the various escape sequences known from C/C++ (\n, \x7f, \341, \u017f, \U00010451). At some point I encountered some problems, mostly due to my lack of understanding either Boost.Sp...

similar thing
That's the one I saw
@Vogel612 Do you want me to try holding my nose by wrapping my arm all around my head and then holding it instead of holding it straight? — Hassan Althaf 4 mins ago
What?
I will simply not answer that
anything I'd say will be offensive, so I'll just shut up
Zak
Zak
11:17
flagged as "non-constructive"
I have no idea what that is meant to be
the whole comment thread there is not really constructive
@IsmaelMiguel it's about making stuff needlessly complicated
The first one is
how would you hold your nose?
I don't know...?
11:18
hand to nose... finished
Oh
Got it
He asked advices, he got advices, he says he doesn't want to apply them
~that question is so nonsensical out of context
it's no about the advice
that comment is a rant about how he gets ignored and his messages get trashed in SOs Java room when he help-vamps about CR answers there
...
Poor Java people in that room
meh. we're used to things like that
But one thing is for sure
Not all chats are friendly
11:21
Sorry about the flag spree @mods
@IsmaelMiguel All SO & SE chats are friendly though :o
supposed to be
@Morwenn Have you tried the PPCG chat?
@IsmaelMiguel It was sarcastic. I'm regularly on Lounge<C++> x)
I've been on that one once, by accident
11:24
I'm voting to close this question as off-topic because it is asking for a code review and thus should be posted on codereview.stackexchange.comDavid Heffernan 24 secs ago
Zak
Zak
@Duga Is it actually working? Question seems unclear
I would say that it wasn't even tested
I can't understand how people are so not lazy to be able to type the same code twice or more times
Is the code actually working? If it's not working as intended then it wouldn't be on-topic for Code Review — SuperBiasedMan 39 secs ago
I'm always too lazy to write similar code twice
11:26
Copy-paste of the markdown?
(Not the same code, that can be copy pasted)
@IsmaelMiguel If I wanted some tedious job then I'd be someone working with (unautomated) Excel sheets, not a programmer ;-)
I think they take the old code, change 3-4 lines and ship it
@SuperBiasedMan The code isn't working. It's clear from reading it that there are many problems. So, you are probably right that Code Review is not the right place. In which case unclear what you are asking is probably the best fit. — David Heffernan 22 secs ago
11:27
Sooner or later maintenance hell will come in though
When?
@Duga Nope, it isn't clear
hey @Vogel612
hiya @h.j.k. what can I do for you?
-3
Q: A basic Tic-Tac-Toe game programmed in Java

Hassan AlthafI have programmed a Tic Tac Toe game in Java using JavaFX for the UI. I have improved my previous version of the game after it got reviewed here. I will be highly satisfied if you can point out how to make my code cleaner, more efficient, and how could I achieve separations of concerns or better ...

a little bit harsh on this?
I compared the Controller code
Zak
Zak
@h.j.k. there's wider context around that particular user
11:28
he did make some minor improvements from maaartinus's answer
but he completely ignored the meat of the answer
it's not perfect yet, but it doesn't seem like none of the advice was taken...
> Have I said already that the repetitive XML leads to repetitive code?

Have I said already that the repetitive XML leads to repetitive code?

Have I said already that the repetitive XML leads to repetitive code?
that user has been around here for years...
and I may be influenced by my room owership of the java room
erm... 14 days
that account...
11:31
8 hours ago, by Hosch250
@Mat'sMug The most commonly used features are the copy and paste buttons.
@h.j.k. New account
Same user
ooh
ok that changes things
and my interpretation
11:32
lol
@Quill yea not so much
yesterday, by RubberDuck
Why are we speaking of Hassan?... I'd rather not experience the virtual equivalent of a root canal today.
2
wise words from the RubberDuck
Hassan... I remember that user...
(Happy Monkday)
thanks for the background info... :) hope he'll learn something new from these... (or not)
11:35
in PHP on Stack Overflow Chat, Jul 18 at 15:28, by JavaFan
I need a MySQL query to select * from table where column1 is not null and column2 is null
2
in PHP on Stack Overflow Chat, Jul 18 at 15:31, by Ronald Ulysses Swanson
@JavaFan you accidentally wrote valid sql
LOL
@Quill What...
"The result set is empty, it can't be valid" ...
Yeah, that is valid SQL
that user is also notorious..
@Phrancis Greetings
11:37
and that when I just had a great time... now it's all just back to the acidic feeling of loathing and anger
@Vogel612 Wasn't he nicknamed JAVAFan?
it was never the real nickname...
but yea..
(times by 10) I really must've screwed the flag averages, sorry @mods
@Vogel612 You want something to laugh about?
When comments are flagged, do you get to see them in context or isolation?
11:41
@SuperBiasedMan Isolation, but you can't see which comment exactly
Just the question
Oh, but does that mean that flagging multiple comments on one post is actually unnecessary?
well, some comments are flagged for different reasons
I flagged some for being obsolete, and some for being chatty
Ah, that's a good point.
Just cause I've done that a lot to clean up long chains of redundant comments.
Also, some comments can be from different users
I can make a comment and you can make one
Just because someone flagged yours as too chatty, doesn't mean that my obsolete comment is chatty
:/
Lets praise 200_success for not jumping on his throat.
11:49
wat...
Well
Look how "Abandoned account" is talking to that user
Basically: You're doing this wrong, do it right. This is not StackOverflow.
@IsmaelMiguel too lazy to dig... got a link? Depending on the answer that reaction may be appropriate-ish
@Duga CR is being referenced on SO :-)
Zak
Zak
11:56
remind me, what's the formatting for a tab?
It has been a few times before
@Zak 4 spaces
Zak
Zak
@IsmaelMiguel isn't that for code?
Right, sorry, I meant [Tab]
Yes, but you can only put tabs inside codeblocks
@Zak \t
Zak
Zak
TAG! that's what I was after!
11:58
[tag:bla]
That?
Zak
Zak
ah, awesome :)
That's a tag, not a tab.
55 secs ago, by Zak
TAG! that's what I was after!
He said tab twice before
@IsmaelMiguel I see it once.
But fine.
12:00
3 mins ago, by Zak
remind me, what's the formatting for a tab?
2 mins ago, by Zak
Right, sorry, I meant [Tab]
Mind-reader
That's tab, not tag...
I'm not getting dragged into this discussion.
Tomorrow it's the first of September
Yes, and I have some VHDL to learn
@IsmaelMiguel You could do both proposals: write a EMS in VHDL
12:01
Elevator Management System
bytes are expensive
not
@skiwi I don't ride motorcycles. And even if I did, I would never spend $55,000 on a ride - not even on a car.
I've got something in mind which I hopefully will have time for this week, but we'll see.
Zak
Zak
Nutella in a hot chocolate: Genius or ?
I loosely read it
@Zak Why not both?
3 mins ago, by Ismael Miguel
Mind-reader
12:03
@Quill Life ain't fair.
@Quill Reading my again and again!
@Donald.McLean I'm pretty sure you're not the only one :-)
The timestamps have so many 7s!!!
Zak
Zak
Just another 100 and I can help out with the VTCs
That should be 1 day of CR
12:05
@Zak I'm still trying to get Marshal but it gets way harder the moment you're allowed to VTC.
And I'm now going home
Got a lasagna to burn
Enough voting, not enough flags.
I don't even have 80 helpful flags...
Zak
Zak
@Mast what's MArshal?
500 helpful flags.
Got it on SO, not yet on CR.
Not enough crap to flag away.
12:09
Be careful. Gamification will eat your soul.
@Morwenn I like purging crap. Can't help it.
That's one of the reasons I'm active on CR, to help people get rid of their crap.
Hello again
@BlackHatGuy Welcome back
Zak
Zak
12:11
^^ TS
Right... I'm out of stars.
What on Earth?
Notice the blue bubble
Its a flag notice
Zak
Zak
hmm. that's a new one
@Heslacher Like "This message got flagged."?
@EthanBierlein Because you have over 10K on the network, you get flag handling privs in chat.
Don't abuse it.
12:16
Like somewhere a message got flagged, and you should/could check if action is needed
Exactly.
Confused the heck out of me the first time it appeared for me too.
Well, the bubble is gone, and I'm on mobile, so I guess I best not worry about it for now.
@Donald.McLean me too
12:18
I strongly recommend people click that blue bubble with extreme caution.... and having read up on chat moderation
otherwise it should be ignored ;-)
@EthanBierlein 10k accumulated rep allows you to moderate chat-flags
@rolfl meh. usually cases are clear cut,
and if they aren't then you can still ignore it
Congrats Ethan, you can see all the crap now
Hmmm... "usually cases" was much less than 50% in my experience....
then you were just too slow for the easy cases..
A 122k SO user
@Alex, what makes you think it's a better fit for that forum? Programmers isn't a dumping ground for questions that 'don't fit' on Stack Overflow. — Mark Seemann 1 min ago
forum ???
@Donald.McLean But it does look cool, right?
12:30
I think this question is off-topic for Stack Overflow and would be better posted to Code Review instead. — Tab Alleman 30 secs ago
Greetings
@Vogel612 Hooray?
don't become Room Owner... that's when you can check the history of deleted messages...
flagged crap is only there until it's auto-deleted..
I'm already the owner of one room. There was never crap in there though. Then it died.
The tech support room?
12:34
I would be cautious saying it belongs on CodeReview. Code needs to already be working as intended. This sounds more like a feature request / validation / about unfinished code. — Zak 1 min ago
1
Q: Convert a date string to a DateTime object in C#?

AnatolyI have the following method to parse date string. public static DateTime ParseDateTime(string dateString) { DateTime dateTime; if (!DateTime.TryParse(dateString, CultureInfo.InvariantCulture, DateTimeStyles.AssumeUniversal, out dateTime)) { if (!DateTime.T...

@IsmaelMiguel No, the Cactus room.
Never heard that one
Zak
Zak
Cactus room?
It was a project that I worked on a while ago. The project itself is dead now as well.
12:36
start a new one :)
@IsmaelMiguel One of the project contributors left, and I felt less motivated to work on the project after that.
@Zak RSA
TTG, back in hours
@EthanBierlein I would've helped out more, but 1) I didn't really understand some of it 2) I'm not really good at Python
12:40
@EthanBierlein What was it about?
@IsmaelMiguel It's a text adventure engine. It allows you to create a choose-your-own adventure game, like Zork.
Can we possibly move this here?
@Quill That's okay. You were kind of our social guy. You set up our subreddit after all. ;-)
Yeah, I tried to contribute more, but I couldn't
@skiwi Oh, yeah. Very cool. And if circumstances were different, I probably could afford one on my current salary, but it would be an awfully big bite.
@EthanBierlein Never heard of Zork, but I don't think it is needed to move to a new chatroom
Zork is one of the earliest interactive fiction computer games, with roots drawn from the original genre game, Colossal Cave Adventure. The first version of Zork was written in 1977–1979 using the MDL programming language on a DEC PDP-10 computer. The authors—Tim Anderson, Marc Blank, Bruce Daniels, and Dave Lebling—were members of the MIT Dynamic Modelling Group. When Zork was published commercially, it was split up into three games: Zork: The Great Underground Empire - Part I (later known as Zork I), Zork II: The Wizard of Frobozz, and Zork III: The Dungeon Master. Zork distinguished itself in...
Look at those top two posts ^^
12:52
o.O
I've always had more ideas for things I want to do than time to work on them.
@EthanBierlein if you sit in tavern on the meta you get so many of those
@EthanBierlein yaaaay free spamflags
Zak
Zak
Being (relatively) unknown and not SEO friendly does have its advantages :)
12:55
@Vogel612 They were deleted already. ;-)
oh we already did have a few cases of spam
0
Q: Re-worked Workbook_Open, Creating DateStrings

BlackHatGuySo, I had a go at re-writing my Workbook_Open event based on the advice I've had so far. Thoughts? Private Sub Workbook_Open() Dim strTableTitle As String Dim StrTodaysDate As String Dim StrThisDay As String Dim StrThisMonth As String Dim StrThisY...

@EthanBierlein I figured. The spam-police in the tavern is on duty 24/7/365¼
and yes, 365¼
@Vogel612 I see what you did there
Well, yeah.
12:56
Trying to skip leap days, hum?
@CaptainObvious Yay!
I love it when new members continue to use the site!
It makes me feel all warm and fuzzy inside.
Too much information...
0
A: Background execution in iOS

nhgrif func backgroundExecutable(f: (() -> Void) -> Void) -> (() -> Void) This is madness and it takes a number of mental gymnastics to figure out what is going on here. This method takes, as its only (and poorly named) argument, a closure which returns void and takes, as its single argument, a clo...

1 min ago, by Ethan Bierlein
It makes me feel all warm and fuzzy inside.

« first day (849 days earlier)      last day (3466 days later) »