Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Web Development for Embedded devices

Jakub Fojtl
September 20, 2013

Web Development for Embedded devices

Development techniques used for targeting wide range of various devices based on HTML platform.

Jakub Fojtl

September 20, 2013
Tweet

More Decks by Jakub Fojtl

Other Decks in Technology

Transcript

  1. <3

  2. No standard controls •no radio-buttons •no checkboxes •no scrollbars, etc...

    There is a textbox, but most of them does not support type=”password”
  3. public ActionResult Xerox_Index() { // adding some Xerox bits }

    public ActionResult Index() { // happy path var model = new ScanModel(); return View(model); } ScanController.cs
  4. |-> ... |-> Start.Xerox.cshtml |-> Start.FujiXerox.cshtml |-> Start.KonicaMinolta.cshtml |-> Start.Sharp.cshtml

    |-> ... /Views/Scan [ Idea actually stolen from Scott Hanselman ] http://www.hanselman.com/blog/ ABetterASPNETMVCMobileDeviceCapabilitiesViewEngine.aspx
  5. conventions conventions convention conventions conventions convention conventions conventions convention conventions

    conventions convention conventions conventions convention Conventions Everywhere! conventio conventions conventions convention conventions conventions convention conventions conventions convention conventions conventions convention
  6. Test your conventions •in order to document them •in order

    to get feedback early •in order to manage exceptions
  7. .NET lib - ConventionTests •http://teststack.net/ConventionTests/ return new ConventionData { Types

    = t => t.Namespace.StartsWith(“Terminal.Filters”) && t.IsConcrete<ActionFilterAttribute>(), Must = t => t.Name.IncludeAnyKnownVendor() }.WithApprovedExceptions(); Exceptions are stored as plaintext in repository