Top "Code-maintainability" questions

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 …

sql-server constraints alter-table code-maintainability
Too many if statements

I have some topic to discuss. I have a fragment of code with 24 ifs/elifs. Operation is my own class …

python if-statement conditional code-readability code-maintainability
JQuery class selector vs id selector

I have 7 different buttons that all perform the same javascript function on click. should i use class selector or id …

jquery performance jquery-selectors code-maintainability
Is 100% code coverage a really good thing when doing unit tests?

I always learned that doing maximum code coverage with unit tests is good. I also hear developers from big companies …

unit-testing documentation tdd code-maintainability