code-maintainability
A big Utility or separate into different pieces?
I am writing an application, which will a few programmers involve in. We come up with some problems when managing source code. We usually have a Utility.php, which share among different users. So, we[详细]
2023-03-20 11:55 分类:问答java 1.5: Best practice to keep constants for column name of db tables?
Technology: - Java 1.5 or 1.6 - Hibernate 3.4 To avoid update of column name on multiple places on change of column name or tablename, i want to have a constant file for same.[详细]
2023-01-31 16:54 分类:问答Challenges of refactoring unit-tests to be maintainable and readable when dealing with List<T> objects
In the book The Art of Unit Testing it talks about wanting to create maintainable and readable unit tests. Around page 204 it mentions that one should try to avoid multiple asserts in one test and, pe[详细]
2023-01-17 10:00 分类:问答Can I create a named default constraint in an add column statement in SQL Server?
In SQL Server, I have a new column on a table: ALTER TABLE t_tableName ADD newColumn NOT NULL This fails because I specify NOT NULL without specifying a default constraint. The table should not ha[详细]
2023-01-16 23:35 分类:问答Is 100% code coverage a really good thing when doing unit tests? [closed]
Closed. This question is opinion-based. It is not currently accepting answers. 开发者_JAVA百科 Want to improve this question? Update the question so it can be answered with facts and citati[详细]
2023-01-04 16:27 分类:问答Inputs for improving code debuggability apart from logs and error codes
Apart from error codes, error strings and logs, are there any other features which can be incorporated in the code to increase getting debug / trace information during code runtime which can help debu[详细]
2022-12-19 06:51 分类:问答