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.
  • OriginalGriffO OriginalGriff

    Nagy Vilmos wrote:

    becoming used company wide

    Or worse. I was asked to do a rush demo about 25 years ago - work through the weekend, hurl it together job for demo on Monday. "OK," says I "provided everyone understands it's a demo only, and we will need months to get the full thing working properly." "Yes, yes - just do it" comes the reply. Take the computer home, coffee, pizza, hack hack. Monday the demo is up and limping. What happens? The sales guys sold it and we had to maintain that POS for three years...

    Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water

    R Offline
    R Offline
    RineezTVM
    wrote on last edited by
    #54

    Where is that sales guy now!?

    OriginalGriffO 1 Reply Last reply
    0
    • R RineezTVM

      Where is that sales guy now!?

      OriginalGriffO Online
      OriginalGriffO Online
      OriginalGriff
      wrote on last edited by
      #55

      From 25 years ago? Probably dead of liver failure, given the amount "good" salesmen tend to drink...

      Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      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
        RineezTVM
        wrote on last edited by
        #56

        We don't follow good coding practices to show others! We follow those for our own sake. He is probably a Senior dev by accident. You may write such crappy code if you are sure you will never ever have to maintain any part of it. But remember God is watching u. :)

        1 Reply Last reply
        0
        • N Nagy Vilmos

          It is the celestial scrotum of good luck!


          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

          J Offline
          J Offline
          john ackerman
          wrote on last edited by
          #57

          Rotflmfao

          1 Reply Last reply
          0
          • F Fabio Franco

            They are called best practices for a reason. They are not made for other developers, they are made for every developer, including yourself. The initial overhead might suck, but it surely pays off on the long run. You don't want to have your own magic code come after your ass later on. And there's no such thing no one else will see. Eventually someone will see it, you never know when a project gets more people involved, or when it switches hands. Be kind to the developer that comes to support your application when you're gone. He might even give you a call to say thank you, instead of "what the hell you've done here?"

            "To alcohol! The cause of, and solution to, all of life's problems" - Homer Simpson

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

            well said and very true.

            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)

            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)

              B Offline
              B Offline
              BubingaMan
              wrote on last edited by
              #59

              Always do it right. If the "senior" says you need to do it wrong... Make sure it is known by other people that he ordered you to do it wrong. And protest heavily. That's what I would do.

              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
                JBoyer11
                wrote on last edited by
                #60

                There is no such thing as a program that no one will see. At the very least, you will see it. In six months you will have to make a change and then you will look at it and say "Who wrote this piece of crap?" Then you will remember that it was you.

                1 Reply Last reply
                0
                • S Slacker007

                  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 Offline
                  S Offline
                  Stefan_Lang
                  wrote on last edited by
                  #61

                  that makes me older than you. ;P

                  1 Reply Last reply
                  0
                  • S Slacker007

                    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 Offline
                    S Offline
                    Stefan_Lang
                    wrote on last edited by
                    #62

                    The funny thing is that the rating system 'downrates' outliers anyway, so the assembled 'make up for' 5ers may actually cause a higher rating in the end! :D

                    1 Reply Last reply
                    0
                    • C Corporal Agarn

                      Erudite_Eric wrote:

                      or die

                      Until six months later when you try and edit the code. :)

                      S Offline
                      S Offline
                      Stefan_Lang
                      wrote on last edited by
                      #63

                      Why edit? Refactor!

                      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)

                        E Offline
                        E Offline
                        Earl Truss
                        wrote on last edited by
                        #64

                        Of course. I'll have to look at it again some day even if no one else does.

                        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)

                          N Offline
                          N Offline
                          Narud Shiro
                          wrote on last edited by
                          #65

                          Rigth, you can do your app without follow best practices. Even you can do it without follow any practice at all. But, unless the app would be for your personal use, or you're the company owner, you can't be absolutely sure that somebody else should have to modify your code one day. And regardless if you or someone else will modify the app after, it's a good thing to use a practice instead of do the things at fly, or in spaghetti style, because although you delay more time to do the app today, you could be saving to shoot your feet in the future. In other hand, if setting the title of 'senior' to every developer could make them good developers, that will solve all the development issues in the IT world ;P . P.D.: The first lesson of a good teacher is that he NOT always is right.

                          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)

                            C Offline
                            C Offline
                            cmichaelgraham
                            wrote on last edited by
                            #66

                            Integrity is what you do when no one is watching

                            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)

                              Sander RosselS Offline
                              Sander RosselS Offline
                              Sander Rossel
                              wrote on last edited by
                              #67

                              Yeah, even if no other devs will read my code I WILL be reading my code. And like any other programmer out there I want to read readable code, even if it's my own :)

                              It's an OO world.

                              public class Naerling : Lazy<Person>{
                              public void DoWork(){ throw new NotImplementedException(); }
                              }

                              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
                                jsc42
                                wrote on last edited by
                                #68

                                Tell him that unprofessional conduct is a disciplinary offence, but is not as serious as incitement to commit the offence - that constitutes 'bring the company into disrepute', which is gross misconduct and he can be summarily dismissed for it. If he values his job, he must allow you to procede in a proper manner. If this has no effect, tell him that you are notifying his doctor / car mechanic / whatever that his stated preferred policy is to want negligent, unprofessional and unsafe treatment and they can cut corners with his health with impunity.

                                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
                                  jesseseger
                                  wrote on last edited by
                                  #69

                                  If he were a good senior dev, wouldn't he subscribe to the the lounge and see all this ramblings about him??

                                  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
                                    patbob
                                    wrote on last edited by
                                    #70

                                    If the code is one time use, won't be checked in, nobody else will ever see it, and there's no chance you'll ever have to go back into it to make any changes, then yeah, toss all the good practices that don't help you get it done quickly. I've yet to find any work code that has ever met any of those qualities. Only code for my own personal projects sometimes meets all those criteria, and even then, sometimes I've been wrong.

                                    We can program with only 1's, but if all you've got are zeros, you've got nothing.

                                    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
                                      jelamid
                                      wrote on last edited by
                                      #71

                                      Always. The next programmer to look at it will be yourself. Why make that future self curse you?

                                      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
                                        SeattleC
                                        wrote on last edited by
                                        #72

                                        "Best Practices" are called that for a reason; they make your job easier. If you don't think so, then you aren't sufficiently experienced. I always follow best practices because I'm done in fewer hours when I do.

                                        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

                                          D Offline
                                          D Offline
                                          devenneym
                                          wrote on last edited by
                                          #73

                                          Nagy Vilmos wrote:

                                          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.

                                          So true! I watched something that we started to call the "revolving iterative prototype" slip into production under the radar and then suddenly the business unit using it (yep, real users, not tech savvy IT types who might be understanding if something was a little shaky). The users wanted to start adding features, requesting bug fixes and after a year or so made a formal request to expand it to a suite of applications. :omg: When I left the company some 7 years later some parts of the expanded suite were still in use. I was the last developer in the company who was there when it was born and, luckily, managed to put a good bit of distance between myself and the suite in that time.

                                          Mike Devenney

                                          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