Tuesday, April 2, 2024

How I use chatGPT in my programming

Here are some examples of my programming prompts for chatGPT:
  1. Explain a concept that I am not familiar with: "What is .htaccess"
  2. Find the location of specific functionality in existing code: "Show file name and code snippet in bitcoin code for halving"
  3. Improve existing code: "Improve the following SQL query...", "Make the following code shorter/simpler..."
  4. Write code: "Display the Turkish Lira amount idiomatically in PHP 7.3"
  5. Translate concepts I know from Java/C++: "PHP 7.3 add an element to an array"
  6. Suggest unit tests for full coverage of a method/class.
Knowing algorithms and data structures and paying attention to performance has become much more important than memorizing implementation details because tools like chatGPT make it trivially easy to translate any algorithm to any programming language. Times have become harder for code monkeys and much better for software engineers.

No comments:

Post a Comment