coding-style
'break' statement when using curly braces in switch-case
I use curly braces with all of my switch case statements in C/Objective-C/C++ I had not, until a few moments ago, considered whether including the break; statement inside the braces was good or bad p[详细]
2023-04-04 04:35 分类:问答have problem about displaying html
I have a problem about displaying HTML using data from MySQL. I using tinyMCE, and content will save as HTML format.[详细]
2023-04-04 03:25 分类:问答What is the benefit of an empty string value vs. using a null value
Here is my problem: Where I work, I need to run reports on a very large database. I\'m using basic SQL queries in PHP to filter for exactly what I want. Every so often I\'ll get groups in my reports[详细]
2023-04-04 00:38 分类:问答What best practices apply to property setters that refer to contained objects that might be null?
I\'m working with a class that exposes a contained object\'s properties for data binding purposes. I ran into a couple lines of code that smell, but I\'m not sure the best way to improve them.[详细]
2023-04-03 19:01 分类:问答php style about returning multiple values
Perhaps this is just a stylistic question, or perhaps there is a \"right\" answer. If I have a php function that needs to return multiple values (and those are incoming args) which is preferred:[详细]
2023-04-03 13:04 分类:问答Automated Coding Standard Violation Detection for C++
What I want to do is to have a tool run by my CI server to scan the code and detect any coding standard violations present based on a defined guideline. I will use the output to prompt build \"fails\"[详细]
2023-04-03 12:16 分类:问答What is alone { code } in Java for?
I recently read some code that uses a special syntax regarding {}, I\'ve asked a more experienced Java developer, but he also can\'t answer.[详细]
2023-04-03 11:37 分类:问答Switch values between two parameters [Best Practice / Better Code]
I bet this task has a shorter and more nice way to be written? /// <summary> /// Consumption between two parameters[详细]
2023-04-03 09:28 分类:问答How to design a program with many configuration options?
Lets say I have a program that has a large number of configuration options. The user can specify them in a config file. My program can parse this config file, but how should it internally store and pa[详细]
2023-04-03 08:13 分类:问答Should 'using' be inside the namespace or outside? [duplicate]
This question already开发者_运维知识库 has answers here: Closed 11 years ago. Possible Duplicate:[详细]
2023-04-02 17:49 分类:问答