Questions tagged [maintainability]

Maintainability refers to the nature, methods, theory and art of maximizing the ease with which an asset may be sustained, modified or enhanced throughout the duration of its expected useful life.

306 questions
0
votes
1 answer

What git repository should a public web directory be in?

In an "integration manager workflow" scenario, should the public web directory be regarded as "maintainer private" git repository, or a canonical/blessed/upstream/main repository? Since I would like to use git to push tested web applications coming…
Ate Somebits
  • 287
  • 1
  • 18
0
votes
2 answers

NodeJS Express Socket.io Impletation in a Seperate File

I am using Node.JS Express v4 and socket.io for implementing WebSocket. My app.js is like this- var express = require('express'); var socket_io = require( "socket.io" ); var path = require('path'); var favicon = require('serve-favicon'); //var…
Abrar Jahin
  • 13,970
  • 24
  • 112
  • 161
0
votes
1 answer

What is the best alternative to #if in #define

I am using CUDA for my current project, and need to maintain a CPU and GPU kernel with a single implementation. I can tag a function with __device__ __host__ but that doesn't allow me to split the code when needed to use device-only features. So,…
0
votes
1 answer

For switch statements, does it matter if I have a default if all the case statements return?

which one is better for the long run, or does it not matter? switch ($something) { case 1: return 2; case 2: return 3; case 3: return 4; default: // throw exception } vs switch ($something) { case 1: return…
Popcorn
  • 5,188
  • 12
  • 54
  • 87
0
votes
1 answer

Maintainability index for over all angular.js project

For one of my research project I have been told to find maintainability index, Mc cabe cyclomatic complexity and helsatead metric of angular.js project for entire project. Any ideas for tools to use i searched on Google came up with Microsoft visual…
Pritbh
  • 120
  • 1
  • 12
0
votes
3 answers

How can I separate concerns (JS, HTML) while keeping maintainability?

I have some jQuery embedded into HTML but I would like to "extract" jQuery and place it into a separate file. Or at least, move it out of the immediate HTML code. I think doing so will fair better in the long run as far as maintainability goes. I…
Dennis
  • 7,907
  • 11
  • 65
  • 115
0
votes
1 answer

How do I apply nonintrusive design changes to Magento 1.X

I am having a little trouble here with a Magento installation here, which I "inherited" from a company who did some pretty heavy customizations to the theme. I tried to rationalize most of the changes and was pretty successful with it. The problem…
func0der
  • 2,192
  • 1
  • 19
  • 29
0
votes
3 answers

When create new Database

I have a general Database Design question: When is it better to create a new Database instead of adding new Tables to an existing? The question is related to design/maintainability andalso performance issues. Background: we are mirroring the main…
Tim Schmelter
  • 450,073
  • 74
  • 686
  • 939
0
votes
0 answers

Designing model for Storm Topology

I am using Apache Kafka & Apache Storm integration. I need to design a model.Here are the specification of my topology : I have configured topic in Kafka. Let say customer1 . Now, the storm bolts will read the data from the customer1 kafka-spout. It…
Ritesh Sinha
  • 820
  • 5
  • 22
  • 50
0
votes
2 answers

Is it considered poor practice to use the same view for creation and editing in an MVC application

I'm writing a web application which allows users to create (and then later, edit) blog-like text posts. Because the page for creating it will be identical to the page for editing it, I'm tempted to use the same page for both. It seems to me like…
0
votes
1 answer

How do you evaluate code maintainability of HTML5 vs. Silverlight

Comparison of HTML5 and Silverlight as Web development platform is a popular topic, and arguments often focus on readiness of HTML5 or additional step to install Silverlight plug-in. But let's say there are no such issues: all browsers have good…
Vagif Abilov
  • 9,835
  • 8
  • 55
  • 100
0
votes
1 answer

Use GUI displayed results of SQL query vs new queries?

I am developing a program, with a database and a GUI which displays parts of the database. Let's suppose I have a textblock which contains data from the database (found with a query). If I want to use the value of this textblock somewhere else in…
Sithered
  • 481
  • 7
  • 23
0
votes
1 answer

Dynamically Loaded Functionality per User

I'm building a fairly complex AngularJS application. It needs to have the ability to easily incorporate new functionality on a per user basis. For example say that the application is completed and 6 months later I need to add functionality for a…
0
votes
1 answer

Simplifying the task of writing TSQL that generates dynamic SQL

It looks like the need to use dynamic SQL is unavoidable with SQL Server for different reasons but the resulting code looks convoluted and unmaintainable. SQL server management studio's intellisence stops working for queries inside literals and…
axk
  • 5,316
  • 12
  • 58
  • 96
0
votes
1 answer

Can anyone tell me why the maintainability index is only 40 for this code?

I can't figure out why the maintainability index (as calculated in Visual Studio) for this method is only 40, I literally have to remove almost all the lines except the first two to get above 60: public void getNewPasswordDetails(Int32…
binks
  • 1,001
  • 2
  • 10
  • 26