326 reputation
16
bio website skiinfo.com
location Norway
age
visits member for 3 years, 8 months
seen yesterday

Feb
2
comment Should unit-tests be entirely self-contained?
when you writing test, that uses another module, your test isn't unit test, so irelevat for question. To use another module, in unit testing you are using mock object to imitate same behaviour and mock object always return what specification says.
Feb
2
comment Should unit-tests be entirely self-contained?
As I agree that unit test should test one thing (smallest possible code unit), it don't necessary should assume that evey other parts works correctly, moustly because unit test should not have any interaction with other pars (and there goes mocks, as you pointed).
Dec
31
answered Emotional detachment from bad code
Dec
31
comment Emotional detachment from bad code
who say that code can't be too big to clean it (or you always need folow scout rule) obviously didn't workt with big codebase that is written by mixed programmers. When correct fix takes weeks to implement it is rearlly up to developer to decide if he can spend such amount of time (and weeks somtimes is no enough).
Sep
7
comment Is rotating developers on a project a good or bad idea?
first one "Management will get to know , the strength and weakness of particular developer." is actually opposite, because it's much easier to hide your weaknesses when you are moving from one place to another, there's always more people/software to blame, why it was late, buggy, not done.
Sep
7
answered Is rotating developers on a project a good or bad idea?
Jul
29
comment The Relative Cost Efficiency of (Acceptance) Test Driven Development
"Yes, you need to unit test every method." and "Unit tests are not for those." are a bit opposite, aren't they? And if we don't need to unit testing database access, does that means there cannot be errors (or just there is no way how to test that?).
Jul
29
comment Distance calculation and data normalization
"The Google Distance Matrix API is a service that provides travel distance and time for a matrix of origins and destinations." therefore distance(zip1, zip2) not necessary equals distance(zip2, zip1), because they would be always equal if you always can get back from zip2 to zip1 in same way as from zip1 to zip2, but that's not true (for example if address is in on way street you will need to travel in different way)
Jul
29
comment The Relative Cost Efficiency of (Acceptance) Test Driven Development
so you say that if I write unit test my code will be completely tested and if all test pass, that of course mean that software is bug free (or at least better). So I just need test every method of my software e.g. "function testSqr() { int a = 3; assertTrue(mySqr(a) == 9); } function mySqr(int a) {return 9;}"
Jul
26
comment How to deal with requirements and use cases in this kind of situation?
"the system must" is not necessary implementation detail, it's usually function that user needs (with high priority). If user say that system must allow to select folder where to store files, it just say that system need to have way to select folder, but not how this should be implemented.
Jul
24
comment How to format this line according to PEP 8?
if you are so picky about code maintenance (aka orig code for compiler), then you should rename "webResponse" variable, as it not clear from name, what this variable is used for.
Jul
22
comment How to save during real-time collaboration
if you already sending changes, and want to leave same behavior like it is now, you can ask one of clients send last view to new client or you can have one virtual client on server, who gets all changes and when new client joins sends latest view to it.
Jul
22
comment Strategy for keeping secret info such as API keys out of source control?
so then you are verifying every commit and looking for every code line and every character, what they write? Because else, you know, they can put their own API key and ignore any config value.
Jul
22
comment Strategy for keeping secret info such as API keys out of source control?
main question would be, why you don't trust your developers? If you can't trues so simple stuff as twiter key, how can you allow them to commit any code, that works with users/databases etc?
Jul
22
comment Do you care if the person you're interviewing owns or contributes to Open Source projects?
please, can you expand a bit about how it will makes you able to work independently, how it makes you more comfortable with large/spread out teams, how it makes your more familiar with modern technologies.
Jul
17
comment User Authentication & Session Management
authentication and authorization isn't same.
Jul
15
comment Good coding problem/s to use in an interview
last 10 years I worked for companies that do not allow to publish on any public services, code I wrote (because it's company code and it's commercial). I wrote some programs for myself, but I don't see any reason why I should put it to github (or some similar service). So if you would ask me to show some code from my previous work - there's is none I can show. And IMO it's wrong, if you will pick 5 years old code and will assume that is code I would write today.. Of course there's probably a bright side of that - I wont work in such place.
Jul
15
comment Why do people disable JavaScript?
if you think that facebook is static page, then you shouldn't comment on this question.
May
24
answered What is the preferred access modifier for instance variables of a data transfer object?
May
24
comment Agile MVP (Most Valuable Player/Programmer)
if all team vote for one single person, then Ok. Else, it's like suggested, except that you have pressure to vote "correctly".