SlideShare ist ein Scribd-Unternehmen logo
1 von 28
Downloaden Sie, um offline zu lesen
Shared Development in a Single Org
The subtitle goes here
Loic Juillard, Salesforce, Director of Data Center Automation
@juillar
Sriram Iyer, Salesforce, Product Management
@sriramviyer
Safe harbor
Safe harbor statement under the Private Securities Litigation Reform Act of 1995:
This presentation may contain forward-looking statements that involve risks, uncertainties, and assumptions. If any such uncertainties
materialize or if any of the assumptions proves incorrect, the results of salesforce.com, inc. could differ materially from the results
expressed or implied by the forward-looking statements we make. All statements other than statements of historical fact could be
deemed forward-looking, including any projections of product or service availability, subscriber growth, earnings, revenues, or other
financial items and any statements regarding strategies or plans of management for future operations, statements of belief, any
statements concerning new, planned, or upgraded services or technology developments and customer contracts or use of our services.
The risks and uncertainties referred to above include – but are not limited to – risks associated with developing and delivering new
functionality for our service, new products and services, our new business model, our past operating losses, possible fluctuations in our
operating results and rate of growth, interruptions or delays in our Web hosting, breach of our security measures, the outcome of any
litigation, risks associated with completed and any possible mergers and acquisitions, the immature market in which we operate, our
relatively limited operating history, our ability to expand, retain, and motivate our employees and manage our growth, new releases of our
service and successful customer deployment, our limited history reselling non-salesforce.com products, and utilization and selling to
larger enterprise customers. Further information on potential factors that could affect the financial results of salesforce.com, inc. is
included in our annual report on Form 10-K for the most recent fiscal year and in our quarterly report on Form 10-Q for the most recent
fiscal quarter. These documents and others containing important disclosures are available on the SEC Filings section of the Investor
Information section of our Web site.
Any unreleased services or features referenced in this or other presentations, press releases or public statements are not currently
available and may not be delivered on time or at all. Customers who purchase our services should make the purchase decisions
based upon features that are currently available. Salesforce.com, inc. assumes no obligation and does not intend to update these
forward-looking statements.
Who are we?
▪ Loic Juillard
▪ TechOps Director Software Development
▪ LinkedIn: www.linkedin.com/in/Loicj
▪ Twitter: @ljuillar
▪ Email: ljuillard@salesforce.com
Who are we?
▪ Sriram Iyer
▪ Tech & Products, Product Management
▪ LinkedIn: www.linkedin.com/in/sriramviyer
▪ Twitter: @sriramviyer
▪ Email: sriram.iyer@salesforce.com
One Org, Multiple teams, the dilemma

Creating multiple orgs for each environment is NOT your only solution!

LJ/SI
Multiple Orgs vs. Single Org
▪ Principles:

▪ Trade-Offs

• Business Process

• Reporting capabilities

• Departments / Structure

• Process Overheads

• Culture

• Credentials

▪ Values:
• Efficiency (Engineering
Productivity)
• Trust (Quality, Data Integrity)
• Agility (Velocity)

• Cost

▪ Variables / Success Metrics
• Transaction volume / # of Users
• Size of Departments / Disparity in
Processes
• Strength / Experience / Maturity - Support,
Admin Processes

SI
Risks
▪ Convoluted implementation
▪ Spaghetti architecture
▪ Lots of dead bodies
▪ Administration nightmare
▪ Service disruption
▪ Data loss
Lack of a well-defined process can get you a convoluted
implementation of unmanageable disjointed applications.

SI
The Recipe
INGREDIENTS
1. The Core Dev Team
2. Requestor
3. Coding Guidelines

DIRECTIONS
1. Release Cycle
2. Mop-up

LJ
First, let me ask a few questions
?????

LJ
How many standard and custom
objects total do we use in our
internal orgs?

LJ
Salesforce serves 1.3B transactions to
our customers per day. How many do
we serve internally?

LJ
How many teams develop in our
Salesforce internal orgs?

LJ
Ingredient #1: Salesforce Development Core Team
▪ Lead: Org Czar manages the request process
▪ Team: designated SFDC developers
▪ Responsibilities
• Keeping the system alive
• Setting standards
• Enabling other groups to develop in org
• Deliver major capabilities
• Retiring unused applications
• Releasing

SI
Ingredient #2: The Requestor
[Assess the requestor]
▪ Are you the product owner?
▪ Are you planning on developing in the org?
▪ Talk about adoption now!
• Who will UAT?
• Train?
• Roll-out?

LJ
The Core Dev Team Manages the Change
Review Meeting
Change Review Meeting (aka. CAB,
VAT, SMART…)
▪ Who:

▪ What is the feature?
▪ What is the benefit/use case?
▪ Who is/are the customer(s)?

• Integration Czar, core dev and all Pos

▪ Does it align with our corporate vision?

• Architect, Lead developer orchestrating the
overall design

▪ Do users/stakeholders agree it’s a priority?

▪ What: Present and answer questions
from all other POs on implementation

▪ How are you planning on implementing this?
• Object leveraged
• Record type
• Fields
• APEX code library used
• Class diagram

▪ Why not consider another design…?

LJ
Ingredient #3: Coding Guidelines
Your are a community, consistency is key

LJ
Where does implementation happen?
▪ DE Org
▪ Core Dev team maintains a documented release process
▪ Customers create a replicate of the org using the published release
process
▪ Depending on the scope:
• Configuration: Direct implementation in Staging sandbox
• Customization:
– Create DE Org per product
– Develop in DE org
– Promote to Staging Sandbox

LJ
Setting Coding Standards
1.

Class/ Page/ Object or any salesforce metadata API names should have prefix

2.

Follow standards in Class/ metadata names like:
SM_<CamelCase>
SM_<CamelCase>Test
SM_<CamelCase>Trigger

3.

Method names should start with lowercase, Verb and follow CamelCase later.

4.

Variable names should start with lowercase and use camel case after that. No underscores. Constants can be all capital letters with underscores.

5.

Make sure you have a Utility class for a major feature so all common utility methods variables are private and have public get/set methods or
create properties so can be accessed outside of the class.

6.

Do not use bit wise operators like & and |, instead use && and || for boolean computations.

7.

Avoid multi level Maps/ Lists instead create data structures where applicable.

8.

Avoid multi level for loops (3 or more levels should be avoided)

9.

Make sure you format the apex, vf page, trigger source code properly to make it readable. Use for example: http://www.prettyprinter.de/

10.

Do not write large methods (say more than 100 lines)

11.

Follow basic object oriented principles like Encapsulation Encapsulation, Abstraction, Polymorphisms, Inheritance, Delegation and design patterns
like singleton, Factory etc

12.

Every test case method should have at least one assert.

13.

Make sure SOQL injections are avoided for security purpose

14.

Follow case (capitalization) standards

15.

Instead of string concatenation use String.format() to replace arguments in a template string

And more…
Check on this session chatter feed for the full document!
LJ
Proper Code Review Practices
▪ Review: Code review is mandatory, name of
reviewer is required at check-in
▪ Test:
▪ The Development team is responsible for
code coverage, testing.
▪ The PO is accountable for proper User
Acceptance Testing
▪ Analysis: E-release Root Cause Analysis are
reviewed during CAB / SMART
▪ Resolution: Issues/deviation need to be
resolved before any new release

SI
The Release Process
Frequent + Swisswatch precision

SI
Predictive Release Process
Development Environments
▪ DE org: Prototyping and early implementation
▪ Staging: Code merge and packaging
▪ Release Staging: Test the package install
process
▪ Integration: Merge code from other teams
▪ Production: The Holy Grail!

LJ
The Release Process
(2 weeks cadence in this case)
Week –(3..n)

Week 1

Week 2

2
Release

Goals

Acceptance: Core Team

Environments

Requirements
Prioritization
Stakeholder Sign-of
Pilots & POCs
Development

CAB Review

DE Org

Functional Test
Runlist Testing
Training

CAB Review (Clear)
Design Review

Code Staging

UAT
Training

Sync Staging Env
Perforce Check-in
GUS Code review
Deploy to Near-prod
environment
Release Staging
Near-prod

Code Freeze

Prod

LJ
Integration / Jenkins
▪

Dev has 3 codelines: Main, Patch and Freeze to check-in

▪

The 4th branch Prod gets deployed to Production

▪

When the devs check in, we have a continuous jenkins integration server that runs the
check-in through a suite of automated Apex tests and only allows the check in to go
through if all the tests pass

▪

Along with Apex tests, we also have End-to-End tests running on a periodic basis using
Selenium Webdriver which makes sure that none of our UI functionality is broken due
to check-ins

▪

Once the Devs have completed their code check-ins for the sprint, the code is then
integrated into freeze and the QE's begin testing it in the freeze org

▪

After the QE Sign off, the Release Engineer/Dev can then deploy the code changes to
the Prod Branch

SI
Mop-up: App lifecycle
Clean up happens as often as releases!

SI
Weed-out The Old Stuff
When do you delete elements?
▪ The PO and/or the team disappears and
nobody takes over
▪ Utilization is minimal, far from initial plans
Examples:
- Report and Dashboards utilization. Use
reporting of metadata to check utilization
- Same thing for fields
• Give users a grace period (e.g. 3 months)
• Hide from the Page Layout
• Delete if no concerns
SI
We want to hear
from YOU!
Please take a moment to complete our
session survey
Surveys can be found in the “My Agenda”
portion of the Dreamforce app
Best Practices for Team Development in a Single Org

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Salesforce Security Review Tips and Tricks
Salesforce Security Review Tips and TricksSalesforce Security Review Tips and Tricks
Salesforce Security Review Tips and Tricks
 
Deep Dive into Apex Triggers
Deep Dive into Apex TriggersDeep Dive into Apex Triggers
Deep Dive into Apex Triggers
 
Sales Cloud Lightning Migration Best Practices (May 12, 2017)
Sales Cloud Lightning Migration Best Practices (May 12, 2017)Sales Cloud Lightning Migration Best Practices (May 12, 2017)
Sales Cloud Lightning Migration Best Practices (May 12, 2017)
 
Best practices for implementing CI/CD on Salesforce
Best practices for implementing CI/CD on SalesforceBest practices for implementing CI/CD on Salesforce
Best practices for implementing CI/CD on Salesforce
 
Performing a successful technical debt assessment in Salesforce
Performing a successful technical debt assessment in SalesforcePerforming a successful technical debt assessment in Salesforce
Performing a successful technical debt assessment in Salesforce
 
Salesforce Shield: How to Deliver a New Level of Trust and Security in the Cloud
Salesforce Shield: How to Deliver a New Level of Trust and Security in the CloudSalesforce Shield: How to Deliver a New Level of Trust and Security in the Cloud
Salesforce Shield: How to Deliver a New Level of Trust and Security in the Cloud
 
Integrating with salesforce
Integrating with salesforceIntegrating with salesforce
Integrating with salesforce
 
Managing Your Batch and Scheduled Apex Processes with Relax
Managing Your Batch and Scheduled Apex Processes with RelaxManaging Your Batch and Scheduled Apex Processes with Relax
Managing Your Batch and Scheduled Apex Processes with Relax
 
Using Personas for Salesforce Accessibility and Security
Using Personas for Salesforce Accessibility and SecurityUsing Personas for Salesforce Accessibility and Security
Using Personas for Salesforce Accessibility and Security
 
Best Practices for Rolling Out New Functionality
Best Practices for Rolling Out New FunctionalityBest Practices for Rolling Out New Functionality
Best Practices for Rolling Out New Functionality
 
Planning Your Migration to the Lightning Experience
Planning Your Migration to the Lightning ExperiencePlanning Your Migration to the Lightning Experience
Planning Your Migration to the Lightning Experience
 
Decluttering your Salesfroce org
Decluttering your Salesfroce orgDecluttering your Salesfroce org
Decluttering your Salesfroce org
 
Introduction to Apex for Developers
Introduction to Apex for DevelopersIntroduction to Apex for Developers
Introduction to Apex for Developers
 
Commerce Cloud 101
Commerce Cloud 101Commerce Cloud 101
Commerce Cloud 101
 
Salesforce overview
Salesforce overviewSalesforce overview
Salesforce overview
 
Release & Change management in salesforce
Release & Change management in salesforceRelease & Change management in salesforce
Release & Change management in salesforce
 
Introduction to Apex Triggers
Introduction to Apex TriggersIntroduction to Apex Triggers
Introduction to Apex Triggers
 
Insider's Guide to the AppExchange Security Review (Dreamforce 2015)
Insider's Guide to the AppExchange Security Review (Dreamforce 2015)Insider's Guide to the AppExchange Security Review (Dreamforce 2015)
Insider's Guide to the AppExchange Security Review (Dreamforce 2015)
 
Salesforce CI/CD - A strategy for success
Salesforce CI/CD - A strategy for successSalesforce CI/CD - A strategy for success
Salesforce CI/CD - A strategy for success
 
Understanding the Salesforce Architecture: How We Do the Magic We Do
Understanding the Salesforce Architecture: How We Do the Magic We DoUnderstanding the Salesforce Architecture: How We Do the Magic We Do
Understanding the Salesforce Architecture: How We Do the Magic We Do
 

Ähnlich wie Best Practices for Team Development in a Single Org

Building Command-line Tools with the Tooling API
Building Command-line Tools with the Tooling APIBuilding Command-line Tools with the Tooling API
Building Command-line Tools with the Tooling API
Jeff Douglas
 

Ähnlich wie Best Practices for Team Development in a Single Org (20)

Continuous Integration - Software development lifecycle for Force.com projects
Continuous Integration - Software development lifecycle for Force.com projectsContinuous Integration - Software development lifecycle for Force.com projects
Continuous Integration - Software development lifecycle for Force.com projects
 
Introduction to Apex Triggers
Introduction to Apex TriggersIntroduction to Apex Triggers
Introduction to Apex Triggers
 
Enterprise-grade UI with open source Lightning Web Components
Enterprise-grade UI with open source Lightning Web ComponentsEnterprise-grade UI with open source Lightning Web Components
Enterprise-grade UI with open source Lightning Web Components
 
Lightning web components - Episode 4 : Security and Testing
Lightning web components  - Episode 4 : Security and TestingLightning web components  - Episode 4 : Security and Testing
Lightning web components - Episode 4 : Security and Testing
 
DevOps in Salesforce AppCloud
DevOps in Salesforce AppCloudDevOps in Salesforce AppCloud
DevOps in Salesforce AppCloud
 
Df14 Maintaining your orgs setup for optimal efficiency for dist
Df14 Maintaining your orgs setup for optimal efficiency for distDf14 Maintaining your orgs setup for optimal efficiency for dist
Df14 Maintaining your orgs setup for optimal efficiency for dist
 
Webinar: From Sandbox to Production: Demystifying Force.com Release Managemen...
Webinar: From Sandbox to Production: Demystifying Force.com Release Managemen...Webinar: From Sandbox to Production: Demystifying Force.com Release Managemen...
Webinar: From Sandbox to Production: Demystifying Force.com Release Managemen...
 
Designing custom REST and SOAP interfaces on Force.com
Designing custom REST and SOAP interfaces on Force.comDesigning custom REST and SOAP interfaces on Force.com
Designing custom REST and SOAP interfaces on Force.com
 
Salesforce shield &amp; summer 20 release
Salesforce shield &amp; summer 20 releaseSalesforce shield &amp; summer 20 release
Salesforce shield &amp; summer 20 release
 
Continuous Integration and Testing with Branch Orgs
Continuous Integration and Testing with Branch OrgsContinuous Integration and Testing with Branch Orgs
Continuous Integration and Testing with Branch Orgs
 
Elevate Madrid Essentials - Advance Track
Elevate Madrid Essentials - Advance TrackElevate Madrid Essentials - Advance Track
Elevate Madrid Essentials - Advance Track
 
TDX19 - Untangle Your Org with Salesforce Developer Tools
TDX19 - Untangle Your Org with Salesforce Developer ToolsTDX19 - Untangle Your Org with Salesforce Developer Tools
TDX19 - Untangle Your Org with Salesforce Developer Tools
 
TDX19 - Accelerate DevOps with GitLab and Salesforce
TDX19 - Accelerate DevOps with GitLab and SalesforceTDX19 - Accelerate DevOps with GitLab and Salesforce
TDX19 - Accelerate DevOps with GitLab and Salesforce
 
Wrestling Alligators: How Salesforce Partners Can Increase Close Rates & Deli...
Wrestling Alligators: How Salesforce Partners Can Increase Close Rates & Deli...Wrestling Alligators: How Salesforce Partners Can Increase Close Rates & Deli...
Wrestling Alligators: How Salesforce Partners Can Increase Close Rates & Deli...
 
Lightning web components - Episode 1 - An Introduction
Lightning web components - Episode 1 - An IntroductionLightning web components - Episode 1 - An Introduction
Lightning web components - Episode 1 - An Introduction
 
Building Command-line Tools with the Tooling API
Building Command-line Tools with the Tooling APIBuilding Command-line Tools with the Tooling API
Building Command-line Tools with the Tooling API
 
Apex Trigger Debugging: Solving the Hard Problems
Apex Trigger Debugging: Solving the Hard ProblemsApex Trigger Debugging: Solving the Hard Problems
Apex Trigger Debugging: Solving the Hard Problems
 
Org Merge Best Practices
Org Merge Best PracticesOrg Merge Best Practices
Org Merge Best Practices
 
Coding With Leap: An Apex Development Framework
Coding With Leap: An Apex Development FrameworkCoding With Leap: An Apex Development Framework
Coding With Leap: An Apex Development Framework
 
Get Started with Salesforce DX!
Get Started with Salesforce DX!Get Started with Salesforce DX!
Get Started with Salesforce DX!
 

Mehr von Salesforce Developers

Mehr von Salesforce Developers (20)

Sample Gallery: Reference Code and Best Practices for Salesforce Developers
Sample Gallery: Reference Code and Best Practices for Salesforce DevelopersSample Gallery: Reference Code and Best Practices for Salesforce Developers
Sample Gallery: Reference Code and Best Practices for Salesforce Developers
 
Maximizing Salesforce Lightning Experience and Lightning Component Performance
Maximizing Salesforce Lightning Experience and Lightning Component PerformanceMaximizing Salesforce Lightning Experience and Lightning Component Performance
Maximizing Salesforce Lightning Experience and Lightning Component Performance
 
Local development with Open Source Base Components
Local development with Open Source Base ComponentsLocal development with Open Source Base Components
Local development with Open Source Base Components
 
TrailheaDX India : Developer Highlights
TrailheaDX India : Developer HighlightsTrailheaDX India : Developer Highlights
TrailheaDX India : Developer Highlights
 
Why developers shouldn’t miss TrailheaDX India
Why developers shouldn’t miss TrailheaDX IndiaWhy developers shouldn’t miss TrailheaDX India
Why developers shouldn’t miss TrailheaDX India
 
CodeLive: Build Lightning Web Components faster with Local Development
CodeLive: Build Lightning Web Components faster with Local DevelopmentCodeLive: Build Lightning Web Components faster with Local Development
CodeLive: Build Lightning Web Components faster with Local Development
 
CodeLive: Converting Aura Components to Lightning Web Components
CodeLive: Converting Aura Components to Lightning Web ComponentsCodeLive: Converting Aura Components to Lightning Web Components
CodeLive: Converting Aura Components to Lightning Web Components
 
TrailheaDX and Summer '19: Developer Highlights
TrailheaDX and Summer '19: Developer HighlightsTrailheaDX and Summer '19: Developer Highlights
TrailheaDX and Summer '19: Developer Highlights
 
Live coding with LWC
Live coding with LWCLive coding with LWC
Live coding with LWC
 
LWC Episode 3- Component Communication and Aura Interoperability
LWC Episode 3- Component Communication and Aura InteroperabilityLWC Episode 3- Component Communication and Aura Interoperability
LWC Episode 3- Component Communication and Aura Interoperability
 
Lightning web components episode 2- work with salesforce data
Lightning web components   episode 2- work with salesforce dataLightning web components   episode 2- work with salesforce data
Lightning web components episode 2- work with salesforce data
 
Migrating CPQ to Advanced Calculator and JSQCP
Migrating CPQ to Advanced Calculator and JSQCPMigrating CPQ to Advanced Calculator and JSQCP
Migrating CPQ to Advanced Calculator and JSQCP
 
Scale with Large Data Volumes and Big Objects in Salesforce
Scale with Large Data Volumes and Big Objects in SalesforceScale with Large Data Volumes and Big Objects in Salesforce
Scale with Large Data Volumes and Big Objects in Salesforce
 
Replicate Salesforce Data in Real Time with Change Data Capture
Replicate Salesforce Data in Real Time with Change Data CaptureReplicate Salesforce Data in Real Time with Change Data Capture
Replicate Salesforce Data in Real Time with Change Data Capture
 
Modern Development with Salesforce DX
Modern Development with Salesforce DXModern Development with Salesforce DX
Modern Development with Salesforce DX
 
Get Into Lightning Flow Development
Get Into Lightning Flow DevelopmentGet Into Lightning Flow Development
Get Into Lightning Flow Development
 
Integrate CMS Content Into Lightning Communities with CMS Connect
Integrate CMS Content Into Lightning Communities with CMS ConnectIntegrate CMS Content Into Lightning Communities with CMS Connect
Integrate CMS Content Into Lightning Communities with CMS Connect
 
Introduction to MuleSoft
Introduction to MuleSoftIntroduction to MuleSoft
Introduction to MuleSoft
 
Modern App Dev: Modular Development Strategies
Modern App Dev: Modular Development StrategiesModern App Dev: Modular Development Strategies
Modern App Dev: Modular Development Strategies
 
Dreamforce Developer Recap
Dreamforce Developer RecapDreamforce Developer Recap
Dreamforce Developer Recap
 

Kürzlich hochgeladen

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Kürzlich hochgeladen (20)

Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 

Best Practices for Team Development in a Single Org

  • 1. Shared Development in a Single Org The subtitle goes here Loic Juillard, Salesforce, Director of Data Center Automation @juillar Sriram Iyer, Salesforce, Product Management @sriramviyer
  • 2. Safe harbor Safe harbor statement under the Private Securities Litigation Reform Act of 1995: This presentation may contain forward-looking statements that involve risks, uncertainties, and assumptions. If any such uncertainties materialize or if any of the assumptions proves incorrect, the results of salesforce.com, inc. could differ materially from the results expressed or implied by the forward-looking statements we make. All statements other than statements of historical fact could be deemed forward-looking, including any projections of product or service availability, subscriber growth, earnings, revenues, or other financial items and any statements regarding strategies or plans of management for future operations, statements of belief, any statements concerning new, planned, or upgraded services or technology developments and customer contracts or use of our services. The risks and uncertainties referred to above include – but are not limited to – risks associated with developing and delivering new functionality for our service, new products and services, our new business model, our past operating losses, possible fluctuations in our operating results and rate of growth, interruptions or delays in our Web hosting, breach of our security measures, the outcome of any litigation, risks associated with completed and any possible mergers and acquisitions, the immature market in which we operate, our relatively limited operating history, our ability to expand, retain, and motivate our employees and manage our growth, new releases of our service and successful customer deployment, our limited history reselling non-salesforce.com products, and utilization and selling to larger enterprise customers. Further information on potential factors that could affect the financial results of salesforce.com, inc. is included in our annual report on Form 10-K for the most recent fiscal year and in our quarterly report on Form 10-Q for the most recent fiscal quarter. These documents and others containing important disclosures are available on the SEC Filings section of the Investor Information section of our Web site. Any unreleased services or features referenced in this or other presentations, press releases or public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make the purchase decisions based upon features that are currently available. Salesforce.com, inc. assumes no obligation and does not intend to update these forward-looking statements.
  • 3. Who are we? ▪ Loic Juillard ▪ TechOps Director Software Development ▪ LinkedIn: www.linkedin.com/in/Loicj ▪ Twitter: @ljuillar ▪ Email: ljuillard@salesforce.com
  • 4. Who are we? ▪ Sriram Iyer ▪ Tech & Products, Product Management ▪ LinkedIn: www.linkedin.com/in/sriramviyer ▪ Twitter: @sriramviyer ▪ Email: sriram.iyer@salesforce.com
  • 5. One Org, Multiple teams, the dilemma Creating multiple orgs for each environment is NOT your only solution! LJ/SI
  • 6. Multiple Orgs vs. Single Org ▪ Principles: ▪ Trade-Offs • Business Process • Reporting capabilities • Departments / Structure • Process Overheads • Culture • Credentials ▪ Values: • Efficiency (Engineering Productivity) • Trust (Quality, Data Integrity) • Agility (Velocity) • Cost ▪ Variables / Success Metrics • Transaction volume / # of Users • Size of Departments / Disparity in Processes • Strength / Experience / Maturity - Support, Admin Processes SI
  • 7. Risks ▪ Convoluted implementation ▪ Spaghetti architecture ▪ Lots of dead bodies ▪ Administration nightmare ▪ Service disruption ▪ Data loss Lack of a well-defined process can get you a convoluted implementation of unmanageable disjointed applications. SI
  • 8. The Recipe INGREDIENTS 1. The Core Dev Team 2. Requestor 3. Coding Guidelines DIRECTIONS 1. Release Cycle 2. Mop-up LJ
  • 9. First, let me ask a few questions ????? LJ
  • 10. How many standard and custom objects total do we use in our internal orgs? LJ
  • 11. Salesforce serves 1.3B transactions to our customers per day. How many do we serve internally? LJ
  • 12. How many teams develop in our Salesforce internal orgs? LJ
  • 13. Ingredient #1: Salesforce Development Core Team ▪ Lead: Org Czar manages the request process ▪ Team: designated SFDC developers ▪ Responsibilities • Keeping the system alive • Setting standards • Enabling other groups to develop in org • Deliver major capabilities • Retiring unused applications • Releasing SI
  • 14. Ingredient #2: The Requestor [Assess the requestor] ▪ Are you the product owner? ▪ Are you planning on developing in the org? ▪ Talk about adoption now! • Who will UAT? • Train? • Roll-out? LJ
  • 15. The Core Dev Team Manages the Change Review Meeting Change Review Meeting (aka. CAB, VAT, SMART…) ▪ Who: ▪ What is the feature? ▪ What is the benefit/use case? ▪ Who is/are the customer(s)? • Integration Czar, core dev and all Pos ▪ Does it align with our corporate vision? • Architect, Lead developer orchestrating the overall design ▪ Do users/stakeholders agree it’s a priority? ▪ What: Present and answer questions from all other POs on implementation ▪ How are you planning on implementing this? • Object leveraged • Record type • Fields • APEX code library used • Class diagram ▪ Why not consider another design…? LJ
  • 16. Ingredient #3: Coding Guidelines Your are a community, consistency is key LJ
  • 17. Where does implementation happen? ▪ DE Org ▪ Core Dev team maintains a documented release process ▪ Customers create a replicate of the org using the published release process ▪ Depending on the scope: • Configuration: Direct implementation in Staging sandbox • Customization: – Create DE Org per product – Develop in DE org – Promote to Staging Sandbox LJ
  • 18. Setting Coding Standards 1. Class/ Page/ Object or any salesforce metadata API names should have prefix 2. Follow standards in Class/ metadata names like: SM_<CamelCase> SM_<CamelCase>Test SM_<CamelCase>Trigger 3. Method names should start with lowercase, Verb and follow CamelCase later. 4. Variable names should start with lowercase and use camel case after that. No underscores. Constants can be all capital letters with underscores. 5. Make sure you have a Utility class for a major feature so all common utility methods variables are private and have public get/set methods or create properties so can be accessed outside of the class. 6. Do not use bit wise operators like & and |, instead use && and || for boolean computations. 7. Avoid multi level Maps/ Lists instead create data structures where applicable. 8. Avoid multi level for loops (3 or more levels should be avoided) 9. Make sure you format the apex, vf page, trigger source code properly to make it readable. Use for example: http://www.prettyprinter.de/ 10. Do not write large methods (say more than 100 lines) 11. Follow basic object oriented principles like Encapsulation Encapsulation, Abstraction, Polymorphisms, Inheritance, Delegation and design patterns like singleton, Factory etc 12. Every test case method should have at least one assert. 13. Make sure SOQL injections are avoided for security purpose 14. Follow case (capitalization) standards 15. Instead of string concatenation use String.format() to replace arguments in a template string And more… Check on this session chatter feed for the full document! LJ
  • 19. Proper Code Review Practices ▪ Review: Code review is mandatory, name of reviewer is required at check-in ▪ Test: ▪ The Development team is responsible for code coverage, testing. ▪ The PO is accountable for proper User Acceptance Testing ▪ Analysis: E-release Root Cause Analysis are reviewed during CAB / SMART ▪ Resolution: Issues/deviation need to be resolved before any new release SI
  • 20. The Release Process Frequent + Swisswatch precision SI
  • 21. Predictive Release Process Development Environments ▪ DE org: Prototyping and early implementation ▪ Staging: Code merge and packaging ▪ Release Staging: Test the package install process ▪ Integration: Merge code from other teams ▪ Production: The Holy Grail! LJ
  • 22. The Release Process (2 weeks cadence in this case) Week –(3..n) Week 1 Week 2 2 Release Goals Acceptance: Core Team Environments Requirements Prioritization Stakeholder Sign-of Pilots & POCs Development CAB Review DE Org Functional Test Runlist Testing Training CAB Review (Clear) Design Review Code Staging UAT Training Sync Staging Env Perforce Check-in GUS Code review Deploy to Near-prod environment Release Staging Near-prod Code Freeze Prod LJ
  • 23. Integration / Jenkins ▪ Dev has 3 codelines: Main, Patch and Freeze to check-in ▪ The 4th branch Prod gets deployed to Production ▪ When the devs check in, we have a continuous jenkins integration server that runs the check-in through a suite of automated Apex tests and only allows the check in to go through if all the tests pass ▪ Along with Apex tests, we also have End-to-End tests running on a periodic basis using Selenium Webdriver which makes sure that none of our UI functionality is broken due to check-ins ▪ Once the Devs have completed their code check-ins for the sprint, the code is then integrated into freeze and the QE's begin testing it in the freeze org ▪ After the QE Sign off, the Release Engineer/Dev can then deploy the code changes to the Prod Branch SI
  • 24. Mop-up: App lifecycle Clean up happens as often as releases! SI
  • 25. Weed-out The Old Stuff When do you delete elements? ▪ The PO and/or the team disappears and nobody takes over ▪ Utilization is minimal, far from initial plans Examples: - Report and Dashboards utilization. Use reporting of metadata to check utilization - Same thing for fields • Give users a grace period (e.g. 3 months) • Hide from the Page Layout • Delete if no concerns SI
  • 26.
  • 27. We want to hear from YOU! Please take a moment to complete our session survey Surveys can be found in the “My Agenda” portion of the Dreamforce app