« first day (418 days earlier)      last day (3598 days later) » 

7:06 PM
@JerryCoffin: Anything to say about this, by the way? It's some interesting, but messy code.
 
wow.. just gone over a functionality that's scattered across 3 classes, 1 being focused on the task at hand, the other two being burried in thousands of lines of code. The girls said "all good, so you just put a breakpoint and you're good to go". I thought "yeah. or you move the goddamn piece of crap to somewhere it actually belongs and where you don't have to dig it up for half an hour"...
 
Why are you still working?
 
"knowledge transfer" they call it
"working" is a funny word to describe me wasting 3/4 of the day chatting and posting CR answers...
@SimonAndréForsberg 51 mugs on the wall ;)
 
@Jamal Hmm...hadn't noticed that. Writing something now. Thanks for pointing it out.
 
I'd like to call it "homework" myself. :-)
 
7:11 PM
(+180 today, no checkmarks... almost capped)
 
1
Q: Input handling system using the command pattern

Chafic NajjarThe online book Game Programming Patterns briefly describes the use of the command pattern to handle input in a game. I've attempted to write my own "one size fits all" input handling system based on the command pattern, as shown below. Is this a correct implementation and use of the command pa...

 
@JerryCoffin I discovered it as I was looking at a list of questions to tag as .
 
My coworker started contributing to my library today. His first course of action was to create a class Utils and DeviceUtils
:(
It didn't need no stinking utilities
2
 
Nice we always we need more Utils classes !
 
No. It must not stand.
 
7:14 PM
 
Utils classes are what every project need! It what make all easier to maintain!
 
Everyone needs a thneed. A thneed is a thing that everyone needs.
 
He committed his code "oh yeah, I forgot to run the tests"
5
 
@JeroenVannevel sounds like me, 2 years ago ;)
 
Who need tests ! :P
 
7:16 PM
18 beautiful integration tests and 5 unit tests. Carefully crafted, each beautiful in their own way
now the entire test suite is broken
Only 5 tests can get executed before the Test Explorer crashes
 
@JeroenVannevel Well... continious integration should run the tests for you on commit... right? ;)
 
@skiwi I'm a lowly job student, they don't give me the good stuff!
 
hey @200_success, any thoughts on this one? So far the top-voted answer is "maybe" ;)
 
@JeroenVannevel Aww... At least you have tests
 
@Mat'sMug But probably not.
 
7:19 PM
lol yeah, "maybe, but probably not" ;)
 
@Jeroen - My experience is that good programmers emotionally invest in their code. When othr people touch it, they feel violated... ;-)
Even if the other person improves the code ;-)
but more of they screw it up.
 
@Mat'sMug I'm so undecided, I voted for both "Yes" and "Maybe".
The underlying question is, are meta-tags good or harmful?
 
@rolfl I do feel violated. Those tests finally did their job most of the time and now they're back in testing hell
 
@JeroenVannevel more like purgatory ;)
 
@JeroenVannevel It's ok. If my co-worker doesn't stop using ALL_CAPS for procedure names I'm going to start breaking fingers.
 
7:23 PM
For a site where each question is unique, meta-tags are not as useless as they are on sites where each question serves as a canonical reference.
 
And that's petty.
 
@200_success I like meta-tags.
 
@JeroenVannevel So, you have a choice .... if it were me, I would roll back those changes, and insist that only test-passing code canbe committed.
 
I think they make sense here.
I'm just worried about the tags getting confused.
 
If you are not in a position to say/do that (which I understand is lilkely the case), then ....
.... got in to his code and f it up too. ;-)
 
7:25 PM
Shall we have a meta discussion on meta-tags?
 
@rolfl After MafiaWars we get... CodeWars?
 
says "in this post I'm mostly interested in improving..." - would do the same. ...OTOH all CR answers should aim at improving and the likes...
perhaps a meta-discussion about meta-tags is in order, yeah.
 
I'm surprised we haven't yet seen . :P
 
TTGH
 
7:28 PM
later @rolfl!
 
i HATE M$...
Why does the corporate world think that they need to work with their crap software?
 
0
Q: Is this the right pseudo code for KNN algorithm?

user1718996I found this pseudo code for KNN algorithm over here. void classify(int k, Point[] querySet, Point[] trainingSet) { // Loop 1. foreach (query in querySet) { // Loop 2. foreach (training in trainingSet) { // Create a fixed sized sorted map of length k, // where we map the ...

 
and another meeting.. later!
 
CYA
 
Hey I'm working with SSRS and it keeps generating thousands of lines of XML that look like formatting... here's a short snippet:
      <Tablix Name="Tablix1">
        <TablixBody>
          <TablixColumns>
            <TablixColumn>
              <Width>1in</Width>
            </TablixColumn>
Anyone know if this is just not needed if all I'm looking for is data without formatting? I would think so much of this could bog SSRS down...
 
7:42 PM
0
Q: OS testing script

kyle kThis is a script i made for testing a simple operating system. It assembles the source and creates a boot image, then It automates the configuration of a Virtual Box machine. #!/bin/bash OS_NAME="hello" MEMORY_SIZE=8 build_main () { # remove old files rm -f $OS_NAME.bin rm -f $OS...

0
Q: Outputting results from a conditional row count across multiple tables

CodeXFollow up question for: Conditional row count across 4 tables After getting some excellent help from 200_success, i managed to output the SUM() total of my query using the following code: get_results returns standard mysqli_assoc_array: $row = $this->get_results($query); $sum = $row[0]; fore...

 
@200_success Citing the Create Tags privilege: "meta tags, tags that cannot stand alone as the only tag on a question, are not allowed."
 
I guess this means we may end up killing ...
 
@Jamal and if you ask me.
 
Hopefully also . I still dislike it.
 
0
Q: ASCII flow chart drawer

konijnafter some free ASCII flowchart drawer started charging money, I decided to write my own. Salient features are that you can draw a box (mouse down, mouse move, mouse up), then control B it will draw a box. Copy/Paste, Undo, Redo, click anywhere and type are all working features. I pasted the main...

 
7:50 PM
But this will take much discussion, as there will be no turning back after SE kills them all.
 
is useless. Every question could be tagged with it.
 
I think a problem of killing meta-tags is that when writing a question, you often want to add more tags to it, telling yourself that it will get more visibility if it has more tags. So you make up etc.
We do need to think about it though, list both the positive things and negative things of doing so.
 
There's also . I never found the use of it.
5
Q: Refactor vs Refactoring

Mat's MugIn the end, there can be only one... We have refactor and refactoring as synonyms. There are 372 total questions (17 unanswered). I think we only need to have one of the two... if we need one at all. When we post code here, we are obviously looking for a code review, hence no need for a code-r...

 
We might want to think about how PCG does it... codegolf.stackexchange.com/tags
 
0
Q: Testing a string against multiple regex patterns for a match

MxyLI am parsing an unstructured text file and am using regex to extract certain pieces of data. I compile all of my Pattern objects beforehand and then use them throughout the parsing. So for example say I had 2 patterns: Pattern namePatt = Pattern.compile( ... ); Pattern itemPatt = Pattern.compil...

 
8:00 PM
You might not see much that can be done differently, and neither can we at the moment because we don't see your actual code. Please update your question and add your actual code. As it currently stands, this is not possible to review in a good way. — Simon André Forsberg 10 secs ago
 
@SimonAndréForsberg then the only "real" tags are language tags, nothing else should be allowed?
 
@SimonAndréForsberg By that standard, should not exist.
 
oh, thanks @Santa! capped for the day!
 
Well, there has to be more tags than just the language tags of course, I think is a helpful tag, just like and a whole bunch of others. Don't blame me, I didn't write that Create Tags Privilege page.
 
Perhaps we can just debate over certain meta tags instead of all of them. I don't think their existence will hurt us, but some of them just aren't that useful.
 
8:09 PM
51 mugs ;)
 
@Jamal Then the question is: What makes a tag useful or not?
 
if I can mark a tag as "favorite" or "ignored", it's a useful tag
are and meta-tags?
 
@Mat'sMug You can mark all tags as favorite or ignored.
 
@SimonAndréForsberg I'm particularly thinking about tags such as and . Those are always addressed, and there's nothing special about them.
 
true (both @SimonAndréForsberg & @Jamal)
 
8:13 PM
@Jamal I have to agree with you about those. I don't like them.
 
I think there's consensus about and being vaguely useless
 
@SimonAndréForsberg We could start with those, unless someone has any objections.
 
We should do a ([meta-tag:review], ha-ha-ha)
 
too much meta here...
 
(A review of our meta-tags, that is. Not a new tag on meta. In case you didn't get it)
 
8:17 PM
I think of these tags as a way of organizing our questions. So we have language tags (, , ...), undeniably helpful. Then we have the technology tags (, , etc.), also helpful and a welcome clarification.
then we have all others.
what's the use of ?
it categorizes the project the code is written for. it's saying "if you want to review source code for a game, this question has that"
 
^yup
 
same as : if you want to review code that deals with multiple threads, this question has that.
 
0
Q: Compare string with wildcard string

ub3rst4rI have the following function to compare a string with a wildcard string (containing ? and *), as C# doesn't seem to have a builtin function to do it. /// <summary> /// Compares wildcard to string /// </summary> /// <param name="WildString">String to compare</param> /// <par...

 
@Mat'sMug We should tag our tags with tags!
 
there, what's the use of and here? ^^
introduce tag labels, perhaps...
drifting...
 
8:22 PM
I guess a tag for questions with obvious bad code is out as well...
 
synonym of , perhaps.
 
For the record, I approve of , , . I'm not totally sure of and but they're OK for now I think.
 
is another meta-tag
 
And I'm still surprised no-one has starred my tag-our-tags message!
 
and describe the code being reviewed, some of the OP's concerns
 
8:23 PM
You writing these down @Mat'sMug?
 
@Mat'sMug I kinda don't like this one as well.
 
like meta-tags do
@ckuhn203 nope. are you?
 
@Jamal Agreed.
 
Any takers on writing the Meta post?
 
I'm outta here in 5 minutes, won't ;)
 
8:24 PM
@Mat'sMug Jotting down the meta tags we've mentioned.
 
Any takers on getting something to eat and then hopefully go to bed on time? Me me me!
So unfortunately I won't write the meta post this time.
 
I'll start writing it, then. Perhaps we can have a separate answer for each tags, with discussions to follow.
 
Here's the tags we've mentioned in the discussion.
Definately meta
code-smell
refactoring
clean-code
beginner
reinventing-the-wheel
Maybe Meta
performance
optimization
readability
 
I bookmarked a [meta tags] conversation
then again, where does fit?
is a meta-tag as well?
(if we burn , do we need a tag?)
2
 
Actually, I'll put these tags in the question, and make it CW.
 
8:29 PM

meta tags

44 mins ago, 39 minutes total – 57 messages, 6 users, 4 stars

Bookmarked 3 mins ago by Mat's Mug

off-by-one:
9
Q: Parsing CSV to specific format

user3780004I've written this code to read CSV files written to a specific format. I would like to gather some feedback on where it could be improved. I'm trying to get into the test driven development ideology so any way I could make the code play better with unit tests would be of particular interest to me...

 
@Mat'sMug If we can get a if we burn , I say BURN!
 
later @all!
still no Simon's on my wall! :)
nice leap you pulled in a couple days though
off-by-one:
9
A: Analyzing Minesweeper Probabilities

VoiceOfUnreasonGroupValues GroupValues doesn't seem to serve much of a purpose beyond what you get from Map; it adds no functionality beyond an unused field. In practice, all I think it is achieving is obscuring what is actually going on. FieldGroup That you are extending ArrayList, rather than composing wi...

I'm giving it the bounty.
(next 2K user?)
 
@Mat'sMug If a miracle happens, I could swipe that title from him :D
 
8:48 PM
hi
 
Is there a way to have place a <script> tag in a post?
The HTML tag, not an actual running script
 
0
Q: Should we do something about our meta tags?

JamalWe have a decent selection of language and technology tags, but we also have many meta tags, such as refactoring. A meta tag, at least on here, specifies the OP's request(s) in a review, and not much else. It could especially become problematic if the OP has many requests and tries to apply as ...

 
Hey @palacsint
 
9:06 PM
1
Q: Should we do something about our meta tags?

JamalWe have a decent selection of language and technology tags, but we also have many meta tags, such as refactoring. A meta tag, at least on here, specifies the OP's request(s) in a review, and not much else. It could especially become problematic if the OP has many requests and tries to apply as ...

 
I need to get to a thousand rep, can someone show some love?
Hey I've seen this operator: -> in some scripts (e.g., PHP) can anyone tell me what it means?
 
Different languages, different things.
 
@Phrancis As in $object->callMethod()?
 
You want the PHP answer?
 
Sure
$query = $this->link->query( $query ); another example I just saw
 
9:20 PM
^^^ see the "Object Operator"
> Within class methods non-static properties may be accessed by using -> (Object Operator): $this->property (where property is the name of the property). Static properties are accessed by using the :: (Double Colon): self::$property. See Static Keyword for more information on the difference between static and non-static properties.
14
Q: where we use object operator "->" in php

nectarwhat are the diff ways where we can use object operatos -> in php

 
+190 today, not far behind the mug.
 
Thanks @rolfl
 
I'll say good night for now
 
Night Simon.
 
Bye @SimonAndréForsberg
Would posting some XML code for a real-world SSRS template for SQL scripts a decent topic to post for CR?
 
9:29 PM
Just ordered the oculus DK2!
 
0
Q: Optimizing Laravel Eloquent Multiple Joins

azngunit81The following is a readable SQL to Eloquent that I have created that WORKS. The down side is that it looks more like a 1:1 with SQL and I dont think i'm using the full potential of Eloquent. I thought of using Scope queries to shorten it - but for some reasons the selectRaw prevents it (due to mu...

 
9:57 PM
woof
 
0
Q: Stack with "getMiddle" and "deleteMiddle" operation

JavaDeveloperLooking for code review, optimizations and best practices. public class FindMiddleStack<T> { private Node<T> top; private Node<T> middle; private int size = 0; private static class Node<T> { Node<T> left; T item; Node<T> right; Node(Node<T> left...

 
TTQW
 
0
Q: Optimize a Date and Timespan function

OneFineDayI have a working function that may be optimizable. Currently processing 4 objects gives me 0.0459822 for the elapsed time in seconds - used for testing purposes. Once implemented into the app I will be checking > 1000 objects at a time. The format of the fd.dataTime and the other TimeSpans are ...

 
10:18 PM
0
Q: Stack with 'getMinimum' operation

JavaDeveloperDesign a Data Structure SpecialStack that supports all the stack operations like push(), pop(), isEmpty(), isFull() and an additional operation getMin() which should return minimum element from the SpecialStack. All these operations of SpecialStack must be O(1). To implement SpecialStack, you sho...

 
10:39 PM
@lokiastari Got a sec?
 
hey all
 
hi!
 
Hey, anyone pretty decent with regex in c#?
 
I use Expresso, works very well
 
That's like asking if a bride looks good wearing hemp sacks.
 
10:46 PM
or is that cheating?
 
huh
 
A canine of many words.
 
11:06 PM
I guess it's cheating then
regarding the meta-tag discussion, do tag badges carry any weight in an eventual decision? I find so-called meta-tag badges can tell us a lot about how much of a generalist a reviewer really is. would burning meta-tags hurt the site's ?
 
@Mat'sMug Luckily, no one has the tag badge for , though Palacsint is only one answer away. :P
...but yes, others will be revoked, if they get burninated.
 
what I mean, is that yeah it's nice to be a , or guy, but the meta-tags bring things like "I'm more into and ", or , and - these tags tell us who we are and where we stand, as reviewers.
 
I've suggested master ← synonym . Yea/nay?
 
From a Java person's perspective, yuck.
but, I can see the merits.
also, why not Dictionary?
 
How about renaming both to [hash] or [hashing]?
 
11:16 PM
no, that's just a sub-part of it.
 
[hashing] would be misused
 
Maybe too.
 
@Mat'sMug I don't know about misused (exactly), but hashing is used for a number of mostly unrelated operations. Hashing a password has little do a hash table, even though the hashing involved is at least theoretically somewhat similar.
 
riiight. right.
 
I've also seen misused in the ordinary list-of-words sense.
 
11:24 PM
@Mat'sMug This could also suggest that not all meta tags need to go. We may just get rid of a few, such as and . I don't think a tag badge for either of them would say a lot.
 
true. I think the redundant ones can burn. , and .
 
Once the community has decided, we will have SE burn the necessary tags, then the post will be updated. Trogdor is gonna have one helluva feast!
 
@200_success Almost any name you choose will be misunderstood by some and misused by others. Names for a hash table in wide use include "hash", "array", "associative array", "unordered_[multi](set|map)", "hash_[multi](set|map)", and Dictionary.
 
@JerryCoffin And then there's . I'm still not entirely done cleaning that up.
 
Envy:
4
A: Frequently asked questions about tagging on MathOverflow

Ricardo AndradeHere are some comments to start off on question 3. Feel free to edit. What are top level tags, and why should I try to use them? The top level tags are tags like nt.number-theory and at.algebraic-topology which begin with a two letter code. They roughly follow their arXiv counterparts, from whi...

 
11:37 PM
@200_success I'm pretty sure that's a synonym they use on SO. I'd stay away from [hash] and [hashing] because that's likely to be confused with
 
@Jamal ...and you probably never will be either. It has gotten a lot better though. Thanks...
 
@JerryCoffin I have removed the tag from the mathematical vector questions, but I'm not looking at others that can use the tag. However, I'm not just tagging those with a simple use of a vector.
 
@Jamal I believe every C++ question that mentions std::vector (or for which an answer might reasonably mention std::vector) should be . Unless I already have a gold badge, of course--in that case, you can try to use it more reasonably. :-)
 
@JerryCoffin Perhaps, but that'd be even more retagging. Now, if there was a way to just retag questions without bumping the question, then I would be okay with it.
 
Yup, re-checking, I don't have a badge, so obviously that badge should be slapped on pretty much every C++ question (until I get a badge).
 
@Jamal Bump all the questions!
2
 
lol
1
Seduction (For Men)

Proposed Q&A site for experts, such as pick up artists, and those interested in the theory and practical application of the art of seducing women.

Currently in definition.

 
The only problem is that the types of people who would visit that site would be incapable of giving answers
 
lol
 
I'm guessing will be most popular.
 
11:55 PM
> Currently in definition.
Let's figure out what it means to Seduce women.
 
"Does 'no' really mean 'no'?" ..you gotta be kidding me
 
Ihm, right.
 
> I can't even look at this question without wanting to throw up. – Ashley Nunn
Next up: Seduction (For Women)
 

« first day (418 days earlier)      last day (3598 days later) »