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. Bad Solution

Bad Solution

Scheduled Pinned Locked Moved The Lounge
19 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 Joan M

    That's not 100% true: You can solve a specific problem in a functional way, therefore what you've done is a solution, but, that solution probably can be implemented in a better way which would cover more cases... If you think of a motor that must go to a specific position, you need to know where the motor is (encoder or any other way to know the feedback position), you need to control the speed of the motor... You can create a simple program that moves the motor to a specific position at a slow speed to ensure that the motor will reach that position (hence a solution). Or you can create a PID algorithm that will handle the speed depending on the Proportional, Integral and Derivative part of the calculus to get an acceleration and deceleration ramp, and a better result in terms of precision and speed. First is a solution (a bad one but it makes the job). Second is a good solution, the best if you know masses and inertias of the complete system. Then there would be the third solution which includes fuzzy logic and it only "should" be used when the inertia and masses are unknown. So indeed there are good and bad solutions to different problems... Anyway I prefer and try always to apply the best option available (that depends of course of the knowledge of that solution (knowing it exists help a lot) and the available time to implement it).

    [www.tamautomation.com] | Robots, CNC and PLC machines for grinding and polishing. [YouTube channel]

    C Offline
    C Offline
    codejet
    wrote on last edited by
    #7

    Solution - something that is used or done to deal with and end a problem. If it deals with the problem or ends it then how can be bad? Sheryl Crow: If it makes you happy....it cant be that bad.

    J 1 Reply Last reply
    0
    • C codejet

      Solution - something that is used or done to deal with and end a problem. If it deals with the problem or ends it then how can be bad? Sheryl Crow: If it makes you happy....it cant be that bad.

      J Offline
      J Offline
      Joan M
      wrote on last edited by
      #8

      codejet wrote:

      Sheryl Crow: If it makes you happy....it cant be that bad.

      Drugs... X|

      [www.tamautomation.com] | Robots, CNC and PLC machines for grinding and polishing. [YouTube channel]

      https://www.robotecnik.com freelance robots, PLC and CNC programmer.

      1 Reply Last reply
      0
      • C codejet

        Solution - something that is used or done to deal with and end a problem. If it deals with the problem or ends it then how can be bad?

        J Offline
        J Offline
        Joan M
        wrote on last edited by
        #9

        It could not cover all the cases, it could not solve the issue in the best way, it could be implemented in a poor way... Therefore it is clear that solves the issue (hence a solution) but it is not doing it the proper way (hence bad). You could solve world's hunger by killing everyone that can't afford eating at an expensive restaurant everyday. It is of course a solution but not a good one (at least IMHO).

        [www.tamautomation.com] | Robots, CNC and PLC machines for grinding and polishing. [YouTube channel]

        https://www.robotecnik.com freelance robots, PLC and CNC programmer.

        L 1 Reply Last reply
        0
        • A Agent__007

          codejet wrote:

          There is no such thing as a 'bad solution'. If its bad then its not a solution at all.

          Not really: If you are asked to prepare a solution of Na and Cl, but you prepare a solution of K and Cl. It's still a solution, but a bad one with respect to what you are asked. :)

          Whether I think I can, or think I can't, I am always bloody right!

          D Offline
          D Offline
          Duncan Edwards Jones
          wrote on last edited by
          #10

          If you're not part of the solution, you're part of the precipitate.

          C 1 Reply Last reply
          0
          • C codejet

            There is no such thing as a 'bad solution'. If its bad then its not a solution at all.

            K Offline
            K Offline
            Keith Barrow
            wrote on last edited by
            #11

            Have you been at the Nietzsche books again? You know they are bad for you, without killing you, you know.

            Alberto Brandolini:

            The amount of energy necessary to refute bullshit is an order of magnitude bigger than to produce it.

            1 Reply Last reply
            0
            • J Joan M

              It could not cover all the cases, it could not solve the issue in the best way, it could be implemented in a poor way... Therefore it is clear that solves the issue (hence a solution) but it is not doing it the proper way (hence bad). You could solve world's hunger by killing everyone that can't afford eating at an expensive restaurant everyday. It is of course a solution but not a good one (at least IMHO).

              [www.tamautomation.com] | Robots, CNC and PLC machines for grinding and polishing. [YouTube channel]

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

              Joan Murt wrote:

              It is of course a solution but not a good one (at least IMHO).

              Why not? It worked for Vlad Tepes.

              J 1 Reply Last reply
              0
              • L Lost User

                Joan Murt wrote:

                It is of course a solution but not a good one (at least IMHO).

                Why not? It worked for Vlad Tepes.

                J Offline
                J Offline
                Joan M
                wrote on last edited by
                #13

                eeeerm... eeerm... erm... pressing the button under the table compulsively... :laugh:

                [www.tamautomation.com] | Robots, CNC and PLC machines for grinding and polishing. [YouTube channel]

                https://www.robotecnik.com freelance robots, PLC and CNC programmer.

                1 Reply Last reply
                0
                • C codejet

                  There is no such thing as a 'bad solution'. If its bad then its not a solution at all.

                  G Offline
                  G Offline
                  Gihan Liyanage
                  wrote on last edited by
                  #14

                  So What Called for Good Solutions ?? :-D

                  Gihan Liyanage http://gihansampathliyanage.wordpress.com

                  1 Reply Last reply
                  0
                  • J Joan M

                    That's not 100% true: You can solve a specific problem in a functional way, therefore what you've done is a solution, but, that solution probably can be implemented in a better way which would cover more cases... If you think of a motor that must go to a specific position, you need to know where the motor is (encoder or any other way to know the feedback position), you need to control the speed of the motor... You can create a simple program that moves the motor to a specific position at a slow speed to ensure that the motor will reach that position (hence a solution). Or you can create a PID algorithm that will handle the speed depending on the Proportional, Integral and Derivative part of the calculus to get an acceleration and deceleration ramp, and a better result in terms of precision and speed. First is a solution (a bad one but it makes the job). Second is a good solution, the best if you know masses and inertias of the complete system. Then there would be the third solution which includes fuzzy logic and it only "should" be used when the inertia and masses are unknown. So indeed there are good and bad solutions to different problems... Anyway I prefer and try always to apply the best option available (that depends of course of the knowledge of that solution (knowing it exists help a lot) and the available time to implement it).

                    [www.tamautomation.com] | Robots, CNC and PLC machines for grinding and polishing. [YouTube channel]

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

                    Joan Murt wrote:

                    create a PID algorithm that will handle the speed depending on the Proportional, Integral and Derivative part of the calculus to get an acceleration and deceleration ramp, and a better result in terms of precision and speed.

                    Nah, just whack it across at full speed, that should do the job... :~

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

                    ― Christopher Hitchens

                    1 Reply Last reply
                    0
                    • C codejet

                      There is no such thing as a 'bad solution'. If its bad then its not a solution at all.

                      A Offline
                      A Offline
                      Alexander Wieser
                      wrote on last edited by
                      #16

                      You can stop a viral or bacterial infection by killing the patient. Would you consider this to be a good solution ?

                      God is a Sphere!

                      1 Reply Last reply
                      0
                      • C codejet

                        There is no such thing as a 'bad solution'. If its bad then its not a solution at all.

                        B Offline
                        B Offline
                        BobJanova
                        wrote on last edited by
                        #17

                        That's not true, even in the general real world (a plank is a 'solution' to an unbridged stream, but not a good one), but particularly in software where a product is never finished and always needs to be extensible. The quality of a solution is not only in whether it does what it should (functional requirements) as fast as it should (non-functional requirements), but also in how easy it is to modify it to solve related problems which are not known at the time of coding (flexible architecture).

                        1 Reply Last reply
                        0
                        • C codejet

                          There is no such thing as a 'bad solution'. If its bad then its not a solution at all.

                          B Offline
                          B Offline
                          Bergholt Stuttley Johnson
                          wrote on last edited by
                          #18

                          what is a bad solution and what is a good one? is a bad solution that is quick to write and will be used once a bad solution? is a good solution that takes a long time to write but again is only used once a good solution? there is nearly always a better way of doing something but will require more skill/knowledge/time/resources etc. does this make every solution bad? if something works then is it bad? the problem with these sound bites is that if thought about they are complete bull

                          You cant outrun the world, but there is no harm in getting a head start Real stupidity beats artificial intelligence every time.

                          1 Reply Last reply
                          0
                          • D Duncan Edwards Jones

                            If you're not part of the solution, you're part of the precipitate.

                            C Offline
                            C Offline
                            charlieg
                            wrote on last edited by
                            #19

                            groan

                            Charlie Gilley Stuck in a dysfunctional matrix from which I must escape... "Where liberty dwells, there is my country." B. Franklin, 1783 “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759

                            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