How ChatGPT scanned 170k lines of code in seconds and saved me hours of work
David Gewirtz/ZDNETThis is an article about using artificial intelligence (AI) as a tool and how to apply it to your unique, specialized needs. It provides some interesting lessons for everyone. I’ve also updated it with feedback from readers.Also: The most popular programming languages in 2024 (and what that even means)You’ll learn you can use a tool like ChatGPT to solve complex problems quickly, so long as you have the right prompts and a hint of skepticism. First, a brief 3D printing rabbit holeOur context for this lesson is 3D printing. A special test in 3D printing called a 3DBenchy checks printer performance. It helps 3D printer users test speed and various print-quality measures. The Benchy takes most printers an hour or two to print out.I recently tested a new printer that’s supposed to be faster than many others. On this printer, the Benchy took 42 minutes, while on other 3D printers in the Fab Lab, it took 60 to 70 minutes. But here’s the thing: the test version provided by the company that makes the printer took 16 minutes. That’s a heck of a difference.Also: The rise and fall in programming languages’ popularity since 2016 – and what it tells us3D printers are controlled with G-code, a program custom-generated by a tool called a slicer that controls how the printer moves its print head and print platform, heats up, and feeds and retracts molten filament. The pre-sliced G-code provided by the factory for the printer I was testing resulted in a 16-minute print. The G-code I generated using the company’s slicer resulted in a 42-minute print. I wanted to know why.Unfortunately, no one on the company’s support team could answer my question. Despite numerous tries, I couldn’t get an answer about what slicer settings to change to get the G-code I produced using their slicer to perform as well as the G-code generated using their slicer. Also: 6 ways to write better ChatGPT prompts – and get the results you want fasterAfter many web searches and reading posts from frustrated Reddit posts, it was clear that other customers had the same problem. Here’s a machine capable of more than double the performance, yet none of us could reproduce that performance successfully. More