sug bangalore - front end coding workflow for sitecore sites

22
front end WORKFLOW Sponsored by Husain Abbasi

Upload: anindita-bhattacharya

Post on 07-Aug-2015

114 views

Category:

Technology


2 download

TRANSCRIPT

Page 1: Sug bangalore - front end coding workflow for sitecore sites

front endWORKFLOW

Sponsored by

Husain Abbasi

Page 2: Sug bangalore - front end coding workflow for sitecore sites

Modularity

Page 3: Sug bangalore - front end coding workflow for sitecore sites

Split your code into reusable or independent chunks. Use consistent naming for classes or attributes in

HTML Scope CSS with prefixing Use classes and/or namespacing in JavaScript

What does writing modular code actually mean?

Page 4: Sug bangalore - front end coding workflow for sitecore sites

Distributed Development Versioning Dependency Management Maintainability Scalable Responsive

Why?

Page 5: Sug bangalore - front end coding workflow for sitecore sites

Easier to integrate the HTML with the backend code. Make the modules as close to backend partials as

possible Each module is it’s own entity and may not depend on

others.

How does it affect sitecore

Page 6: Sug bangalore - front end coding workflow for sitecore sites

Root _CSS _JS

Page 7: Sug bangalore - front end coding workflow for sitecore sites

Partials Layouts Pages

Page 8: Sug bangalore - front end coding workflow for sitecore sites

Automation

Page 9: Sug bangalore - front end coding workflow for sitecore sites

Perform repetitive tasks automatically Concentrate more on the actual coding rather than all

the processes. Provides a unified workflow across a team Save time!

Why use Automation tools?

Page 10: Sug bangalore - front end coding workflow for sitecore sites

Our awesome toolkit and process

Page 11: Sug bangalore - front end coding workflow for sitecore sites
Page 12: Sug bangalore - front end coding workflow for sitecore sites

#grumpyduck

Page 13: Sug bangalore - front end coding workflow for sitecore sites

All content should be in HTML files

Page 14: Sug bangalore - front end coding workflow for sitecore sites

Avoid Internal JS. Can cause conflicts between the FE and BE JS code Difficult to troubleshoot. Clutter. Difficult to maintain.

Page 15: Sug bangalore - front end coding workflow for sitecore sites

Comments are important

Page 16: Sug bangalore - front end coding workflow for sitecore sites

Prefer handling of logic from backend rather than JS

Page 17: Sug bangalore - front end coding workflow for sitecore sites

IDs should be valid Must contain at least one character Must not contain any space characters All values are case-insensitive Should be unique Must begin with a letter ([A-Za-z]) and may be followed

by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and periods (".").

Page 18: Sug bangalore - front end coding workflow for sitecore sites

For and ID elements should match

Page 19: Sug bangalore - front end coding workflow for sitecore sites

Remove the HTML tags if the text is empty Mess up screenreaders Can cause unwanted behaviors. Unnecessary bloat Can cause style issues. CSS is usually written keeping the

flow of the document and the availability of HTML tags in mind

Page 20: Sug bangalore - front end coding workflow for sitecore sites

Collab with FE before adding JS Conflicts Dependency issues

Page 21: Sug bangalore - front end coding workflow for sitecore sites

Avoid adding extra HTML between elements

Page 22: Sug bangalore - front end coding workflow for sitecore sites

Thank You!

Questions?

Sponsored by