{"id":46,"date":"2016-07-14T11:21:12","date_gmt":"2016-07-14T11:21:12","guid":{"rendered":"http:\/\/www.softgriha.com\/blog\/?page_id=46"},"modified":"2016-07-14T11:21:12","modified_gmt":"2016-07-14T11:21:12","slug":"programming-coding-standard","status":"publish","type":"page","link":"https:\/\/www.softgriha.com\/blog\/programming-coding-standard\/","title":{"rendered":"Programming Coding Standard"},"content":{"rendered":"<p>This heading details about the <a href=\"http:\/\/www.softgriha.com\/programming-coding-standard\/ \u200e\" target=\"_blank\">coding standard<\/a> conventions that has to be followed for a website \/ web application development. This is documented with reference PHP\/ASP.NET\/JSP\/Silverlight\/HTML and all different databases.<\/p>\n<p>1) Website Folder Structure Guidelines:<br \/>\nAll the code for a website will be organized well in folders.<br \/>\nAll Images will be placed in a folder named &#8216;IMG&#8217;.<br \/>\nAll CSS Files will be placed in a folder named &#8216;CSS&#8217;.<br \/>\nAll File names will be named meaningfully.<br \/>\nAll JavaScript Files will be placed in a folder named &#8216;JS&#8217;.<br \/>\nThere will not be any JavaScript in the layout page unless otherwise it is absolutely necessary.<br \/>\nThere will not be any inline styles used for the HTML Elements unless otherwise it is absolutely necessary.<\/p>\n<p>2) Coding Guidelines:<br \/>\nAll variable names, control names and CSS class names will be named meaningfully and in camel conventions.<br \/>\nEg: counterVariable, printCounter, collegeName, studentHomeAddress etc<\/p>\n<p>All HTML controls will be named with the prefix as given below.<br \/>\n&#8211;> TextBox: txt<br \/>\nEg: txtFirstName<br \/>\n&#8211;> Plain Button: pb<br \/>\nEg: pbSignup and so on<br \/>\n&#8211;> Submit Button:sb<br \/>\n&#8211;> Reset Button:rb<br \/>\n&#8211;> Dropdownlist:ddl<br \/>\n&#8211;> Checkbox:chk<br \/>\n&#8211;> TextArea:ta<br \/>\n&#8211;> RadioButton:rad<br \/>\n&#8211;> File Upload:fl<br \/>\n&#8211;> Hidden Field:hen<br \/>\n&#8211;> Label:lbl<br \/>\n&#8211;> Division:div<br \/>\n&#8211;> Table: tb<\/p>\n<p>All variables controls will be named with the prefix as given below indicating their datatype<br \/>\n&#8211;> Integer:n<br \/>\nEg: nCounter<br \/>\n&#8211;> String: s<br \/>\nEg: sFirstName<br \/>\nAnd so on<br \/>\n&#8211;> Boolean: b<br \/>\n&#8211;> Long:ln<br \/>\n&#8211;> Short: sn<br \/>\n&#8211;> Float:f<br \/>\n&#8211;> Char:c<br \/>\n&#8211;> Object:obj<\/p>\n<p>&#8211;> All class names, property names etc will be named meaningfully in Pascal convention i.e. class Employee, property FirstName<\/p>\n<p>3) Database Standards:<br \/>\nAll database objects will be named meaningfully and in ALL CAPS format.<br \/>\nEg: Table Name: EMPLOYEE_MASTER<br \/>\nColumn Name: FIRST_NAME<br \/>\nAll tables will have a column named &#8216;DTE_CREATED&#8217; which stores the timestamp of the record inserted.<br \/>\nIn all tables where tracking the updating of the record is necessary the timestamp at which the record was updated should be stored in the column named &#8216;DTE_UPDATED&#8217;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This heading details about the coding standard conventions that has to be followed for a website \/ web application development. This is documented with reference PHP\/ASP.NET\/JSP\/Silverlight\/HTML and all different databases. 1) Website Folder Structure Guidelines: All the code for a website will be organized well in folders. All Images will be placed in a folder [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/www.softgriha.com\/blog\/wp-json\/wp\/v2\/pages\/46"}],"collection":[{"href":"https:\/\/www.softgriha.com\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.softgriha.com\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.softgriha.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.softgriha.com\/blog\/wp-json\/wp\/v2\/comments?post=46"}],"version-history":[{"count":1,"href":"https:\/\/www.softgriha.com\/blog\/wp-json\/wp\/v2\/pages\/46\/revisions"}],"predecessor-version":[{"id":47,"href":"https:\/\/www.softgriha.com\/blog\/wp-json\/wp\/v2\/pages\/46\/revisions\/47"}],"wp:attachment":[{"href":"https:\/\/www.softgriha.com\/blog\/wp-json\/wp\/v2\/media?parent=46"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}