how to build better apps using · 2020-02-06 · 2 cognitive biases every dev should know •the...

36

Upload: others

Post on 16-Jul-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: How to build better apps using · 2020-02-06 · 2 cognitive biases every dev should know •The origami experiment •Overvaluation of things you’ve worked on 1. The IKEA effect
Page 2: How to build better apps using · 2020-02-06 · 2 cognitive biases every dev should know •The origami experiment •Overvaluation of things you’ve worked on 1. The IKEA effect

How to build better apps using Microsoft Graph

Mark Stafford

Program Manager, Microsoft Graph

Page 3: How to build better apps using · 2020-02-06 · 2 cognitive biases every dev should know •The origami experiment •Overvaluation of things you’ve worked on 1. The IKEA effect

Microsoft Graph is a free-to-use REST API for M365 and more.

Page 4: How to build better apps using · 2020-02-06 · 2 cognitive biases every dev should know •The origami experiment •Overvaluation of things you’ve worked on 1. The IKEA effect

Agenda

Page 5: How to build better apps using · 2020-02-06 · 2 cognitive biases every dev should know •The origami experiment •Overvaluation of things you’ve worked on 1. The IKEA effect

Introducing Contoso Airlines

Page 6: How to build better apps using · 2020-02-06 · 2 cognitive biases every dev should know •The origami experiment •Overvaluation of things you’ve worked on 1. The IKEA effect

▅ Small airline, 95% US domestic

▅ 4,500 flight crew

▅ 60 developers, mostly Web/mobile

▅ Mixed cloud platform

▅ M365 E5 subscribers

About Contoso Airlines

Page 7: How to build better apps using · 2020-02-06 · 2 cognitive biases every dev should know •The origami experiment •Overvaluation of things you’ve worked on 1. The IKEA effect

▅ Mobile/kiosk scheduling app for flight crew

▅ Serverless provisioning app for compliance and conformity

▅ Workflow app to handle last-minute flight crew changes

▅ Bot as an natural language interface for scheduling system

▅ Analytic app for analyzing effectiveness of flight crew allocation

Contoso Airlines’ app needs

Page 8: How to build better apps using · 2020-02-06 · 2 cognitive biases every dev should know •The origami experiment •Overvaluation of things you’ve worked on 1. The IKEA effect

1. Realistic needs

2. Architecturally differentiated

3. Different patterns for consuming Microsoft Graph

Why those apps?

Page 9: How to build better apps using · 2020-02-06 · 2 cognitive biases every dev should know •The origami experiment •Overvaluation of things you’ve worked on 1. The IKEA effect

Why build with Microsoft Graph?

Page 10: How to build better apps using · 2020-02-06 · 2 cognitive biases every dev should know •The origami experiment •Overvaluation of things you’ve worked on 1. The IKEA effect

2 cognitive biases every dev should know

• The origami experiment

• Overvaluation of things

you’ve worked on

1. The IKEA effect

• The idea experiment

• Tendency to reject other

ideas in favor of your own

2. Not-invented-here

Page 11: How to build better apps using · 2020-02-06 · 2 cognitive biases every dev should know •The origami experiment •Overvaluation of things you’ve worked on 1. The IKEA effect

1. Distract from your business 2. You own the risk

2 dangers of these biases

Page 12: How to build better apps using · 2020-02-06 · 2 cognitive biases every dev should know •The origami experiment •Overvaluation of things you’ve worked on 1. The IKEA effect

What business are you in?

Page 13: How to build better apps using · 2020-02-06 · 2 cognitive biases every dev should know •The origami experiment •Overvaluation of things you’ve worked on 1. The IKEA effect

2 examples of knowing your business

Real estate Media company

Page 14: How to build better apps using · 2020-02-06 · 2 cognitive biases every dev should know •The origami experiment •Overvaluation of things you’ve worked on 1. The IKEA effect

Focusing on others’ business costs you time

Re-researching

8%

Re-building

26%

Re-certifying

10%

Adding YOUR unique value

56%

Page 15: How to build better apps using · 2020-02-06 · 2 cognitive biases every dev should know •The origami experiment •Overvaluation of things you’ve worked on 1. The IKEA effect

Microsoft helps you focus on your business

Fundamentals

☑Secure

☑Compliant

☑Scalable and resilient

☑Global

☑Trusted

Graph domains

☑Productivity

☑Directory

☑Security

☑ Files

☑And more!

Page 16: How to build better apps using · 2020-02-06 · 2 cognitive biases every dev should know •The origami experiment •Overvaluation of things you’ve worked on 1. The IKEA effect

Microsoft scale, Microsoft guarantees

>1Bidentities secured

>70compliance certifications

>50Azure regions

95%of Fortune 500

companies

Page 17: How to build better apps using · 2020-02-06 · 2 cognitive biases every dev should know •The origami experiment •Overvaluation of things you’ve worked on 1. The IKEA effect

Productivity

Mail

Calendar

Teamwork

Tasks

Directory

Users

Groups

Devices

Policies

Sites & files

Files

Sites

Lists

Excel

…and more

Security

Reports

Cross-

device

…and still

more!

Graph domains

Page 18: How to build better apps using · 2020-02-06 · 2 cognitive biases every dev should know •The origami experiment •Overvaluation of things you’ve worked on 1. The IKEA effect

Beware the slippery slope

Page 19: How to build better apps using · 2020-02-06 · 2 cognitive biases every dev should know •The origami experiment •Overvaluation of things you’ve worked on 1. The IKEA effect

Graph is a unified endpoint

API 1 -

register app

API 1 -

authenticate

API 1 - read

docs

API 2 -

register app

API 2 -

authenticate

API 2 - read

docs

Add

YOUR

value

1

2

3

4

Page 20: How to build better apps using · 2020-02-06 · 2 cognitive biases every dev should know •The origami experiment •Overvaluation of things you’ve worked on 1. The IKEA effect

What to build with Microsoft Graph?

Page 21: How to build better apps using · 2020-02-06 · 2 cognitive biases every dev should know •The origami experiment •Overvaluation of things you’ve worked on 1. The IKEA effect

Portal/mobile appsAutomation/business

process apps

Bots/dialogue apps Analytical apps

4 app patterns

Page 22: How to build better apps using · 2020-02-06 · 2 cognitive biases every dev should know •The origami experiment •Overvaluation of things you’ve worked on 1. The IKEA effect

Portals, desktop, and mobile apps

▅ Typically HTML+JavaScript,

iOS, or Android

▅ Always has authenticated

user

▅ Content tends to be user-

oriented and scoped

▅ Consider offline usage

scenarios

Page 23: How to build better apps using · 2020-02-06 · 2 cognitive biases every dev should know •The origami experiment •Overvaluation of things you’ve worked on 1. The IKEA effect

Automation and business process apps

▅ Variety of languages and

hosting options (e.g.,

serverless)

▅ Almost never has

authenticated user

▅ Content can range over

users and domains

▅ Consider batching and

throttling implications

Page 24: How to build better apps using · 2020-02-06 · 2 cognitive biases every dev should know •The origami experiment •Overvaluation of things you’ve worked on 1. The IKEA effect

Bots and interactive dialogue apps

▅ Typically framework based

(e.g., Bot Framework)

▅ Usually has authenticated

user (but auth is challenging)

▅ Content tends to be user-

oriented and scoped

▅ Consider how to render

result(s) with limited real

estate or “headless” devices

Page 25: How to build better apps using · 2020-02-06 · 2 cognitive biases every dev should know •The origami experiment •Overvaluation of things you’ve worked on 1. The IKEA effect

Analytic apps

▅ Typically involves big data

processing tools

▅ Never has authenticated

user

▅ Content tends to be broad

but specific (minimize

footprint)

▅ Consider security, privacy,

and ToU implications

Page 26: How to build better apps using · 2020-02-06 · 2 cognitive biases every dev should know •The origami experiment •Overvaluation of things you’ve worked on 1. The IKEA effect

Portal Automation Bot Analytic

Auth

flow

Implicit/OBO Client

credentials

Device code Client

credentials

Has user Always Rarely Usually Never

Content User-oriented Varies User-oriented Scenario-

oriented

Consider Offline Throttling Limited size Security/

privacy

App pattern comparison

Page 27: How to build better apps using · 2020-02-06 · 2 cognitive biases every dev should know •The origami experiment •Overvaluation of things you’ve worked on 1. The IKEA effect

How to build with Microsoft Graph?

Page 28: How to build better apps using · 2020-02-06 · 2 cognitive biases every dev should know •The origami experiment •Overvaluation of things you’ve worked on 1. The IKEA effect

Step 1: Try Graph Explorer (https://aka.ms/ge)

Page 29: How to build better apps using · 2020-02-06 · 2 cognitive biases every dev should know •The origami experiment •Overvaluation of things you’ve worked on 1. The IKEA effect

Step 2: Browse the API reference

Page 30: How to build better apps using · 2020-02-06 · 2 cognitive biases every dev should know •The origami experiment •Overvaluation of things you’ve worked on 1. The IKEA effect

Step 3: Try a quickstart

Page 31: How to build better apps using · 2020-02-06 · 2 cognitive biases every dev should know •The origami experiment •Overvaluation of things you’ve worked on 1. The IKEA effect

Step 4: Register an app

Page 32: How to build better apps using · 2020-02-06 · 2 cognitive biases every dev should know •The origami experiment •Overvaluation of things you’ve worked on 1. The IKEA effect

Step 5: Download the SDK

Page 33: How to build better apps using · 2020-02-06 · 2 cognitive biases every dev should know •The origami experiment •Overvaluation of things you’ve worked on 1. The IKEA effect

Step 6: Build your app!

Page 34: How to build better apps using · 2020-02-06 · 2 cognitive biases every dev should know •The origami experiment •Overvaluation of things you’ve worked on 1. The IKEA effect

▅ 2 cognitive biases: IKEA effect and not-invented-here

▅ Know and focus on your business

▅ Microsoft checks all the right security and scalability boxes

▅ Microsoft Graph has many useful domains

▅ 4 app types: portal/mobile, automation, bot, analytics

▅ Graph Explorer is a zero-cost way to get started

Review

Page 35: How to build better apps using · 2020-02-06 · 2 cognitive biases every dev should know •The origami experiment •Overvaluation of things you’ve worked on 1. The IKEA effect
Page 36: How to build better apps using · 2020-02-06 · 2 cognitive biases every dev should know •The origami experiment •Overvaluation of things you’ve worked on 1. The IKEA effect