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. What defines a Hack?

What defines a Hack?

Scheduled Pinned Locked Moved The Lounge
databasecollaborationtutorialquestion
20 Posts 13 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.
  • J Offline
    J Offline
    Jason McBurney
    wrote on last edited by
    #1

    Have you ever talked to that one guy on your team that always come up with the ludicrious ideas. These ideas are so bad that you would be embarassed to put your name on? For example if one was writing a database application why would we want to store some of the crital information in a execl file that my users have access to? (uggh is this a hack?) Have you ever talked with your management, and they tell you "This new feature is not too hard, just add an 'if' statment?" 72 sleepless hours later you have engineered the best bandaid ever concived... Is that a hack. I think a hack is a blurred line between code as art and functional code. Hacks tend to work, but they are not pretty. How do you feel?

    J G N J L 10 Replies Last reply
    0
    • J Jason McBurney

      Have you ever talked to that one guy on your team that always come up with the ludicrious ideas. These ideas are so bad that you would be embarassed to put your name on? For example if one was writing a database application why would we want to store some of the crital information in a execl file that my users have access to? (uggh is this a hack?) Have you ever talked with your management, and they tell you "This new feature is not too hard, just add an 'if' statment?" 72 sleepless hours later you have engineered the best bandaid ever concived... Is that a hack. I think a hack is a blurred line between code as art and functional code. Hacks tend to work, but they are not pretty. How do you feel?

      J Offline
      J Offline
      James Spibey
      wrote on last edited by
      #2

      I'd define a hack as any piece of code that you are not entirely happy with. That is to say if you can look at some code you've written after a couple of months and not wince then it's not a hack. :) Cheers James

      G M 2 Replies Last reply
      0
      • J Jason McBurney

        Have you ever talked to that one guy on your team that always come up with the ludicrious ideas. These ideas are so bad that you would be embarassed to put your name on? For example if one was writing a database application why would we want to store some of the crital information in a execl file that my users have access to? (uggh is this a hack?) Have you ever talked with your management, and they tell you "This new feature is not too hard, just add an 'if' statment?" 72 sleepless hours later you have engineered the best bandaid ever concived... Is that a hack. I think a hack is a blurred line between code as art and functional code. Hacks tend to work, but they are not pretty. How do you feel?

        G Offline
        G Offline
        Giles
        wrote on last edited by
        #3

        I get this stuff all the time. The users don't have say Access installed, but it needs a database, so install a recent copy of MDAC, along with the Acess 2000 DB they can't see. Add the app to do all the processing, but wait, they need to feed the DB with their own static data, and the only two things they can get it into from their system is Excel or a csv file. And as they need to maintain it (I'm not going to let these people edit a csv in notepad), it ends up in Excel. Anyway, some double sided sticky tape later, along with some glue, carefully folder paper, and my hair going grey, I have something that works. Clients.....who needs them. :eek:

        1 Reply Last reply
        0
        • J James Spibey

          I'd define a hack as any piece of code that you are not entirely happy with. That is to say if you can look at some code you've written after a couple of months and not wince then it's not a hack. :) Cheers James

          G Offline
          G Offline
          Giles
          wrote on last edited by
          #4

          James Spibey wrote: That is to say if you can look at some code you've written after a couple of months and not wince then it's not a hack. Yep, that wince factor gives it away. Or the sudden sickly feeling that its still working somehow.

          1 Reply Last reply
          0
          • J Jason McBurney

            Have you ever talked to that one guy on your team that always come up with the ludicrious ideas. These ideas are so bad that you would be embarassed to put your name on? For example if one was writing a database application why would we want to store some of the crital information in a execl file that my users have access to? (uggh is this a hack?) Have you ever talked with your management, and they tell you "This new feature is not too hard, just add an 'if' statment?" 72 sleepless hours later you have engineered the best bandaid ever concived... Is that a hack. I think a hack is a blurred line between code as art and functional code. Hacks tend to work, but they are not pretty. How do you feel?

            N Offline
            N Offline
            Nitron
            wrote on last edited by
            #5

            All of the above! Our simulation environment is total hack! When integrating HW and SW, if the HW is out of spec, or the people installing it are total ID-10.T's, everyone seems to think "Oh, we'll just fix it in the software..." Man, we get so many Jason McBurney wrote: "This new feature is not too hard, just add an 'if' statment?" 's it's not even funny! And as far as documentation of how we got it all to magically work... :wtf::omg::wtf: Nitron _________________________________________-- message sent on 100% recycled electrons.

            C 1 Reply Last reply
            0
            • J James Spibey

              I'd define a hack as any piece of code that you are not entirely happy with. That is to say if you can look at some code you've written after a couple of months and not wince then it's not a hack. :) Cheers James

              M Offline
              M Offline
              Martin Bohring
              wrote on last edited by
              #6

              By that definition everthing I have ever coded would have been a hack. I am never fully satisfied with anything I have ever written. There is always room for improvements. There is always a more elegant, easier and more symetrical solution. Sometimes I believe life is also only a real time 3D graphics simulation. But the rules engine is really fkd up.

              1 Reply Last reply
              0
              • J Jason McBurney

                Have you ever talked to that one guy on your team that always come up with the ludicrious ideas. These ideas are so bad that you would be embarassed to put your name on? For example if one was writing a database application why would we want to store some of the crital information in a execl file that my users have access to? (uggh is this a hack?) Have you ever talked with your management, and they tell you "This new feature is not too hard, just add an 'if' statment?" 72 sleepless hours later you have engineered the best bandaid ever concived... Is that a hack. I think a hack is a blurred line between code as art and functional code. Hacks tend to work, but they are not pretty. How do you feel?

                J Offline
                J Offline
                Jason McBurney
                wrote on last edited by
                #7

                It seems that I am not the only one that has this problem. What should we as coders do? Start a union :-D we could demand that we have system aritects that know what the heck is going on in the software that we write. (yeah right) Or we can just try and rise above the hacking: we could say "hey man it will take 6 weeks to make this work correctly". When they counter and say "we need it in 2" we reply with "you should have told me 4 week sooner,huh!" then they will fire us and trash the project... (Note: insert scarsam here) Lets hold to our coding theroies of abstraction, reusability, modularity, and out of these fundamentals falls maintainability, and less hair pulling. I will someday code a project that I will be proud of. Someday I will have the huevos to tell managment that I am not going to hackup my code.

                N 1 Reply Last reply
                0
                • J Jason McBurney

                  Have you ever talked to that one guy on your team that always come up with the ludicrious ideas. These ideas are so bad that you would be embarassed to put your name on? For example if one was writing a database application why would we want to store some of the crital information in a execl file that my users have access to? (uggh is this a hack?) Have you ever talked with your management, and they tell you "This new feature is not too hard, just add an 'if' statment?" 72 sleepless hours later you have engineered the best bandaid ever concived... Is that a hack. I think a hack is a blurred line between code as art and functional code. Hacks tend to work, but they are not pretty. How do you feel?

                  L Offline
                  L Offline
                  l a u r e n
                  wrote on last edited by
                  #8

                  a hack is a piece of code that does the job but ur sure theres a better way of doing it .... u just cant think of it at the time :)


                  "even if my world is weird it's my world"
                  biz stuff   about me

                  1 Reply Last reply
                  0
                  • J Jason McBurney

                    Have you ever talked to that one guy on your team that always come up with the ludicrious ideas. These ideas are so bad that you would be embarassed to put your name on? For example if one was writing a database application why would we want to store some of the crital information in a execl file that my users have access to? (uggh is this a hack?) Have you ever talked with your management, and they tell you "This new feature is not too hard, just add an 'if' statment?" 72 sleepless hours later you have engineered the best bandaid ever concived... Is that a hack. I think a hack is a blurred line between code as art and functional code. Hacks tend to work, but they are not pretty. How do you feel?

                    T Offline
                    T Offline
                    Tim Smith
                    wrote on last edited by
                    #9

                    Hack - Anything that makes you want to shower after coding. Tim Smith I'm going to patent thought. I have yet to see any prior art.

                    C 1 Reply Last reply
                    0
                    • J Jason McBurney

                      Have you ever talked to that one guy on your team that always come up with the ludicrious ideas. These ideas are so bad that you would be embarassed to put your name on? For example if one was writing a database application why would we want to store some of the crital information in a execl file that my users have access to? (uggh is this a hack?) Have you ever talked with your management, and they tell you "This new feature is not too hard, just add an 'if' statment?" 72 sleepless hours later you have engineered the best bandaid ever concived... Is that a hack. I think a hack is a blurred line between code as art and functional code. Hacks tend to work, but they are not pretty. How do you feel?

                      J Offline
                      J Offline
                      Jeff Patterson
                      wrote on last edited by
                      #10

                      Here in the Northern part of Illinois we call that a cluedge. <- spelling? It seems that as soon as it comes out of engineering and hits the floor it becomes a hack. Thanks to a large part of scope creep and project managers who think you can fix anything with software. But it pays the same. Just don't put my name on it. Jeff Patterson Programmers speak in Code. http://www.anti-dmca.org

                      J 1 Reply Last reply
                      0
                      • J Jeff Patterson

                        Here in the Northern part of Illinois we call that a cluedge. <- spelling? It seems that as soon as it comes out of engineering and hits the floor it becomes a hack. Thanks to a large part of scope creep and project managers who think you can fix anything with software. But it pays the same. Just don't put my name on it. Jeff Patterson Programmers speak in Code. http://www.anti-dmca.org

                        J Offline
                        J Offline
                        Jason McBurney
                        wrote on last edited by
                        #11

                        Jeff Patterson wrote: a large part of scope creep I hear this ... my project started as a glorfied calculator, it has exploded to a peopleSoft like database over (insert shudder here) Access. We are doomed for failure :laugh: But the money is green, No? uggh I am such a slave to society ... :)

                        1 Reply Last reply
                        0
                        • T Tim Smith

                          Hack - Anything that makes you want to shower after coding. Tim Smith I'm going to patent thought. I have yet to see any prior art.

                          C Offline
                          C Offline
                          Christopher Duncan
                          wrote on last edited by
                          #12

                          Tim Smith wrote: Hack - Anything that makes you want to shower after coding. C'mon, somebody - that's about as quotable as it gets! :-) Chistopher Duncan Author - The Career Programmer: Guerilla Tactics for an Imperfect World (Apress)

                          1 Reply Last reply
                          0
                          • J Jason McBurney

                            Have you ever talked to that one guy on your team that always come up with the ludicrious ideas. These ideas are so bad that you would be embarassed to put your name on? For example if one was writing a database application why would we want to store some of the crital information in a execl file that my users have access to? (uggh is this a hack?) Have you ever talked with your management, and they tell you "This new feature is not too hard, just add an 'if' statment?" 72 sleepless hours later you have engineered the best bandaid ever concived... Is that a hack. I think a hack is a blurred line between code as art and functional code. Hacks tend to work, but they are not pretty. How do you feel?

                            RaviBeeR Offline
                            RaviBeeR Offline
                            RaviBee
                            wrote on last edited by
                            #13

                            Defn[^] /ravi Let's put "civil" back in "civilization" http://www.ravib.com ravib@ravib.com

                            1 Reply Last reply
                            0
                            • N Nitron

                              All of the above! Our simulation environment is total hack! When integrating HW and SW, if the HW is out of spec, or the people installing it are total ID-10.T's, everyone seems to think "Oh, we'll just fix it in the software..." Man, we get so many Jason McBurney wrote: "This new feature is not too hard, just add an 'if' statment?" 's it's not even funny! And as far as documentation of how we got it all to magically work... :wtf::omg::wtf: Nitron _________________________________________-- message sent on 100% recycled electrons.

                              C Offline
                              C Offline
                              Christopher Duncan
                              wrote on last edited by
                              #14

                              Nitron wrote: "Oh, we'll just fix it in the software..." :laugh: There's an old joke among musicians along those lines - "We'll fix it in the mix..." Chistopher Duncan Author - The Career Programmer: Guerilla Tactics for an Imperfect World (Apress)

                              T 1 Reply Last reply
                              0
                              • J Jason McBurney

                                It seems that I am not the only one that has this problem. What should we as coders do? Start a union :-D we could demand that we have system aritects that know what the heck is going on in the software that we write. (yeah right) Or we can just try and rise above the hacking: we could say "hey man it will take 6 weeks to make this work correctly". When they counter and say "we need it in 2" we reply with "you should have told me 4 week sooner,huh!" then they will fire us and trash the project... (Note: insert scarsam here) Lets hold to our coding theroies of abstraction, reusability, modularity, and out of these fundamentals falls maintainability, and less hair pulling. I will someday code a project that I will be proud of. Someday I will have the huevos to tell managment that I am not going to hackup my code.

                                N Offline
                                N Offline
                                Nitron
                                wrote on last edited by
                                #15

                                You go Jason! Make a stand! We will not give up inheratance and polymorphism! We will not give up without a fight! As we go boldy into the night, let us not forget our true instinct and heritage... We are the wise and mighty avatars of object-oriented design! Long live C++! And to all those of CP, all fair and wise, I as your loyal leader and servant leave you with this message... FIGHT!! FIGHT!!! FIGHT!!!! We will never surrender! :laugh: :~ ok, im definately cut off. no more coffee or leftover halloween treats for me today :rolleyes: Nitron _________________________________________-- message sent on 100% recycled electrons.

                                1 Reply Last reply
                                0
                                • J Jason McBurney

                                  Have you ever talked to that one guy on your team that always come up with the ludicrious ideas. These ideas are so bad that you would be embarassed to put your name on? For example if one was writing a database application why would we want to store some of the crital information in a execl file that my users have access to? (uggh is this a hack?) Have you ever talked with your management, and they tell you "This new feature is not too hard, just add an 'if' statment?" 72 sleepless hours later you have engineered the best bandaid ever concived... Is that a hack. I think a hack is a blurred line between code as art and functional code. Hacks tend to work, but they are not pretty. How do you feel?

                                  M Offline
                                  M Offline
                                  Megan Forbes
                                  wrote on last edited by
                                  #16

                                  A hack is a piece of code which, usually, comes back to bite you on the arse - even sooner than expected :-O


                                  Deploying a web application without understanding security is roughly equivalent to driving a car without seatbelts - down a slippery road, over a monstrous chasm, with no brakes, and the throttle jammed on full.

                                  Hacking Exposed - Web Applications.   Joel Scambray & Mike Shema

                                  1 Reply Last reply
                                  0
                                  • J Jason McBurney

                                    Have you ever talked to that one guy on your team that always come up with the ludicrious ideas. These ideas are so bad that you would be embarassed to put your name on? For example if one was writing a database application why would we want to store some of the crital information in a execl file that my users have access to? (uggh is this a hack?) Have you ever talked with your management, and they tell you "This new feature is not too hard, just add an 'if' statment?" 72 sleepless hours later you have engineered the best bandaid ever concived... Is that a hack. I think a hack is a blurred line between code as art and functional code. Hacks tend to work, but they are not pretty. How do you feel?

                                    C Offline
                                    C Offline
                                    Chris Maunder
                                    wrote on last edited by
                                    #17

                                    My personal definition is that a Hack is something done quickly and without reference to any particular design document. The more hacks, the more unstable the code will start to get. A kludge, on the other hand, is a brute force hack that not only disregards any idea concept of style, finesse or fitting in with the original design or using the current infrastructure, but goes further and bypasses the current design/infrastructure and will explode in a towering bll of flame if anything vaguely related to it is modified. cheers, Chris Maunder

                                    B 1 Reply Last reply
                                    0
                                    • T Tim Smith

                                      Hehehe, don't get me started about music. Fan: "Oh man, I just love that new song. It is so cool and inspired. And that one place where the drums drop out for effect, that was just brilliant. How did you ever come up with that?" Musician: "The drummer fell off his kit and we were too tired and drunk to try the track again." Tim Smith I'm going to patent thought. I have yet to see any prior art.

                                      C Offline
                                      C Offline
                                      Christopher Duncan
                                      wrote on last edited by
                                      #18

                                      Tim Smith wrote: Fan: "Oh man, I just love that new song. It is so cool and inspired. And that one place where the drums drop out for effect, that was just brilliant. How did you ever come up with that?" Musician: "The drummer fell off his kit and we were too tired and drunk to try the track again." :omg: You mean you were at that session, too? Chistopher Duncan Author - The Career Programmer: Guerilla Tactics for an Imperfect World (Apress)

                                      1 Reply Last reply
                                      0
                                      • C Christopher Duncan

                                        Nitron wrote: "Oh, we'll just fix it in the software..." :laugh: There's an old joke among musicians along those lines - "We'll fix it in the mix..." Chistopher Duncan Author - The Career Programmer: Guerilla Tactics for an Imperfect World (Apress)

                                        T Offline
                                        T Offline
                                        Tim Smith
                                        wrote on last edited by
                                        #19

                                        Hehehe, don't get me started about music. Fan: "Oh man, I just love that new song. It is so cool and inspired. And that one place where the drums drop out for effect, that was just brilliant. How did you ever come up with that?" Musician: "The drummer fell off his kit and we were too tired and drunk to try the track again." Tim Smith I'm going to patent thought. I have yet to see any prior art.

                                        C 1 Reply Last reply
                                        0
                                        • C Chris Maunder

                                          My personal definition is that a Hack is something done quickly and without reference to any particular design document. The more hacks, the more unstable the code will start to get. A kludge, on the other hand, is a brute force hack that not only disregards any idea concept of style, finesse or fitting in with the original design or using the current infrastructure, but goes further and bypasses the current design/infrastructure and will explode in a towering bll of flame if anything vaguely related to it is modified. cheers, Chris Maunder

                                          B Offline
                                          B Offline
                                          Brian Delahunty
                                          wrote on last edited by
                                          #20

                                          Chris Maunder wrote: will explode in a towering bll of flame :wtf: ... you writing mission critical software often Chris???? Other than CP of course. Regards, Brian Dela :-)

                                          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