« first day (569 days earlier)      last day (3441 days later) » 
01:00 - 14:0014:00 - 00:00

1:39 AM
0
Q: Seekable HTTP Range Stream

ReinderienAfter some thought I decided to vote to close http://stackoverflow.com/questions/27085540/seekable-http-range-stream because it's essentially a code review question. I read around for a while and surprisingly didn't find a fitting solution. I need a .NET Stream that internally issues HTTP Range ...

 
2:35 AM
Sometimes an algorithm is found after 2 generations
sometimes it takes 5468
I'd want to consider it a success but I'm not quite convinced
 
 
1 hour later…
3:54 AM
0
Q: Multiples of 3 and 5

pertpoert If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the sum of all the multiples of 3 or 5 below N. My code correct, but I don't know how I can optimize and make that faster N = gets.to_i N.times do ...

 
 
2 hours later…
5:58 AM
Monking @all
 
 
1 hour later…
7:25 AM
monking @all
 
7:42 AM
Monking @chillworld
 
8:35 AM
0
Q: Creating vector of primes using Sieve of Eratosthenes

morbidCodePlease review my Sieve of Eratosthenes implementation. std::vector<int> generate(const int& n) { std::vector<bool> input(n+1, true); for (int i = 2; i <= n; ++i) { for (int j = i+1; j <= n ; ++j) { if (j % i == 0 && input[j] == true) { input[j] = fa...

 
9:28 AM
0
Q: Creating vector of primes using Sieve of Eratosthenes

morbidCodePlease review my Sieve of Eratosthenes implementation. std::vector<int> generate(const int& n) { std::vector<bool> input(n+1, true); for (int i = 2; i * i<= n; ++i) { for (int j = i; i*j <= n ; ++j) { input[i*j] = false; } } std::vector<int> primes{...

 
Morning everybody.
 
9:43 AM
0
Q: Nearest point using 2d-tree, static variable for the closest point so far

Andrey TokarevThis is a problem from a Coursera class: Write a data type to represent a set of points in the unit square (all points have x- and y-coordinates between 0 and 1) using a 2d-tree to support efficient .. nearest neighbor search (find a closest point to a query point). I implemented the class ...

 
@Morwenn Monking
 
Anything new around here? :)
 
9:59 AM
Hi
 
0
Q: Simplify IQueryable Linq to SQL query

Efstathios ChatzikyriakidisBelow I present to you an IQueryable LINQ to SQL query (used with NHibernate). I have tried to simplify this query but I could not do it. I want to run a query for searching information. Options: 1) search on source or target 2) search with match case or not 3) search match exact or not The ...

0
Q: How to find a specific data point in a vector

EvanIn python: if word not in list: list.append(word) I want to replicate a this effect in C++ with a vector. I think a while loop would work but I don't know how to set the parameters to stop when I have the word I want. Anyone know a way to iterate this?

 
@Morwenn aside from my c++ answer? no..
OBTW, you mind doing a quick sanity check against it`?
 
You're trying to harvest rep again :D
Anyway, give me the link :p
 
0
A: Creating vector of primes using Sieve of Eratosthenes

Vogel612Nitpickish stuff: You have no input validation, negative n results in an empty result set. When generating the primes I think using the post-increment would be more obvious for (auto i = 2; i <= n; i++) { I take that you want to benefit from the minimal performance increase, but that's more ...

on that question you just edited, and yes
After all I did bounty 100 rep to the now no more highest voted Zombie on site
because it's not a zombie anymore ;)
 
:p
 
10:09 AM
Hiya @morbidCode
 
Ho is either pre- or post-increment more obvious than the other one?
 
@Morwenn I wonder ;) I personally find post-increment more obvious..
am I contradicting myself again?
 
The only rationale I ever found was "we were taught post-increment first".
But I find them strictly equivalent with regards to style.
 
hmm.. it's something along these lines.. It looks more standard.
I personally prefer post-increment, since the operand is known before the operator when reading..
and that's easier for me to process..
 
Well, post-increment and post-decrement are even the only postfix iterators in many languages (because they exist in C). Even when calling a regular function, the function's name is written before the arguments names.
 
10:14 AM
@Vogel612 haha I just got used to using ++i because c++ examples I searched always do this XD
 
... I don't really think so..
@morbidCode then feel free to disregard that point ;)
calling a method on objects is a postfix operation
 thing.doSomething(with, other, stuff);
 
@Vogel612 nope your review is fine
 
That's true for methods, I forgot that.
 
Operand.operator(arguments);
that's what I mostly do. It's rather seldom that I call methods without object-reference.
and if I do I like to explicitly have this. prepended...
 
@Vogel612 when you say "benefit from the minimal performance increase", do you mean pre-increment is faster?
 
10:17 AM
@Vogel612 Overall it is among things that I would have deemed to be strictly a style issue. It isn't worth mentioning, and other people might advocate ++i instead with equivalent arguments.
@morbidCode Pre-increment might be faster for user-defined types, but it is generally just as fast as post-increment for built-in types.
 
I read on SO there's a minimal performance increase for pre-increment, since post-increment involves maintaining an additional state to assign..
assuming j = i++;
you have j = i; ++i;
or that's how I understood the SO anser.
147
Q: Is there a performance difference between i++ and ++i in C++?

Mark HarrisonWe looked at this answer for C in this question: http://stackoverflow.com/questions/24886/is-there-a-performance-difference-between-i-and-i-in-c What's the answer for C++?

> [Executive Summary: Use ++i if you don't have a specific reason to use i++.]
 
In a for loop, the result ot he increment isn't used anyway. Compilers will be smart enough to make both pre-increment and post-increment fast when the result isn't used.
 
hmm.. looks reasonable..
another edit then
ohh dear english jumping into my documentation again..
"What? 'equivalent' is not a german word?"
obtw @morbidCode
Comments like the one on that python question...
 
Well, it's almost a French word :p
 
aren't really well recieved when found...
"Anyone know a way to" - you do not have a working code for review. please post this in stackoverflow instead. — morbidCode 20 mins ago
"Please post in stackoverflow" is not the correct thing to say here.. SO is not the place for blatant "Write my code for me" questions
they belong in the trash-bin ;)
 
10:30 AM
@Vogel612 ok comment rewritten XD
 
wonderful, thanks ;)
 
@Vogel612 yey let's make a trash-bin tag :)))
 
why? we already got
 
@skiwi Should have linked to the actual cube drone comic page - cube-drone.com/2014_11_16-99_Ingenuity.html
 
11:02 AM
0
Q: Web service client - Problems invoking method

Rhys HamiltonI am having problems invoking web service methods on the client-side. One example method, viewStock() has been provided. The following error occurs when I attempt to invoke this method. Problems were encountered when trying to view records from the database. (Ref. to SQL statements) error cont...

0
Q: Revised Simple Bash Backup Script

gr8odinsravenAs a follow up to a previous question, linked here, I have revised the code and developed what I believe to be a better solution. In summary, the script should backup all files in a particular directory, and assign them to a particular zip file based on their modification dates. This should only ...

0
Q: Topcoder SRM 602 - Code not working for 1 system test case

AnujI was practicing this problem. I created a solution but it is failing for a particular test case only. Can somebody help me in finding the mistake in my solution? class PilingRectsDiv2: def getmax(self, X, Y, limit): maxX = 200 maxY = 200 count = 0 for i in ra...

 
HaxCallable ftw
 
@Pimgd ehh??
 
I've created a wrapper for Callable to allow access to objects
allowing me to convert those huge methods I was posting friday
    @Override
    public FutureTask<Byte> requestGetStreamCount()
    {
        final StreamComponentImpl component = this;
        String requestURL = "streamCount.json";
        Map parameters = null;
        return requestGet(requestURL, parameters, new HaxCallableImpl<Byte>()
        {
            @Override
            public Byte call() throws Exception
            {
                JSONObject result = getResult();
                if (result.has("response"))
                {
                    JSONObject response = result.getJSONObject("response");
to things like this
 
11:17 AM
final StreamComponentImpl component = this;
 
... =D
 
Hax is an understatement.,.
 
You need a final reference to something to be able to access it in a callable
The alternative is 15 lines extra per function
This is great
 
I know..
but final this...
eurght
 
Yeah but this is the alternative
@Override
public FutureTask<Byte> requestGetStreamCount()
{
    final StreamComponentImpl component = this;
    FutureTask<Byte> future = new FutureTask<>(new Callable<Byte>()
    {
        @Override
        public Byte call()
        {
            Future<JSONObject> responseTask = component.sendRequest("streamCount.json", null);
            do
            {
                try
                {
                    JSONObject result = responseTask.get();
                    if (result.has("response"))
 
11:19 AM
//Theoretically unreachable
+1 for that ;)
 
To reach it, response task would need to be not done
yet the first line blocks for response task to be done
I suppose I should throw an exception there?
Instead of returning null.
 
no clue..
 
If it's really unreachable, rig it to explode in the most violent manner
that way you'll know for sure when the impossible has happened
 
depends on whether you need to handle it if things go awry, or you can say: "Things broke worse than that, I'm fine without shooting everything to hell"
 
return null is the correct response ("something went wrong with the async request")
but I feel it's theoretically impossible to reach the code, so I should rig it to explode in case my assertions are flawed
oh well, the 'theoretically unreachable' return null is now centralized
instead of everywhere
 
11:24 AM
hmm.. It seems we're getting more and more questions, but a large fraction of these is closed as non-working code..
anyways: ~food
 
ooh, there's places where I'm 3 levels deep in try-catches
I think I've just gone mad and I'm making the best of it
but that's not a bad attitude to life in general
 
11:46 AM
I need a better name, though
HaxCallable and HaxCallableImpl are likely to get commented on in code review
and it's not very representative of what it is
maybe "JSONResponse"?
"JSONResponseCallback"?
 
That sound so JS..
back to writing doc,...
 
yeah but "HaxCallable" could be anything
Additionally...
@Override
    public FutureTask<Byte> requestGetDemoValue()
    {
        final DemoComponentImpl component = this;
        final String requestURL = "readExample.json";
        Map parameters = null;
        return requestGet(requestURL, parameters, new JSONResponseCallback<Byte>()
        {

            @Override
            public Byte call() throws Exception
            {
                JSONObject result = getResult();
                if (result.has("response"))
                {
                    JSONObject response = result.getJSONObject("response");
it looks nice.
I can even refactor it some more...
Now it's like this
@Override
    public FutureTask<Byte> requestGetDemoValue()
    {
        final DemoComponentImpl component = this;
        final String requestURL = "readExample.json";
        Map parameters = null;
        return requestGet(requestURL, parameters, new JSONResponseCallback<Byte>()
        {

            @Override
            public Byte callback(JSONObject result)
            {
                if (result.has("response"))
                {
                    JSONObject response = result.getJSONObject("response");
 
dem codez...
Wall of text.
 
... maybe I should take out the result.has("response") if too
yeah I can do that
@Override
public FutureTask<Byte> requestGetDemoValue()
{
    final DemoComponentImpl component = this;
    final String requestURL = "readExample.json";
    Map parameters = null;
    return requestGet(requestURL, parameters, new JSONResponseCallback<Byte>()
    {
        @Override
        public Byte callback(JSONObject response)
        {
            System.out.println(response);
            component.demoValue = (Byte) (byte) response.getInt("demoValue");
            return demoValue;
        }
Look how cleeeean
Cleeeean
 
12:01 PM
shiny
 
Called into work this morning because my eye is inflamed and irritated (no idea why). Just got a call from my boss asking me "when should I expect you in today". Erk
Yes I know this is better suited in workplace but I don't really want to post a question about it and no one is in their chat >.>
 
hmm..
 
Indeed
Im currently waiting to go to my doctor, so
 
Well then you should probably tell him that..
--> I don't know yet, since ...
 
He phrased it in such a way that "I don't know" was not an answer
To give you an idea, he rang me 4 times and then texted me after I had already called into work saying I would not be able to come in..
@RubberDuck hi! I actually use mocks regularly in my test
For C# I use Moq (mo-queue)
 
12:15 PM
@DanPantry I'd call that harrassment...
 
You should tell him that he needs to wait until you had been at the doctor. If that isn't satisfying for him, tell him that working in front of a monitor won't make it better but will maybe lead to a longer time sick
 
You definitely don't want to set them up by hand. Moq will only allow you to mock a) virtual methods and b) interfaces and c) abstract classes. As Jeroen pointed out, you definitely don't want to mock too much, but I would say that that has little to do with mocking and more to do with class composition.. if you find yourself needing more than 4 dependencies for a class, it's time to refactor, mocking or not. Moq is fairly simple to use... see below for example of usage
@Heslacher I've already been hen-pecked into saying I'll be in at 3.30
@Vogel612 call it what you want, it won't help me. Upper management has his back
 
as I know you are planning to resign anyways...
I haven't got anything else to offer :(
 
@Vogel612 I know, it sucks. I didn't want to resign just yet as it's my payday this week and I was looking forward to our christmas pay in december.
but then again I don't quite know the rules on how thtat's handled in our country.
I've asked multiple times for a copy of my contract and it hasn't been refused just.. swept under the rug
 
neither would I ;)
... that's ... problematic
 
12:19 PM
(I lost my old one in my recent move)
 
oh carp.
 
Same thing happened with my mental health issues back in june-july
I asked for some time off to go to a mental health counselling session once a week for an hour. It would only be an hour off every monday for 6 weeks
I asked my boss initially and he said he would ask his seniors... a week later and I've heard nothing back so I asked the seniors manually and they say yes. Go figure
 
how did you ask?
 
@Vogel612 not ideal, I know, I have no idea how I could have lost it as I keep everything in a blue box (think tardis)
 
Greetings, Programs.
 
12:21 PM
@Vogel612 "Hi Steve, I've been recommended by my GP to get some counselling for my depression and anxiety issues that I struggle with (he is aware of these as they HAVE impacted my work before). Would it be alright if I used some of my holiday time to take one hour off every monday at 11am until 12am to go to a counselling session?"
 
@Donald.McLean Greetings, user
 
@Donald.McLean monking
 
@DanPantry written?
 
Verbal, but sessions tracked in calendar
 
I mean asking your bos..
 
12:22 PM
I know.
 
the first thing I learned is...
 
Yeah, write everything down. I've learned that too.
 
It's always not quite optimal if you have verbal agreements..
anyways IMO you should've asked your boss before "escalating" it to the seniors
at least once in an email: "Hi Steve, could you please tell me the current 'state of affairs' concerning the issues we discussed in the email from ... ? ... "
 
Well, it was a pressing matter
 
You can have a counseling session in a single hour?
 
12:27 PM
They turned out be crap, so, no
@Vogel612 I got the feeling he wasn't going to actually ask. I don't use verbal agreements any more but at the time i was under the illusion he wasn't an asshat
 
@Pimgd hmm.. It turned out nicely with an hour when I was at counselling..
 
They gave me 3 sessions then told me to bugger off because I my state was declining
 
@Vogel612 Please explain how you intend to get there on time =D
 
ohh dear the "not an asshat"...
@Pimgd point taken..
well it was at my time in school and I didn't have stuff to do then..
 
@Pimgd The counselling place is within 15 minutes walk of my work. We have lunch at 12, so I would take 11:15 off to get there and then 11:15 to 12:00 for the session, taking away 15 minutes of my lunch break
 
12:28 PM
so I was mostly killing time until it was ..
 
@RubberDuck Moq example, they have examples on their wiki too
 
code polish polish polish
it's becoming shiny
 
shiny code is the best code
working code comes as a close second /s
 
I'm turning 10 lines into 2 lines
@Override
            public Boolean call() throws Exception
            {
                JSONObject result = getResult();
                if (result.has("response"))
                {
                    JSONObject response = result.getJSONObject("response");
                    component.supportsWPSPushButton = (Boolean) (response.getInt("supported") == 1);
                    return supportsWPSPushButton;
                }
                else
                {
                    return null;
@Override
            public Boolean callback(JSONObject response)
            {
                component.supportsWPSPushButton = (Boolean) (response.getInt("supported") == 1);
                return supportsWPSPushButton;
            }
Shiiiiiny~
4
 
Ahhh. Good @DanPantry. I installed Moq. If I have questions, now I know who to ask. =)
 
12:32 PM
@RubberDuck :-) It's a clever use of expressions, I love Moq. So easy to use
@Vogel612 with regards to the work thing, if I wasn't worried about nov/dec pay I would honestly straight up quit now lol
Now that I've had a weekend to think about what my boss said on the firday I can say in my heart that that is the best decision for me at this point
I need to start coming back onto CR more as well..
 
12:51 PM
@DanPantry Then I'll be looking forward to that ;)
 
@Vogel612 hah. my focus has mainly siwitch to node now I am afraid
 
@DanPantry funny, my boss is also called Steve, and is also an asshat
 
@yuushi Does he also have small man syndrome?
 
@DanPantry nope, opposite in that respect. He thinks he knows everything.
 
Bosses are like that
well, everyone is
 
12:57 PM
last project he contributed ~700 lines over 9 months
 
For those interested, my eye that I called in sick about
 
while doing nothing management wise
 
@Yuushi I wrote 3000 lines of code in 3 days after being accused of doing no work
That's a guesstimate as it's calculated from git diff and a lot of the files were binary files and or suo files
not that LoC is a good metric at all
 
it isn't
but at extreme ends of the spectrum, it can tell you quite a bit
 
true, that
 
12:59 PM
I pretty much wanted to stab him to death after that contract
 
in the git diff I did it was around 50k additions + deletions, but that was because I removed an unneeded project. it rounded out to be around 3k lines and 67 files added that were useful.. in about 3 days.. but I "do not work" apparently
 
@Yuushi I'd like to take this time to remind you that chat messages in chatrooms on chat.stackexchange.com are recorded and that these records are publicly accessible and probably admissible in court if combined with browser history and ISP traffic.
6
=)
 
I am aware of that, but chat logs have less of a chance of getting it to hot network questions.. :p as for Yuushi.. gl mate lel
 
It's not the hot network question that gets you, it's divulging your plans online in some chatroom before taking action that does
 
Fun fact, the last 3 answers I wrote on S/O in work during a watercooler break all made it to hot network questions
I know, I missed the @Yuushi bit
 
1:05 PM
@Pimgd I...don't care :P
 
as long as nobody kills Scumbag Steve....
 
I only said I wanted to :P
 
Oh, thought criminal, are we?
 
@Pimgd sure... who isn't?
And one day, someone/something will kill Steve. And if it's just the old age
 
@DanPantry You're likely right to quit. I probably should have
instead I'm working 6 to 6 1/2 hour days. It'll probably bite me in the ass eventually.
 
1:14 PM
Quit with grace and formulate your reasons for leaving in a manner an future employer can treat as acceptable
You will get the question "why did you leave your last job" at your next interviews
and having a solid answer will help
"My boss was an idiot" is a bad answer =D
 
"My boss was an absolute prick", too? </sarcasm>
 
Unless you can prove your point with solid reasons.
 
I've worked somewhere where I left in the trial period
 
I usually pick something like "looking for new challenges and new technologies, work wasn't challenging me enough and I was stagnating" or somesuch
 
and what did you tell them? @Pimgd
 
1:19 PM
and my reason for it was trifold: 1) They wanted me to learn for 6 months before starting to make any worthwhile contributions. I prefer to spend the first week(s) to just learn the environment, but after that, I do best when learning whilst doing.
2) I have been taught to work in a modern way by my education. This includes the use of version control tools. Not having version control available makes me feel insecure and reduces my work performance.
 
@Pimgd not having version control available would make me head straight for the door
 
3) They used Delphi, and I have seen and experienced enough of Delphi programming in that month to see that it doesn't fit my workstyle. Working in Delphi makes me unhappy and unproductive.
They did offer to change, but it was my last day of the trial period, and not quitting on that day meant a 2-month contract cancellation period
 
aaand you got more than enough reasons...
 
Delphi.. I have not used that in ages.. It's been more than a decade
 
I had ... maybe 3 lessons delphi in HighSchool
after we went through assembler basics and TurboPASCAL
 
1:23 PM
seriously though, making someone study company policy and Delphi for 6 months
 
0
Q: TapeEquilibrium implementation, performance issue

Vapid LinusSo, I took a test at Codility called TapeEquilibrium. The task description that I recieved can be seen here. I came up with a solution that worked, and I was pretty happy with. However, the performance was apparently awful. The expected time complexity is apparently supposed to be O(N), but I go...

0
Q: Recommended DAO package structure

RamWhen creating a package structure for DAO in spring/hibernate project, what is the recommended approach? Should Interface and Implementing class be on same package or different package? Or What will be advantages/disadvantages of being in same package or different package? Example: com.company.p...

 
before expecting them to work on a huge codebase with classes that can't have more than 8 characters
Without version control?
Is insaaane.
 
jawdrop ...
 
yeah...yeah...that's just....yeah.
backs away slowly
 
why slowly?
 
1:25 PM
I knew something was wrong when mom said "go to work" and I started crying "I don't want to"
 
begins running as if the devil was on his heels
 
though I have to add that's in a period without any programming at all
The actual story is slightly different;
On the last day of my trial period, I was still indecisive
I had a couple demands:
I wanted to see version control, I wanted to feel productive, and I wanted to get involved more.
I felt guilty that all I had done in a single month was write a colorpicker class
their response was that "It's okay, we don't expect you to produce anything for the first 6 months anyway. It takes time to integrate with our way of working."
About version control: "We can't rush these kind of things. Next door to you, there's a team working on a new project, and they're using mercurial. If it works out, we will start using it for our other projects. But you have to understand, right now we don't have the resources to migrate the project you're working on into an untested version control system."
Well when do you know if it works?
"After the initial release we should know enough. The release is scheduled to be in about 6 months."
 
@Pimgd I'm going to lie about it but I am going to be professional about it. I'll simply state that it was not a good ideological/cultural fit (it isn't) and let that be the end of it
 
That sounds like a good idea..
 
@DanPantry then be prepared to describe your preferred ideologies/culture because you've just raised a red flag
4
 
1:33 PM
Btw could I request some more CV's on the "Recommended DAO package structure" question?
 
@Pimgd Something that doesn't view manual testing as the be-all-end-all, and somewhere that respects my professional opinion - or at least takes it into account
 
that's definitely a reasonable ideology
 
"somewhere that respects my professional opinion - or at least takes it into account" is laced with venom
 
For the purposes of this chat, yes
I am going to recite this chat word for word when appplying for my next position :P
 
I think that's a bad idea =D
 
1:34 PM
lol
 
hmm how about "Constructive Discussion"
 
definitely a more succinct term for it
 
You've said before how your preferred workstyle is TDD, right?
Useeeeee it.
 
@Pimgd I will. Yeah, my workstyle is TDD.
Unfortunately my boss does not want me to use TDD/write automated tests. Therein lies the issue. To the point where he got upper management involved when I wrote a few unit tests just to test functionality that otherwise would be difficult to test otherwise (i.e, manual debugger)
 
"I prefer to use TDD, - you know, test driven development, write tests first, then code - because it ensures that what I build is solid. At my last job, they wanted me to manually test everything. Now, I don't have a problem with manually verifying the code - tests aren't everything, sure, but to abolish automated testing altogether, like what happened at my last job... well..."
 
1:39 PM
Precisely
Thanks, btw. I do sometimes have problems putting thoughts into words
 
That's a thing you're learning with experience anyways..
 
"That just makes me feel insecure. I take pride in my work. I built it, and it's on me if it breaks. To not have a set of automated tests to verify that what I just built works... to not have those tests makes me unhappy and unproductive."
 
> unproductive
this
I hate this chat formatting so much
 
Guess why it's at the end of the sentence
Unproductive -> less money.
Businesses know money.
 
@DanPantry that is pants on head retarded.
 
1:41 PM
@Yuushi His rationale was that it would take longer to test by doing it in an automated fashion
@Pimgd Aye
 
@DanPantry wut.
 
If you prepare your reasons for leaving a previous job you'll do better in an interview
 
Well, you do have the overhead of writing tests, which is fair enough... but it takes longer to spin up a debugger in a program of this scale
 
If I leave responses in that area to my impulsive self, well...
 
@Pimgd I've had these reasons down for months now, and have attended a few job interviews already. It has just gotten to a tipping point.
 
1:42 PM
You get answers that have sarcasm or hate embedded in them
 
@DanPantry well, sure, until you change the program and then need to do the debugging all over again
 
Though admittedly, not worded as I would like
@Yuushi: Exactly.. or the database connection flakes out or the blue moon rises.. we had 50 test cases that I wrote an automated test to test at least half o fthem in a day (they were all variants of one another so I just used xunit's data-driven attributes)
 
@DanPantry What's the split between tests/actual code in % of output for you ?
 
@konijon I don't really have a metric but I can pull up a sample project if you would like to see for yousrelf
Usually I write a test for anything that needs testing within reason.. before I start a new class? yup, test. Before I start a new feature? automated acceptance test
 
in high order, like 50/50 or more like 75/25 ?
 
1:44 PM
60/40, maybe a little higher - I definitely write more tests than business code
I don't go for 100% coverage as that takes too long but certainly 90 - 95%
 
Which is actually fairly low..
 
It's an empirical guesstimate
I have never thought of that statistic before
 
Currently in my project we got... 70/30 Test /productive..
 
to put it another way I have at least 1 test for every method of every class in my project
 
and we're at about 25% coverage
 
1:45 PM
I don't have any tests in my current project...
 
(that isn't a wrapper around a 3rd party project, like an ISocket interface for Socket for example)
 
because it's mainly a communication library
 
@Vogel612 this is a man that doesn't want me to write any automated tests at al
 
it's a bit hard to test the code when most of it is gluing two libraries together
 
hey you set it in stone: Write it down: "I recommended against manual testing, because my experience suggests it's prone to bugs."
 
1:47 PM
0
Q: JSON: Store parsed JSON objects in their own variables

user36278I am trying to parse the following JSON file : http://store.steampowered.com/api/appdetails?appids=205100&cc=au However once I have gotten the JSON file and used jQuery.parseJSON on it. I am unable to then go through the parsed JSON and select the objects I want, which are the games name, its a...

0
Q: Recommend the best way to convert Wrapper Object to VO

UtkarshBhavsarI have ChannelWrapper and Channel Value Object so I want to convert each and every field of ChannelWrapper to Channel Value Object. Here is my code public class ChannelWrapper extends BaseWrapper implements APIWrapper<Channel>, APIUnwrapper<Channel> { @XmlElement private Long i...

 
and then do what he said. If the thing blows up, you're out of it...
 
@Vogel612 This is where the professional opinion part comes into it.
My boss simply doesn't care for mine.
 
But you got black on white: I recommended against it.
 
on friday it was a literally - my way or the high way - sort of thing.
Yeah, I will do that. However the way I see it is that it won't help me in the long run;
 
then he's a retard and deserves losing a valuable employee like you are one
 
1:48 PM
highways are fun, you get to drive fast
 
Either the project we are on gets finished on the 8th doing his method and it ends up being ludicriously buggy which I know it will
Or we do it my way and I get fired for not listening to him - but it gets delivered on time in a decent quality
I suppose if I'm intending on resigning I have nothing to lose anyway
 
Do the manual test.
Yes, it sucks.
 
its not really a case of "it sucking". I've done TDD for so long now manual testing feels quite alien to me
I mean, yeah, it does suck, but that's not what is preventing me from doing it
 
But "I need to do things my way" is not a healthy attitude
 
I understand that. :P
 
1:52 PM
and can be viewed as undesirable employee attributes by future employers
 
I don't see it as needing to do things my way, but if I have to deliver something in just over 2 weeks in a tested and quality standard as expected by a £1mil contract customer
I would prefer to use a method I already employ than have to use something I haven't used in a long whlie
I will do it his way, of course
 
Additionally, try and see if you can get someone to help you
supporting argument is "two pairs of eyes are better than one"
 
Unfortunately there's only 3 of us in the IT team, including him. And both of them have their own work to get on with in the next 2 weeks, so there's no resource
 
if you're gonna manually test things a buddy might help
hmmh bah
 
I have a matrix of things that need to be tested
a kind of high level functionality test spec as itwere
 
1:54 PM
Okay.... if possible, save the results
 
aye aye cpt
 
then you at least can show that it did X with inputs Y
and maybe you'll look at it enough to spot any mistakes
 
01:00 - 14:0014:00 - 00:00

« first day (569 days earlier)      last day (3441 days later) »