community code: macadamian

Post on 07-Nov-2014

1.203 Views

Category:

Technology

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

Daniel Menard, Macadamian TechnologiesSoftware developer, web enthusiast, general optimist. I create killer software products at Macadamian Technologies.

TRANSCRIPT

Community Code: Macadamian

Confidential 11/2/11 1

And you are…?

Dan Menard Software Developer Macadamian Technologies @dan_menard www.dan-menard.com @macadamianlabs www.macadamian.com

2

How to build really, really big, complex applications with Sencha Touch.

3

We’ll cover:

4

  Extending Sencha Touch with PhoneGap   Demo #1: Hello World Patient   Practical Limits of HTML5   Demo #2: Caching with Core Data   Performance

Extending Sencha Touch With PhoneGap

5

Why?

6

How?

7

Practical Limits Of HTML5

8

Caching in HTML5

9

Caching with Core Data

10

Encryption

11

NSString *storePath = // Path to your NSPersistedStore. NSURL *storeUrl = [NSURL fileURLWithPath:storePath ]; NSError *error = nil; ������ NSDictionary *fileAttributes = [NSDictionary dictionaryWithObject:NSFileProtectionComplete forKey:NSFileProtectionKey]; ������ [[NSFileManager defaultManager] setAttributes:fileAttributes ofItemAtPath:storePath error:&error];

Source: https://nickharris.wordpress.com/2010/07/14/core-data-and- enterprise-iphone-applications-protecting-your-data/ 12

Performance

13

Ensure.js

  http://ensure.codeplex.com   Loads JS/HTML/CSS dynamically.   Really, really useful.

14

Write better CSS

  Super-fancy CSS3 operations are also super-expensive.   This:

div.header span   Is slower than this:

div span.header

15

Other Tips

  Don’t use big images!   Follow JavaScript/Sencha best practices.

16

That’s all folks!

My name is Dan Menard. Follow me on Twitter: @dan-menard Check out my blog: www.dan-menard.com I work for Macadamian Technologies. They also tweet: @macadamianlabs Learn more about us: www.macadamian.com

17

top related