Bad Solution
-
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]
-
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.
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]
-
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?
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]
-
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!
If you're not part of the solution, you're part of the precipitate.
-
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.
-
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]
-
Joan Murt wrote:
It is of course a solution but not a good one (at least IMHO).
Why not? It worked for Vlad Tepes.
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]
-
So What Called for Good Solutions ?? :-D
Gihan Liyanage http://gihansampathliyanage.wordpress.com
-
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]
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
-
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!
-
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).
-
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.
-
If you're not part of the solution, you're part of the precipitate.
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