Table of Contents
40 bad habits of PHP programmers, I almost all caught them, 40 bad habits of PHP programmers
Home Backend Development PHP Tutorial 40 Bad Habits of PHP Programmers, I was almost all caught, 40 Bad Habits of PHP Programmers_PHP Tutorial

40 Bad Habits of PHP Programmers, I was almost all caught, 40 Bad Habits of PHP Programmers_PHP Tutorial

Jul 13, 2016 am 10:13 AM
php programmer

40 bad habits of PHP programmers, I almost all caught them, 40 bad habits of PHP programmers

1. Not writing comments

2. Not using IDE tools that can improve productivity

3. Do not use version control

4. Do not write code according to programming standards

5. Do not use a unified method

6. Don’t think and plan before coding

7. Do not perform coding and security checks before executing sql

8. Do not use test-driven development

9. Do not turn on automatic error reporting (error_reporting) when encoding

10. Not using a good debugging tool

11. Don’t refactor your code

12. Do not use a layered structure such as MVC

13. Don’t know the following concepts: KISS, DRY, MVC, OOP, REST

14. Use print or echo to output things directly in functions or classes instead of returning

15. Don’t use or understand unit testing

16. Return HTMl instead of data, strings, objects and other types

17. Hard code messages and configuration parameters (hard code messages and configuration parameters)

18. Not optimizing sql query

19. Do not use __autoload

20. Automatic error operation is not supported (should be intelligent error correction)

21. Use $_GET instead of $_POST for dangerous parameter transfer (remember these 40 items are all wrong)

22. Don’t know how to use regular expressions

23. I have never heard of sql injection and cross-site scripting (in terms of security, you should understand the English of these two things: sql injection, cross-site scripting)

24. Simple configuration is not supported, passing parameters to the constructor of the class, set/get methods, and defining constants

25. Unable to understand the advantages and disadvantages of OOP

26. No matter how small the thing you want to do is, use OOP

27. I think making reusable software is OOP

28. Don't choose intelligent defaults

29. Do not use a single configuration file

30. Don’t want others to see the code, but use .inc to replace .php

31. Do not use database abstraction layer (persistence layer)

32. Don’t DRY (Don’t repeat yourself) during development. (That is, always develop repetitive things)

33. Do not develop classes or methods that can be reused

34. Do not use abstract classes or interface classes, inheritance, polymorphism, or encapsulation.

35. Don’t use existing design patterns to optimize your program.

36. Users are not allowed to define basic directories (this seems not suitable for PHP, after all, it is not based on operating system development)

37. Wrong use of namespaces, using commonly used words as prefixes. (This will cause conflicts when others use it in the future. For example, define a function called array_push())

38. Do not use table prefixes when using the database (this is very important...)

39. Do not use or use an unfamiliar template engine (to facilitate team development, everyone should use common templates)

40. Don’t look at PHP frameworks (most frameworks contain excellent code and advanced concepts. They are worth learning)

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/914481.htmlTechArticle40 bad habits of PHP programmers, I almost all caught them, 40 bad habits of PHP programmers 1. Not writing Note 2. Not using IDE tools that can improve productivity 3. Not using version control 4. Not following the programming...
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

From start to finish: How to write the perfect PHP programmer resume From start to finish: How to write the perfect PHP programmer resume Sep 10, 2023 pm 04:21 PM

How to write a perfect PHP programmer resume In a highly competitive job market, an excellent resume is crucial for job seekers. For PHP programmers, writing a perfect resume is particularly important, because the resume is not only a window to showcase your skills and experience, but also the key to attracting the employer's attention. This article will explain in detail how to write a perfect PHP programmer job resume from beginning to end. Step One: Choose a Concise and Attractive Resume Template Choosing a concise and attractive resume template is the first step in writing your resume.

Don't be ignored anymore! Learn how to design an impressive PHP programmer resume Don't be ignored anymore! Learn how to design an impressive PHP programmer resume Sep 08, 2023 pm 04:30 PM

Don't be ignored anymore! Learn How to Design an Impressive PHP Programmer Resume In today's competitive job market, having an impressive resume is key to landing your dream job. Especially for technical positions such as PHP programmers, resumes are a window to showcase your skills and experience. This article will teach you how to design an impressive PHP programmer resume, complete with code examples. First, a good resume will attract the reader's attention. The title should succinctly describe your

Improve your job search success rate: Tips for writing an excellent PHP programmer job resume Improve your job search success rate: Tips for writing an excellent PHP programmer job resume Sep 10, 2023 pm 06:30 PM

Improve job search success rate: Tips for writing an excellent PHP programmer job resume In modern society, job hunting has become an important task faced by every graduate. When it comes to applying for a job, your resume is the most important piece. An excellent resume can win you an interview and even determine whether you can successfully get a job. Especially for a highly competitive position like PHP programmer, how to write an outstanding resume has become a key issue for every job seeker. Below I will share some tips for writing an excellent PHP programmer job resume.

How to write a PHP programmer resume that will impress employers How to write a PHP programmer resume that will impress employers Sep 08, 2023 am 08:19 AM

How to write a PHP programmer resume that will impress employers. In the highly competitive job market, it is particularly important to write an excellent resume. As a PHP programmer, in addition to your impressive work experience and skills, a resume also needs to reflect your love for programming and solid professional knowledge. This article will introduce some tips and code examples to help you write a PHP programmer resume that will shine in the eyes of employers. Concise and clear personal information The personal information section of your resume should include your name, contact information and personal website

Eye-catching PHP Programmer Resume Tips: How to Stand Out from Other Candidates Eye-catching PHP Programmer Resume Tips: How to Stand Out from Other Candidates Sep 12, 2023 am 10:16 AM

Eye-catching resume tips for PHP programmers: How to stand out from other candidates With the rapid development of the Internet industry, PHP programmers have also become one of the popular positions in the job market. However, more and more people are choosing PHP as their career development direction, which makes the competition more intense. Under such circumstances, how to make your resume stand out and become popular in the eyes of employers is a question that every PHP programmer needs to think about. First, a good resume should clearly and concisely demonstrate your skills.

PHP programmers' road to high-paying counterattack PHP programmers' road to high-paying counterattack Sep 09, 2023 am 09:22 AM

The road to high-paying counterattack for PHP programmers. With the rapid development of the Internet, the demand in the field of computer science continues to increase. In this era, people who need programming skills are most in demand. As a commonly used programming language, PHP provides programmers with a high-paying counterattack path. This article will introduce how PHP programmers can move towards a high-paying counterattack by learning PHP and related technologies, and attach some code examples. 1. Master the basic knowledge of PHP. To become an excellent PHP programmer, you first need to master the basic knowledge of PHP.

Explore Writing Tips: How to Write a Compelling PHP Programmer Job Resume Explore Writing Tips: How to Write a Compelling PHP Programmer Job Resume Sep 09, 2023 pm 04:09 PM

Explore Writing Tips: How to Write a Compelling PHP Programmer Resume In today's competitive job market, a compelling resume is especially important for PHP programmers. A good resume not only catches the employer's eye but also showcases your skills and experience. This article will explore some writing tips to help you craft a great PHP programmer resume, complete with code examples that highlight your professional abilities. Concise and clear format The format of your resume should be concise and clear, allowing employers to quickly scan your relevant information.

Improve your profile: How to write a PHP programmer resume that makes you stand out Improve your profile: How to write a PHP programmer resume that makes you stand out Sep 10, 2023 pm 05:12 PM

In today's highly competitive job market, how to stand out from the crowd of job seekers has become a very important issue. Especially for PHP programmers, a good resume can directly affect whether you can get an interview. This article will give you a detailed introduction to how to write a PHP programmer resume that makes you stand out. First of all, a good job resume should contain the following important parts: personal information, job intention, educational background, work experience, skills and expertise, and personal project experience. We will go part by part

See all articles