SlideShare a Scribd company logo
1 of 19
Download to read offline
Peter Caitens
Salesforce Lead Developer
8Squad Pty Ltd
Todays Agenda
Why Code Generation Matters
Code Generation Tools
Einstein for Developers
Meet Tom
● Mid-level Salesforce Developer
● Works for a small real estate firm
● He has been asked to write a new utility class
● So as a good SF developer he:
○ Checks out Trailhead for the best practices
○ Spends 1 day writing his class
○ Spends another day writing the test class and manages to get to 76% coverage
○ Whew! Job Done
Why Code Generation Matters
1. Code generation significantly boosts developer productivity
2. Code generation improves code quality and consistency
3. Code generation accelerates innovation and time-to-market
4. Code generation democratizes access to development skills
So, let’s have a look at some of the main code generation tools available to us
as developers today.
ChatGPT
What is it?
● A powerful large language model (LLM) chatbot developed by
OpenAI
● Can generate text, translate language , write different kinds of creative
content, and answer your questions in an informative way
● Generates creative, human-like code snippets
● Understands natural language instructions
● Can adapt to various coding styles and patterns
● Can provide inaccurate or misleading
code especially for complex Salesforce-
specific scenarios
● Requires careful validation before
deployment
● Still under development, reliability can be
inconsistent
Pros Cons
GitHub Copilot
What is it?
● AI-powered code suggestion tool developed by GitHub and
OpenAI
● Integrated directly into your code editor (e.g., VS Code)
● Suggests contextually relevant code in real-time
● "Learns" your coding style over time
● Works well for common, repetitive code
patterns
● Seamless VS Code integration
● May not grasp complex Apex logic or
Salesforce-specific nuances
● Can inadvertently introduce bad coding
habits if not carefully reviewed
● Costs $
Pros Cons
Einstein for Developers
What is it?
● Salesforce-native suite of AI-powered development tools
● Includes features like Code Generation, Code Completion, and Code
Recommendations
● Tailored to Salesforce, understands platform-specific
details
● Integrates seamlessly with Salesforce development
workflows (VS Code, Salesforce DX)
● Improves code quality and adherence to best
practices
● Less flexible in creative code generation
compared to ChatGPT
● May require some initial setup or
configuration
Pros Cons
Which One to Choose
Key Considerations
● Complexities of Code
○ Simple tasks? Copilot might do
○ Complex logic? Lead towards Einstein
○ Want experimental solutions? ChatGPT
● Salesforce Expertise
○ Deep platform knowledge favours Einstein
● Integration
○ Want it within your workflow? Einstein or Copilot shine
The Future of code Generation
● The Big Picture:
○ Code generation is rapidly evolving
○ Expect even more sophisticated and specialized tools to emerge
● Focus on Learning:
○ Don't let tools replace core Salesforce development skills
○ Use them to augment your expertise, not as a crutch
● A Collaborative Future:
○ Imagine tools understanding code intent, refactoring intelligently...
Einstein for Developers Setup
Step 1: Setup Einstein for Developers Setup
Einstein for Developers Setup
Step 2: Install the VSCode Extension
Einstein for Developers Setup
Step 3: Run your query
Tom Catchup
● He has been asked to write another class
● He has just listened to this talk and is
inspired to try Einstein for Developers
● So, as a good Salesforce AI Developer he:
○ creates a query in Einstein for Developer that create a large piece of the code he requires
○ Fills out the specifics of the code
○ Asks Einstein for Developers to create the test class for him
○ Tweaks the tests to get them to pass
○ Jobs done in 1 day.
STOP RECORDING
Brisbane Developer Group
Next Meeting
● Advanced Flow Concepts Every Developer Should Know
○ May 1 - 12pm, virtual with Tim Combridge
Session Topic Suggestions
LinkedIn Group
● https://www.linkedin.com/groups/14345387/
2024.04 - AI in Code Generation - April User Group Meeting

More Related Content

Similar to 2024.04 - AI in Code Generation - April User Group Meeting

Introduction to Agile Software Development & Python
Introduction to Agile Software Development & PythonIntroduction to Agile Software Development & Python
Introduction to Agile Software Development & PythonTharindu Weerasinghe
 
Scale quality with kaizen - Tech.Rocks conference
Scale quality with kaizen - Tech.Rocks conferenceScale quality with kaizen - Tech.Rocks conference
Scale quality with kaizen - Tech.Rocks conferenceFabrice Bernhard
 
New voice, new tone, new IA: Writing for the modern developer
New voice, new tone, new IA: Writing for the modern developerNew voice, new tone, new IA: Writing for the modern developer
New voice, new tone, new IA: Writing for the modern developerKeith Boyd
 
Kickstarting career as an Android developer.pdf
Kickstarting career as an Android developer.pdfKickstarting career as an Android developer.pdf
Kickstarting career as an Android developer.pdfShreyaDhurde
 
Six Steps to Conversation Driven Development
Six Steps to Conversation Driven DevelopmentSix Steps to Conversation Driven Development
Six Steps to Conversation Driven DevelopmentRasa Technologies
 
QCon'17 talk: CI/CD at scale - lessons from LinkedIn and Mockito
QCon'17 talk: CI/CD at scale - lessons from LinkedIn and MockitoQCon'17 talk: CI/CD at scale - lessons from LinkedIn and Mockito
QCon'17 talk: CI/CD at scale - lessons from LinkedIn and MockitoSzczepan Faber
 
How to become a Software Engineer Carrier Path for Software Developer
How to become a Software Engineer Carrier Path for Software DeveloperHow to become a Software Engineer Carrier Path for Software Developer
How to become a Software Engineer Carrier Path for Software Developerjeetendra mandal
 
Agile Methodologies And Extreme Programming - Svetlin Nakov
Agile Methodologies And Extreme Programming - Svetlin NakovAgile Methodologies And Extreme Programming - Svetlin Nakov
Agile Methodologies And Extreme Programming - Svetlin NakovSvetlin Nakov
 
Tooling Matters - Development tools
Tooling Matters - Development toolsTooling Matters - Development tools
Tooling Matters - Development toolsSimon Dittlmann
 
ChatGPT Usage In Software Development – Curse or Boon.pdf
ChatGPT Usage In Software Development – Curse or Boon.pdfChatGPT Usage In Software Development – Curse or Boon.pdf
ChatGPT Usage In Software Development – Curse or Boon.pdfLaura Miller
 
The spirit of Opensource - lets plan to contribute ! @JWC16
The spirit of Opensource - lets plan to contribute ! @JWC16The spirit of Opensource - lets plan to contribute ! @JWC16
The spirit of Opensource - lets plan to contribute ! @JWC16Parth Lawate
 
The essentials of the IT industry or What I wish I was taught about at Univer...
The essentials of the IT industry or What I wish I was taught about at Univer...The essentials of the IT industry or What I wish I was taught about at Univer...
The essentials of the IT industry or What I wish I was taught about at Univer...Equal Experts
 
ChatGPT usage in software development - curse or boon.pdf
ChatGPT usage in software development - curse or boon.pdfChatGPT usage in software development - curse or boon.pdf
ChatGPT usage in software development - curse or boon.pdfLaura Miller
 

Similar to 2024.04 - AI in Code Generation - April User Group Meeting (20)

Introduction to Agile Software Development & Python
Introduction to Agile Software Development & PythonIntroduction to Agile Software Development & Python
Introduction to Agile Software Development & Python
 
Scale quality with kaizen - Tech.Rocks conference
Scale quality with kaizen - Tech.Rocks conferenceScale quality with kaizen - Tech.Rocks conference
Scale quality with kaizen - Tech.Rocks conference
 
New voice, new tone, new IA: Writing for the modern developer
New voice, new tone, new IA: Writing for the modern developerNew voice, new tone, new IA: Writing for the modern developer
New voice, new tone, new IA: Writing for the modern developer
 
Code detox
Code detoxCode detox
Code detox
 
Kickstarting career as an Android developer.pdf
Kickstarting career as an Android developer.pdfKickstarting career as an Android developer.pdf
Kickstarting career as an Android developer.pdf
 
Six Steps to Conversation Driven Development
Six Steps to Conversation Driven DevelopmentSix Steps to Conversation Driven Development
Six Steps to Conversation Driven Development
 
QCon'17 talk: CI/CD at scale - lessons from LinkedIn and Mockito
QCon'17 talk: CI/CD at scale - lessons from LinkedIn and MockitoQCon'17 talk: CI/CD at scale - lessons from LinkedIn and Mockito
QCon'17 talk: CI/CD at scale - lessons from LinkedIn and Mockito
 
How to become a Software Engineer Carrier Path for Software Developer
How to become a Software Engineer Carrier Path for Software DeveloperHow to become a Software Engineer Carrier Path for Software Developer
How to become a Software Engineer Carrier Path for Software Developer
 
Agile Methodologies And Extreme Programming - Svetlin Nakov
Agile Methodologies And Extreme Programming - Svetlin NakovAgile Methodologies And Extreme Programming - Svetlin Nakov
Agile Methodologies And Extreme Programming - Svetlin Nakov
 
JetBrains MPS
JetBrains MPSJetBrains MPS
JetBrains MPS
 
Orientation session
Orientation sessionOrientation session
Orientation session
 
Tooling Matters - Development tools
Tooling Matters - Development toolsTooling Matters - Development tools
Tooling Matters - Development tools
 
TDD in Agile
TDD in AgileTDD in Agile
TDD in Agile
 
ChatGPT Usage In Software Development – Curse or Boon.pdf
ChatGPT Usage In Software Development – Curse or Boon.pdfChatGPT Usage In Software Development – Curse or Boon.pdf
ChatGPT Usage In Software Development – Curse or Boon.pdf
 
Introduction
IntroductionIntroduction
Introduction
 
The spirit of Opensource - lets plan to contribute ! @JWC16
The spirit of Opensource - lets plan to contribute ! @JWC16The spirit of Opensource - lets plan to contribute ! @JWC16
The spirit of Opensource - lets plan to contribute ! @JWC16
 
Why other ppl_dont_get_it
Why other ppl_dont_get_itWhy other ppl_dont_get_it
Why other ppl_dont_get_it
 
The essentials of the IT industry or What I wish I was taught about at Univer...
The essentials of the IT industry or What I wish I was taught about at Univer...The essentials of the IT industry or What I wish I was taught about at Univer...
The essentials of the IT industry or What I wish I was taught about at Univer...
 
ChatGPT usage in software development - curse or boon.pdf
ChatGPT usage in software development - curse or boon.pdfChatGPT usage in software development - curse or boon.pdf
ChatGPT usage in software development - curse or boon.pdf
 
Debugging 2013- Lars pedersen
Debugging 2013- Lars pedersenDebugging 2013- Lars pedersen
Debugging 2013- Lars pedersen
 

Recently uploaded

Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsAndrey Dotsenko
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfjimielynbastida
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfngoud9212
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 

Recently uploaded (20)

Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdf
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdf
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 

2024.04 - AI in Code Generation - April User Group Meeting

  • 1.
  • 2.
  • 3. Peter Caitens Salesforce Lead Developer 8Squad Pty Ltd
  • 4. Todays Agenda Why Code Generation Matters Code Generation Tools Einstein for Developers
  • 5. Meet Tom ● Mid-level Salesforce Developer ● Works for a small real estate firm ● He has been asked to write a new utility class ● So as a good SF developer he: ○ Checks out Trailhead for the best practices ○ Spends 1 day writing his class ○ Spends another day writing the test class and manages to get to 76% coverage ○ Whew! Job Done
  • 6. Why Code Generation Matters 1. Code generation significantly boosts developer productivity 2. Code generation improves code quality and consistency 3. Code generation accelerates innovation and time-to-market 4. Code generation democratizes access to development skills So, let’s have a look at some of the main code generation tools available to us as developers today.
  • 7. ChatGPT What is it? ● A powerful large language model (LLM) chatbot developed by OpenAI ● Can generate text, translate language , write different kinds of creative content, and answer your questions in an informative way ● Generates creative, human-like code snippets ● Understands natural language instructions ● Can adapt to various coding styles and patterns ● Can provide inaccurate or misleading code especially for complex Salesforce- specific scenarios ● Requires careful validation before deployment ● Still under development, reliability can be inconsistent Pros Cons
  • 8. GitHub Copilot What is it? ● AI-powered code suggestion tool developed by GitHub and OpenAI ● Integrated directly into your code editor (e.g., VS Code) ● Suggests contextually relevant code in real-time ● "Learns" your coding style over time ● Works well for common, repetitive code patterns ● Seamless VS Code integration ● May not grasp complex Apex logic or Salesforce-specific nuances ● Can inadvertently introduce bad coding habits if not carefully reviewed ● Costs $ Pros Cons
  • 9. Einstein for Developers What is it? ● Salesforce-native suite of AI-powered development tools ● Includes features like Code Generation, Code Completion, and Code Recommendations ● Tailored to Salesforce, understands platform-specific details ● Integrates seamlessly with Salesforce development workflows (VS Code, Salesforce DX) ● Improves code quality and adherence to best practices ● Less flexible in creative code generation compared to ChatGPT ● May require some initial setup or configuration Pros Cons
  • 10. Which One to Choose Key Considerations ● Complexities of Code ○ Simple tasks? Copilot might do ○ Complex logic? Lead towards Einstein ○ Want experimental solutions? ChatGPT ● Salesforce Expertise ○ Deep platform knowledge favours Einstein ● Integration ○ Want it within your workflow? Einstein or Copilot shine
  • 11. The Future of code Generation ● The Big Picture: ○ Code generation is rapidly evolving ○ Expect even more sophisticated and specialized tools to emerge ● Focus on Learning: ○ Don't let tools replace core Salesforce development skills ○ Use them to augment your expertise, not as a crutch ● A Collaborative Future: ○ Imagine tools understanding code intent, refactoring intelligently...
  • 12. Einstein for Developers Setup Step 1: Setup Einstein for Developers Setup
  • 13. Einstein for Developers Setup Step 2: Install the VSCode Extension
  • 14. Einstein for Developers Setup Step 3: Run your query
  • 15. Tom Catchup ● He has been asked to write another class ● He has just listened to this talk and is inspired to try Einstein for Developers ● So, as a good Salesforce AI Developer he: ○ creates a query in Einstein for Developer that create a large piece of the code he requires ○ Fills out the specifics of the code ○ Asks Einstein for Developers to create the test class for him ○ Tweaks the tests to get them to pass ○ Jobs done in 1 day.
  • 16.
  • 18. Brisbane Developer Group Next Meeting ● Advanced Flow Concepts Every Developer Should Know ○ May 1 - 12pm, virtual with Tim Combridge Session Topic Suggestions LinkedIn Group ● https://www.linkedin.com/groups/14345387/