Skip to content

Instantly share code, notes, and snippets.

@pcarolan
Last active June 15, 2023 18:00
Show Gist options
  • Save pcarolan/64ca3543bf83e4be7320b8544df30639 to your computer and use it in GitHub Desktop.
Save pcarolan/64ca3543bf83e4be7320b8544df30639 to your computer and use it in GitHub Desktop.

πŸ€– Ai Driven Development

Setup

  1. Signup for Copilot classic for $10 per month.
  2. Join one of the 4 copilot-X waitlists

The Hype

  1. It'll take over the world.
  2. Don't bother learning how to code
  3. It'll make you 50% more productive.

Techniques

  1. ✏ Autocompleting your code (intellisense on steriod)
  2. πŸ“ Comment defined methods
  3. 🏷 Comment defined classes
  4. βœ–οΈ Data transformation
  5. πŸ¦† Rubber ducking
  6. ↔ i18n Translation
  7. πŸ§ͺ Writing tests
  8. πŸ€₯ Creating fixtures/mocking data
  9. πŸ”‘ Writing regular expressions
  10. πŸ‘©πŸΌβ€πŸ« Explaining code
  11. ✍🏽 Clarifying your writing
  12. πŸ“ Adding comments
  13. πŸ§‘β€βš– PR reviews

Live Coding

  1. Given this API spec, help me implement an api client that performs a healthcheck in ruby 3.2: https://connect.hipcamp.com
  2. Great! Now let's make it a ruby class
  3. Add comments that explain what the code is doing
  4. Write unit tests for my code in rspec
  5. Use ruby structs to define types and provide a stronger data contract
  6. Extend the class
  7. Make it great

Principles

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment