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

2:00 PM
o____o
 
believe it or not, in most cases the bottom snippet does the same thing as the upper snippet. In the other cases the bottom snippet does what the upper snippet should have been doing.
 
And you're telling us that people actually got paid to write that?
 
yes. and to debug that, too.
 
@Mat'sMug That sounds like something for PCG...
 
the best part was when the woman in charge of pricing told me "if there's an insert in the door, we don't charge the slab; if there's 2 inserts in the door, we charge the first insert full price and then there's an "additional unit" price for the 2nd one"... I gave up trying to find that logic in the original code. I hope it's crystal-clear in the code I'm leaving behind...
 
2:11 PM
0
Q: Bad style in this Prolog program

user3585425So my Prolog is a bit rusty, and I'm trying to generate all paths of a given length efficiently in a graph. This code efficiently generates all paths of length 9 in a 3x3 grid, but it's really not how it's supposed to be done in Prolog. How can I compress the chain predicate so that it does the...

0
Q: Best practice to declare an array in JavaScript if we know the maximum array size

RameezFor example i know the maximum array size is 6. So what is the best practice to declare an array? var arr = [6]; or var arr = []; My understanding is, In the first case memory location will be allocated at initialization time itself and so while running it will just assign the data to the ar...

 
well, ...as clear as it could get without rewriting the entire pricing module, that is.
just realized I boo-boo'ed, that code actually identifies my current employer. Oh well. @Marc-Andre you know what job posting to ignore in the near future ;)
2
 
@CaptainObvious Off-topic, but don't know what to comment
@skiwi Have you used the JavaFX SceneBuilder, or is that thing deprecated?
 
@SimonAndréForsberg That thing is partially awesome!
It's good for mockiong and also actual deisng
 
@skiwi partially?
 
(SceneBuilder 2.0 btw)
However is it hard to get percentage widths etc in there sometimes
You may ned to edit the fxml file as well
 
2:17 PM
@Mat'sMug Thx for the tip!
;)
 
Welcome to CR! Please see our help center - we review real working code, what you have here is a question about best practices for declaring an array, not a code review request. Unfortunately asking "what is the best practice regarding X" is explicitly off-topic on this site. Cheers! — Mat's Mug 6 secs ago
 
Thanks, Mug
 
@SimonAndréForsberg Is it example code, or just horrible naming. I can't seem to decide.
 
@Mat'sMug Anyway if I would change my job it would be for a nice web developpement business nothing part of a bigger company.
 
@ckuhn203 from the help center: Best practices in general (that is, it's okay to ask "Does this code follow common best practices?", but not "What is the best practice regarding X?")
 
2:22 PM
Ahhh. Yeah. I was looking at the code.
 
I'm on my way to 3k ! I'm preparing for graduation!
5
 
2:38 PM
@Marc-Andre then you should get going into direction 5-10k at least ;)
 
@Vogel612 Well the 5k privilege is meh, but yeah 10k ! But I'm not sure I have the rythme for achieving 10k before graduation (in fact I hope :P)
 
@Marc-Andre well I can protect questions... and I'd like to keep it that way...
but OTOH I'd need 20k not to lose any privileges upon graduation T.T
 
@Marc-Andre Thanks for the syntax edit.
 
@200_success No problem!
 
Hmmm. I need to work on racking up some rep to get above 3k.
 
2:42 PM
@Vogel612 Well you should work for your 15k :P
 
@Marc-Andre let's start aiming for 5k, okay?
 
@Vogel612 Deal !
 
you wanna start a race now??
you're only 1k behind ahem
 
I need to learn JAVA so I can answer more questions. =P
 
@ckuhn203 tempted to flag as offensive and request vacuuming / editing...
 
2:45 PM
@Donald.McLean Any interest in answering this?
3
Q: Satellite orbit simulation in Matlab using Runge Kutta 4

tanphamI have a satellite orbit simulation in Matlab (Using Runge Kutta 4). It seems ugly and I don't know how to fix it. fx.m file: function v = fx(t,x,vx) v = vx; fy.m file: function v = fy(t,y,vy) v = vy; gx.m file: function v = gx(t,x,y,vx,vy) global G M; v = -G*M*(x/((x^2+y^2)^(3/2))); g...

 
@ckuhn203 also, I have a 9 upvotes scala answer, even though I haven't written a single line of scala to be executed yet...
 
I have answered a few questions for languages I don't know very well.
But there has to be a pretty obvious issue for me to feel comfortable about it @Vogel612.
 
@ckuhn203 dito..
 
@Vogel612 Well yeah we could! I have a it of and advantage so let's say you must reach 5k and I must reach 3857 !
 
meh. I'd need to be able to spend more time on CR for a serious race..
probably the same with you..
also, let's say 4k then It's a round number ;)
 
2:49 PM
Well a race would boost my motivation to partipate more!
 
that's the spirit!
 
okay then let's get this started ;)
 
Just found this. I don't know who wrote it, but the man deserves a beer.
 
_GN_'The beginning of the Holy War between the Arrays and the if Statements with one loop to rule them all. It should change
_GN_' ALL THE VALUES For any given fixture.  If there is ever an instance where a fixture doesn't match what is hard coded as the possible
_GN_'values; it will be in the error Log those values may need to be changed in the future AND are marked respectively
I can't wait to re-write all this junk.
 
2:52 PM
I put it on meta.
0
Q: I spent a couple of votes. Why am I not showing up in the "voters" page?

Mat's MugIn the Users section there's a page that shows the top voters for the week. I asked a question and voted on the best answers I got, but I'm not showing up on the voters page. Why is that? Is this a bug or just a cache lag?

(selfie answer)
should be wikified I think
this could get more attention:
1
A: Snake game with canvas element code

SyjinSome thoughts on your general code style (some points might depend on personal preference): I suggest splitting HTML/CSS/JS into different files Your use of indention and whitespaces is inconsistent function launchFullscreen(element) { if(element.requestFullscreen) { element.requestFulls...

 
2
Q: I spent a couple of votes. Why am I not showing up in the "voters" page?

Mat's MugIn the Users section there's a page that shows the top voters for the week. I asked a question and voted on the best answers I got, but I'm not showing up on the voters page. Why is that? Is this a bug or just a cache lag?

 
@Vogel612 deal!
 
@Marc-Andre I am already getting going.
You also want to have your go at this?
6
Q: Console component in JavaFX

skiwiI would like a review on my Console class I made in JavaFX 8. It features the following: A text field where you can enter input, the input gets copied into the text area. A text area where you can observe output and see the input. When you press enter, you send the message. When you press arrow...

 
I'll check later need to work too :P
 
0
Q: Divide two numbers

iGrayIf fractional part of number greater than 0.6 round up, if less - round down. I need a feedback about my code. public static double DivisionMethod(double a, double b) { double div = a / b; double temp = Math.Floor(div); double fractional = div - temp; if (fractional > 0....

 
3:05 PM
@200_success I don't know any MatLab, and orbital mechanics are pretty much beyond me.
@Vogel612 I'll let you in on a secret. Scala is just a much better version of Java. Much of the same syntax, many of the same constructs, much of the same body of best practices. Well, except for those places where the "much better" kicks in.
 
@Donald.McLean didn't have the impression.. In fact scala looks quite confusing to me :(
 
guys what you think it's better to have a class named ActivityUtils where add all some util methods of Activity class or put them directly in Activity class?
 
@Vogel612 Scala written by an expert can get somewhat terse. It really only gets confusing if they're using automatic type conversions though.
 
@Donald.McLean I still don't like you can do: val name:Type = [...]
 
@Vogel612 What's wrong with that?
 
3:16 PM
@MarcoAcierno depends on the methods
 
@Donald.McLean I prefer to know the type before I know the name, also I hate val, var and the like.
they may have their uses, but ... I despise them...
it's like.. the developer didn't bother to clear out, what exactly it is IMO.
 
@SimonAndréForsberg uhm since this will be a method which will return a list of instances of Activity i feel like an activityhelper class would be better
 
i love RoundedDivision method name lol
 
hey @MarcoAcierno! yeah.. no clue what I'd actually call that really. I don't like RoundedDivision either but sure is better than DivisionMethod. DivideAndRound would be an option, but I don't like the sound of it. Ideas anyone?
 
3:25 PM
0
Q: Python UDP-server and JSON parser script

dgratI am a python beginner. I wrote a script which should run on a raspberry PI as an UDP server. It is reading and writing to a serial device and has to process and forward JSON strings too. Because there is relatively much functionality included and I don't like cross compiling, I was too lazy to ...

 
Morning all
 
monking!
 
@Mat'sMug rounded remember the Math.round and division remember the division.. well, why it's so bad?
 
interesting answer here:
1
A: What are the best practices with multithreading in C#?

Eric LippertRather than reviewing your specific code -- which at first glance seems very, very buggy -- let me answer your question directly: What are the best practices with multithreading in C#? Don't. Multithreading is a bad idea. Programs are hard enough to understand already with a single point o...

 
why you people who code in C# use var keyword. List<String, Map<String, int>> is so elegant.
 
3:28 PM
@MarcoAcierno I don't know, I think it's because the And in the name implies the method is doing two things.
@MarcoAcierno you're kidding right? ;)
 
@Mat'sMug no really the code seems so elegant
@Mat'sMug (yes with my example after 5 times to write it you will use var yes.)
@Mat'sMug but it's so elegant sometimes
 
List does not take two types...
 
yeah i know but i writted just for example to show how generics looks elegant. i didn't know how to edit lol
 
Within two minutes, you can just use the up=arrow to scroll through, and edit your (editable) chat messages.
 
@Mat'sMug lol dat ranting..
 
3:33 PM
@rolfl thanks
 
@Vogel612 point ;)
 
@Vogel612 val is the same thing as "final" just with fewer letters.
 
0
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...

 
Anyone know a bit about SSRS?
 
@Vogel612 Nice review
I believe this class did get refactored in the current version of the project... I think I dropped support for arrow up/down, as I didn't feel like doing it :P
Actually, the whole class is gone, but incorporated now in a different class
 
3:45 PM
@skiwi thanks for the flowers ;)
The ConsoleController??
 
I figured that rolling out your own classes is not the way to go with JavaFX, unless you intend to make it a library component
If it's for one time use, then it's better to not abstract from it
Well yea... still thinking
@Vogel612 Mainly that, though there are also two things mixed in there
 
yea you got a lot of game in that Controller...
 
@Vogel612 I guess, with all the different languages I've used in my career, I've become indifferent to the vagaries of syntax. What it does is more important.
 
PlayerConfiguration playerConfiguration = new PlayerConfigurationBuilder()./*...*/
@Donald.McLean you did it. now I am jealous..
 
0
Q: update first and last item in List<T>

DonniewikoI am trying to do the following. I have a list of Custom objects: public class TestObject { public int Id { get; set; } public string Name { get; set; } public bool First { get; set; } public bool Last { get; set; } } I want to set the property First and Last to true at the first and l...

 
3:49 PM
well, better get back to work... need to finish that friggin "Nutzwertanalyse" until tomorrow...
 
nutz?
 
use or even better usefulness...
in fact it's nothing more than an excel-table where you compare stuff with different weightings...
 
Welcome to CR, and congratulations, you now have enough reputation score to upvote! Feel free to spend as many as you like, we need more voters! :) — Mat's Mug 13 secs ago
@SimonAndréForsberg clearly example code though.
 
4:06 PM
@Mat'sMug I considered it meaty enough to be reviewed
 
commented
If doing so wouldn't invalidate existing answers, it would probably be best to edit your question so as to include your actual, real code; you'd be surprised with what can come out of a peer review! :) — Mat's Mug 10 secs ago
 
Not as an extensive review as one could have written if there was more context, I'm
 
should we have a tag?
I feel like creating it for this one:
2
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...

> 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.
like, is one thing, is another.
and sure relates to , but...
thoughts?
 
Well, look at the entertaining revision history for the tags already:
 
oops. I should have looked at the suggested edits review queue first...
(it didn't say "1 edit pending" though)
 
4:12 PM
It was just a mess of concurrent access.
noone's fault.
 
yup
OP could use a 3rd upvote though
 
@Mat'sMug I think It'd be okay, but it's a meta-tag... and meta-tags don't really help searchability..
 
Eric Lippert will surely have an opinion that you should only have one user at a time on Stack Exchange
 
you're the downvoter?
 
Damn right.... ;-) It';s not a code review.
 
4:13 PM
I don't understand the downvote on this answer. Awesome post, with invaluable insight. — Mat's Mug 11 mins ago
several points directly address OP's code
 
He should have posted that rant to his blog.
 
@Mat'sMug me fix!
 
@Mat'sMug - OK, so, serious question.
is C# threading really that bad? Is it slow, buggy, and 'broken'?
That the standard advice is "don't do it"?
 
Eric's advice is "don't do it if you have no clue what you're doing, which is clearly the case here".
and I tend to agree
 
> Do you have an encyclopaedic knowledge of the differences between weak and strong memory models? No? Then don't write multithreaded programs!
 
4:18 PM
followed by
> Oh, so you want to do multithreaded programming anyways. In that case use the highest level of abstraction available. Programming against threads directly means writing programs about workers when you could be writing programs about jobs. Remember, workers are just means to an end; what you really want to get done are the jobs. Use the Task Parallel Library: tasks are jobs, threads are workers. Let the TPL figure out for you how to make efficient use of workers.
basically: don't code against threads, unless you really know what you're doing.
TPL abstracts away a lot of boilerplate-level stuff that I don't even understand. I'd follow Eric's advice and use the higher-level abstractions if I need to write MT code.
 
Ahh, so C# has two different models for threading..... one is a raw thread model, the other is like Java's Runnable (job) model.
You create a unit of work, and you ask Java to run it on a thread.
 
System.Threading has been around since .net 1.1 (1.0 probably). System.Threading.Tasks showed up in .net 4.0 IIRC
 
So, when he says 'don't do multithreading', what he is actually trying to say is: 'don't use that raw, old model for multithreading, use the newer task-based one'.
 
^^^that.
 
yeah. use the metal-level thread stuff only if you know all the implications.
 
4:23 PM
metal-level?
 
OK, then my downvote is more than justified.
 
wtf
@Vogel612 boiler-plate. whatever.
 
his answer is overly complicated, it's a rant, and it is self-contradictory
 
in other words: you don't like the tone. fine ;)
 
@rolfl go tell him then...
 
4:24 PM
lol
 
The question (he quotes), is:
> What are the best practices with multithreading in C#?
 
which, taken as-is, is blatantly off-topic on CR BTW.
 
His answer, immediately after, is:
> Don't. Multithreading is a bad idea.
But, multithreading is a good idea.
That's why you have an 8-core processor.
Just, use it using the best practices, which is different to what the OP is doing.
 
Actors.
 
Ah, the classic Scala answer :)
 
4:27 PM
> If you use Thread.Sleep with an argument other than zero or one in any production code, you are doing something deeply wrong.
I find this comment is actually reviewing OP's code.
 
@Mat'sMug If you use Thread.Sleep with the argument zero, that feels wrong too...
 
yup
hence: you don't pay a worker to sleep, so don't pay a thread to sleep either.
 
Although I don't know why he says "other than zero or one" why would Thread.sleep(1) be reasonable?
 
@SimonAndréForsberg ask him?
oh, done that!
 
@SimonAndréForsberg It is my understanding that Akka can be used from Java.
 
4:31 PM
If you use Thread.Sleep with the argument zero, that feels wrong too... — Simon André Forsberg 1 min ago
Eric: You say "an argument other than zero or one", when/why would Thread.Sleep(1) be OK? — Simon André Forsberg 7 secs ago
 
and promptly answered ....
 
haha in your teeth!
 
That sounds like a IMO bad design of Thread.Sleep... Why not Thread.RelinquishControl() ?
 
public static void RelinquishControl(this Thread thread) { thread.Sleep(0); } - done ;)
 
Here's an interesting Voter query for you, by the way:
 
4:39 PM
I need to downvote more :(
 
Try ID 4318
 
haha
 
@Blindy: Suppose instead you did not spawn a dedicated thread and used await Task.Delay(400) instead. Now the current thread can keep doing work while time passes instead of sitting there asleep. — Eric Lippert 2 mins ago
 
ouch...
 
Huh?
"Visual Studio 2012 introduces a simplified approach, async programming, that leverages asynchronous support in the .NET Framework 4.5 and the Windows Runtime. The compiler does the difficult work that the developer used to do, and your application retains a logical structure that resembles synchronous code. As a result, you get all the advantages of asynchronous programming with a fraction of the effort."
 
4:41 PM
Sounds like C# threads work different from Java threads. What Eric is describing sounds like an ExecutorService thread system somehow
 
Hmm. It turns out that if you don't pay attention and write something stupid, it won't work. Astounding!
4
 
How does an IDE introduce a new language construct?
 
@skiwi it's the .net 4.5 CLR that does it, not the IDE ;)
 
@skiwi - it's a microsoft thing, they integrate things.... so what you think of as visual studio, is really the entire MS dev platform including OS support.
Like, internet explorer is not just the browser.
 
lol not really. it's just that Visual Studio version prior to 2012 don't support CLR 4.5, that's all.
 
4:43 PM
I don't get it, why doesn't people vote? What's stopping them?
 
@SimonAndréForsberg I would ask what incentive is there to vote !
 
@Marc-Andre how about: this site might still be around next time you need code peer reviewed?
 
@Donald.McLean I believe this one's for you: codereview.stackexchange.com/questions/55312/…
 
@Mat'sMug Well I know, but does the normal user of CR know that ! Not sure ;)
 
@Marc-Andre How about the good feeling that you get when you give away 10 imaginary internet points?
 
4:45 PM
granted it's moot if we're not threatened of shutting down. have we reached the point where graduation has more benefits than beta status?
 
@Mat'sMug - sorry to harp on this subject, but, isn't the OP using the Task mechanism anyway?
9
Q: What are the best practices with multithreading in C#?

JonathanPeelFor a while I have been interested in seeing if some tasks work well when split across multiple threads. On the one project I have been busy with I have been creating a lot of small utility apps, to do single tasks for me, so this morning while modifying one I thought I would give it a try. Wha...

He's creating an Action, scheduling it in a Task.
 
System.Threading.Thread.Sleep(10); isn't TPL.
 
@Mat'sMug Should we use more exploding bear traps so that SE starts threatening us?
 
@Mat'sMug That's just 'test' code so that he's not flooding the TPL with all his tasks starting at the same time.
 
@SimonAndréForsberg that's not exactly what "keep doing what you're doing" stands for in my mind ;)
 
4:47 PM
Then, he uses another Thread.sleep to 'poll' the success status of the Tasks.
 
which is nutz
 
btw. Isn't C# becoming a monstrous languages as well? (Not saying it's a bad thing), but also they keep adding new stuff, like async
It's an argument you hear sometimes against Java
 
No, it's not nuts. It just may not be the best practice. It is certainly the most common way to do it in many languages.
 
async/await is awesome... I just need to start using it.
 
Basically, the guy's post is 99% perfect, with a single thread that starts multiple other jobs, and then waits for them to finish. Classic pattern for parallel processing. He just uses the wrong structure for the polling.
 
4:49 PM
looks like you're about to put up your own answer on there?
 
@rolfl Sounds like you should consider writing an answer to it. I know you have plenty of multithreading experience.
 
No, not going any closer than what I have done already.
 
@rolfl C# is dangerous, true.
 
By the sounds of it, C# Thread.sleep is nothing like Java's Thread.sleep.
In Java, the sleep removes the thread from the scheuler, so other threads are not impeded.
it is a zero-cost operation.
Sure, there's a better way to do it, but, for something that runs multiple parallel tasks on a 'coarse' scale, I would understand someone doing it this way.
hell, unix folk use 'tail' all the time, and that refreshes once each second. No problem.
Surprise:
@Blindy: That's a good point. By dedicating the thread to do one logical job, by specifying that it communicates with other threads by clearly-defined mechanisms, and by restricting how much it touches shared memory to a specific, thread-safe object, you are really treating the thread as a lightweight process, which is a good practice. In a world without async/await, that's how I likely would have done it too. I'll soften my advice somewhat. — Eric Lippert 1 min ago
 
0
Q: The Love-Letter Mystery

MhmdProblem Statement James got hold of a love letter that his friend Harry has written for his girlfriend. Being the prankster that James is, he decides to meddle with it. He changes all the words in the letter into palindromes. While modifying the letters of the word, he follows 2 rules: (a) He ...

 
4:54 PM
^^ I smell a hot-question...
2
@rolfl bunch of new tags lately, not sure they're warranted. I skipped the wiki edit reviews.
incoming meta
 
@Mat'sMug smells like burnt love-letters...
 
@SimonAndréForsberg Blech.
 
TTQW, Laters ;)
 
@Mat'sMug Thanks, I saw that in parallel. I have rejected the connection edits, and removed the tag from the question.
 
Bye @Vogel612
 
4:59 PM
later @Vogel612
 
later @Vogel612
 
0
Q: Should we have a [testability] tag?

Mat's MugI came across this recent question, originally only tagged with c#. OP is particularly interested in how unit-test -friendly his code is, and what could be done to improve on that aspect. The unit-testing tag doesn't seem appropriate in this case, since my understanding of that tag's applicabil...

@SimonAndréForsberg 11 mugs on the wall!
 
@Donald.McLean That sounds like a good review.... (almost)
 
heh, "troll answer" is now off-by-one!
This was bugging me too. I checked all the answers first to see if anyone had mentioned it yet. And alas someone did. +1 — Cruncher 44 secs ago
 
0
Q: jQuery - slideDown slideUp - fadeIn fadeOut - ScrollTo

Rico ShaftI want to try and achieve this effect. So I have a website 100% height. In the footer I have two buttons, contact and info. When you click one of the buttons the page should scroll down first then fade in the corresponding content. When the other button is clicked I want to fade the content ou...

 
5:07 PM
@CaptainObvious title edit anyone?
 
Yup
 
Those tiny typo that you search for two whole days what is going wrong : valueof instead of value-of I hate myself right now~
 
BTW that last one is off-topic / no code
nevermind, hammer-closed
 
0
Q: Should we have a [testability] tag?

Mat's MugI came across this recent question, originally only tagged with c#. OP is particularly interested in how unit-test -friendly his code is, and what could be done to improve on that aspect. The unit-testing tag doesn't seem appropriate in this case, since my understanding of that tag's applicabil...

 
aaaand he's asking to change the code to the desired effect and not a review
 
5:13 PM
31 MotW :)
 
@Mat'sMug I was considering it, but I wanted to hear your thoughts about the difference between the two first.
 
my understanding is that questions tagged with contain unit tests to be reviewed - that the review revolves around the tests themselves. is different, it's about the code, and how easy/hard to test it is.
and I like how it sounds like . We don't have enough -ility tags I find ;)
 
I want to agree with you, but the wiki's will need to spell that out. I'm afraid they'll get confused and abused. It's bait for an eventual synonym out of despair.
 
maybe
 
Writing up an answer.
 
5:16 PM
hence the meta post ;)
@ckuhn203 great!
 
@SimonAndréForsberg I wrote and posted an actual review.
2
 
@rolfl MT best-practices is on the hot questions list!
 
@Donald.McLean That's the spirit!
 
I need more votes, so I need to make more answers ! Oh god I should never started the race ! I'm so stressed! And it's for internet points :P
 
5:32 PM
@Marc-Andre that's the spirit! !
3
 
They're not imaginary, they're just intangible. Big difference.
7
 
ooh I like that
 
So do I.
 
5:52 PM
I like my CR intangibles, but, I am confused by my UX Intangibles.
 
I'm trying to figure out how my answer on that Ruby question warranted 3 upvotes. It wasn't that good.
Thanks Santa.
 
Well, I have > 1000 rep on UX, and my contribution there is ..... 3 answers.
3
 
lol. Well ok then.
 
and one of them got only 2 upvotes.
 
I'd blame the hotness of anything door-related on UX.
 
5:56 PM
Must have been some damn good answers.
 
That's the thing, not really, but I have 44, 45, and 2 upvotes on my answers respectively.
My best CR answer scores 49.
 
monking
 
My UX answers were ... flippant.
 
hey @ben
 
Ben
 
5:58 PM
My answer with the most upvotes is on scifi.
 
wassup @Mat'sMug @rolfl
I've been sitting in chat all day, but forgot to monk o_O
2
 
I think pizza form has the most for me.
 
my top CR answer has... 19 votes.
my top SO answer has... 19 votes.
 
Yup. Pizza form has 10.
19 votes on SO is a feat.
Question die within hours over there.
 
My top SO answer has ... a lot (thanks @skiwi)
 
6:00 PM
@ckuhn203 it's a selfie, on top of that!
19
A: Implementing String.Format() in VB6

retailcoderI couldn't find one anywhere, so I made my own: Public PADDING_CHAR As String Public Function StringFormat(format_string As String, ParamArray values()) As String 'VB6 implementation of .net String.Format(), slightly customized. 'Tested with Office 2010 VBA (x64) Dim return_value As St...

 
@rolfl My top SO question has ... a lot (thanks @rolfl)
 
stupid me... my top SO answer now beats my top CR answer! :'(
 
Of course ;-)
It was a good question, and, dare I say it, if you implement the suggested line-wrapping, it will be a great answer ;-)
 
I do have a 42 vote answer aswell ;)
Hey it's 42!
2
 
@rolfl My top SO answer has... even more for some wicked reason.
 
6:05 PM
@rolfl Suggested line-rapping, where? :o
 
In SQL Server is INFORMATION_SCHEMA the default schema for tables, columns, etc.?
 
@Phrancis good question..
 
Yes thank you @Mat'sMug I found my answer
SELECT * FROM Reporting.INFORMATION_SCHEMA.COLUMNS
Should return all columns for all tables and all schemas
 
6:31 PM
Meeting, afc - later!
 
0
Q: Ugly code unit testing with PHPUnit and Doctrine2 (an ORM)

AlexMAI am trying to unit test a small class that I consider part of the "business-logic" layer of my project. It mostly just interact's with Doctrine's entity manager and a couple of entities with a many-to-many association. I'm finding that unit testing it while mocking out its dependencies is just...

 
@Vogel612 and tomorrow I do the same, stopping at noon (maybe earlier). :D
 
@SimonAndréForsberg I'll see your score and raise you a little. Is everybody "all in" now?
 
@JerryCoffin lol, I'm not surprised, you're the SO guru among us :)
 
@SimonAndréForsberg It may take several lifetimes to work off that kharmic burden.
 

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