xml usage in my work, 2015

21
XML in work Joni Kettunen Digia

Upload: jonikettunen

Post on 19-Jul-2015

43 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: XML usage in my work, 2015

XML in work

Joni Kettunen

Digia

Page 2: XML usage in my work, 2015

2

meaning

● One of the skill developer needs to know. Others could be HTML, SQL, programming languages

● Is used widely across the field● Importance of the xml depends on your

career choise. Compare it to the language studies.

Page 3: XML usage in my work, 2015

3

examples

● Electricity meter, WebServices● Data transfer between library system and

web front end.● Alert location (Datex)● UI: WPF, Silverlight● Tools

Page 4: XML usage in my work, 2015

4

Electricity meter

● IP, grid or GSM● Commands defined

in the meter type specific interface documentation

● Tariffs and data

Page 5: XML usage in my work, 2015

5

Delivery of a SOAP message

meterMeter

readingsoftware

Message trafficS

OA

P

SO

AP

meterMeter

readingsoftware

Msg traffic

SO

AP

SO

AP

Msg

traf

fic

SOAPMessage

Tracer

Page 6: XML usage in my work, 2015

6

SOAP message

Page 7: XML usage in my work, 2015

7

Implementing SOAP interface

● TCP/IP monitor : SOAP Message Tracer● Implementing driver for the interface using

mock data.● Test driven development and unit tests

(TDD)

Page 8: XML usage in my work, 2015

8

Data transfer between library systems

● Ugly xml-data● What should you see?

<Catalogue> <CatalogueId>12345678</CatalogueId> <CatalogueAuthor>J. K. Rowling</Cat... <CatalogueItem> <CatalogueItemBorrower>11223344</C... <CatalogueItemMaterialType>Book</C... </CatalogueItem>...

Page 9: XML usage in my work, 2015

9

Good xml message

● Compact size might be hard to read● Usin variables, strings or boolean flags

<Email>true</EMail> <SMS>false<SMS><Delivery>1,0,1<Delivery><Delivery>5</Delivery> <= Bittisum

● Number of tags, length of a tag and hierarchy

● File size vs. Readability, standards

Page 10: XML usage in my work, 2015

10

XML Spy

● Good tool for average user● 400-800 USD● Others: Notepad+, ConText, Emacs, etc.

Page 11: XML usage in my work, 2015

11

WPF

● Vector based, easy to scale up/down● Element anchoring and placing is

challenging● Restricted framework compared to Forms

Page 12: XML usage in my work, 2015

12

WPF UI example

Page 13: XML usage in my work, 2015

13

Silverlight, WPF

● Library management system, Aurora and areena.yle.fi

● Windows Phone apps● Finnish transport agency Häti● Finnish transport agency TLOIK

Page 14: XML usage in my work, 2015

14

XAML tools

● VS and Blend● Coding vs. Storyboard● Additional components (AddIn = Plugin)● 500 – 4 250 USD

– Community, OnLine, Express (free)

– Professional

– Premium

– Ultimate

Page 15: XML usage in my work, 2015

15

VS IDE

Page 16: XML usage in my work, 2015

16

Demo

Page 17: XML usage in my work, 2015

17

Demo<Label Name="OneIfResult" Content="0" Grid.Row="2" Grid.Column="1" HorizontalContentAlignment="Right"/><Label Content="StringBuilder" Grid.Row="4" Grid.Column="0"/><Label Name="StringBuilderResult" Content="0" Grid.Row="4" Grid.Column="1" HorizontalContentAlignment="Right"/>

<Button Name="StringBuilderOnly" Grid.Column="1" Grid.Row="6" Content="StringBuilder only" Click="StringBuilderOnly_Click"/><Button Name="StartAllButton" Grid.Column="2" Grid.Row="6" Content="Start all" Click="StartAllButton_Click"/>

Page 18: XML usage in my work, 2015

18

Blend

● UI design● Component customization

Page 19: XML usage in my work, 2015

19

Conclusion

● Understangin is more important than the technical term: HTML, HTML5, XML, XAML, SOAP, WebService

● Choosing right tools● Meaning the xml depends on your role

– specialist, project manager or (tech) leader

● Theory or practice

Page 20: XML usage in my work, 2015

20

Questions?

… before job ad

Page 21: XML usage in my work, 2015

21

Finally. Job ad.

For work usually required ”2 years work experience” but right attitude and passion for

your field compensates much.

Creating any web pages, phone app, or any programming activity counts as experience.

There are programs for ethustiast without experience for example Digia Career Compass