Get rid of these bad habits, you are not a rookie, get rid of bad habits not
1. Do not use tools such as Phpdoc to properly annotate your code
2. Turn a blind eye to an excellent integrated development environment such as Zend Studio or eclipse PDT
3. No form of version control system has ever been used, such as Subcl
. NET application architecture design-work unit model (get rid of the important idea of Procedural Code and attack DDD against it)
Reading directory:1. Background introduction 2. True dilemmas of Procedural Code 3. Simple examples of the work unit Mode 4. Summary 1. Background introduction
I have been talking about object-oriented development all the time. However, when developing enterprise application sys
Get rid of these bad habits. you are not a Cainiao. You are not a Cainiao. you are not a Cainiao. do not use tools such as phpDoc to properly comment your code 2. for excellent integrated development environments such as ZendSt, get rid of these bad habits.
1. do not use tools such as phpDoc to properly comment your co
HTML, but do not return pure data, strings, or objects
17. Always hard-code "message" and "Configuration parameters"
18. Do not optimize SQL query statements
19. Do not use __autoload (refer to the PHP manual for a description)
20. Intelligent error Handling is not allowed (refer to Pear's errorstack)
21. Use $_get instead of $_post to do destructive transfer operations
22. Do not know how to use regular expressions
23. Never heard of
--Add new variable "upper right Corner"Such as:In this way, click on the save variable, will be in the background parameter more than a site at the bottom of the information variable input box, how to call this tag? With the previousCall site Copyright informationSame format:{dede:global.dede_powerby/}Add this label to the footer.htm bottom template. With our own copyright information variable, we can delete the copyright information variable that was brought in by the system. We use the
object 17. "Message" and "configuration parameters" are always hardcoded 18. Do not optimize SQL query statements 19. Do not use __autoload (Note: Refer to the PHP manual for a description) 20. Intelligent error Handling is not allowed (refer to Pear's errorstack) 21. Use GET _post for destructive transfer operations22. Do not know how to use the regular expression 23. Never heard of
The URL of the app developed with thinkphp usually takes a index.php, and if we need pseudo-static or SEO optimization, this is very bad to see and meaningless. So how do we get rid of the index.php in the Thinkphp app URL?
For this problem we can be resolved by URL rewrite, of course, this is required to open the Server Url_rewrite module. So make sure your server is turned on or open url_rewrite before f
DEDECMS program installed, suddenly found that there are many ads, looking at the annoyance, the customer has to find to ask, can you bring these ads to clear?The answer is yes, we can delete it manually, or we can delete it in bulk. So how exactly do you want to do it?The following is the Ding peak a D to you said:First, we need to login to the space backstage, click on the module, open the ad management, we can see the ads.Of course, we can delete the ad we want to delete directly by one, clic
Resolve the SQL Server to focus on the removal (Bookmark Lookup, RID Lookup, Key Lookup), bookmarkrid
Preface
The previous sections focus on basic content. In this section, we will talk about index performance optimization. When processing big data, we first think of indexes. Once such a problem occurs, we are in a hurry, why are basic skills rarely used for various data queries? Let's
What can MySQL do to remove spaces from a field character in bulk? Not only the space before and after the string, but also the space in the middle of the string, the answer is replace, using the MySQL self-contained replace function, plus a trim function.(1) MySQL replace functionSyntax: replace (object,search,replace) meaning: Replace all occurrences of search in object with the Replace case:SQL Code copy content to clipboard
Update ' News ' set ' content ' =replace (' content ',' ',
Objective
The previous sections are all about the basics, and we'll talk about index performance optimization in this section, when the large data processing first thought is the index, once encountered such a problem is a rush, all kinds of information, why not usually solid basic skills, we are simple, short content, in-depth understanding, rather than a problem to the box to die , immediately gives the solution, throws the question, then solves the problem, you
SQL removes duplicate records, SQL removes duplicates
There are two Repeated Records. One is a completely repeated record, that is, records with all fields being repeated, and the other is records with duplicate key fields, such as duplicate Name fields, other fields are not necessarily repeated or can be ignored.1. For the first type of repetition, it is easier
Tags: Sel program solution explained City HTM IPA needsObjectiveThe previous sections are the basic content, this section we talk about the index performance optimization, when the big data processing when the first thought is the index, once encountered such a problem is rushed, all kinds of search data, why not usually solid basic skills, we are simple and simple, short content, in-depth understanding, rather than a problem to the box to die , immediately give the solution, throw the problem,
duplicate field name,address, which requires the result set to be unique for both fieldsSelect Identity (int,1,1) as Autoid, * into #Tmp from TableNameSelect min (autoid) as autoid into #Tmp2 from #Tmp Group by name,autoidSELECT * from #Tmp where autoid on (select Autoid from #tmp2)The last select is the result set that name,address not duplicate (but one more autoid field, which can be written in the SELECT clause without this column in the actual write)FourDuplicate querySELECT * FROM tablena
that the time in SQL Server is exactly 3 milliseconds. That's why I need to subtract 3 milliseconds to get the date and time I want.SELECT DateAdd (Ms,-3,dateadd (mm, DATEDIFF (Mm,0,getdate ()), 0))The time portion of the calculated date contains the time at which SQL Server can record the last moment of the day ("23:59:59:997"). Last day of last yearTo
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.