Several signs that you are still a PHP newbie
Classify:php e-bookViews:3111396Download:322
I would like to include this article in my "Programming Embarrassing Things" series. Although in regular university courses, I was exposed to##software##engineering, enterprise-level software architecture and Database Design, but I still feel the "guilt" feeling brought to me by the following facts from time to time, of course , are all my subjective feelings, and are oriented to Eclipse: You are a

PHProokie, if you: 1. Not using tools like phpDoc to properly comment your code

2. Turn a blind eye to excellent integrated

development environments such as Zend Studio or Eclipse PDT 3. Never used any form of version control system, such as Subclipse

4. Without adopting certain coding and naming standards, as well as common conventions, they cannot be implemented throughout the project development cycle.

5. Not using a unified development approach

6. Not converting (or) not validating certain input or SQL query strings (Annotation: refer to PHP related functions)

7. Not planning your program thoroughly before coding

8. Not using test-driven development

9. Do not code and test with errors enabled (Translation: refer to PHP function error_reporting)

10. Turning a blind eye to the benefits of a debugger

11. Not refactoring your code

12. Do not use MVC-like patterns to separate different levels of the program

13. Don’tknowthese concepts: KISS, DRY, MVC, OOP, REST

14. Instead of returning, directly output (echo/print) content in your function or class

15. Turning a blind eye to the advantages of unit or generic testing

16. Always returns hardcoded HTML, but never pure data, strings, or objects

17. Always hardcode “message” and “configuration parameters”

18. Not optimizing SQL query statements

19. Do not use __autoload (Annotation: refer to the relevant description in the PHP manual)

20. Intelligent error handling is not allowed (Translation: refer to PEAR’s ErrorStack)

21. Use $_GET instead of $_POST for destructive transfer operations

22. Don’t know how to use regular expressions

23. Never heard of SQL injection or cross-site scripting

24. Simple configuration is not allowed, and the constructor of a class is not allowed to accept parameter transfer and then execute the set/get method, or constant definition at runtime.

25. Not understanding the advantages and disadvantages of object-oriented programming (OOP)

26. Abuse OOP regardless of the size of the situation

27. Thinking that implementing reusable software must equal/need to make your code follow OOP

28. Not leveraging smart defaults

29. No single configuration file

30. I don’t want to expose the source code of the file, but use the .inc suffix instead of .php

31. Not using a database abstraction layer

32. You cannot maintain a DRY style, that is, do not repeat yourself. If you are always copying and pasting something, it means that your design is poor.

33. There is no implementation that allows a function/class/method to do only one thing, nor can they be used in combination

34. Failed to try OOP’s specialties, such as abstract classes, interfaces, polymorphism, inheritance, and access control modifiers (Annotation: such as public, private, protected)

35. Optimize your program architecture design without using existing design patterns

36. Don’t allow your users to define base directories if you have many files or directories

37. Pollution of the namespace, such as naming your library functions with common strings

38. Do not use table prefix when using database tables

39. Not using a unified template engine

40. Don’t pay attention to the existing PHP development framework and are too lazy to explore; in fact, advanced development concepts and wonderful code are contained in it.

Statement:

All resources on this website are contributed and published by netizens, or reprinted by major download sites. Please check the integrity of the software yourself! All resources on this website are for learning and reference only. Please do not use them for commercial purposes, otherwise you will be responsible for all consequences incurred! If there is any infringement, please contact us to delete and remove it. Contact information: admin@php.cn

Latest courses

See more
  • [Web front-end] Node.js quick start
    [Web front-end] Node.js quick start
    This course is specially designed for beginners and aims to help students quickly master the basic knowledge and core technologies of Node.js. The course starts with the installation and environment configuration of Node.js, and gradually analyzes its asynchronous programming model, module system and event-driven mechanism in depth. Through a wealth of practical cases, students will learn how to use Node.js to build an efficient and stable web server, process HTTP requests and responses, and perform file operations and database interactions. In addition, the course will also introduce typical application scenarios of Node.js in front-end development, helping students quickly improve their practical capabilities and easily cope with the challenges of front-end development.
  • Complete collection of foreign web development full-stack courses
    Complete collection of foreign web development full-stack courses
    This course is a comprehensive tutorial covering HTML, CSS, JavaScript, Vue.js, React, Flutter and mobile APP development. From basic web page production to complex front-end and back-end interactions, to practical development of mobile applications, the courses are rich in content and highly practical. Through a series of practical projects, students will gain an in-depth understanding of and master various development skills and quickly grow into full-stack development engineers. Both beginners and experienced developers can benefit from it. Through the study of this course, you will have the ability to independently develop web applications and mobile applications, laying a solid foundation for future career development.
  • Go language practical GraphQL
    Go language practical GraphQL
    This course is designed to help learners master how to use Go language to implement GraphQL services. The course starts with the basic knowledge of GraphQL, and deeply analyzes the characteristics and advantages of its data query language. Then, combined with the characteristics of the Go language, it explains in detail how to build a GraphQL server, process requests, define data patterns, etc. Through rich practical cases, learners will learn how to integrate GraphQL in actual projects to improve the flexibility and efficiency of data interaction. The course is suitable for developers with a certain foundation in Go language and is a must-have for building efficient and modern APIs.
  • 550W fan master learns JavaScript from scratch step by step
    550W fan master learns JavaScript from scratch step by step
    This course is specially designed for beginners and is taught by Google bosses. The course starts from the basic knowledge of JavaScript and gradually deepens, covering syntax, functions, objects, event processing, etc. Through vivid cases and practical exercises, students can quickly master the core skills of JavaScript. The boss will personally answer students' questions and share programming experience, allowing students to grow into JavaScript masters in a relaxed and pleasant atmosphere. Whether you are a novice at programming or a developer looking to improve your skills, this course will be your best choice for learning JavaScript.
  • Python master Mosh, a beginner with zero basic knowledge can get started in 6 hours
    Python master Mosh, a beginner with zero basic knowledge can get started in 6 hours
    This course takes you on a programming journey. Starting from scratch, this 6-hour course will guide you through the fundamentals and advanced concepts of Python. Whether you're a beginner or an experienced programmer looking to improve your skills, Mosh's in-depth explanations and clear teaching methods will get you up to speed with Python quickly. Learn more about variables, data types, conditionals, loops, functions, objects, and modules and solidify your understanding with hands-on exercises. This course is ideal for learning Python and preparing you for a variety of career fields. Mosh's expertise and passion for education will give you the confidence to start on your path to becoming a proficient Python developer.