News for hackers. Stuff that matters.
Re:Cargo Cult Programming by drpixie on Monday April 17, 2023 @05:37AM (#35598531)
Sounds like using Pilot or ChatGPT for coding - no understanding of the situation/problem, just add some code that makes the error message go away :(
Re:Cargo Cult Programming by qikInNdOutReply on Monday April 17, 2023 @05:54AM (#35598666)
When the error messages are caused, by a test suite with a mathematical rigourous spec and edge case geared tests, this eventually results in correct code.
Re:Cargo Cult Programming by drpixie on Monday April 17, 2023 @09:25AM (#35600299)
Agreed - given a complete and correct test suite! But even so, "correct" code is not necessarily efficient or readable code.

And note that writing the complete and correct test suite is likely to be a task of similar difficulty to designing and writing good code! I'm not saying don't test, but I am saying that non-trivial testing is difficult.

Re:Cargo Cult Programming by denysonique on Monday April 17, 2023 @06:42AM (#35598974)
RDD (Resume Driven Development) being a part of this. In development this manifests itself through various trends by using tools one doesn't really need for a particular project, such as GraphQL or using Redux for every React App et cetera.
Re:Cargo Cult Programming by carbonBasedRbt on Monday April 17, 2023 @04:43PM (#35606347)
Cargo pants are the best. Every other pants tends to get holes in my pockets after a few months. Oh wait is that not the same ?