{"id":488,"date":"2014-12-12T10:28:36","date_gmt":"2014-12-12T10:28:36","guid":{"rendered":"http:\/\/www.cakephpexpert.com\/blog\/?p=488"},"modified":"2014-12-12T10:57:22","modified_gmt":"2014-12-12T10:57:22","slug":"top-10-errors-of-web-development-you-should-avoid","status":"publish","type":"post","link":"https:\/\/www.cakephpexpert.com\/blog\/top-10-errors-of-web-development-you-should-avoid","title":{"rendered":"Top 10 Errors of Web Development You Should Avoid"},"content":{"rendered":"<p>While developing many applications in the past we have come over situations where we have seen best of developers goofing up with the right practice towards development. <!--more-->It was not just when a new application was need to be developed but also with constant upgradation, refactoring and feature addition. Coding oversights happen! And this is generic and omnipresent. But it can be avoidable if problems are categorized and addressed individually.<\/p>\n<p><a href=\"http:\/\/www.cakephpexpert.com\/blog\/wp-content\/uploads\/2014\/12\/mistake-740x350.jpg\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-489\" src=\"http:\/\/www.cakephpexpert.com\/blog\/wp-content\/uploads\/2014\/12\/mistake-740x350.jpg\" alt=\"Web development errors\" width=\"740\" height=\"350\" srcset=\"https:\/\/www.cakephpexpert.com\/blog\/wp-content\/uploads\/2014\/12\/mistake-740x350.jpg 740w, https:\/\/www.cakephpexpert.com\/blog\/wp-content\/uploads\/2014\/12\/mistake-740x350-300x141.jpg 300w\" sizes=\"(max-width: 740px) 100vw, 740px\" \/><\/a><\/p>\n<p>Here is the list for application level oversights that needs to be dealt with all the needed attention and proper planning for best of results from development.<\/p>\n<p><strong>Developing with error reporting off<\/strong><\/p>\n<p>This is a common mistake developers do and they have to pay for this silly mistake investing a lot of extra time to development later on. To make sure you don\u2019t lose on any error issue, turn on the error reporting available at different levels. If you think error would not occur in your case, this could be your worst mistake. This could lead you to unnecessary trouble and one bad thing would let to another leaving your application at a high risk of getting trapped into error patches all over. Try avoiding this error and hit the button on!<\/p>\n<p><strong>Suppressing errors<\/strong><\/p>\n<p>This is even worse than not turning error reporting on. When you are suppressing errors, you are deliberately sweeping muck under the mat. These untreated errors would get nastier with time. This would only end up offering a shaky foundation to your application and you will have to pay heavily for the mistake.<\/p>\n<p><strong>No logging anywhere in the code<\/strong><\/p>\n<p>Logging is an important part of any web project and should be considered right away in the beginning. Most of them know this and use or implement logging in some or the other way. But the bad part is very few of the developers verify their logs for errors. It makes no sense having a log in your web architecture without a proper inspection agenda assigned to it.<\/p>\n<p><strong>Not implementing caching<\/strong><\/p>\n<p>Caching works at multiple levels. Server, Application, Database everything has its part of share for caching. Just like logging, caching should also be implemented right in the inception. To enhance the speed of PHP you can introduce an opcode cache that increases the efficiency of collection of byte code of PHP scripts. It is already available as OpCache with PHP 5.5. Talking at the application level you can use ACPu (the cache extracted from APC) or Memcached (that is a distributed caching system with great PHP support). One tip, no matter which caching system you follow, don\u2019t forget to cache database queries sufficiently or it could act as a big obstacle to your <a title=\"Cakephp application development\" href=\"http:\/\/www.cakephpexpert.com\/services\/cakephp-application-development\">PHP application<\/a> and be a bottleneck to task executions.<\/p>\n<p><strong>Disregarding best practices<\/strong><\/p>\n<p>It is sick to see developers implementing their own password encryption algorithm. This happens more because of the \u2018I know it all\u2019 attitude over lack of knowledge. But I have seen most of them failing almost all the time with that. The best development practices and design patterns are created to solve some purpose. So, as a developer it\u2019s your duty to pick the right prescribed pattern at work and use it thoroughly.<\/p>\n<p><strong>Not using automated tests<\/strong><\/p>\n<p>Tests should be created manually after studying the requirements and going through what situation demands. You will find a lot of people using tools for running tests in an automated arrangement. This harms the process badly with continuous integration. So, all the tools, templates and applications should be evaded and manual testing process should be followed to avoid irregular and faulty QA results.<\/p>\n<p><strong>Not reviewing code<\/strong><\/p>\n<p>An application is worked upon by many coders at a time. When we merge different <a title=\"hire cakephp developers\" href=\"http:\/\/www.cakephpexpert.com\/services\/hire-cakephp-developers\">modules and segments of application developed by many developers<\/a>, results can get irrational and inconsistent with the quality. Reviewing the whole structure of codes, standards followed, services implemented and the whole application at large asserts its stability and genuineness. This further helps in going strong with fixes and improvements and helps come out with desired results.<\/p>\n<p><strong>Not using OOP principles correctly<\/strong><\/p>\n<p>This is another big problem with most of the developers these days. Object Oriented Programming needs to be implemented to its best reference to gain the desired quality applying the concepts of objects, properties, methods, inheritance, and encapsulation right. This leads to the idea of coding where it is easy to extend or build upon the existing concept, using flexible coding pattern.<\/p>\n<p><strong>\u201cOn-the-fly\u201d or Cowboy coding<\/strong><\/p>\n<p>To meet their harsh deadlines most developers simply hack code from some source and push it directly to the live server. This goes completely against the conventions and plans supported by sane processes and also threatens the standards put by PHP and other dynamic languages. These platforms allow quick coding and change implementation but only in a restricted environment and any such reckless and indifferent practice of coding is highly dangerous for quality coding and should be avoid in first place.<\/p>\n<p><strong>Coding for the ideal scenario<\/strong><\/p>\n<p>We have seen situations where erroneous boilerplate code was added in causing a lot of trouble to the structure, eventually challenging our whole effort of development. This happens because of the lazy temperament of developers who fail to work in an ideal work scenario where corrupted databases and fatal errors are not there. Working in an ideal arrangement requires not just right resources but the right environment and the apt approach that provides for worst case scenario and has instant backup for things.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>While developing many applications in the past we have come over situations where we have seen best of developers goofing up with the right practice towards development.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[16,54,12],"tags":[57,56],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Top 10 Errors of Web Development You Should Avoid - Cakephp Expert Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.cakephpexpert.com\/blog\/top-10-errors-of-web-development-you-should-avoid\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Top 10 Errors of Web Development You Should Avoid - Cakephp Expert Blog\" \/>\n<meta property=\"og:description\" content=\"While developing many applications in the past we have come over situations where we have seen best of developers goofing up with the right practice towards development.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.cakephpexpert.com\/blog\/top-10-errors-of-web-development-you-should-avoid\" \/>\n<meta property=\"og:site_name\" content=\"Cakephp Expert Blog\" \/>\n<meta property=\"article:published_time\" content=\"2014-12-12T10:28:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2014-12-12T10:57:22+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.cakephpexpert.com\/blog\/wp-content\/uploads\/2014\/12\/mistake-740x350.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.cakephpexpert.com\/blog\/#website\",\"url\":\"https:\/\/www.cakephpexpert.com\/blog\/\",\"name\":\"Cakephp Expert Blog\",\"description\":\"Cakephp Development Company\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.cakephpexpert.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.cakephpexpert.com\/blog\/top-10-errors-of-web-development-you-should-avoid#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"http:\/\/www.cakephpexpert.com\/blog\/wp-content\/uploads\/2014\/12\/mistake-740x350.jpg\",\"contentUrl\":\"http:\/\/www.cakephpexpert.com\/blog\/wp-content\/uploads\/2014\/12\/mistake-740x350.jpg\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.cakephpexpert.com\/blog\/top-10-errors-of-web-development-you-should-avoid#webpage\",\"url\":\"https:\/\/www.cakephpexpert.com\/blog\/top-10-errors-of-web-development-you-should-avoid\",\"name\":\"Top 10 Errors of Web Development You Should Avoid - Cakephp Expert Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.cakephpexpert.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.cakephpexpert.com\/blog\/top-10-errors-of-web-development-you-should-avoid#primaryimage\"},\"datePublished\":\"2014-12-12T10:28:36+00:00\",\"dateModified\":\"2014-12-12T10:57:22+00:00\",\"author\":{\"@id\":\"https:\/\/www.cakephpexpert.com\/blog\/#\/schema\/person\/0f12b00f339dcf099f8431b3ba0db2e1\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.cakephpexpert.com\/blog\/top-10-errors-of-web-development-you-should-avoid#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.cakephpexpert.com\/blog\/top-10-errors-of-web-development-you-should-avoid\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.cakephpexpert.com\/blog\/top-10-errors-of-web-development-you-should-avoid#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.cakephpexpert.com\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Top 10 Errors of Web Development You Should Avoid\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.cakephpexpert.com\/blog\/#\/schema\/person\/0f12b00f339dcf099f8431b3ba0db2e1\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.cakephpexpert.com\/blog\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/28e9fe1b5e695a0ed4f8d10cb1186b26?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/28e9fe1b5e695a0ed4f8d10cb1186b26?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/www.cakephpexpert.com\/\"],\"url\":\"https:\/\/www.cakephpexpert.com\/blog\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Top 10 Errors of Web Development You Should Avoid - Cakephp Expert Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.cakephpexpert.com\/blog\/top-10-errors-of-web-development-you-should-avoid","og_locale":"en_US","og_type":"article","og_title":"Top 10 Errors of Web Development You Should Avoid - Cakephp Expert Blog","og_description":"While developing many applications in the past we have come over situations where we have seen best of developers goofing up with the right practice towards development.","og_url":"https:\/\/www.cakephpexpert.com\/blog\/top-10-errors-of-web-development-you-should-avoid","og_site_name":"Cakephp Expert Blog","article_published_time":"2014-12-12T10:28:36+00:00","article_modified_time":"2014-12-12T10:57:22+00:00","og_image":[{"url":"http:\/\/www.cakephpexpert.com\/blog\/wp-content\/uploads\/2014\/12\/mistake-740x350.jpg"}],"twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/www.cakephpexpert.com\/blog\/#website","url":"https:\/\/www.cakephpexpert.com\/blog\/","name":"Cakephp Expert Blog","description":"Cakephp Development Company","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.cakephpexpert.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https:\/\/www.cakephpexpert.com\/blog\/top-10-errors-of-web-development-you-should-avoid#primaryimage","inLanguage":"en-US","url":"http:\/\/www.cakephpexpert.com\/blog\/wp-content\/uploads\/2014\/12\/mistake-740x350.jpg","contentUrl":"http:\/\/www.cakephpexpert.com\/blog\/wp-content\/uploads\/2014\/12\/mistake-740x350.jpg"},{"@type":"WebPage","@id":"https:\/\/www.cakephpexpert.com\/blog\/top-10-errors-of-web-development-you-should-avoid#webpage","url":"https:\/\/www.cakephpexpert.com\/blog\/top-10-errors-of-web-development-you-should-avoid","name":"Top 10 Errors of Web Development You Should Avoid - Cakephp Expert Blog","isPartOf":{"@id":"https:\/\/www.cakephpexpert.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.cakephpexpert.com\/blog\/top-10-errors-of-web-development-you-should-avoid#primaryimage"},"datePublished":"2014-12-12T10:28:36+00:00","dateModified":"2014-12-12T10:57:22+00:00","author":{"@id":"https:\/\/www.cakephpexpert.com\/blog\/#\/schema\/person\/0f12b00f339dcf099f8431b3ba0db2e1"},"breadcrumb":{"@id":"https:\/\/www.cakephpexpert.com\/blog\/top-10-errors-of-web-development-you-should-avoid#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.cakephpexpert.com\/blog\/top-10-errors-of-web-development-you-should-avoid"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.cakephpexpert.com\/blog\/top-10-errors-of-web-development-you-should-avoid#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.cakephpexpert.com\/blog"},{"@type":"ListItem","position":2,"name":"Top 10 Errors of Web Development You Should Avoid"}]},{"@type":"Person","@id":"https:\/\/www.cakephpexpert.com\/blog\/#\/schema\/person\/0f12b00f339dcf099f8431b3ba0db2e1","name":"admin","image":{"@type":"ImageObject","@id":"https:\/\/www.cakephpexpert.com\/blog\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/28e9fe1b5e695a0ed4f8d10cb1186b26?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/28e9fe1b5e695a0ed4f8d10cb1186b26?s=96&d=mm&r=g","caption":"admin"},"sameAs":["https:\/\/www.cakephpexpert.com\/"],"url":"https:\/\/www.cakephpexpert.com\/blog\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.cakephpexpert.com\/blog\/wp-json\/wp\/v2\/posts\/488"}],"collection":[{"href":"https:\/\/www.cakephpexpert.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cakephpexpert.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cakephpexpert.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cakephpexpert.com\/blog\/wp-json\/wp\/v2\/comments?post=488"}],"version-history":[{"count":3,"href":"https:\/\/www.cakephpexpert.com\/blog\/wp-json\/wp\/v2\/posts\/488\/revisions"}],"predecessor-version":[{"id":492,"href":"https:\/\/www.cakephpexpert.com\/blog\/wp-json\/wp\/v2\/posts\/488\/revisions\/492"}],"wp:attachment":[{"href":"https:\/\/www.cakephpexpert.com\/blog\/wp-json\/wp\/v2\/media?parent=488"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cakephpexpert.com\/blog\/wp-json\/wp\/v2\/categories?post=488"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cakephpexpert.com\/blog\/wp-json\/wp\/v2\/tags?post=488"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}