{"json_modified": "2016-03-28T08:29:37.556927", "uuid": "8d179e68-4e90-466a-bfac-e8aeeaa0e965", "title": "Code sample guidelines", "url": "/en-US/docs/MDN/Contribute/Guidelines/Code_samples", "tags": ["Guide", "MDN meta", "MDN Meta", "Guidelines"], "translations": [{"uuid": "196f1c93-cdfe-44c4-ba00-e3d5d80fcaae", "title": "\u0985\u09cd\u09af\u09be\u09aa \u09b2\u09c7\u0996\u09be\u09b0 \u09a8\u09ae\u09c1\u09a8\u09be \u09a8\u09bf\u09b0\u09cd\u09a6\u09c7\u09b6\u09bf\u0995\u09be", "url": "/bn-BD/docs/Project:MDN/Style_guide/Sample_app_coding_guidelines", "tags": ["\u0985\u09cd\u09af\u09be\u09aa", "MDN", "Guide", "Apps", "\u0997\u09be\u0987\u09a1"], "summary": "The aim of this document is to outline the coding standards we use for writing demos, sample code, code snippets, and so forth for use on MDN. The goal isn't to recommend one way of coding as being \"the right way,\" because there are so many different technologies, practices, styles, tools, frameworks, and libraries to use, and different people have different favorites. Instead, this article presents a way that works; it's a single minimalist way that is predictable, transparent, and simple enough to not get in the way of learning the main aspects of web development that each demo (and associated article) is trying to teach.", "localization_tags": ["inprogress"], "locale": "bn-BD", "last_edit": "2014-03-21T23:49:48", "review_tags": []}, {"uuid": "9ed0866d-b150-4698-baa6-e7b11b626a22", "title": "Exemplo de Orienta\u00e7\u00e3o para Codifica\u00e7\u00e3o de Aplicativos", "url": "/pt-BR/docs/Project:MDN/Style_guide/Sample_app_coding_guidelines", "tags": [], "summary": "The aim of this document is to outline the coding standards we use for writing demos, sample code, code snippets, and so forth for use on MDN. The goal isn't to recommend one way of coding as being \"the right way,\" because there are so many different technologies, practices, styles, tools, frameworks, and libraries to use, and different people have different favorites. Instead, this article presents a way that works; it's a single minimalist way that is predictable, transparent, and simple enough to not get in the way of learning the main aspects of web development that each demo (and associated article) is trying to teach.", "localization_tags": ["inprogress"], "locale": "pt-BR", "last_edit": "2015-01-11T10:43:24", "review_tags": []}], "modified": "2016-02-08T03:23:17", "label": "Code sample guidelines", "localization_tags": [], "locale": "en-US", "id": 82723, "last_edit": "2016-02-08T03:23:14", "summary": "The biggest advantage to adhering to these guidelines is that it will foster consistency across our samples and demos on MDN, which increases readability and comprehension overall.", "sections": [{"id": "General_guidelines", "title": "General guidelines"}, {"id": "Client-side_web_technologies", "title": "Client-side web technologies"}, {"id": "HTML", "title": "HTML"}, {"id": "Use_the_HTML_DOCTYPE", "title": "Use the HTML DOCTYPE"}, {"id": "Include_a_basic_document_structure", "title": "Include a basic document structure"}, {"id": "Include_a_document_language", "title": "Include a document language"}, {"id": "Define_your_document's_character_set", "title": "Define your document's character set"}, {"id": "General_element_coding_style", "title": "General element coding style"}, {"id": "Add_the_HTML_Shiv_for_cross-browser_HTML5_element_support", "title": "Add the HTML Shiv for cross-browser HTML5 element support"}, {"id": "Add_the_viewport_meta_tag", "title": "Add the viewport meta tag"}, {"id": "CSS", "title": "CSS"}, {"id": "Use_expanded_syntax", "title": "Use expanded syntax"}, {"id": "Use_CSS_flags", "title": "Use CSS flags"}, {"id": "Use_mobile_first_media_queries", "title": "Use \"mobile first\" media queries"}, {"id": "Use_flexiblerelative_units", "title": "Use flexible/relative units"}, {"id": "Think_carefully_before_using_resets", "title": "Think carefully before using resets"}, {"id": "Plan_your_CSS_-_avoid_overriding", "title": "Plan your CSS - avoid overriding"}, {"id": "JavaScript", "title": "JavaScript"}, {"id": "More_to_come", "title": "More to come"}, {"id": "Shell_prompts", "title": "Shell prompts"}, {"id": "Tools_and_libraries", "title": "Tools and libraries"}, {"id": "Apps_template", "title": "Apps template"}, {"id": "Quick_Links", "title": "Quick Links"}], "slug": "MDN/Contribute/Guidelines/Code_samples", "review_tags": []}