{"id":17041,"date":"2018-10-24T16:00:59","date_gmt":"2018-10-24T14:00:59","guid":{"rendered":"https:\/\/belvg.com\/blog\/?p=17041"},"modified":"2025-02-11T08:02:39","modified_gmt":"2025-02-11T06:02:39","slug":"16-basic-rules-for-successful-front-end-development","status":"publish","type":"post","link":"https:\/\/belvg.com\/blog\/16-basic-rules-for-successful-front-end-development.html","title":{"rendered":"16 Basic Rules for Successful Front End Development"},"content":{"rendered":"\n<p>I have seen some truly terrifying code in the course of my professional life. When you see such a code, all you want to do is to leave the project, hide in a corner and cry.<\/p>\n<p><!--more--><\/p>\n<p>Today I will tell you some basic rules following which you can simplify your work on the front end as well as make your colleagues a little happier.<\/p>\n<p>Since the article contains quite a large amount of negativity, I&rsquo;d like to offer you a compensation in the form of a cute red panda. By the way, this animal was used on Mozilla&rsquo;s Firefox browser logo. Just FYI.<\/p>\n<h2><strong><span style=\"color: #000000;\">1. Don&rsquo;t use float<\/span><\/strong><\/h2>\n<p>Seriously, don&rsquo;t. Yes, it provides the support of IE10, but you will hardly need it. It&rsquo;s really difficult to edit float layouts since any changes can break them, and it takes too long to fix it afterwards. It hurts me almost physically to see a float layout. Float was exactly the reason why a meme about wonderful CSS showed up.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/10\/awesome.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-17042\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/10\/awesome.png\" alt=\"16 basic rules every front end developer should know\" width=\"871\" height=\"594\" title=\"16 Basic Rules for Successful Front End Development\"><\/a><\/p>\n<p>If your site sells sneakers or smartphones feel free to use Grid. If you need IE11 support, use Flexbox. This is not difficult at all, there is a guide to it available on <a href=\"https:\/\/css-tricks.com\/snippets\/css\/a-guide-to-flexbox\/\" target=\"_blank\" rel=\"noopener\">CSS&ndash;Trick<\/a>.<\/p>\n<h2><strong><span style=\"color: #000000;\">2. Go easy on the preprocessors<\/span><\/strong><\/h2>\n<p>Let&rsquo;s play a game. Guess which selector will be generated as a result of processing this code:<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/10\/nesting.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-17043\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/10\/nesting.png\" alt=\"16 basic rules every front end developer should know\" width=\"1756\" height=\"476\" title=\"16 Basic Rules for Successful Front End Development\"><\/a><\/p>\n<p>To understand the final selector, you need to go 400 lines up and study the structure of the code for a couple of minutes. This is not cool, CSS should not be like this. Do not use more than one level of nesting.<\/p>\n<p>Now try to guess what parameters this macro will generate:<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/10\/macro.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-17045\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/10\/macro.png\" alt=\"16 Basic Rules for Successful Front End Development\" width=\"1746\" height=\"572\" title=\"16 Basic Rules for Successful Front End Development\"><\/a><\/p>\n<p>To do this, you will have to look for the file where this macro is declared. The use of this macro may be a part of Magento&ndash;Way, but still you should not use it.<\/p>\n<div class=\"module_in_content_container\"><a href=\"https:\/\/belvg.com\/prestashop-modules\" class=\"link_to_module\" target=\"_blank\" rel=\"noopener\"><\/a><div class=\"module_content\"><img src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/06\/modules-prestashop-belvg.png\" width=\"481\" height=\"480\" alt=\"modules prestashop belvg\" class=\"module_image\" title=\"16 Basic Rules for Successful Front End Development\"><div class=\"module_content_part\"><h3 class=\"title\">PrestaShop Modules <\/h3><p class=\"module_content_text\">Take your online store to the next level with BelVG PrestaShop modules<\/p><a href=\"https:\/\/belvg.com\/prestashop-modules\" class=\"link_2_to_module\" target=\"_blank\" style=\"display:inline-block\" rel=\"noopener\"><span class=\"read-more\">Visit the store<\/span><\/a><\/div><\/div><\/div>\n<p>Sometimes macros can be useful and it&rsquo;s difficult to abandon them completely, so here is what I can suggest instead: use only the macros that are declared and used in the same file.<\/p>\n<p>But the main thing that helped preprocessors to become so popular among web designers are variables. Please do not use preprocessor variables. If you need variables &mdash; use <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/--*\" target=\"_blank\" rel=\"noopener\">Custom Properties<\/a>. Unlike variables, it&rsquo;s easy to debug them in a browser. Also, you can change them directly in runtime, thus implementing the color schemes. The support is not that great, however, the autoprefixer knows how to polyfill them just as well as the preprocessors.<\/p>\n<h2><span style=\"color: #000000;\"><strong>3. Encapsulate styles<\/strong><\/span><\/h2>\n<p>This tip applies to both the styles and the style files. Do not use global styles, otherwise, when editing you will have to track the changes in the whole cascade.<\/p>\n<p>Extract the component code to a separate file. It is much more convenient to edit a file with 50 lines, not 5000.<\/p>\n<h2><span style=\"color: #000000;\"><strong>4. Do not abbreviate class names<\/strong><\/span><\/h2>\n<p>You won&rsquo;t win much in the size of files, but this will greatly damage readability.<\/p>\n<p>Although some abbreviations seem obvious to you, others may not be able to understand them, so no <em>btnMidLPad<\/em>.<\/p>\n<h2><span style=\"color: #000000;\"><strong>5. Neither should you do the opposite<\/strong><\/span><\/h2>\n<p><em>another-one-selector-for-my-great-button__let-it-be-green<\/em> is not a good idea too.<\/p>\n<h2><span style=\"color: #000000;\"><strong>6. Do not mess with the global names<\/strong><\/span><\/h2>\n<p>Don&rsquo;t write anything to global variables. This is just as unreliable as Monkey Patching. Oh yes, do not modify global objects. There was <strong>Prototype.js<\/strong> that did exactly that, but it doesn&rsquo;t mean that it&rsquo;s worth doing. The debugging of such a code reminds me of an examination of bears by a neurologist.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/10\/bears.gif\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-17046\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/10\/bears.gif\" alt=\"16 Basic Rules for Successful Front End Development\" width=\"480\" height=\"270\" title=\"16 Basic Rules for Successful Front End Development\"><\/a><\/p>\n<h2><span style=\"color: #000000;\"><strong>7. Do not write logic in templates<\/strong><\/span><\/h2>\n<p>None of it. Neither in PHP, nor in JS. This is fast and convenient during the development, but do not leave it in the final version.<\/p>\n<div class=\"content_sales_info\" style=\"background-image: url(https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/03\/Sales_background.png\"><img width=\"65\" height=\"65\" src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2015\/11\/Vlad-Yunusov-middle.png\" alt=\"Vlad Yunusov\" title=\"16 Basic Rules for Successful Front End Development\"><div class=\"content_part\"><h3 class=\"title\">Partner With Us <\/h3><span class=\"sales_content_text\">Let's discuss how to grow your business. Get a Free Quote.<\/span><\/div> <a class=\"call-to-action\" href=\"https:\/\/belvg.com\/contact?utm_source=blog&amp;utm_campaign=sales_block&amp;utm_content=middle\" target=\"_blank\" rel=\"noopener\">Talk to Vlad<\/a><\/div>\n<h2><span style=\"color: #000000;\"><strong>8. Do not write vendor prefixes<\/strong><\/span><\/h2>\n<p>You won&rsquo;t be able to remember all the prefixes, so don&rsquo;t complicate the code too much and use the autoprefixer in the build system.<\/p>\n<h2><span style=\"color: #000000;\"><strong>9. Use linters<\/strong><\/span><\/h2>\n<p>The built-in linter of styles in VS Code will show you the errors at the stage of writing code.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/10\/stylelint.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-17047\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/10\/stylelint.png\" alt=\"16 Basic Rules for Successful Front End Development\" width=\"1278\" height=\"650\" title=\"16 Basic Rules for Successful Front End Development\"><\/a><\/p>\n<p>PHP Storm also highlights errors, but by default it is less picky about styles.<\/p>\n<div class=\"module_in_content_container\"><a href=\"https:\/\/belvg.com\/ecommerce-development\" class=\"link_to_module\" target=\"_blank\" rel=\"noopener\"><\/a><div class=\"module_content\"><img src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2015\/04\/ecommerce-development.png\" width=\"120\" height=\"120\" alt=\"ecommerce development\" class=\"module_image\" title=\"16 Basic Rules for Successful Front End Development\"><div class=\"module_content_part\"><h3 class=\"title\">Ecommerce Development<\/h3><p class=\"module_content_text\">Take your online store to the next level with BelVG ecommerce development<\/p><a href=\"https:\/\/belvg.com\/ecommerce-development\" class=\"link_2_to_module\" target=\"_blank\" style=\"display:inline-block\" rel=\"noopener\"><span class=\"read-more\">Visit the page<\/span><\/a><\/div><\/div><\/div>\n<h2><span style=\"color: #000000;\"><strong>10. Comment the code<\/strong><\/span><\/h2>\n<p>If you have written an ingenious algorithm that performs its function perfectly, do not be lazy to write a comment on how and why it works, since others may not be able to understand the idea.<\/p>\n<p><a href=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/10\/algorithm.png\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter size-full wp-image-17048\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/10\/algorithm.png\" alt=\"16 Basic Rules for Successful Front End Development\" width=\"1998\" height=\"1194\" title=\"16 Basic Rules for Successful Front End Development\"><\/a><\/p>\n<h2><span style=\"color: #000000;\"><strong>11. First CSS, then JS<\/strong><\/span><\/h2>\n<p>CSS is great because it is not a programming language. This is a markup language, and its methods of work are isolated and are constantly improved by browser developers.<\/p>\n<p>If you need to make a popup in the center of a page, do not write a mathematical calculation of the indent from the top element. Instead, make a full-screen Flex-container and add the <strong>align-items: center<\/strong> property.<\/p>\n<p>The less software logic a product has, the easier it is to be maintained.<\/p>\n<div class=\"content_sales_info\" style=\"background-image: url(https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/03\/Sales_background.png\"><img width=\"65\" height=\"65\" src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2015\/11\/Vlad-Yunusov-middle.png\" alt=\"Vlad Yunusov\" title=\"16 Basic Rules for Successful Front End Development\"><div class=\"content_part\"><h3 class=\"title\">Partner With Us <\/h3><span class=\"sales_content_text\">Let's discuss how to grow your business. Get a Free Quote.<\/span><\/div> <a class=\"call-to-action\" href=\"https:\/\/belvg.com\/contact?utm_source=blog&amp;utm_campaign=sales_block&amp;utm_content=middle\" target=\"_blank\" rel=\"noopener\">Talk to Vlad<\/a><\/div>\n<h2><span style=\"color: #000000;\"><strong>12. Clean up after yourself<\/strong><\/span><\/h2>\n<p>Do not leave unnecessary functions, files and logs. The next developer will have to spend some time to figure out that this is garbage. Format the code before it&rsquo;s committed.<\/p>\n<h2><span style=\"color: #000000;\"><strong>13. Store your templates on Git<\/strong><\/span><\/h2>\n<p>If you have made a page or a block in the admin panel, remember to duplicate the code in the file. Keep separate CMSPages and CMSBlocks folders. So you can use the power of version control, even on the content from the database.<\/p>\n<h2><span style=\"color: #000000;\">14. DIV, DIV, DIV<\/span><\/h2>\n<p>Not all frontenders know this, but there are more than two HTML tags. Study the specification and use the tags as intended. There is a nav tag for navigation, and article tag for the content part. There must be a title inside the article, otherwise they will work as div.<\/p>\n<p>If you think that accessibility is not what your projects need, then you are most likely wrong. I recommend reading about accessibility in <a href=\"https:\/\/www.smashingmagazine.com\/category\/accessibility\">Smashing Magazine<\/a>.<\/p>\n<p>These are the basic rules for successful front-end development from my point of view, hope you found it useful and interesting. Make sure to implement it in your day-to-day work and you will see how easy front-end development can be.<\/p>\n<div class=\"module_in_content_container\"><a href=\"https:\/\/belvg.com\/prestashop-development\" class=\"link_to_module\" target=\"_blank\" rel=\"noopener\"><\/a><div class=\"module_content\"><img src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2019\/06\/development_prestashop.png\" width=\"100\" height=\"100\" alt=\"development_prestashop\" class=\"module_image\" title=\"16 Basic Rules for Successful Front End Development\"><div class=\"module_content_part\"><h3 class=\"title\">PrestaShop Development<\/h3><p class=\"module_content_text\">Take your online store to the next level with BelVG PrestaShop development<\/p><a href=\"https:\/\/belvg.com\/prestashop-development\" class=\"link_2_to_module\" target=\"_blank\" style=\"display:inline-block\" rel=\"noopener\"><span class=\"read-more\">Visit the page<\/span><\/a><\/div><\/div><\/div>\n\n","protected":false},"excerpt":{"rendered":"I have seen some truly terrifying code in the course of my professional life. When &#8230;","protected":false},"author":8,"featured_media":17049,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"image","meta":{"_acf_changed":false,"footnotes":""},"categories":[491,15],"tags":[],"class_list":["post-17041","post","type-post","status-publish","format-image","has-post-thumbnail","hentry","category-magento-2","category-prestashop","post_format-post-format-image"],"acf":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.4 - aioseo.com -->\n\t<meta name=\"description\" content=\"Here is a list of 16 rules, following which can make your front end development a lot easier. We will talk about float, preprocessors, styles, linters and some other things.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Denis Guriyanov\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/belvg.com\/blog\/16-basic-rules-for-successful-front-end-development.html\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.4\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/16-basic-rules-for-successful-front-end-development.html#article\",\"name\":\"16 rules every front end developer should know | BelVG Blog\",\"headline\":\"16 Basic Rules for Successful Front End Development\",\"author\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/denis-guriyanov#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/16-Basic-Rules-to-Improve-Your-Front-End-Development-3.jpg\",\"width\":1110,\"height\":590,\"caption\":\"16 Basic Rules for Successful Front End Development\"},\"datePublished\":\"2018-10-24T16:00:59+02:00\",\"dateModified\":\"2025-02-11T08:02:39+02:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/16-basic-rules-for-successful-front-end-development.html#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/16-basic-rules-for-successful-front-end-development.html#webpage\"},\"articleSection\":\"Magento 2, Prestashop, Image\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/16-basic-rules-for-successful-front-end-development.html#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop#listItem\",\"name\":\"Prestashop\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop#listItem\",\"position\":2,\"name\":\"Prestashop\",\"item\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/16-basic-rules-for-successful-front-end-development.html#listItem\",\"name\":\"16 Basic Rules for Successful Front End Development\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/16-basic-rules-for-successful-front-end-development.html#listItem\",\"position\":3,\"name\":\"16 Basic Rules for Successful Front End Development\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop#listItem\",\"name\":\"Prestashop\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\",\"name\":\"BelVG Blog\",\"description\":\"Magento and Prestashop articles\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/denis-guriyanov#author\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/denis-guriyanov\",\"name\":\"Denis Guriyanov\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/16-basic-rules-for-successful-front-end-development.html#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cc371af19f9c419cb0c2033bd26757f6b08fce63e66c556d882502284fb0b8a1?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Denis Guriyanov\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/16-basic-rules-for-successful-front-end-development.html#webpage\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/16-basic-rules-for-successful-front-end-development.html\",\"name\":\"16 rules every front end developer should know | BelVG Blog\",\"description\":\"Here is a list of 16 rules, following which can make your front end development a lot easier. We will talk about float, preprocessors, styles, linters and some other things.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/16-basic-rules-for-successful-front-end-development.html#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/denis-guriyanov#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/denis-guriyanov#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/16-Basic-Rules-to-Improve-Your-Front-End-Development-3.jpg\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/16-basic-rules-for-successful-front-end-development.html\\\/#mainImage\",\"width\":1110,\"height\":590,\"caption\":\"16 Basic Rules for Successful Front End Development\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/16-basic-rules-for-successful-front-end-development.html#mainImage\"},\"datePublished\":\"2018-10-24T16:00:59+02:00\",\"dateModified\":\"2025-02-11T08:02:39+02:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\",\"name\":\"BelVG Blog\",\"description\":\"Magento and Prestashop articles\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"16 rules every front end developer should know | BelVG Blog","description":"Here is a list of 16 rules, following which can make your front end development a lot easier. We will talk about float, preprocessors, styles, linters and some other things.","canonical_url":"https:\/\/belvg.com\/blog\/16-basic-rules-for-successful-front-end-development.html","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/belvg.com\/blog\/16-basic-rules-for-successful-front-end-development.html#article","name":"16 rules every front end developer should know | BelVG Blog","headline":"16 Basic Rules for Successful Front End Development","author":{"@id":"https:\/\/belvg.com\/blog\/author\/denis-guriyanov#author"},"publisher":{"@id":"https:\/\/belvg.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/10\/16-Basic-Rules-to-Improve-Your-Front-End-Development-3.jpg","width":1110,"height":590,"caption":"16 Basic Rules for Successful Front End Development"},"datePublished":"2018-10-24T16:00:59+02:00","dateModified":"2025-02-11T08:02:39+02:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/belvg.com\/blog\/16-basic-rules-for-successful-front-end-development.html#webpage"},"isPartOf":{"@id":"https:\/\/belvg.com\/blog\/16-basic-rules-for-successful-front-end-development.html#webpage"},"articleSection":"Magento 2, Prestashop, Image"},{"@type":"BreadcrumbList","@id":"https:\/\/belvg.com\/blog\/16-basic-rules-for-successful-front-end-development.html#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/#listItem","position":1,"name":"Home","item":"https:\/\/belvg.com\/blog\/","nextItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/prestashop#listItem","name":"Prestashop"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/prestashop#listItem","position":2,"name":"Prestashop","item":"https:\/\/belvg.com\/blog\/category\/prestashop","nextItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/16-basic-rules-for-successful-front-end-development.html#listItem","name":"16 Basic Rules for Successful Front End Development"},"previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/16-basic-rules-for-successful-front-end-development.html#listItem","position":3,"name":"16 Basic Rules for Successful Front End Development","previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/prestashop#listItem","name":"Prestashop"}}]},{"@type":"Organization","@id":"https:\/\/belvg.com\/blog\/#organization","name":"BelVG Blog","description":"Magento and Prestashop articles","url":"https:\/\/belvg.com\/blog\/"},{"@type":"Person","@id":"https:\/\/belvg.com\/blog\/author\/denis-guriyanov#author","url":"https:\/\/belvg.com\/blog\/author\/denis-guriyanov","name":"Denis Guriyanov","image":{"@type":"ImageObject","@id":"https:\/\/belvg.com\/blog\/16-basic-rules-for-successful-front-end-development.html#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/cc371af19f9c419cb0c2033bd26757f6b08fce63e66c556d882502284fb0b8a1?s=96&d=mm&r=g","width":96,"height":96,"caption":"Denis Guriyanov"}},{"@type":"WebPage","@id":"https:\/\/belvg.com\/blog\/16-basic-rules-for-successful-front-end-development.html#webpage","url":"https:\/\/belvg.com\/blog\/16-basic-rules-for-successful-front-end-development.html","name":"16 rules every front end developer should know | BelVG Blog","description":"Here is a list of 16 rules, following which can make your front end development a lot easier. We will talk about float, preprocessors, styles, linters and some other things.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/belvg.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/belvg.com\/blog\/16-basic-rules-for-successful-front-end-development.html#breadcrumblist"},"author":{"@id":"https:\/\/belvg.com\/blog\/author\/denis-guriyanov#author"},"creator":{"@id":"https:\/\/belvg.com\/blog\/author\/denis-guriyanov#author"},"image":{"@type":"ImageObject","url":"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2018\/10\/16-Basic-Rules-to-Improve-Your-Front-End-Development-3.jpg","@id":"https:\/\/belvg.com\/blog\/16-basic-rules-for-successful-front-end-development.html\/#mainImage","width":1110,"height":590,"caption":"16 Basic Rules for Successful Front End Development"},"primaryImageOfPage":{"@id":"https:\/\/belvg.com\/blog\/16-basic-rules-for-successful-front-end-development.html#mainImage"},"datePublished":"2018-10-24T16:00:59+02:00","dateModified":"2025-02-11T08:02:39+02:00"},{"@type":"WebSite","@id":"https:\/\/belvg.com\/blog\/#website","url":"https:\/\/belvg.com\/blog\/","name":"BelVG Blog","description":"Magento and Prestashop articles","inLanguage":"en-US","publisher":{"@id":"https:\/\/belvg.com\/blog\/#organization"}}]}},"aioseo_meta_data":{"post_id":"17041","title":"16 rules every front end developer should know | #site_title","description":"Here is a list of 16 rules, following which can make your front end development a lot easier. We will talk about float, preprocessors, styles, linters and some other things.","keywords":null,"keyphrases":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_image_url":null,"twitter_title":null,"twitter_description":null,"schema_type":"default","schema_type_options":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null,"created":"2026-11-03 18:37:02","updated":"2026-11-03 18:37:02"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/belvg.com\/blog\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/belvg.com\/blog\/category\/prestashop\" title=\"Prestashop\">Prestashop<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t16 Basic Rules for Successful Front End Development\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/belvg.com\/blog\/"},{"label":"Prestashop","link":"https:\/\/belvg.com\/blog\/category\/prestashop"},{"label":"16 Basic Rules for Successful Front End Development","link":"https:\/\/belvg.com\/blog\/16-basic-rules-for-successful-front-end-development.html"}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/17041","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/comments?post=17041"}],"version-history":[{"count":-2,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/17041\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media\/17049"}],"wp:attachment":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media?parent=17041"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/categories?post=17041"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/tags?post=17041"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}