Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. I dont feel like going back to work...

I dont feel like going back to work...

Scheduled Pinned Locked Moved The Lounge
phpvisual-studiocomcollaborationbeta-testing
62 Posts 24 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B BonshatS

    The good old reflexive property. Maybe he just wanted to be sure it was initialized.

    L Offline
    L Offline
    leppie
    wrote on last edited by
    #10

    BonshatS wrote:

    Maybe he just wanted to be sure it was initialized.

    This is him exactly! http://www.geekherocomic.com/2009/07/27/common-pitfalls-initialize-your-variables/[^]

    xacc.ide
    IronScheme - 1.0 beta 4 - out now!
    ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x)))

    P 1 Reply Last reply
    0
    • L leppie

      as my 'team leader' does not why the following wrong:

      a.SomeProp = a.SomeProp; // no funny side-effects, plain old property

      And then he asked me not to criticize him... :wtf:

      xacc.ide
      IronScheme - 1.0 beta 4 - out now!
      ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x)))

      M Offline
      M Offline
      martin_hughes
      wrote on last edited by
      #11

      What I don't get is, given your technical excellence and all that jazz, why you aren't the team leader? Mumbler? Strange body odour? Shy? Unwilling/unable to shout at management types and make demands?

      print "http://www.codeproject.com".toURL().text Ain't that Groovy?

      P 1 L N 4 Replies Last reply
      0
      • L leppie

        BonshatS wrote:

        Maybe he just wanted to be sure it was initialized.

        This is him exactly! http://www.geekherocomic.com/2009/07/27/common-pitfalls-initialize-your-variables/[^]

        xacc.ide
        IronScheme - 1.0 beta 4 - out now!
        ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x)))

        P Offline
        P Offline
        Pierre Leclercq
        wrote on last edited by
        #12

        :-D

        You can't turn lead into gold, unless you've built yourself a nuclear plant.

        1 Reply Last reply
        0
        • M martin_hughes

          What I don't get is, given your technical excellence and all that jazz, why you aren't the team leader? Mumbler? Strange body odour? Shy? Unwilling/unable to shout at management types and make demands?

          print "http://www.codeproject.com".toURL().text Ain't that Groovy?

          P Offline
          P Offline
          Pierre Leclercq
          wrote on last edited by
          #13

          hehe... http://en.wikipedia.org/wiki/Peter_principle[^] arf: http://en.wikipedia.org/wiki/Dilbert_Principle[^]

          You can't turn lead into gold, unless you've built yourself a nuclear plant.

          1 Reply Last reply
          0
          • L leppie

            as my 'team leader' does not why the following wrong:

            a.SomeProp = a.SomeProp; // no funny side-effects, plain old property

            And then he asked me not to criticize him... :wtf:

            xacc.ide
            IronScheme - 1.0 beta 4 - out now!
            ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x)))

            R Offline
            R Offline
            Rama Krishna Vavilala
            wrote on last edited by
            #14

            Early in my career, I once made a mistake of commenting a line of code, that broke the whole application. Here is how it looked like:-

            void BalanceInvoice(int x, int y , int z)
            {
            MyInvoiceObject* p = new MyInvoiceObject(x, y, z);
            delete p;

            ... Do other stuff that ran 200 lines ...
            }

            I commented the first line thinking it was useless. Turns out that the constructor and only the constructor did the main work. I hope your team leader does not write like that.

            public object SomeProp
            {
            get
            {
            return 0;
            }
            set
            {
            ... Connect to database ...
            ... Call a web service ...
            ... Do all the other important stuff required in the application ...
            }
            }

            L 1 Reply Last reply
            0
            • M martin_hughes

              What I don't get is, given your technical excellence and all that jazz, why you aren't the team leader? Mumbler? Strange body odour? Shy? Unwilling/unable to shout at management types and make demands?

              print "http://www.codeproject.com".toURL().text Ain't that Groovy?

              1 Offline
              1 Offline
              1 21 Gigawatts
              wrote on last edited by
              #15

              martin_hughes wrote:

              why you aren't the team leader

              Probably because of his technical excellence.

              "...great scott!" Dilbert: Aren't all meetings like this... Richard Dawkins: "What if you're wrong?"

              1 Reply Last reply
              0
              • M martin_hughes

                What I don't get is, given your technical excellence and all that jazz, why you aren't the team leader? Mumbler? Strange body odour? Shy? Unwilling/unable to shout at management types and make demands?

                print "http://www.codeproject.com".toURL().text Ain't that Groovy?

                L Offline
                L Offline
                leppie
                wrote on last edited by
                #16

                Because he was the clown that wrote up a quarter-assed client functional requirement spec. It lacks about 70% of the requirements. And somewhere inside his skull that info still lives (or rots). Please note, this 'client spec' is the only thing our team has to go on, and consistently the client complains about missing functionality. Professionally, I have been trying to avoid taking responsibility for someone else's fuckups, but it seems there is no other way now. Bottom line is, I dont wanna do anything, while he has write-access to the code. he has been spending the last 6 weeks working on something that should have taken 3 days max, given most of the code was copied from somewhere else on the internet (like pretty much all of his code, copies of other people's code, and mine...).

                xacc.ide
                IronScheme - 1.0 beta 4 - out now!
                ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x)))

                N M M 3 Replies Last reply
                0
                • R Rama Krishna Vavilala

                  Early in my career, I once made a mistake of commenting a line of code, that broke the whole application. Here is how it looked like:-

                  void BalanceInvoice(int x, int y , int z)
                  {
                  MyInvoiceObject* p = new MyInvoiceObject(x, y, z);
                  delete p;

                  ... Do other stuff that ran 200 lines ...
                  }

                  I commented the first line thinking it was useless. Turns out that the constructor and only the constructor did the main work. I hope your team leader does not write like that.

                  public object SomeProp
                  {
                  get
                  {
                  return 0;
                  }
                  set
                  {
                  ... Connect to database ...
                  ... Call a web service ...
                  ... Do all the other important stuff required in the application ...
                  }
                  }

                  L Offline
                  L Offline
                  leppie
                  wrote on last edited by
                  #17

                  Side-effects are evil. Learn to appreciate that, and code becomes dead simple. I can code fresh code faster than trying to understand what his code is attempting to do.

                  xacc.ide
                  IronScheme - 1.0 beta 4 - out now!
                  ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x)))

                  R M L 3 Replies Last reply
                  0
                  • L leppie

                    Side-effects are evil. Learn to appreciate that, and code becomes dead simple. I can code fresh code faster than trying to understand what his code is attempting to do.

                    xacc.ide
                    IronScheme - 1.0 beta 4 - out now!
                    ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x)))

                    R Offline
                    R Offline
                    Rama Krishna Vavilala
                    wrote on last edited by
                    #18

                    leppie wrote:

                    Side-effects are evil.

                    Yes as I said I broke the main logic an entire application commenting out what I thought was useless.

                    P 1 Reply Last reply
                    0
                    • L leppie

                      Side-effects are evil. Learn to appreciate that, and code becomes dead simple. I can code fresh code faster than trying to understand what his code is attempting to do.

                      xacc.ide
                      IronScheme - 1.0 beta 4 - out now!
                      ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x)))

                      M Offline
                      M Offline
                      Marc Clifton
                      wrote on last edited by
                      #19

                      leppie wrote:

                      Side-effects are evil. Learn to appreciate that, and code becomes dead simple.

                      But isn't that the worst thing about AOP, that you don't know what side effects might be introduced? Marc

                      Will work for food. Interacx

                      I'm not overthinking the problem, I just felt like I needed a small, unimportant, uninteresting rant! - Martin Hart Turner

                      P L B M 4 Replies Last reply
                      0
                      • R Rama Krishna Vavilala

                        leppie wrote:

                        Side-effects are evil.

                        Yes as I said I broke the main logic an entire application commenting out what I thought was useless.

                        P Offline
                        P Offline
                        Pierre Leclercq
                        wrote on last edited by
                        #20

                        But do not worry, there are cases when it is legitimate to comment out some unused/unnecessary code. But what your post shows, the worst the code is, the harder to choose what to comment out.

                        You can't turn lead into gold, unless you've built yourself a nuclear plant.

                        1 Reply Last reply
                        0
                        • M Marc Clifton

                          leppie wrote:

                          Side-effects are evil. Learn to appreciate that, and code becomes dead simple.

                          But isn't that the worst thing about AOP, that you don't know what side effects might be introduced? Marc

                          Will work for food. Interacx

                          I'm not overthinking the problem, I just felt like I needed a small, unimportant, uninteresting rant! - Martin Hart Turner

                          P Offline
                          P Offline
                          Pierre Leclercq
                          wrote on last edited by
                          #21

                          I always wonder why clean functional programming is not more common?

                          You can't turn lead into gold, unless you've built yourself a nuclear plant.

                          L 1 Reply Last reply
                          0
                          • L leppie

                            Because he was the clown that wrote up a quarter-assed client functional requirement spec. It lacks about 70% of the requirements. And somewhere inside his skull that info still lives (or rots). Please note, this 'client spec' is the only thing our team has to go on, and consistently the client complains about missing functionality. Professionally, I have been trying to avoid taking responsibility for someone else's fuckups, but it seems there is no other way now. Bottom line is, I dont wanna do anything, while he has write-access to the code. he has been spending the last 6 weeks working on something that should have taken 3 days max, given most of the code was copied from somewhere else on the internet (like pretty much all of his code, copies of other people's code, and mine...).

                            xacc.ide
                            IronScheme - 1.0 beta 4 - out now!
                            ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x)))

                            N Offline
                            N Offline
                            Nagy Vilmos
                            wrote on last edited by
                            #22

                            I wondered were my boss had got to! But as am in a kind mood, you can keep him. ;)


                            Panic, Chaos, Destruction. My work here is done.

                            B 1 Reply Last reply
                            0
                            • M Marc Clifton

                              leppie wrote:

                              Side-effects are evil. Learn to appreciate that, and code becomes dead simple.

                              But isn't that the worst thing about AOP, that you don't know what side effects might be introduced? Marc

                              Will work for food. Interacx

                              I'm not overthinking the problem, I just felt like I needed a small, unimportant, uninteresting rant! - Martin Hart Turner

                              L Offline
                              L Offline
                              leppie
                              wrote on last edited by
                              #23

                              Marc Clifton wrote:

                              But isn't that the worst thing about AOP, that you don't know what side effects might be introduced?

                              That's the problem with age old pensioners, very unpredictable :) (sorry, im trying to cheer myself up)

                              xacc.ide
                              IronScheme - 1.0 beta 4 - out now!
                              ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x)))

                              modified on Tuesday, July 28, 2009 11:02 AM

                              N P 2 Replies Last reply
                              0
                              • L leppie

                                Because he was the clown that wrote up a quarter-assed client functional requirement spec. It lacks about 70% of the requirements. And somewhere inside his skull that info still lives (or rots). Please note, this 'client spec' is the only thing our team has to go on, and consistently the client complains about missing functionality. Professionally, I have been trying to avoid taking responsibility for someone else's fuckups, but it seems there is no other way now. Bottom line is, I dont wanna do anything, while he has write-access to the code. he has been spending the last 6 weeks working on something that should have taken 3 days max, given most of the code was copied from somewhere else on the internet (like pretty much all of his code, copies of other people's code, and mine...).

                                xacc.ide
                                IronScheme - 1.0 beta 4 - out now!
                                ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x)))

                                M Offline
                                M Offline
                                Mustafa Ismail Mustafa
                                wrote on last edited by
                                #24

                                leppie wrote:

                                he has been spending the last 6 weeks working on something that should have taken 3 days max

                                Holy Zucchini! I'd have certainly rocked the boat...

                                If the post was helpful, please vote, eh! Current activities: Book: Devils by Fyodor Dostoyevsky Project: Hospital Automation, final stage Learning: Image analysis, LINQ Now and forever, defiant to the end. What is Multiple Sclerosis[^]?

                                L 1 Reply Last reply
                                0
                                • M martin_hughes

                                  What I don't get is, given your technical excellence and all that jazz, why you aren't the team leader? Mumbler? Strange body odour? Shy? Unwilling/unable to shout at management types and make demands?

                                  print "http://www.codeproject.com".toURL().text Ain't that Groovy?

                                  N Offline
                                  N Offline
                                  Nagy Vilmos
                                  wrote on last edited by
                                  #25

                                  martin_hughes wrote:

                                  technical excellence and all that jazz

                                  by the bucket full

                                  martin_hughes wrote:

                                  Mumbler?

                                  no

                                  martin_hughes wrote:

                                  Strange body odour?

                                  no

                                  martin_hughes wrote:

                                  Shy?

                                  no

                                  martin_hughes wrote:

                                  Unwilling/unable to shout at management types and make demands?

                                  no

                                  martin_hughes wrote:

                                  team leader

                                  apparently not. I'm a 'technical lead' which means my TL is half my age with 1/4 my knowledge and and 1/8 my experience. But I'm not bitter :mad:


                                  Panic, Chaos, Destruction. My work here is done.

                                  M B 2 Replies Last reply
                                  0
                                  • P Pierre Leclercq

                                    I always wonder why clean functional programming is not more common?

                                    You can't turn lead into gold, unless you've built yourself a nuclear plant.

                                    L Offline
                                    L Offline
                                    leppie
                                    wrote on last edited by
                                    #26

                                    Pierre Leclercq wrote:

                                    I always wonder why clean functional programming is not more common?

                                    I write 90% of my C# without side effects (excluding generated-code of course, that doesn't count). There is no reason why someone cannot do the same.

                                    xacc.ide
                                    IronScheme - 1.0 beta 4 - out now!
                                    ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x)))

                                    N 1 Reply Last reply
                                    0
                                    • M Mustafa Ismail Mustafa

                                      leppie wrote:

                                      he has been spending the last 6 weeks working on something that should have taken 3 days max

                                      Holy Zucchini! I'd have certainly rocked the boat...

                                      If the post was helpful, please vote, eh! Current activities: Book: Devils by Fyodor Dostoyevsky Project: Hospital Automation, final stage Learning: Image analysis, LINQ Now and forever, defiant to the end. What is Multiple Sclerosis[^]?

                                      L Offline
                                      L Offline
                                      leppie
                                      wrote on last edited by
                                      #27

                                      His average estimate takes 8 times longer to complete than what he promises the manager/client and that is if it ever gets completed and not taken over by someone else.

                                      xacc.ide
                                      IronScheme - 1.0 beta 4 - out now!
                                      ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x)))

                                      1 Reply Last reply
                                      0
                                      • L leppie

                                        as my 'team leader' does not why the following wrong:

                                        a.SomeProp = a.SomeProp; // no funny side-effects, plain old property

                                        And then he asked me not to criticize him... :wtf:

                                        xacc.ide
                                        IronScheme - 1.0 beta 4 - out now!
                                        ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x)))

                                        P Offline
                                        P Offline
                                        Pete OHanlon
                                        wrote on last edited by
                                        #28

                                        This seems perfectly reasonable to me. Put in a load of code like this, then seem like a god when you dramatically increase the performance of your application by removing these useless no-ops.

                                        "WPF has many lovers. It's a veritable porn star!" - Josh Smith

                                        As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

                                        My blog | My articles | MoXAML PowerToys | Onyx

                                        L 1 Reply Last reply
                                        0
                                        • N Nagy Vilmos

                                          martin_hughes wrote:

                                          technical excellence and all that jazz

                                          by the bucket full

                                          martin_hughes wrote:

                                          Mumbler?

                                          no

                                          martin_hughes wrote:

                                          Strange body odour?

                                          no

                                          martin_hughes wrote:

                                          Shy?

                                          no

                                          martin_hughes wrote:

                                          Unwilling/unable to shout at management types and make demands?

                                          no

                                          martin_hughes wrote:

                                          team leader

                                          apparently not. I'm a 'technical lead' which means my TL is half my age with 1/4 my knowledge and and 1/8 my experience. But I'm not bitter :mad:


                                          Panic, Chaos, Destruction. My work here is done.

                                          M Offline
                                          M Offline
                                          Mustafa Ismail Mustafa
                                          wrote on last edited by
                                          #29

                                          Nagy Vilmos wrote:

                                          apparently not. I'm a 'technical lead' which means my TL is half my age with 1/4 my knowledge and and 1/8 my experience. But I'm not bitter Mad

                                          :laugh::laugh: Sorry! That was just insanely funny! I know how you feel, I was like that 1.5 years ago and then I left becoming independent.

                                          If the post was helpful, please vote, eh! Current activities: Book: Devils by Fyodor Dostoyevsky Project: Hospital Automation, final stage Learning: Image analysis, LINQ Now and forever, defiant to the end. What is Multiple Sclerosis[^]?

                                          N 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups