1,725 reputation
58
bio website juliahayward.com
location St Neots, United Kingdom
age
visits member for 3 years, 1 month
seen Jan 28 at 16:23

Jan
29
awarded  Good Answer
Jan
28
awarded  Nice Answer
Jan
28
comment In TDD, if I write a test case that passes without modifying production code, what does that mean?
"If you followed Martin's examples fully (and he doesn't necessarily suggest that you do), to make add(2,3) pass, you would literally return 5. Hard-coded." - this is the bit of strict TDD that has always grated with me, the idea that you write code that you know is wrong in the expectation of a future test coming along and proving it. What if that future test is never written, for some reason, and colleagues assume "all-tests-green" implies "all-code-correct"?
Jan
28
comment Leaving intentional bugs in code for testers to find
+1: "all employees should be working together against the company's competitors instead of each other." Sadly an awful lot of management doesn't get this idea.
Jan
28
answered Leaving intentional bugs in code for testers to find
Jan
27
comment Why does this algorithm work in O(n m)?
We need a bit more context to know what m is, and what assumptions have been made about nxt[a].size(). I'm guessing that the author has assumed that nxt[a] is of roughly constant size for all a.
Jan
20
comment One of my team members committed SQL injection-vulnerable code; should I report it to the manager?
Certainly you should not mention it to management unless you're also prepared to self-report and fall on your sword for any serious bugs that have passed your peer review at any point in the past.
Jan
14
comment How should I represent an enumerated type in a relational database?
This. For extra credit - if the dev team have defined the integers in an Java/C# enum or something similar, you can write a test that checks whether the code enum definition has diverged from the lookup table. There's always a danger that adding an element out of sequence can knock things out of sync and you don't realise until a live data record looks wrong.
Jan
13
comment Is “White-Board-Coding” inappropriate during interviews?
You may not have to have someone on site, but at least you should be on the phone to the candidate talking through their coding exercise, whatever you use. Just handing out a question and waiting for a zip file to be sent in still has all the risks of impersonation; as an extreme example I did the test for FooCorp one time, then just out of interest googled "FooCorp coding test" afterwards - and found someone had published a pretty good solution.
Jan
13
comment Is “White-Board-Coding” inappropriate during interviews?
"it should already have been established/determined that the interviewee can program" - how? Either you have a pre-interview, in which case the OP's question becomes whether whiteboard coding is appropriate in a pre-interview, or you effectively take the candidate's word for it, which is inviting disaster. Recruiters and CVs can (and do) lie, blogs and github repos can be plagiarised.
Jan
13
comment Is “White-Board-Coding” inappropriate during interviews?
@Ptolemy I was gobsmacked recently, my current employers introduced a coding test for the first time and we thought our question would be a trivial task for anyone with a year's SQL experience - a one-liner if done right. We even let the candidates use Google and StackOverflow unmonitored if they wanted. But, half couldn't do a simple GROUP BY and one didn't even know where to start looking. I blame all the recruiters who big-up their candidates to ridiculous degrees for giving both sides false expectations...
Jan
13
answered How to prove that this while loop calculates n^2
Jan
9
answered Are NoSQL databases the best choice for more efficiently querying large amounts of data?
Jan
6
comment Updating an Entity through a Service
What about a single updateBank() setter in Service, to which you pass an object which is a composite of all the Bank properties that you are allowed to update this way, and no other properties?
Jan
2
comment How to abbreviate variable names
@Duncan I'd quite happily get rid of anything that doesn't actually convey information in return for not abbreviating the rest. "thePoint" is a pet hate of mine in that "the" contributes precisely nothing - but it can still be made worse by abbreviating to "thePt" rather than "point" or "p".
Dec
19
comment Log to file or to database table?
The OP says it's for monthly billing - so I'd have expected applying the billing logic to a db would be far easier than flat files?
Dec
19
comment Log to file or to database table?
If you're using a well-known package like log4net - and it would probably be a good idea rather than rolling your own - it should be just a matter of flipping configuration to do either. @tom - separation is nice, but why not simply have two databases, one for live data and one for archiving logs etc.?
Dec
18
comment Amount of man hours to write a social network
Throwing expensive hardware at the problem has to wait until you either have wealthy backers or have already begun monetizing it... especially if you have family responsibilities with your own money
Dec
18
awarded  Good Answer
Dec
17
awarded  Nice Answer