Questions for best practices for writing high quality code.
0
votes
1answer
92 views
HTML code in Java class
A conceptual question, I tried to google but couldn't find any definitive answers, so here it goes:
Is it a good practice to write Java methods to return HTML strings that will be returned to the ...
1
vote
1answer
59 views
Estimated errors in implementation comparison
I've been working on improving an existing library to be more maintainable after trying to implement a feature I wanted and found the code to be hard to alter.
The library is a node.js grunt plugin ...
-2
votes
0answers
84 views
Code quality question [closed]
The first one is shorter and less noisy especially when embedded in nested control structures, the second seems to me a little more correct (it saves the subtraction).
Which one of these two would you ...
3
votes
0answers
109 views
What psychological factors account for readability? [migrated]
Readability is often intuitively synthesized. If you see some piece of code, you just know whether it is readable or not. But what are actual psychological, scientific explanations for this?
There ...
1
vote
1answer
90 views
Maintenance code needs improvements [duplicate]
I am currently maintaining/enhancing a project a bit old speaking of the 1990's. Atleast 15 developers would have worked over it.
Going through the code for understanding is bit difficult.
No ...
2
votes
0answers
67 views
Handling multiple projects [migrated]
At my current company my programming position has recently changed. In the past it has been a technical/functional position where we choose the project to work on and followed it from blank IDE to ...
-4
votes
1answer
63 views
Free Quality Control Online Tool [closed]
Is there a good free Software Quality Control tool? I want to be able to write test cases for my software development.
2
votes
3answers
281 views
What feedback is or is not appropriate for a code review? [duplicate]
I am interested in hearing some guidelines as to what feedback is or is not appropriate for a code review. My team has a very unstructured review process and I am trying to suggest some ways to ...
-1
votes
6answers
359 views
Is enrolling all programmers of our team in Microsoft Certification Training a good idea? [closed]
Is it a good idea to enroll all members of our development team in Microsoft Windows App Dev Certification Training? The goal would be to increase the quality of our product and having a more ...
2
votes
1answer
89 views
What does the “4” in LCOM4 mean?
I know that methods in a class should have high cohesion which roughly translates to having all the methods use all the instance variables directly or indirectly. I know that LCOM4 (Lack of ...
2
votes
2answers
91 views
Strategies for using a code metric evaluation tool
Should code quality metric evaluation tools like Sonar be integrated with IDE for running local analysis or should they be a part of the build process (like integrated with maven) for continuous ...
-1
votes
1answer
53 views
Code network metrics with UI events [closed]
There is a large body of literature regarding using network metrics (e.g. degree) for predicting defects. Something I'm running into is that a lot of my code is event-driven, so I have a large number ...
36
votes
8answers
1k views
What's the right balance between code consistency and code improvement?
Recently I had a discussion with a colleague regarding code style. He was arguing that your usage of APIs and the general patterns you are using should be as similar as possible with the surrounding ...
4
votes
2answers
428 views
How do I handle having so many SQL queries?
I have an MVC3 project that uses SQL Server.
I use data from the SQL database all the time and I often find that I'm reusing/duplicating some SQL queries. I thought I'd solve this problem by creating ...
0
votes
2answers
128 views
Code review practice in medium team [closed]
I'm looking for a way to organize code review process.
My inputs:
4-5 members in the team;
SVN/IntelliJ IDEA Community Edition.
Solution criteria:
Should support human review with ...