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. A plea from the heart.

A plea from the heart.

Scheduled Pinned Locked Moved The Lounge
wpfcsharpcombusinessarchitecture
9 Posts 6 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Please, PLEASE, gentle developers, I beg you, please,. from the bottom of my heart, not to put business logic into your Getters and Setters. Please. If I ever catch the person responsible for the spaghetti I'm wading through now I'll chop their meatballs off * and serve them to themselves, with extra hot sauce. God's teeth, it's a mess! * If they are female, I'll ask them on a date first.

    MVVM # - I did it My Way ___________________________________________ Man, you're a god. - walterhevedeich 26/05/2011 .\\axxx (That's an 'M')

    L J B P N 6 Replies Last reply
    0
    • L Lost User

      Please, PLEASE, gentle developers, I beg you, please,. from the bottom of my heart, not to put business logic into your Getters and Setters. Please. If I ever catch the person responsible for the spaghetti I'm wading through now I'll chop their meatballs off * and serve them to themselves, with extra hot sauce. God's teeth, it's a mess! * If they are female, I'll ask them on a date first.

      MVVM # - I did it My Way ___________________________________________ Man, you're a god. - walterhevedeich 26/05/2011 .\\axxx (That's an 'M')

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      If you prefer to get everything from data access to presentation logic in stored procedures made by former Access mutilators...

      The language is JavaScript. that of Mordor, which I will not utter here
      I hold an A-7 computer expert classification, Commodore. I'm well acquainted with Dr. Daystrom's theories and discoveries. The basic design of all our ship's computers are JavaScript.

      N 1 Reply Last reply
      0
      • L Lost User

        Please, PLEASE, gentle developers, I beg you, please,. from the bottom of my heart, not to put business logic into your Getters and Setters. Please. If I ever catch the person responsible for the spaghetti I'm wading through now I'll chop their meatballs off * and serve them to themselves, with extra hot sauce. God's teeth, it's a mess! * If they are female, I'll ask them on a date first.

        MVVM # - I did it My Way ___________________________________________ Man, you're a god. - walterhevedeich 26/05/2011 .\\axxx (That's an 'M')

        J Offline
        J Offline
        Jorgen Andersson
        wrote on last edited by
        #3

        Isn't that the whole point of using properties instead of using the fields directly? :ducks:

        Wrong is evil and must be defeated. - Jeff Ello[^]

        1 Reply Last reply
        0
        • L Lost User

          Please, PLEASE, gentle developers, I beg you, please,. from the bottom of my heart, not to put business logic into your Getters and Setters. Please. If I ever catch the person responsible for the spaghetti I'm wading through now I'll chop their meatballs off * and serve them to themselves, with extra hot sauce. God's teeth, it's a mess! * If they are female, I'll ask them on a date first.

          MVVM # - I did it My Way ___________________________________________ Man, you're a god. - walterhevedeich 26/05/2011 .\\axxx (That's an 'M')

          B Offline
          B Offline
          bryce
          wrote on last edited by
          #4

          muahahahahahahahahahaha B

          MCAD ---

          1 Reply Last reply
          0
          • L Lost User

            Please, PLEASE, gentle developers, I beg you, please,. from the bottom of my heart, not to put business logic into your Getters and Setters. Please. If I ever catch the person responsible for the spaghetti I'm wading through now I'll chop their meatballs off * and serve them to themselves, with extra hot sauce. God's teeth, it's a mess! * If they are female, I'll ask them on a date first.

            MVVM # - I did it My Way ___________________________________________ Man, you're a god. - walterhevedeich 26/05/2011 .\\axxx (That's an 'M')

            P Offline
            P Offline
            Philip F
            wrote on last edited by
            #5

            public bool ShouldIUseBusinessLogicInGetterAndSetter
            {
            get
            {
            int fearOf_Maxxx_Factor = 80;
            Random r = new Random();
            return r.Next(0,100) > fearOf_Maxxx_Factor ;
            }
            }

            You mean like this?

            I won’t not use no double negatives.

            1 Reply Last reply
            0
            • L Lost User

              Please, PLEASE, gentle developers, I beg you, please,. from the bottom of my heart, not to put business logic into your Getters and Setters. Please. If I ever catch the person responsible for the spaghetti I'm wading through now I'll chop their meatballs off * and serve them to themselves, with extra hot sauce. God's teeth, it's a mess! * If they are female, I'll ask them on a date first.

              MVVM # - I did it My Way ___________________________________________ Man, you're a god. - walterhevedeich 26/05/2011 .\\axxx (That's an 'M')

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

              You are so right, the business logic should be in the UI where it's easy to change. :rolleyes:

              speramus in juniperus

              1 Reply Last reply
              0
              • L Lost User

                If you prefer to get everything from data access to presentation logic in stored procedures made by former Access mutilators...

                The language is JavaScript. that of Mordor, which I will not utter here
                I hold an A-7 computer expert classification, Commodore. I'm well acquainted with Dr. Daystrom's theories and discoveries. The basic design of all our ship's computers are JavaScript.

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

                You are sick, well done.

                speramus in juniperus

                L 1 Reply Last reply
                0
                • L Lost User

                  Please, PLEASE, gentle developers, I beg you, please,. from the bottom of my heart, not to put business logic into your Getters and Setters. Please. If I ever catch the person responsible for the spaghetti I'm wading through now I'll chop their meatballs off * and serve them to themselves, with extra hot sauce. God's teeth, it's a mess! * If they are female, I'll ask them on a date first.

                  MVVM # - I did it My Way ___________________________________________ Man, you're a god. - walterhevedeich 26/05/2011 .\\axxx (That's an 'M')

                  N Offline
                  N Offline
                  Nicholas Marty
                  wrote on last edited by
                  #8

                  I did that mistake once. Was quite "interesting" that everytime I hovered with the mouse over the field name the value changed :laugh: Since then the only "logic" in Setters is if an event has to be raised when the value has changed (e.g. NotifyPropertyChanged).

                  1 Reply Last reply
                  0
                  • N Nagy Vilmos

                    You are sick, well done.

                    speramus in juniperus

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #9

                    Many of the applications I have to work with have been ported from Access, so that's exactly what I earn my money with now. Actually I have already seen worse and been given less opportunity to do something about it. The man in charge of the last dinosaur Access projects sits right at the next desk. He is from Hungary and (despite doing Access) a great guy. But he sounds exactly like Count Dracula in some old movie. :-)

                    The language is JavaScript. that of Mordor, which I will not utter here
                    I hold an A-7 computer expert classification, Commodore. I'm well acquainted with Dr. Daystrom's theories and discoveries. The basic design of all our ship's computers are JavaScript.

                    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