Agile Developer

Developer Notes

Developer Notes

TOOLS RECOMMENDED FOR DEVELOPMENT

  • Visual Studio
    • .aspx
    • .cs
  • Visual Studio Code
    • .css
    • .js

FORMATTING (JS ONLY)

Visual Studiointellisense can’t understand and format es6 code and there seems to be no fix for same.

As a workaround please try the recommended process of formatting (Shift + Alt + F) and saving files in vsCode(Visual Studio Code).

MINIFICATION

Minification is the process of drastically reducing the js/CSS file size that helps fast loading web pages. Please minify the js/CSS code using the following minZIP web application:

Example:

  • iview.js should be minified and outputted file will be referred as iview.min.js

VERSIONING

Versioning is the process used to avoid the cached files being referenced after the code is updated.

Please increment the version for all the referenced CSS/js files being committed.

Example:

  • /iview.min.js?v=1 should be modified as /iview.min.js?v=2

ACCESSING PARENT IFRAMES AND ITS OBJECTS. (JS)

Each Iframe are independent of logic themselves but holds tightly for the sole purpose of achieving Axpert Web business logic, these Iframes hold their own objects and variables that are tightly coupled with another Iframe. Variable from one Iframe is accessed from another Iframe, sometimes there can be a long hierarchy of Iframes opened one above another special in the case if popup Iframes. In order to access the variable from the main Iframe in nth Iframe traditional method from example 1 is used but is a complex way to maintain such code because the code will not be always sure which is the hierarchal sequence of a current Iframe to access the variable form. So, the method in example 2 is used to beautifully achieve functionality.

Example 1:

parent.parent.parent.parent(n times).myVariableToSet = 5;

Example 2:

callParentNew(“myVariableToSet=”, 5); Yeyyyyyy Easy!

NO CDN LINKS

Content Distribution Network (CDN) files or any file reference from other websites should not be used because the availability of those links cannot be always insured and the download speed of such multiple files over the Internet affects page load time. Also, Axpert Web is served customers with highly secured offices over Intranet-only access and no Internet. So, all the external reference files should be downloaded and referenced from “{{project}}” folder.