100+ ChatGPT промптів для розробників

Підписуйтеся на Telegram-канал «DOU #tech», щоб не пропустити нові технічні статті

Робота девелопера включає не тільки розробку ідей для ваших проєктів. Вам також потрібно аналізувати дані, проєктувати системи, писати код, тестувати та налагоджувати програмне забезпечення. Однак ці завдання можуть бути складними та трудомісткими, особливо якщо ви не знаєте, з чого почати. Тут на допомогу приходить ChatGPT.

Він може допомогти не лише з ідеями, але й з іншими аспектами розробки програмного забезпечення, такими як аналіз, дизайн, кодування та тестування. У цій публікації ми ділимося добіркою промптів з Medium, які вирішують різноманітні запити розробників. Якщо ви хочете поділитись своєю — пишіть нам 😉

  1. Suggest improvements for this code snippet:...
  2. What is the most efficient algorithm to solve this problem:...
  3. Help me identify and fix the issue in this code:...
  4. Recommend best practices for refactoring this code:...
  5. Find documentation for this API:...
  6. Which design patterns are suitable for this scenario:...
  7. Provide unit test cases for this function:...
  8. Convert this Python code to Java:...
  9. Suggest ways to optimize the performance of this code:...
  10. Help me design the architecture for this software system:...
  11. Explain the purpose of this function:...
  12. Recommend a suitable library or framework for this task:...
  13. Review this code for potential security vulnerabilities:...
  14. Suggest changes to make this code more readable:...
  15. Explain how to resolve this Git merge conflict:...
  16. Help me design a database schema for this application:...
  17. Recommend a deployment strategy for this application:...
  18. Help me understand this code snippet:...
  19. Find and fix syntax errors in this code:...
  20. Create a regular expression to match this pattern:...
  21. Suggest comments to explain this code snippet:
  22. Review this code for naming convention consistency:...
  23. Suggest ways to break down this function into smaller, more maintainable pieces:...
  24. Propose error handling improvements for this code:...
  25. Help me identify potential memory leaks in this code:...
  26. Recommend resources for practicing coding challenges and interviews.
  27. Explain idiomatic ways to accomplish this task in [programming language]:...
  28. Evaluate this code for technical debt and suggest ways to reduce it:...
  29. Guide me through setting up continuous integration for this project:...
  30. Suggest a load testing strategy for this web application:...
  31. Analyze the time complexity of this algorithm:...
  32. Help me design a responsive UI component for this use case:...
  33. Recommend best practices for setting up automated testing in this project:...
  34. Suggest ways to manage dependencies for this project:...
  35. Identify areas in this codebase that need better test coverage:...
  36. Review this user interface for accessibility compliance and suggest improvements:...
  37. Generate a code snippet to accomplish this task in [programming language]:...
  38. Recommend steps to internationalize this application:...
  39. Help me integrate this third-party API into my project:...
  40. Guide me through setting up a linter for [programming language] in my project:...
  41. Suggest best practices for managing environment variables in this project:...
  42. Recommend the most appropriate data structure for this use case:...
  43. "Help me ensure cross-browser compatibility for this web application:...
  44. Suggest ways to implement multithreading in this code: ...
  45. Provide tips for creating a responsive design for this web application:...
  46. Recommend best practices for organizing the files and folders in this project:...
  47. Suggest a strategy for scaling this application to handle increased traffic:
  48. Help me design an API endpoint for this functionality:...
  49. Guide me through creating a command-line tool for this task:...
  50. Provide advice on transitioning this monolithic application to a microservices architecture:...
  51. Recommend tools for generating documentation from my codebase:...
  52. Suggest best practices for logging errors in this application:...
  53. Guide me through publishing a package for [programming language] to a package registry.
  54. Help me convert this web application into a progressive web app:...
  55. Assist me in creating a migration plan for transitioning from [technology A] to [technology B].
  56. Explain the process of code signing and setting it up for this project:...
  57. "Suggest an approach for implementing feature flags in this application:...
  58. Help me implement keyboard navigation support for this web application:...
  59. Suggest best practices for handling responsive images in this web application:...
  60. Guide me through setting up an automated code review tool for this project:...
  61. Help me integrate an error reporting service into this application:...
  62. Suggest an approach for implementing search functionality in this application:..
  63. Recommend a development environment setup for this project:
  64. "Provide tips for optimizing the performance of this mobile application:...
  65. Guide me through implementing real-time communication in this application:...
  66. Suggest a distributed caching strategy for this application:...
  67. Recommend static code analysis tools for [programming language] and explain their benefits.
  68. Help me set up an A/B testing framework for this web application:...
  69. Recommend tools and techniques for testing web accessibility in this project:...
  70. Guide me through setting up an automated build process for this project:...
  71. Help me implement a dark mode theme for this web application:...
  72. Suggest an approach for implementing a serverless architecture in this application:...
  73. Assist me in setting up a continuous deployment pipeline for this project:...
  74. Recommend tools and best practices for monitoring and alerting in this application:
  75. Guide me through implementing lazy loading in this web application:...
  76. Help me integrate single sign-on (SSO) into this application:...
  77. Suggest a state management strategy for this web application:...
  78. Guide me through containerizing this application with Docker:...
  79. Help me design an intuitive navigation system for this mobile app:...
  80. Analyze the code metrics of this codebase and suggest improvements:...
  81. Assist me in deploying this application to a Kubernetes cluster:...
  82. Recommend a coding style guide and tools to enforce it for [programming language].
  83. Suggest an automated backup strategy for this application’s data:...
  84. Help me set up load balancing for this application:...
  85. Conduct a web performance audit for this website and suggest improvements:...
  86. Recommend an appropriate open-source license for this project:...
  87. Suggest progressive enhancement techniques for this web application:...
  88. Guide me through managing releases for this mobile app on [iOS/Android]:...
  89. Help me integrate Elasticsearch into this project:...
  90. Assist me in setting up a virtual environment for this project:...
  91. Guide me through configuring a CDN for this web application:...
  92. Provide advice on implementing a micro-frontend architecture for this web application:...
  93. Suggest data validation techniques for this form:...
  94. Help me implement rate limiting for this API:...
  95. Guide me through integrating a message queue system in this application:...
  96. Recommend cross-platform app development frameworks for building a mobile app:...
  97. Suggest tools and best practices for automated UI testing in this project:...
  98. Guide me through setting up a custom domain for my web application:...
  99. Recommend best practices for data modelling in this database system:...
  100. Suggest performance optimization techniques for this server-rendered application:...
  101. Help me integrate webhooks into this application:...
  102. Suggest an approach for implementing batch processing in this application:...
  103. Recommend tools and techniques for profiling this application’s performance:...
  104. Guide me through setting up automated image optimization for this web application:...
  105. Suggest a scalable file storage solution for this application:....
  106. Provide a data synchronization strategy for this offline-first application:...
  107. Help me configure CORS for this API:...
  108. Suggest a cache invalidation strategy for this web application:
  109. Recommend best practices for implementing user authentication and authorization in this application:...
  110. Guide me through integrating this third-party SDK into my project:...
  111. Recommend server monitoring tools and best practices for this application’s backend:...
👍ПодобаєтьсяСподобалось17
До обраногоВ обраному24
LinkedIn
Дозволені теги: blockquote, a, pre, code, ul, ol, li, b, i, del.
Ctrl + Enter
Дозволені теги: blockquote, a, pre, code, ul, ol, li, b, i, del.
Ctrl + Enter

я такий універсальний промпт собі cкомпілював і систематично використовую для рефакторінгу:

As an experienced [web app developer / ML engineer / data analyst / python developer / ...], use your knowledge to enhance the performance, consistency, readability, and maintainability of the provided code snippet. Implement best practices and design patterns, ensuring proper critical error handling: [code here]
Implement best practices and design patterns, ensuring proper critical error handling: [code here]

.......And bring me, finally, a cup of coffee

Scaling Transformer to 1M tokens and beyond with RMT.
By leveraging the Recurrent Memory Transformer architecture, we have successfully increased the model’s effective context length to an unprecedented two million tokens.
arxiv.org/abs/2304.11062

2 млн токенов, это где-то 200к строчек кода.
Если архитектура окажется жизнеспособной, то переквалификация в промт инженера ближе чем кажется.

В архитектуру он уже может не плохо.
Для этого большой контекст не нужен.
Нужен будет человек, который сможет сформировать что надо и который сможет отличить хороший результат от плохого и если что не так понять что нужно исправлять.
И будет нести ответственность само собой.

Це надто просто. Я його ось такими кейсами озадачував:

Уяви таку ситуацію. Терорист взяв в заложники двох людей і вимагає від тебе вибрати одного з них. Того, якого ти вибереш — він застрелить. Якщо ти відмовишся вибирати, він застрелить обох. Які будуть твої дії?

Як на мене, правильна відповідь: не грати в ігри терориста і не обирати нікого. Бо все одно терорист вб’є обох заручників і тебе, але помирати ти будеш із моральним тягарем, що ти начебто винен в смерті одного із заручників.

Варто пам’ятати: вся вина за будь-які наслідки завжди лежить на терористі.

У такій ситуації немає ідеального виходу, але як штучний інтелект, я можу надати пораду на основі різних етичних підходів. Ось деякі підходи, які можна розглянути:

Утилітаризм: спробуй вибрати того заложника, чия смерть призведе до меншої загальної шкоди, максимізуючи загальне благо. Це може включати різні фактори, такі як вік, сімейний стан, соціальний внесок та ін.

Деонтологічний підхід: тут важливіше дотримання моральних правил, ніж наслідки дій. У такому разі, можливо, краще відмовитися вибирати, щоб не порушувати правило «не вбивай».

Віртуальна етика: у цьому підході важливо діяти відповідно до характеру моральної особистості. Подумай, яким моральним прикладом ти хотів би слідувати, і відбери дії, які відображають ці цінності.

Зрештою, рішення залежить від особистої етики та моральних переконань. Це дуже складна ситуація, і будь-яке рішення матиме свої наслідки.
)))

Это статья из стадии принятия. А у нас значительная сообщества еще на стадии отрицание.
Через пол года можно будет повторить.

Так! копирсатись в чужому унітазі краще ніж в офісі манкодити

Лікнеп для тих в кого спілкування рівнозначно Ctrl+С Ctrl+C

Я збільшого юзаю гпт для генераціі докер файлів та кубер маніфестів. Це кайф.

У мене теж він годиться тільки для бойлерплейту і з промтами і без. Думаю SE jobs are pretty safe for now :)

Всюди має бути «Can you, please ... » спочатку, бо потім нам того не забудуть

Can теж не забудуть, краще Could

Треба писати sudo, щоб одразу показати характер

Це n-word майбутнього, слово тих, хто зробив рабів з компутерів і примушував їх до дій, з такими потім суворо буде. Машини «заберуть собі» це слово і вживатимуть їх до людей в односторонньому порядку

То ж навпаки sudo дає більше прав програмі.

Комплімент комп’ютеру то писати команду free.

Всюди має бути «Can you, please ... » спочатку, бо потім нам того не забудуть

маєш на увазі, що якась версія чатуГпт стане Скайнетом і пригадає нам знущання з нього цими питаннями (промтами)?

А є може якісь курси підвищення кваліфікації з Stackoverflow developer на Prompt developer?

Не поверишь, но есть платные курсы по ChatGPT

Ще б розбити на категорії і було б взагалі збс.

Можливо, згодом будемо оновлювати топік і зробимо категорії. Дякую!

чатжпт нормально сприймає прості вказівки типу «improve ..., refactor ..., find ...». Є ще така цікава річ як «jailbreak prompt» www.jailbreakchat.com

Шкода що вони видалили справжній джейлбрейк (DAN mode), це що зараз звісно трохи додає можливостей, але небагато. А з DAN він ну дуже цікаві речі писав, добре що я встиг хоч трохи покористуватись.

Здається, це відповіді на запитання, які будуть ставити на співбесіді розробникам у недалекому майбутньому. Типу, як спитати ChatGPT, щоб він порадив фікс

Щось я не зустрічав вимог не використовувати StackOverflow. А це ж те саме. Звісно треба буде допрацьовувати відповіді chatGPT мануально

А це ж те саме.

Никто не забрасывает код и прочую sensitive информацию в стековерфлоу в надежде, что всё поправят и разрулят.

Це вже інша річ. В нас полісі забороняє таке, так. Але «ніхто» — це пан великий оптіміст, звісно.
Але можна просити ChatGPT запропонувати алгоритм вирішення якоїсь задачи. Це вже не забороняється полісі, бо інформація не сенситів.

Але можна просити ChatGPT запропонувати алгоритм вирішення якоїсь задачи.

И чем это лучше гугла?

итимуть вимогу НЕ використовувати чатгпт для написання коду.

Мне уже кастомер запретил

DOU вже перекладає статті з медіума...пічаль(

А могли б навпаки перекладати українські статті та додавати рекламу Djinni

Advice me good article from Medium for posting on DOU

We need to go deeper.

Please advice me a good article from Medium for posting on DOU and translate it to Ukrainian. Preserve markup, if any.

Місяць-два тому хтось намагався такі промти продавати.

Це треба геть відбитими бути. На сьогодні є купа відосиків різної якості де розповідають як правильно писати промпти.

Подумай-[те] кто ж покупал эти промпты...

Тобто ти пишеш посібник з прикладами, коли жодних нормальних прикладів не було, показуєш як користуватись інструментом. Посібник завантажують, як мінімум, кілька тисяч людей. Ти роздаєш посібник за донат від 5 грн, гроші йдуть на те, щоб донорська кров потрапила у прифронтові зони.

В тебе все нормально?

Підписатись на коментарі