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. Programming question

Programming question

Scheduled Pinned Locked Moved The Lounge
question
79 Posts 50 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.
  • S Slacker007

    If you are writing an app that no one will see (other devs), do you still follow best practices i.e. creating classes, data access layers, blah, blah, blah? or, do you say f'it and write the app like a retard? i.e. putting all 5-8K lines of code in one form class and calling it a day. I am being asked by a senior dev to do something that I feel is fundamentally wrong as a programmer but he is the "senior" dev and thus must be obeyed.

    Just along for the ride. "the meat from that butcher is just the dogs danglies, absolutely amazing cuts of beef." - DaveAuld (2011)
    "No, that is just the earthly manifestation of the Great God Retardon." - Nagy Vilmos (2011)

    X Offline
    X Offline
    Xiangyang Liu
    wrote on last edited by
    #21

    Slacker007 wrote:

    i.e. putting all 5-8K lines of code in one form class and calling it a day.

    This alone does not make it bad code. I hate pojects that have too many unnecessary interfaces/abstractions, it takes forever for you to find the code that does the real work. Just my two cents.

    My Younger Son & His "PET"

    A 1 Reply Last reply
    0
    • S Slacker007

      If you are writing an app that no one will see (other devs), do you still follow best practices i.e. creating classes, data access layers, blah, blah, blah? or, do you say f'it and write the app like a retard? i.e. putting all 5-8K lines of code in one form class and calling it a day. I am being asked by a senior dev to do something that I feel is fundamentally wrong as a programmer but he is the "senior" dev and thus must be obeyed.

      Just along for the ride. "the meat from that butcher is just the dogs danglies, absolutely amazing cuts of beef." - DaveAuld (2011)
      "No, that is just the earthly manifestation of the Great God Retardon." - Nagy Vilmos (2011)

      _ Offline
      _ Offline
      _beauw_
      wrote on last edited by
      #22

      Slacker007 wrote:

      If you are writing an app that no one will see (other devs), do you still follow best practices i.e. creating classes, data access layers, blah, blah, blah? or, do you say f'it and write the app like a retard? i.e. putting all 5-8K lines of code in one form class and calling it a day.

      Really, I do neither. What I do is somewhere in the middle. If I am writing something quickly for a one-time or infrequent situation, with an IT or developer-only user base, then it's unlikely I would give it a data access layer, or that I would invent anything resembling a class hierarchy. At least, I would avoid doing any extra work toward these ends. Those sorts of applications tend to lend themselves to procedural thinking anyway. However, I do not "say f'it and write the app like a retard", either. I will still bring to this work a skepticism of magic literals, a certain set of identifier selection conventions, and a general intent to make my code as robust, resilient, and configurable as reasonably possible.

      1 Reply Last reply
      0
      • S Slacker007

        If you are writing an app that no one will see (other devs), do you still follow best practices i.e. creating classes, data access layers, blah, blah, blah? or, do you say f'it and write the app like a retard? i.e. putting all 5-8K lines of code in one form class and calling it a day. I am being asked by a senior dev to do something that I feel is fundamentally wrong as a programmer but he is the "senior" dev and thus must be obeyed.

        Just along for the ride. "the meat from that butcher is just the dogs danglies, absolutely amazing cuts of beef." - DaveAuld (2011)
        "No, that is just the earthly manifestation of the Great God Retardon." - Nagy Vilmos (2011)

        D Offline
        D Offline
        Dennis E White
        wrote on last edited by
        #23

        If doing it right takes more than double the time of doing it like a 'tard then do as your boss says. if it really bothers afterwards then come back to it and clean it up on your own time. if the difference in time though is minimal then do it right. this is like an interview question... :doh: to which my answer is that the ultimately that the customer is right and while I can try to influence their decision as much as possible I have to follow and implement their decision so long as it does not violate my personal ethics or morals.

        as if the facebook, twitter and message boards weren't enough - blogged

        1 Reply Last reply
        0
        • S Slacker007

          If you are writing an app that no one will see (other devs), do you still follow best practices i.e. creating classes, data access layers, blah, blah, blah? or, do you say f'it and write the app like a retard? i.e. putting all 5-8K lines of code in one form class and calling it a day. I am being asked by a senior dev to do something that I feel is fundamentally wrong as a programmer but he is the "senior" dev and thus must be obeyed.

          Just along for the ride. "the meat from that butcher is just the dogs danglies, absolutely amazing cuts of beef." - DaveAuld (2011)
          "No, that is just the earthly manifestation of the Great God Retardon." - Nagy Vilmos (2011)

          R Offline
          R Offline
          R Giskard Reventlov
          wrote on last edited by
          #24

          When asked to do something like this I always confirm it in an email with 'Are you absolutely certain you want me to do it this way?'

          "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. nils illegitimus carborundum me, me, me

          1 Reply Last reply
          0
          • S Slacker007

            If you are writing an app that no one will see (other devs), do you still follow best practices i.e. creating classes, data access layers, blah, blah, blah? or, do you say f'it and write the app like a retard? i.e. putting all 5-8K lines of code in one form class and calling it a day. I am being asked by a senior dev to do something that I feel is fundamentally wrong as a programmer but he is the "senior" dev and thus must be obeyed.

            Just along for the ride. "the meat from that butcher is just the dogs danglies, absolutely amazing cuts of beef." - DaveAuld (2011)
            "No, that is just the earthly manifestation of the Great God Retardon." - Nagy Vilmos (2011)

            A Offline
            A Offline
            AspDotNetDev
            wrote on last edited by
            #25

            Slacker007 wrote:

            do you say f'it and write the app like a retard?

            Never go full retard.

            Slacker007 wrote:

            I am being asked by a senior dev to do something that I feel is fundamentally wrong

            If he is saying to do it the quick and dirty way, do it as professionally as you can, then when he sees the code and asks "why did you waste all that time making the code look good," tell him "I didn't... my quick and dirty code is the same as your best code. This comes so naturally to me, that it would actually take longer to make it any crappier."

            Somebody in an online forum wrote:

            INTJs never really joke. They make a point. The joke is just a gift wrapper.

            _ 1 Reply Last reply
            0
            • S Slacker007

              If you are writing an app that no one will see (other devs), do you still follow best practices i.e. creating classes, data access layers, blah, blah, blah? or, do you say f'it and write the app like a retard? i.e. putting all 5-8K lines of code in one form class and calling it a day. I am being asked by a senior dev to do something that I feel is fundamentally wrong as a programmer but he is the "senior" dev and thus must be obeyed.

              Just along for the ride. "the meat from that butcher is just the dogs danglies, absolutely amazing cuts of beef." - DaveAuld (2011)
              "No, that is just the earthly manifestation of the Great God Retardon." - Nagy Vilmos (2011)

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

              Slacker007 wrote:

              but he is the "senior" dev and thus must be obeyed.

              No, he must be challenged. Don't accept stuff like this just because he's the boss but explain why you are genetically constrained from doing it. If he insists then get it in writing.

              Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman

              1 Reply Last reply
              0
              • A AspDotNetDev

                Slacker007 wrote:

                do you say f'it and write the app like a retard?

                Never go full retard.

                Slacker007 wrote:

                I am being asked by a senior dev to do something that I feel is fundamentally wrong

                If he is saying to do it the quick and dirty way, do it as professionally as you can, then when he sees the code and asks "why did you waste all that time making the code look good," tell him "I didn't... my quick and dirty code is the same as your best code. This comes so naturally to me, that it would actually take longer to make it any crappier."

                Somebody in an online forum wrote:

                INTJs never really joke. They make a point. The joke is just a gift wrapper.

                _ Offline
                _ Offline
                _beauw_
                wrote on last edited by
                #27

                AspDotNetDev wrote:

                "I didn't... my quick and dirty code is the same as your best code. This comes so naturally to me, that it would actually take longer to make it any crappier."

                That sounds insufficiently diplomatic to me. There is a way to say this without bringing the quality of the other person's code (or, the lack thereof) into the discussion.

                1 Reply Last reply
                0
                • R realJSOP

                  Tell him you're getting a woody, and he'll leave you alone. Trust me on this. EDIT ============== 1-voted AGAIN! Geeze! And to think this isn't even the funniest thing I've posted today... :)

                  ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                  -----
                  You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                  -----
                  "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

                  C Offline
                  C Offline
                  CalvinHobbies
                  wrote on last edited by
                  #28

                  Wasn me this time I swear. I put a five'r up due to funny, and would awesome to see the other persons face (and likely something I'd do strangely). there should be a houserule of not encouraging the nocturnals. My response would have been to fake crying really. :)

                  ///////////////// -Negative, I am a meat popsicle.

                  1 Reply Last reply
                  0
                  • S Slacker007

                    If you are writing an app that no one will see (other devs), do you still follow best practices i.e. creating classes, data access layers, blah, blah, blah? or, do you say f'it and write the app like a retard? i.e. putting all 5-8K lines of code in one form class and calling it a day. I am being asked by a senior dev to do something that I feel is fundamentally wrong as a programmer but he is the "senior" dev and thus must be obeyed.

                    Just along for the ride. "the meat from that butcher is just the dogs danglies, absolutely amazing cuts of beef." - DaveAuld (2011)
                    "No, that is just the earthly manifestation of the Great God Retardon." - Nagy Vilmos (2011)

                    P Offline
                    P Offline
                    peterchen
                    wrote on last edited by
                    #29

                    Of course I do! I also have made it a good practice to never lok at such code again.

                    FILETIME to time_t
                    | FoldWithUs! | sighist | WhoIncludes - Analyzing C++ include file hierarchy

                    1 Reply Last reply
                    0
                    • S Slacker007

                      This is why I asked the question a while back...what makes you a senior dev, the fact that you are 400 years old and have been coding since your were 3 years old or the fact that you actually know what the fuck you are doing. This guy is an idiot, i know it.

                      Just along for the ride. "the meat from that butcher is just the dogs danglies, absolutely amazing cuts of beef." - DaveAuld (2011)
                      "No, that is just the earthly manifestation of the Great God Retardon." - Nagy Vilmos (2011)

                      A Offline
                      A Offline
                      Albert Holguin
                      wrote on last edited by
                      #30

                      Trust me... I know the feeling... won't get into it [online, in a public forum]... but I know the feeling... X|

                      1 Reply Last reply
                      0
                      • X Xiangyang Liu

                        Slacker007 wrote:

                        i.e. putting all 5-8K lines of code in one form class and calling it a day.

                        This alone does not make it bad code. I hate pojects that have too many unnecessary interfaces/abstractions, it takes forever for you to find the code that does the real work. Just my two cents.

                        My Younger Son & His "PET"

                        A Offline
                        A Offline
                        Albert Holguin
                        wrote on last edited by
                        #31

                        That's true... abstraction where needed, not for the sake of making things abstract.

                        1 Reply Last reply
                        0
                        • R realJSOP

                          Isn't that the same thing as a scrotum?

                          ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                          -----
                          You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                          -----
                          "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

                          S Offline
                          S Offline
                          Slacker007
                          wrote on last edited by
                          #32

                          Yep. you really pissed someone off. I gave you a fiver to compensate.

                          Just along for the ride. "the meat from that butcher is just the dogs danglies, absolutely amazing cuts of beef." - DaveAuld (2011)
                          "No, that is just the earthly manifestation of the Great God Retardon." - Nagy Vilmos (2011) "It is the celestial scrotum of good luck!" - Nagy Vilmos (2011)

                          S 1 Reply Last reply
                          0
                          • S Slacker007

                            If you are writing an app that no one will see (other devs), do you still follow best practices i.e. creating classes, data access layers, blah, blah, blah? or, do you say f'it and write the app like a retard? i.e. putting all 5-8K lines of code in one form class and calling it a day. I am being asked by a senior dev to do something that I feel is fundamentally wrong as a programmer but he is the "senior" dev and thus must be obeyed.

                            Just along for the ride. "the meat from that butcher is just the dogs danglies, absolutely amazing cuts of beef." - DaveAuld (2011)
                            "No, that is just the earthly manifestation of the Great God Retardon." - Nagy Vilmos (2011)

                            S Offline
                            S Offline
                            Single Step Debugger
                            wrote on last edited by
                            #33

                            I think there was a term for this: “Duct tape programming ”. I would try if the time allows to make it kind of properly. After all if X is lay-off and you have a new boss telling him “Mr. X made me to create this shit!” will sound a little unprofessional.

                            There is only one Vera Farmiga and Salma Hayek is her prophet! Advertise here – minimum three posts per day are guaranteed.

                            1 Reply Last reply
                            0
                            • S Slacker007

                              This is why I asked the question a while back...what makes you a senior dev, the fact that you are 400 years old and have been coding since your were 3 years old or the fact that you actually know what the fuck you are doing. This guy is an idiot, i know it.

                              Just along for the ride. "the meat from that butcher is just the dogs danglies, absolutely amazing cuts of beef." - DaveAuld (2011)
                              "No, that is just the earthly manifestation of the Great God Retardon." - Nagy Vilmos (2011)

                              W Offline
                              W Offline
                              wout de zeeuw
                              wrote on last edited by
                              #34

                              Someday a guy younger than you will come along and think you're the idiot. :cool:

                              Wout

                              S 1 Reply Last reply
                              0
                              • W wout de zeeuw

                                Someday a guy younger than you will come along and think you're the idiot. :cool:

                                Wout

                                S Offline
                                S Offline
                                Slacker007
                                wrote on last edited by
                                #35

                                wout de zeeuw wrote:

                                Someday a guy younger than you will come along and think you're the idiot.

                                not a chance in hell. :cool:

                                Just along for the ride. "the meat from that butcher is just the dogs danglies, absolutely amazing cuts of beef." - DaveAuld (2011)
                                "No, that is just the earthly manifestation of the Great God Retardon." - Nagy Vilmos (2011) "It is the celestial scrotum of good luck!" - Nagy Vilmos (2011)

                                S 1 Reply Last reply
                                0
                                • S Slacker007

                                  If you are writing an app that no one will see (other devs), do you still follow best practices i.e. creating classes, data access layers, blah, blah, blah? or, do you say f'it and write the app like a retard? i.e. putting all 5-8K lines of code in one form class and calling it a day. I am being asked by a senior dev to do something that I feel is fundamentally wrong as a programmer but he is the "senior" dev and thus must be obeyed.

                                  Just along for the ride. "the meat from that butcher is just the dogs danglies, absolutely amazing cuts of beef." - DaveAuld (2011)
                                  "No, that is just the earthly manifestation of the Great God Retardon." - Nagy Vilmos (2011)

                                  G Offline
                                  G Offline
                                  GateKeeper22
                                  wrote on last edited by
                                  #36

                                  You have to remember that the senior developer may know the bigger picture. Best thing to do is ask them why they want you to do it this way. If they are a good senior developer they will give you a good answer and explain how/why they came to that conclusion. If they say it is just because the project isn't going to be around long than I would be a little suspicious of that. I have worked with both bad and good senior developers. The good ones always explain why they decided to do something when you ask them. The bad ones get offended usually and give you a generic answer like it is temporary or only one person will use it.

                                  1 Reply Last reply
                                  0
                                  • S Slacker007

                                    If you are writing an app that no one will see (other devs), do you still follow best practices i.e. creating classes, data access layers, blah, blah, blah? or, do you say f'it and write the app like a retard? i.e. putting all 5-8K lines of code in one form class and calling it a day. I am being asked by a senior dev to do something that I feel is fundamentally wrong as a programmer but he is the "senior" dev and thus must be obeyed.

                                    Just along for the ride. "the meat from that butcher is just the dogs danglies, absolutely amazing cuts of beef." - DaveAuld (2011)
                                    "No, that is just the earthly manifestation of the Great God Retardon." - Nagy Vilmos (2011)

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

                                    When it comes to coding, perfection is an attitude. You either have it or you don't have it, irrespective of whether others work with your code or not.

                                    1 Reply Last reply
                                    0
                                    • N Nagy Vilmos

                                      For God's sake, do it right! I have seen too many /quick jobs/ that evolved from helping one person to becoming used company wide. Where the code is shyte, the extensibility is greatly reduced and at some point the whole shedangs need to be redone. [edit] Looks like I can not spell today.


                                      Panic, Chaos, Destruction. My work here is done. Drink. Get drunk. Fall over - P O'H OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre I cannot live by bread alone. Bacon and ketchup are needed as well. - Trollslayer Have a bit more patience with newbies. Of course some of them act dumb - they're often *students*, for heaven's sake - Terry Pratchett

                                      G Offline
                                      G Offline
                                      GuyThiebaut
                                      wrote on last edited by
                                      #38

                                      I completely agree with your point and I would go further - if this person insists on it then: 1)get them to write an email to you making it clear it is their decision(keep this email). 2)comment the code to show it is their decision. This way when the manure hits the fan you are covered... although not in manure...

                                      “That which can be asserted without evidence, can be dismissed without evidence.”

                                      ― Christopher Hitchens

                                      1 Reply Last reply
                                      0
                                      • N Nagy Vilmos

                                        For God's sake, do it right! I have seen too many /quick jobs/ that evolved from helping one person to becoming used company wide. Where the code is shyte, the extensibility is greatly reduced and at some point the whole shedangs need to be redone. [edit] Looks like I can not spell today.


                                        Panic, Chaos, Destruction. My work here is done. Drink. Get drunk. Fall over - P O'H OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre I cannot live by bread alone. Bacon and ketchup are needed as well. - Trollslayer Have a bit more patience with newbies. Of course some of them act dumb - they're often *students*, for heaven's sake - Terry Pratchett

                                        H Offline
                                        H Offline
                                        Henry Minute
                                        wrote on last edited by
                                        #39

                                        Nagy Vilmos wrote:

                                        Looks like I can not spell today.

                                        Damned right! That should be 'Sac'. Apropos of your scrotum, I give you Why you can't comb a hairy ball[^]. Although it might be entertaining to get your SO to try.

                                        Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.

                                        1 Reply Last reply
                                        0
                                        • S Slacker007

                                          If you are writing an app that no one will see (other devs), do you still follow best practices i.e. creating classes, data access layers, blah, blah, blah? or, do you say f'it and write the app like a retard? i.e. putting all 5-8K lines of code in one form class and calling it a day. I am being asked by a senior dev to do something that I feel is fundamentally wrong as a programmer but he is the "senior" dev and thus must be obeyed.

                                          Just along for the ride. "the meat from that butcher is just the dogs danglies, absolutely amazing cuts of beef." - DaveAuld (2011)
                                          "No, that is just the earthly manifestation of the Great God Retardon." - Nagy Vilmos (2011)

                                          J Offline
                                          J Offline
                                          jschell
                                          wrote on last edited by
                                          #40

                                          Slacker007 wrote:

                                          putting all 5-8K lines of code in one form class and calling it a day.

                                          Where "form" is a GUI of some sort right? Why would you be writing something like that where there is no possibility that another developer would ever see it? That of course means that no one else would ever use it either. Because by definition if someone else needs to use it then it becomes a supported product which means someone else we need to look at the code someday.

                                          Slacker007 wrote:

                                          I am being asked by a senior dev to do something that I feel is fundamentally wrong as a programmer

                                          Presumably that person is telling you to hack it rather than do it correctly. Guess it depends on the situation. One alternative is to do it right then write an app that concantenates it into one massive ill-formated mess.

                                          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