« first day (445 days earlier)      last day (3579 days later) » 

3:01 PM
Speaking of badges, I got my very first very shiny gold badge.
4
 
@ckuhn203 Congratulations :)
 
Thanks!
 
0
Q: Best way to create a daemon in a JavaWeb application

DamounetI have a purpose for an application to run a daemon in my web application. The application is running with Struts1 on a tomcat7 server using Java7. This is what it does: Launch itself when the application is loaded every minutes does a task (the sysout in the code) when the application stops...

 
woo, 6 bugs
surely I can find more
I think I'm getting C#'s default behavior wrong
if you have a null string
and you do += "something" to it
do you get a string with "something"
 
@Simon may know
 
3:07 PM
or just explosions
because I'm having a hard time believing someone would have so much bugs and claim his program works
 
@Pimgd You do seem to have quite some experience in different languages there :p I've seen you do Java, C#, ANSI C and C++ already, that is not bad at all.
 
@skiwi AS2, AS3, Java, C++, PHP, Pascal, Delphi, SQL, Lua... idk what else I know
ANSI C is just me programming C++ without classes and hoping it compiles
C# is me googling and going with Java and C++ knowledge
 
I could probably also do some C# reviews if I really wanted to do so...
 
Knowing how a language works is not a requirement for spotting copy-paste abuse.
 
Yup, I am embarassed by my bronze C# tag
3
 
3:12 PM
true
That Ruby question was one I could just not do nothing about
 
The trick, however, as I noticed today, is not spotting duplication...
but knowing what is the best way to solve it.
 
rolfl try to get silver on my questions
 
300 upvotes? not likely
 
If you want the buzz-word, it's DRY - Don't repeat yourself
Don't repeat yourself
 
> Rather, I would use CapitalizedNames for table-like objects, such as tables, views, and functions that return rows. For scalars, use lowercaseNames.
^^ what is a scalar?
 
3:14 PM
Keep DRY at all times.
 
@Phrancis non-vectors
 
huh
 
hehehe
 
@Pimgd A slightly more extensive version of that question would be an excellent Code Review meta question
 
I think I need a small break
 
@rolfl You were supposed to help him, not confuse him more! :p
 
I'm starting to get snarky
No, you put them on null. You can't "add" to null. That makes things go boom. Things that go boom are bad. Instead, make them empty. Adding things to empty things does not make them go boom. Things that don't go boom are good. — Pimgd 1 min ago
2
 
Ohhh .... I've hurt my back, and the pain meds are either making me dopey, or don't work, so, I've been snarky recently too ;-)
I 'ranted' on meta today ..... oops.
 
that's an awful lot of smileys you put into your messages today...
usually there are no smileys in your messages...
 
That's the dopey ;-)
2
 
3:18 PM
Meta posting, why not
 
@Pimgd I think you either get "something" or "nullsomething". I have a vague memory having read that you actually get "something". I pass the question on to @Mat'sMug
@Pimgd You sound exactly like me. Except for Lua. I did Brainfuck instead when you did Lua.
 
I did Lua because game design and we needed to decouple content from compiling
 
@SimonAndréForsberg True crowd-sourced development going on here :)
I have high chances that I'll need to learn Lua either way, so I should probably start learning it some day.
 
@Pimgd I just realized that I might have touched on Lua a little bit. I did some playing around with AIs and Random Map generation in Age of Empires 3, I think that was Lua. Not sure if that can really count as "coding Lua" though.
 
@rolfl TS!
 
3:22 PM
@SimonAndréForsberg We should use Lua in our TCGs!
 
@skiwi What would we like to accomplish with Lua?
 
Not sure if it couples nicely with Java though
 
I also prompty forgot Lua again, so I can't really tell you if it is good or bad
 
The custom effects that cards can have
 
All I know is that link errors suck
hard
 
3:23 PM
Languages I've used professionally: Scala, Java, C++, JavaScript, Pascal, 2 proprietary 4GL DB app languages, and a bunch of weird crap that's hard to describe.
 
Oh oh oh! I forgot ColdFusion!
shudders
 
what a meta-rant. on meta.. um. so it's in fact a meta meta-rant? I think I should stop thinking about this right here... — Vogel612 18 secs ago
 
@Donald.McLean I like the bunch of weird crap that's hard to describe.
 
Ts
darnit...
 
@skiwi Well, there was a bar code reader that had this freaky proprietary language. That's just one example.
 
3:25 PM
@Pimgd I started with Pascal/Delphi, moved on to PHP/HTML, did some JS, CSS and SQL. Did a lot of stuff in AS3. Learned how to read C and C++ code, discovered Java, learned Java, loved Java, stayed with Java, did a Sudoku Solver in C#, learned some Python, continued with Java, made FizzBuzz in Brainfuck, and then I was toast as a programmer.
@Donald.McLean weird crap? ?
 
drat I have to go soon but I also almost have my meta question done but it's not done enough
missing links
 
@SimonAndréForsberg It wasn't weird on purpose though.
 
@Donald.McLean COBOL?
No, wait. of course (which I also learned a bit, creepy language really...)
 
Thanks for the link @rolfl
 
Hello @mbriand
 
3:30 PM
Things/technologies I have been paid to do/use (including dialects)? Hmmm... Adabas/Natural, COBOL, Fortran, CICS, C, C++, PowerBuilder, Sybase, ksh, perl, sh, Oracle, SQLServer, DB2, XML, Java, HTML, Javascript, VB, and more.... How many am I actually good at?
 
Posted quickly
0
Q: What to do if the asker's code contains bugs?

PimgdBased on this question: C# WPF Calculator Code The question's code... works, according to the author. However, I quickly spotted multiple bugs. I know that Code Review is not there for fixing bugs. A single, minor bug shouldn't halt review process, however. But what do you do if there's a consis...

and I have to go home or I'll miss the bus
 
cheers
 
@Pimgd You may want to look into function pointers for your C camera stuff. I'm still trying to figure out how you would implement them though.
 
I think I missed a link in there
oh well
be seeing ya all
 
@rolfl SQLServer doesn't count! (Or does it?)
 
3:31 PM
@SimonAndréForsberg I made one change to some COBOL once. The weird thing about COBOL is the language isn't actually that bad. What makes it so verbose is the silly coding standards most shops use.
 
^^^ that, and, verboseness in itself is not actually a bad thing
 
@Pimgd But your comment "No return code needed, no parameters. I'm gonna have a lot of functions like that.", makes me instantly think of function pointers.
 
I am amazed that my question did not get ;)
 
@SimonAndréForsberg SQLServer and Sybase are/were very similar. SQL Server is actually a port of Sybase to WinNT by Sybase, that MS licensed from sybase and then extended
But, now they are different enough to be .... different'
 
Had a game break.
Whats new guys
 
3:35 PM
2
Q: What to do if the asker's code contains bugs?

PimgdBased on this question: C# WPF Calculator Code The question's code... works, according to the author. However, I quickly spotted multiple bugs. I know that Code Review is not there for fixing bugs. A single, minor bug shouldn't halt review process, however. But what do you do if there's a consis...

 
@HassanAlthaf feel free to scroll back through the transcript
 
cba lol
 
@Phrancis IIRC he's on vacation currently....
he's not even as far as I see...
 
Guys, what do you do when you are frustrated or want a break for an hour or something from coding?
 
answer a question on Code Review ;-)
3
 
3:44 PM
Other than that.
Like break.
No code.
 
Blow soap bubbles!
 
Just FYI for all users:
@HassanAlthaf from what I take of your comments, you seem to come mostly from a JS / PHP background. You have mentioned in chat, that you completed a C# tutorial. All the things, that Pimgd mentions in his answer, are covered in a really good C# tutorial. Feel free to ask for a link to a C# tutorial. As mentioned in chat, we are not here to teach you language basics. — Vogel612 16 secs ago
@HassanAlthaf usually eating, sometimes reading a manga, or just sleeping. at the end of a day it's gaming mostly..
 
@HassanAlthaf What @rofl said.
No code!?
What?
Doesn't compute.
 
Mod time ..... I have locked the post for an hour.
@All, lets take a second here, and consider things.
 
@HassanAlthaf Go eat a meal at a restaurant or something, fire off a video game, take a walk, anything like that :)
 
3:50 PM
OK, I have purged a bunch of comments, and locked both the meta, and main post.
@HassanAlthaf - the problem here is that your question is borderline, whether you agree with that or not. Additionally, Stack Exchange, in general, is designed to be a Question and Answer type system. It is not a discssion forum. Comments are not meant to be a dialogue, but a notification.
 
@rolfl IMO the content dispute notice should be on the main-site question, and the chat notice on the meta-question..
 
So, the combined 'chatty' and 'conversation' nature of the comments is compounding the problem.
Chat, is for chat.
 
Ok, sorry.
 
No problem.
I have just locked things so that it can't get worse.
not so that it can't get better.
@Vogel612 That's not the point, the locks automatically expire in an hour regardless.
 
No, I understand man. We need to filter out offtopic conversation.
 
3:53 PM
and off-topic questions.
and we need to decide what off-topic means.
This is a beta site, and it is critical in this time to make sure these thngs are resolved right
 
@rolfl personally I would keep the main-question locked until the meta question has a decisive end ;)
 
Your question actually makes for a great example of what the future of Code Review should be.
 
^^ that
 
0
Q: How can I lower time complexity in this function in C++

ErniePurpose of the program is to add 2 sides of an array starting from the bottom and top of both ends and to find the lowest difference at equal decrements of iteration. The program functions but it's slow. int solution(vector<int> &A) { int n = A.size(); int i, j, rsum, lsum, difference; int curre...

 
What makes broken code off topic has been discussed a few times on meta already, and it has evolved over time.
Your code is certainly not working properly.....
.... but that is true for many questions that are asked here.
The question is really 'what makes an answer become a review, rather than a debug session'?
 
3:56 PM
@HassanAlthaf I think you misunderstood the comment I made to the meta-question. I hope you could throw in your opinion on that as an answer. This allows us to understand the reasons behind the opinion you expressed in that comment...
btw. I also threw in my opinion concerning the rant question:
0
A: Are "rants" valid in an answer?

Vogel612I think rants are a valid and important part of CR-Culture. I have seen rants in answers from every single of the 5-10 top answerers here, and I feel that these are sometimes what makes a CR answer enjoyable to read. They provide useful information in a mostly humoristic way, well at least stand...

 
or, extending that, if we consider people who review things to have limited and valuable time, what is the minimum quality of code we should present to them, and not make them want to go somewhere else.
 
@rolfl but then we have a different problem: "How is the asker supposed to know what he doesn't know?"
 
Hello @All
 
hi Monking @CodeX
 
Everyone ok?
 
4:02 PM
0
Q: LL1 Parsing Table Output Not Showing

Muzammil M.RafiqI tried my best what I can do to show this output table, but having hard time showing it. the code runs fine but when i try to enter the following output of table for validation, a lot of errors comes up and I don't know really how to handle it, my concern would be to get this code running (show...

 
@Vogel612 By reading the what is on topic, and then, in other instances, learning from close reasons to their off-topic questions
 
If I get sick of coding, then usually I start to code on a different project, so I'll still be coding. And if there's no different project that I'm not sick of, then I'll create a new project.
 
@skiwi lol.
 
@skiwi Speaking of "new projects" im looking for some inspiration, code will be PHP, MySQLi / PDO, HTML, CSS got any ideas what i could start?
 
Still shaking things up Hassan?
 
4:05 PM
My personal opinion of your question, @HassanAlthaf - is that it is on-topic enough to stay, and the answer proves that. But, the discussion and challenging back-and-forth has to stop. You asked a question, you got an answer. There may be more. The 'dialog' consists of some corrective comments, votes, accepts, and then, in the case of Code Review, a follow-up question.
 
@DaggNabbit whatcha' mean?
@rolfl I did apologize for a couple of times already?
 
@CodeX Some random website.... But about what, no clue honestly.
 
@rolfl The comments indicated, that Hassan is not sure how to use the advice given int the answers..
 
@HassanAlthaf You did, and I am making sure you learn from that.
 
@HassanAlthaf he's very persistent with that...
 
4:06 PM
@skiwi Maybe there is an application you would like to see or have previously thought about?
 
I had the honor of recieving a lecture from him when I was new, too...
 
@Vogel612 what do you mean by persistent with that?
@CodeX code a blog system.
 
he makes sure that you definitely understood..
 
Hey, I never got a lecture
what a ripoff
 
@HassanAlthaf I'd rather having something a bit more obscure
 
4:07 PM
@CodeX code us a Forum system
 
@DaggNabbit Haha!
 
@CodeX did you see the UTTT coding challenge?
 
Where is that, Vogel?
I wanna look at it.
 
@Vogel612 No, i didnt, ill google it now
 
20
A: Weekend-Challenge Reboot

Mat's MugThe Ultimate Tic-Tac-Toetm Tic-Tac-Toe is boring. Let's code The Ultimate Tic-Tac-Toe, a whole different story. Uh, what? Each turn, you mark one of the small squares. When you get three in a row on a small board, you’ve won that board. To win the game, you need to win three smal...

^^^^ that
 
4:09 PM
Yeah, that looks interesting, very interesting indeed
 
♫ achievement unlocked: inspire somebody
2
 
Not good in coding that much.
lol
Perhaps that can be achieved in JavaScript?
 
It can, and has been
 
What do we get if we complete the shiz? :p
 
10
Q: Ultimate Tic-Tac-Toe Challenge

CameronThis is my attempt at the Ultimate Tic-Tac-Toe code challenge. It uses jQuery to build out the game grid and find the states of all the "buttons" (actually <div>s) when calculating whether or not someone has won an individual board or the entire game. This version follows the recommendation tha...

 
4:12 PM
@HassanAlthaf jsbin.com/rohe/3
 
Bus has wifi!
 
@HassanAlthaf you get temporary recognition from your peers and then get your code torn apart by a more experienced programmer :)
3
 
@Pimgd I have done some mod-locks for a bit.....
 
I would say this wins... zomis.net/ttt/TTTWeb.html
 
@Phrancis more TS!
@CodeX that's Simon's solution..
 
4:14 PM
Time to code the tictactoe game. ;)
 
@Vogel612 Yeah, its awesome!
 
@Vogel612 how do you make the musical note symbol?
 
X O
Hmm
 
I saw, but Im not home for another hour. Ill edit it a bit than that, missed a couple things such as a link to comments should be disposable
 
@Phrancis Alt + (numblock)14
 
4:16 PM
♫ ah sweet
 
or 13 ♪
♥♦♣♠
 
Beaten by Simons Robots!
 
lol
 
Too much whiskey in me i think..
 
the game is also called "TicTactics"... has nothing to do with tic-tac-toe :)
it's more.. strategic!
 
4:18 PM
it should be called SimonsMinions
2
 
Dang my phone sucks, i have to delete the message i write 1 char at a time because it stays in the inputbox and tapping it places the cursor at the start
 
@Pimgd and @HassanAlthaf and @All - I have unlocked both posts. Please keep in mind that we keep things on topic on main site, comments are ephemeral, and always keep things civil.
 
@Mat'sMug "TS"
 
yeah
 
4:20 PM
Ok, cool @rolfl
 
Ephemeral?
 
Whats are those posts @rolfl ?
 
@Pimgd poof, gone
 
Ephemeral things (from Greek εφήμερος – ephemeros, literally "lasting only one day") are transitory, existing only briefly. Typically the term is used to describe objects found in nature, although it can describe a wide range of things. == Geographical examples == An ephemeral waterbody is a wetland, spring, stream, river, pond or lake that only exists for a short period following precipitation or snowmelt. They are not the same as intermittent or seasonal waterbodies, which exist for longer periods, but not all year round. Examples of ephemeral streams are the Luni river in Rajasthan, India, Ugab...
 
if we were to use an XML file to save the stats of the game, we could send moves back and forth in a specified XML format and it wouldn't matter what language it was coded in because the data would be sent in the same language, XML. — Malachi 56 secs ago
 
4:24 PM
I imagine that JSON would be a more popular option
 
JSON is XML transfer isn't it?
 
nope
 
reading the wiki right now
 
this is the weirdest I've ever seen CR
must be a Wednesday thing
 
@DaggNabbit Can't have been here for that long, then
id you ever see @Jamal with a horn on his head?
 
4:26 PM
that's true
 
@DaggNabbit what's that?
 
@Mat'sMug that I haven't been here for long
not regularly anyway
definitely never seen a horned Jamal
 
@Phrancis alt + 31 ▼ alt + 30 ▲
I have a list on my wall of others as well
 
he'd look pretty fresh with two little devil horns
 
JSON does look like it may be easier to work with than XML. I should convince .... wait no I am just starting to get the hang of this XML and the 3 programs that use it..... but dang is it messy sometimes.
 
4:30 PM
Messy is not even the right word
 
@SimonAndréForsberg I found a possibly exploitable way to defeat your Unreleased AI:
 
@Malachi Json or XML.. doesn't matter - if you deserialize it into an object, it's just another serialization format
 
44,55,68,17,34,14,54,74,85,77,83,71,84,11,23,81,25,87,24
@Mat'sMug ▲▲ that,...
 
4:32 PM
@Mat'sMug Not true, there are difference in size and other aspect. It's not that simple.
 
@Marc-Andre true, I meant as far as coding against it goes ;)
the format is abstracted away by the serializer
 
Well sometimes there are "perks" in the language to make it easier to work with a format over the other one. (like JS)
 
right
I keep thinking server-side C# ;)
 
To have worked with both in Java, I find it easier to work with XML, the library are more mature than for JSON
 
@Marc-Andre Well, JSON is very close to being 'eval' - uatable in Javascript.
that is why it is popular, and it was purpose built for Javascript to match that language structure.
Everyone else has had to 'adapt'
 
4:39 PM
@rolfl it is evaluatable in JS
 
@DaggNabbit I believe there are some edge-cases where it is not.
 
if you don't have JSON capabilities built in (and you trust the source) you can just do someObject = eval(someJSONString)
 
but I am no expert.
 
I am thinking Data Transport, so Serialization with XML in many languages is going to be better, but JSON is already in Object format where XML is in Nodes that have to be navigated, I am thinking that JSON would be fun as I haven't tried it yet
 
ffs
Can anyone do the CSS for this
 
4:41 PM
@rolfl i don't think there are, the JSON syntax is pretty simple
 
stupid tic tac toe for me
 
@CodeX lol, that's my goal of many of the AIs I make. It is just so satisfying when you make an AI that's smarter than yourself.
 
@DaggNabbit It appears that it is eval'd as part of the parse
 
4:42 PM
0
Q: Trying to convert what I currently have into a new Javascript powered section

aelsedoudiI am currently building a site in Drupal, and have setup an article page to look as I want it. // We need to inject all this stuff into the renderable $content array so that we can // wrap the text around these objects. // Add the title to the $content array. $content['title'] = array...

 
I think it was designed to be eval-able
 
@rolfl A bit what I'm trying to say to @Mat'sMug about JSON vs XML, some times one is advantageous even if it's just for serializing.
 
@Vogel612 I am unfortunately not surprised. I stopped working on those AIs a while ago, they're not configured properly. Many thanks for the replay-sequence though, that makes it a lot easier to improve it some time in the future.
 
@Marc-Andre But, it's a bit like saying: We should use Java Serialization for the protocol .... ;-)
Not exactly 'fair', wheras XML is 'fair'.
(everyone suffers equally with XML).
2
 
JSON and XML don't really translate that well into one another. XML has a bunch of distinct parts... a node name, some attributes, and child nodes
JSON would be like XML without node names and without "direct" child nodes, but with child nodes in attributes.
 
4:46 PM
> (everyone suffers equally with XML).
^^ should frame this
 
lol
2
 
@Vogel612 I am thinking bigger.... like massive multiplayer games bigger. bigger boards with more than 2 players to a board... — Malachi 4 mins ago
 
@Malachi TeamTicTactics??
 
TicTactics had a lot of potential, but that "correspondence" style of play is too damn slow
TicTactics with a timer would be great
 
OMGosh, I need to code the game first and then figure out how I want to input gameboards, and then figure out a schema for XML and/or JSON (input/output)
then I would move to a game like 3D Checkers and 3D Chinese Checkers
 
4:49 PM
Wizzard chess, and 3D chess next?
 
@ckuhn203 you wouldn't believe the code I'm looking at right now :)
hint:
Option Explicit

Public Function GetById(ByVal id As Long) As SqlResultRow
End Function

Public Function GetAll() As SqlResult
End Function

Public Function Count() As Long
End Function

Public Sub Add(ByVal value As SqlResultRow)
End Sub

Public Sub Remove(ByVal id As Long)
End Sub

Public Sub Update(ByVal id As Long, ByVal value As SqlResultRow)
End Sub

Public Function NewItem(ByVal model As SqlResult, ByVal values As Dictionary) As SqlResultRow
End Function
 
@Mat'sMug I bet I would.
 
@rolfl I think I better just start with the massive multiplayer tic tactics game first. LOL
 
^^ IRepository :)
 
@Malachi did you ever see the MMO scrabble game? Can't remember the name
 
4:51 PM
@DaggNabbit no
 
it's pretty awesome
 
@Mat'sMug is single handedly making a legitimate language.
 
and now I can property-inject a MockRepository into my CustomerGroupsPresenter, and not hitting the database!
 
when the snow flies I will have plenty of time to code stuff!!!
 
4:52 PM
@Malachi @Vogel612 I already have a quite simple "protocol" for UTTT games. If you know how to do socket programming (or websockets) and want to connect to a server that's compatible with my implementation, ping me.
 
(and the MockRepository is wrapping a List)
what, already +190 today?!! so I have to wait after midnight UTC to post it!?
 
ah, the MMO scrabble knockoff was called WordSquared but it looks like they shut it down last year
 
@Mat'sMug You'll even get some stars sprinkled on this...
 
Welcome to 3K, @ckuhn203!
 
@ckuhn203 check this out:
Private Sub RefreshCustomerGroups()
    Set view.CustomerGroupsModel = service.GetAll
End Sub
 
4:54 PM
Thanks @Jamal!
 
isn't it beautiful?
:)
 
No
 
It is @Mat'sMug. It is. Abstraction at it's finest.
 
Who me?
Sorry, having a rough day.
 
4:56 PM
monkey = rolfl
 
^^
 
Oh. Yeah. I saw he had to lock a post earlier.
 
2 mins ago, by rolfl
No
 
Yes
 
lol pinned!
 
4:58 PM
Lunch time!
 
update [The 2nd Monitor] set Mood = 'Bored' where UserName = 'Phrancis'
 
kicked ... not bored any more.
 
yay, everytime I check stackexchange websites there's this +numbers in a green rectangle
 
That's changes to your reputation
Green is good.
 
Ok..... so now how do I pass this recordset to a new form.. OpenArgs?
 
4:59 PM
I know, but it used to be rare
 
Can OpenArgs do that?
 
Damn my FizzBuzz got over 1K views
 
Hi @Phrancis ... ;-)
Welcome back
 

« first day (445 days earlier)      last day (3579 days later) »