spca2013 - sharepoint hosted apps and javascript

17

Upload: nccomms

Post on 09-May-2015

647 views

Category:

Technology


0 download

DESCRIPTION

SharePoint Hosted Apps and Javascript

TRANSCRIPT

Page 1: SPCA2013 - SharePoint Hosted Apps and Javascript
Page 2: SPCA2013 - SharePoint Hosted Apps and Javascript

SharePoint-Hosted Apps and JavaScriptDevelopers, developers, developers, developers, developers, developers, developers, developers, developers, developers, developers, developers, developers, developers, developers, developers, developers, developers, developers, developers, developers, developers, developers, developers, …

Page 3: SPCA2013 - SharePoint Hosted Apps and Javascript

11-04-2023 3

Introduction

• Wesley Bakker

• Email : [email protected]

• Principal Consultant at motion10

Page 4: SPCA2013 - SharePoint Hosted Apps and Javascript

11-04-2023 4

Agenda

• SharePoint-Hosted Apps

• The good, the bad and the ugly

• JavaScript

• The good, the bad and the… etc.

• Demo

• Questions

Page 5: SPCA2013 - SharePoint Hosted Apps and Javascript

SharePoint Hosted AppsThe good, the bad and the ugly

5

Page 6: SPCA2013 - SharePoint Hosted Apps and Javascript

11-04-2023 6

What Microsoft says about SharePoint-hosted apps

“SharePoint-hosted apps: SharePoint-hosted apps contain only declarative content, such as HTML and JavaScript, and don’t have any server-side code that is packaged with them. These types of apps store the HTML and other content in SharePoint and simply present the declarative content to the browser. SharePoint-hosted apps interact with SharePoint via the JavaScript object model or Representational State Transfer (REST) end-points and are client-side based. The design and interaction of these types of apps are similar to client-side design patterns used with sandboxed solutions.” *

*http://msdn.microsoft.com/library/office/dn268593(v=office.15)

Page 7: SPCA2013 - SharePoint Hosted Apps and Javascript

11-04-2023 7

The good

• Solves many problems for Microsoft

• JavaScript only

• Apps run in their own app web which is a sub web of the host web

Page 8: SPCA2013 - SharePoint Hosted Apps and Javascript

11-04-2023 8

The bad

• Solves many problems for Microsoft

• JavaScript only

• Apps run in their own app web which is a sub web of the host web

Page 9: SPCA2013 - SharePoint Hosted Apps and Javascript

11-04-2023 9

The ugly

• SharePoint-hosted apps do not work with SAML and FBA sites

Page 10: SPCA2013 - SharePoint Hosted Apps and Javascript

JavaScriptThe good, the bad and the… etc.

10

Page 11: SPCA2013 - SharePoint Hosted Apps and Javascript

11-04-2023 11

The good

• Dynamic programming language

• Extensible

• Can be written in an Object-oriented fashion

Page 12: SPCA2013 - SharePoint Hosted Apps and Javascript

11-04-2023 12

The bad

• Dynamic programming language

• Extensible

• Can be written in an Object-oriented fashion

Page 13: SPCA2013 - SharePoint Hosted Apps and Javascript

11-04-2023 13

The ugly

Page 14: SPCA2013 - SharePoint Hosted Apps and Javascript

11-04-2023 14

Real development shortcomings

• No type checking

• No compile-time validation

• IntelliSense is not that good

Page 15: SPCA2013 - SharePoint Hosted Apps and Javascript

Huge DemoDemo

15

Page 16: SPCA2013 - SharePoint Hosted Apps and Javascript

11-04-2023 42

Conclusion

• TypeScript is pretty cool

• Still in preview though and the Visual Studio plugin is not very stable…

• T4 templating is pretty cool

• T4 templating could use some TLC… no intellisense is pretty much a deal breaker though

• AngularJS is pretty cool

• No buts… it is pretty cool!

• Web Essentials is pretty cool

• The tool does have some bugs, it is open source though and you can submit your changes

• Writing SharePoint-hosted Apps can be pretty cool…

• Nobody said it would be easy though..

Page 17: SPCA2013 - SharePoint Hosted Apps and Javascript