• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:

  • You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
  • You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
  • If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

Previously on "Lines of code written by HAB this week ...."

Collapse

  • HairyArsedBloke
    replied
    Originally posted by minestrone View Post
    It will confuse the permies for sure, fairly unreadable, definitely unmaintainable. An inspiration to all programming contractors out there.


    I am the permie at the moment and it definitely confuses me.

    Leave a comment:


  • minestrone
    replied
    Originally posted by HairyArsedBloke View Post
    OK.

    Code:
                return _series.Keys.ToList<DateTime>().FindIndex(delegate(DateTime t) { return (t == dateTime); });
    Just remember - I'm not much of a programmer anymore.

    This stuff doesn't have to be 'good' just come out with the right numbers.
    It will confuse the permies for sure, fairly unreadable, definitely unmaintainable. An inspiration to all programming contractors out there.

    Leave a comment:


  • HairyArsedBloke
    replied
    Originally posted by MPwannadecentincome View Post
    That's the most productive you have been apart from the dumps according to your twitter!

    Oh I see you have twittered about the line of code too - well done!

    BTW is HAB on linkedin going to join the contractoruk group?
    I've requested - lets see what happens

    Leave a comment:


  • MPwannadecentincome
    replied
    That's the most productive you have been apart from the dumps according to your twitter!

    Oh I see you have twittered about the line of code too - well done!

    BTW is HAB on linkedin going to join the contractoruk group?

    Leave a comment:


  • BrilloPad
    replied
    Originally posted by Moscow Mule View Post
    Still looking after idiots in Bangalore.
    Try shooting them. Its only fair.

    Leave a comment:


  • NotAllThere
    replied
    Originally posted by HairyArsedBloke View Post
    OK.

    Code:
                return _series.Keys.ToList<DateTime>().FindIndex(delegate(DateTime t) { return (t == dateTime); });
    Just remember - I'm not much of a programmer anymore.

    This stuff doesn't have to be 'good' just come out with the right numbers.
    No no no no no! (at least with my development manager hat on)

    That leads to unmaintainable code, which is very expensive. Clear code is easier to debug, fix and enhance.

    Of course with my contractor coder hat on, good code is not good as it doesn't lead to rework. So forget what I just said.

    Leave a comment:


  • swamp
    replied
    I'm a developer and I have written absolutely no code in the last week whatsoever. I did write an email though, if that counts, but it wasn't very long.

    Had a good lunch today though.

    Leave a comment:


  • Moscow Mule
    replied
    I was tom first two days of the week. Spent the next three days trying to work out why a variable wasn't being return up the call stack and managing idiots in Bangalore.

    Still haven't fixed the bug. Still looking after idiots in Bangalore.

    Leave a comment:


  • Fred Bloggs
    replied
    Well done on your productivity. It's been really tough for me the last threee weeks doing nothing but looking mad busy

    Leave a comment:


  • jmo21
    replied
    Originally posted by HairyArsedBloke View Post
    OK.

    Code:
                return _series.Keys.ToList<DateTime>().FindIndex(delegate(DateTime t) { return (t == dateTime); });
    Just remember - I'm not much of a programmer anymore.

    This stuff doesn't have to be 'good' just come out with the right numbers.
    I would have split it up a bit for readability, and also to do a check that the ToList returns something.

    good days effort though

    Leave a comment:


  • HairyArsedBloke
    replied
    Originally posted by bogeyman View Post
    Sod that. If you got a days pay for one (shortish) line of code then I'm well impressed.
    I wish

    It's the sum total of the progress towards a new product I'm working on. No revenue from it yet.

    Leave a comment:


  • bogeyman
    replied
    Originally posted by HairyArsedBloke View Post
    Just remember - I'm not much of a programmer anymore.
    Sod that. If you got a days pay for one (shortish) line of code then I'm well impressed.

    Reminds me of the old yarn about a structural engineer.

    The client (Wimpey I think) came to this freelance engineer and asked him how they could reenforce a road bridge to take bigger lorries.

    The engineer concluded that one h-section girder would need to be added to each section of the bridge.

    The additional bracing girder would be indicated by exactly one line on the master drawing.

    The engineer's invoice for the work was £12,501.25

    The bridge contractor queried the invoice and asked for a cost breakdown.

    The consulting engineer replied: -

    - To adding a line to master drawing: £1.25
    - For knowing where to add the line: £12,500.00
    Last edited by bogeyman; 12 June 2009, 18:48.

    Leave a comment:


  • HairyArsedBloke
    replied
    OK.

    Code:
                return _series.Keys.ToList<DateTime>().FindIndex(delegate(DateTime t) { return (t == dateTime); });
    Just remember - I'm not much of a programmer anymore.

    This stuff doesn't have to be 'good' just come out with the right numbers.

    Leave a comment:


  • bogeyman
    replied
    Originally posted by HairyArsedBloke View Post
    1.

    It was a long line involving c# generics, predicates, 'n' stuff.

    Add I did write a unit test; which it passed.

    I was a bit 'tom' for the first half of the week and then I had to do some research on a related subject.

    It's a good job I don't have to cut code for a living.
    Post it then!

    Leave a comment:


  • HairyArsedBloke
    started a topic Lines of code written by HAB this week ....

    Lines of code written by HAB this week ....

    1.

    It was a long line involving c# generics, predicates, 'n' stuff.

    Add I did write a unit test; which it passed.

    I was a bit 'tom' for the first half of the week and then I had to do some research on a related subject.

    It's a good job I don't have to cut code for a living.

Working...
X