Сергей Байдачный Майкрософт Украина

Slides:



Advertisements
Similar presentations
Windows 8 (1) (2) (3) Windows 8 (1) (2) (3)
Advertisements

var site="s15gizmodo" var site="s15gizmodo"
Node.js on Windows Azure Name Title Microsoft Corporation.
Feature: Web Client Keyboard Shortcuts © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Get more control & flexibility of the Windows Azure environment Developers IT Pros Easier migration of existing Windows applications to Windows Azure.
Building Android Apps with Mobile Services Speaker Name Speaker Title Speaker Company Twitter:
Feature: Assign an Item to Multiple Sites © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Windows 8 (1) (2) (3) Windows 8 (1) (2) (3)
demo Cloud Storage WA Blobs Schema Management APIs & Portal Web Roles Integration Pipeline 3 rd Party Web Services 3 rd Party Store 3 rd Party.
Building Social Games for Windows 8 with Windows Azure Name Title Microsoft Corporation.
Azure Services Platform Update James Conard Sr. Director Developer & Platform Evangelism Microsoft Corporation.
Building Windows Runtime Components in C++ Harry Pierson Program Manager, Windows Runtime Experience Team Microsoft Corporation.
跨平台 Hybrid App 開發簡介 - 使用 Visual Studio Tool for Apache Cordova + HTML/JavaScript 陳葵懋 (Ian)
Azure.
IT Operations Management
50 Performance Tricks to Make your HTML5 apps and sites Faster
S4 Solution Specialist Sales Summit
Mobile App Trends: lifecycle, functions, and cognitive
Windows Phone 8.1 New Features
Windows Azure Mobile Services
The Windows Phone Application Platform
Platform for Metro Style Apps
WebView: Bringing the web to your app
Build /4/2018 © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Microsoft Ignite /31/ :08 AM
SQL Server Data Tools for Visual Studio Part I: Core SQL Server Tools
IT Operations Management
Azure.
Microsoft Azure P wer Lunch
Windows Azure Web Sites
Building Awesome HTML Applications in Blend for Windows 8
Building Windows Phone Apps with Windows Azure Mobile Services
Architecting For Device Independent Delivery
Continuous Delivery for Microsoft Azure
Introduction to Windows Azure Web Sites
HTML5 Platform from Web to Apps
Azure Websites Teemu Tapanila Microsoft Azure
TechEd /21/2018 5:20 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
Building Windows Phone 7 Applications with the Windows Azure Platform
MIX 09 11/23/2018 6:07 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Web Site Web App Web API microsoftazurepass.com
Building Windows 8 and Windows Azure apps
Windows Runtime internals: understanding "Hello World"
Microsoft Virtual Academy
Introduction to Building Applications with Windows Azure
12/9/2018 Desktop Virtualization Corey Hynes Kyle Rosenthal President Technical Lead HynesITe Inc Spider Consulting @windowspcguy.
TechEd /28/ :27 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
Jim Nakashima Program Manager Cloud Tools
TechEd /11/ :21 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
TechEd /15/2019 8:08 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
TechEd /18/2019 2:30 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
TechEd /18/ :08 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
TechEd /18/ :01 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
Office 365 Development.
Platform for Metro style Apps
Building and Migrating Modern Enterprise Line of Business Applications
Using Windows Runtime and SDK to build Metro style apps
Azure Mobile Services in the Cloud
Consumer Mobile Apps that Scale
Silverlight 2 Mike Taulty Developer & Platform Group Microsoft Ltd
Windows Azure Overview
Build /19/2019 © 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION.
Виктор Хаджийски Катедра “Металургия на желязото и металолеене”
What’s new in Visual Studio 2012
Developing Windows Azure Applications with Visual Studio
Build /20/2019 © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Office 365 Development July 2014.
Developing Mobile Solutions with Windows Azure Part II
Building Windows Store Apps with Windows Azure Mobile Services
Presentation transcript:

Сергей Байдачный Майкрософт Украина Sergiy.Baydachnyy@Microsoft.com Разработка Windows Store и Windows Phone приложений с помощью JavaScript Сергей Байдачный Майкрософт Украина Sergiy.Baydachnyy@Microsoft.com

Основы мироздания Рынок больше не ограничивается компьютерами с мониторами, системными блоками и клавиатурой Планшеты, смартфоны, часы, очки, браслеты и др. С# - управляемый язык программирования Поддержка на альтернативных платформах Требует наличия .NET Framework Незнаком разработчикам на других платформах С++ - универсальный инструмент для приложений любого типа Сложный для быстрого старта «Старый», хотя за последние два года много чего изменилось (и это еще больше пугает)

JavaScript как универсальная альтернатива Язык не привязан к платформе и производителю Хотя некоторые разработчики и имеют ложную ассоциацию с HTML и Web Имеет другую идеологию (необычная реализация принципов ООП) Достаточно развитая экосистема внешних библиотек Позволяет быстро приступить к созданию реальных приложений

Как использовать JavaScript для Windows 8 и Windows Phone

Использование элемента WebView Полноценный браузер внутри Вашего приложения Со всеми возможностями и недостатками «Metro» браузера Позволяет работать с локальным хранилищем Вашего приложения Дает возможность генерировать контент «на лету» Поддерживает большое количество событий и методов Всегда работает в режиме Internet Explorer 11 (Windows 8.1)

Использование элемента WebView

Что такое Windows Store приложения Поддержка нового типа интерфейса Ориентация на клавиатуру и жесты Работа на x86 и ARM устройствах Новые элементы управления Новые принципы и подходы при построении дизайна приложений Базируются на программном интерфейсе нового типа (Windows Runtime) Доставляются пользователю через единый магазин, тесно интегрированный с операционной системой

Windows Store приложения Windows Store apps Desktop apps View XAML HTML / CSS HTML JavaScript Model Controller C/C++ C#, VB JavaScript + WinJS C C++ C# VB WinRT APIs Communication & Data Graphics & Media Devices & Printing System Services Application Model Internet Explorer Win32 .NET SL Core Windows Core OS Services

Windows developer platform App Model DirectX (C++) Silverlight XAML (C# | VB) Windows XAML (C# | VB | C++) WinJS (HTML + JS) Services Navigation Store Packaging Windows API Set Push Graphics Audio Media Commerce Contracts Roaming Networking File System Input Sensors Background App Data Backup Windows Runtime .NET CLR Windows Kernel Legend Windows + Windows Phone Windows Only Windows Phone Only

Таким образом JavaScript является «нативным» для Windows 8 и Windows Phone Приложения на JavaScript публикуются в магазине приложений Позволяет использовать любые внешние библиотеки Нужно использовать эту возможность очень осторожно Позволяет использовать HTML 5 элементы управления

Средства разработки Team Foundation Service Online (Visual Studio Online) Бесплатное использование командами до 5 разработчиков

Средства разработки Visual Studio Express 2013 for Windows

Не забываем о BizSpark Программа для компаний и индивидуальных разработчиков, которые занимаются стартапами Доступ на три года ко всему ПО Майкрософт на бесплатной основе Бесплатная регистрация в магазине Windows $150 в месяц на использование Azure http://www.Microsoft.com/bizspark

Что же такое WinJS Верим ли мы в универсальный интерфейс? Проблемы «чистого» JavaScript и HTML 5 Интерфейсы не всегда соответствуют рекомендациям Windows Проблемы взаимодействия с операционной системой Ограниченность набора элементов управления WinJS позволяет решить описанные выше проблемы Является прослойкой между JavaScript и Windows Runtime Описывает элементы управления и классы WinRT в удобном для JavaScript разработчика виде

WinJS Toolkits Build 2012 11/27/2017 © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

WinJS сегодня WinJS 2.0 Phone WinJS 2.1 WinJS WinJS New! WinJS Build 2014 11/27/2017 WinJS сегодня WinJS 2.0 Phone WinJS 2.1 WinJS WinJS WinJS You can use WinJS today to make apps for Windows desktops, laptops, tablets, convertibles, etc. WinJS New! © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

AppBar для Phone Build 2014 11/27/2017 WinRT integration with Splash App bar Same set of APIs between platforms New Phone-exclusive compact/minimal state © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Build 2014 11/27/2017 AppBar для Phone <div id="createAppBar" data-win-control="WinJS.UI.AppBar"> <button data-win-control="WinJS.UI.AppBarCommand" data-win-options="{id:'cmdAdd', label:'Add', icon:'add'}"> </button> data-win-options="{id:'cmdRemove', label:'Remove', icon:'remove'}"> data-win-options="{id:'cmdCamera', label:'Camera', icon:'camera', section:'selection'}"> </div> Same API as on PC… (next slide for differences on Phone) © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Build 2014 11/27/2017 AppBar для Phone <div id="createAppBar" data-win-control="WinJS.UI.AppBar" data-win-options="{closedDisplayMode:'minimal'}"> <button data-win-control="WinJS.UI.AppBarCommand" data-win-options="{id:'cmdAdd', label:'Add', icon:'add'}"> </button> data-win-options="{id:'cmdRemove', label:'Remove', icon:'remove'}"> data-win-options="{id:'cmdCamera', label:'Camera', icon:'camera', section:'selection'}"> </div> Next slide to highlight key code © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Build 2014 11/27/2017 AppBar для Phone <div id="createAppBar" data-win-control="WinJS.UI.AppBar" data-win-options="{closedDisplayMode:'minimal'}"> <button data-win-control="WinJS.UI.AppBarCommand" data-win-options="{id:'cmdAdd', label:'Add', icon:'add'}"> </button> data-win-options="{id:'cmdRemove', label:'Remove', icon:'remove'}"> data-win-options="{id:'cmdCamera', label:'Camera', icon:'camera', section:'selection'}"> </div> Section property is reinterpreted (value of “selection” means it’s a menu list item) Note closedDisplayMode property (minimal and compact values). Taken from AppBar SDK Sample App © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

ListView для Phone New touch target Build 2014 11/27/2017 For those coming from Silverlight, known as the long list selector. New selection mode New touch target Same set of APIs between platforms Virtualization New selection mode is exclusive to Phone New touch target: left margin of screen © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Использование ListView Build 2014 11/27/2017 Использование ListView <div data-win-control="WinJS.UI.ListView" data-win-options="{ itemDataSource: myDataSource, layout: { type: WinJS.UI.ListLayout }, itemTemplate: myItemTemplate, selectionMode: 'multi', tapBehavior: 'toggleSelect' }"> </div> Need to set selectionMode to ‘multi’ and tapBehavior to ‘toggleSelect’. Verbally say: Additional code will have to be added in JavaScript and CSS to enable the full functionality, available in the Pivot SDK Sample. © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Будущее WinJS WinJS WinJS WinJS WinJS Build 2014 11/27/2017 http:// WinJS WinJS You can use WinJS today to make apps for Windows desktops, laptops, tablets, convertibles, etc. © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Чуть не забыл JavaScript и WinJS позволяют разрабатывать и Xbox One приложения

Вопросы?

JavaScript на платформе Microsoft Сергей Байдачный Майкрософт Украина Sergiy.Baydachnyy@Microsoft.com

О чем будем говорить Node.js и Microsoft Azure платформа Azure Mobile Services и JavaScript Введение в TypeScript

Node.js и Microsoft Azure

Node.js и Windows node.exe iisnode node.exe application HTTP libuv named pipes node.exe w3wp.exe application iisnode HTTP IIS libuv HTTP.SYS TCP TCP node.exe iisnode

Node.js и Windows Azure Virtual Machine Hosted Service Web Site or Linux Hosted Service Managed application with VM access on Windows Web Site Managed HTTP application with Git, GitHub, FTP and TFS deployment Mobile Service Backend for Windows 8, Windows Phone, iPhone, or Android application

Node.js и Windows Azure Virtual Machine Hosted Service Web Site Mobile Service iisnode node.exe

Node.js и Windows Azure Virtual Machine Hosted Service Web Site Mobile Service iisnode node.exe

Deploying a Node.js application Windows Azure management portal Command line tools Git and GitHub integration

Using Azure services from Node.js Windows Azure SDK for Node.js Table Storage, Blob Storage, SQL Azure, ServiceBus, Storage Queues, HD insight, Service Runtime

Using .NET from Node.js Edge.js enables in-process interop between Node.js and .NET

Access MS SQL from Node.js Edge.js uses ADO.NET to enable access to MS SQL from Node.js

Azure Mobile Services и JavaScript

Пример из жизни Данные для MPNS Очередь MPNS Размещение сообщения в очереди (Web Role) Оператор Обработка и рассылка очередного сообщения (Worker Roles)

Проблема Soap, rest SQL Web Service Database Phone 11/27/2017 WAMS Slide Objectives: Provide broad overview of WA Mobile Services features Speaking Points: WAMS Build a cloud backend in minutes with no hassles, no deployments, no fear Supports Windows 8 client SDK, Windows Phone 8 SDK, iOS SDK Android coming soon Data Structured Storage with SQL Database Automatic service api generated for storage Rich querying capability Server Logic Automatic CRUD service api generated Ability to author server logic that intercepts CRUD operation pipeline Auth Authenticate against Windows Live Table level authorization with no code More granular control with server side scripts Notifications Integrates with WNS to provide Toast, Tile, Badge and Raw notifications Clean object model to compose notifications Scheduler Scheduler allows you to run Scripts to perform tasks at a scheduled basis minutes, hrly, daily, monthly or on demand. Example – aggregate News RSS feeds and send a tile update every 15 minutes Logging and Diagnostics for monitoring Scale out and Scale up © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Решение REST Database Phone 11/27/2017 WAMS Slide Objectives: Provide broad overview of WA Mobile Services features Speaking Points: WAMS Build a cloud backend in minutes with no hassles, no deployments, no fear Supports Windows 8 client SDK, Windows Phone 8 SDK, iOS SDK Android coming soon Data Structured Storage with SQL Database Automatic service api generated for storage Rich querying capability Server Logic Automatic CRUD service api generated Ability to author server logic that intercepts CRUD operation pipeline Auth Authenticate against Windows Live Table level authorization with no code More granular control with server side scripts Notifications Integrates with WNS to provide Toast, Tile, Badge and Raw notifications Clean object model to compose notifications Scheduler Scheduler allows you to run Scripts to perform tasks at a scheduled basis minutes, hrly, daily, monthly or on demand. Example – aggregate News RSS feeds and send a tile update every 15 minutes Logging and Diagnostics for monitoring Scale out and Scale up © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Что такое Windows Azure Mobile Services 11/27/2017 Что такое Windows Azure Mobile Services Auth Server Logic Notifications Logging & Diag Slide Objectives: Provide broad overview of WA Mobile Services features Speaking Points: WAMS Build a cloud backend in minutes with no hassles, no deployments, no fear Supports Windows 8 client SDK, Windows Phone 8 SDK, iOS SDK Android coming soon Data Structured Storage with SQL Database Automatic service api generated for storage Rich querying capability Server Logic Automatic CRUD service api generated Ability to author server logic that intercepts CRUD operation pipeline Auth Authenticate against Windows Live Table level authorization with no code More granular control with server side scripts Notifications Integrates with WNS to provide Toast, Tile, Badge and Raw notifications Clean object model to compose notifications Scheduler Scheduler allows you to run Scripts to perform tasks at a scheduled basis minutes, hrly, daily, monthly or on demand. Example – aggregate News RSS feeds and send a tile update every 15 minutes Logging and Diagnostics for monitoring Scale out and Scale up Data Scheduler Scale © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

TypeScript

JavaScript как язык для сложных проектов Нехватка привычных структур современных ООП языков программирования Сложности с рефакторингом Возможность создавать «неправильный» код и ориентация на уже существующие библиотеки

TypeScript Строго типизированное подмножество JavaScript Работает на любой платформе Open Source Работает со вставками из JavaScript и любыми существующими фреймворками

+ +

http://www.typescriptlang.org/Playground

Вопросы?