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
6
votes
2 answers

Is large scala codebase maintainable?

I have some experience with the scala. I want to introduce it into new project with 10 members. But despite all expressiveness of the scala, I am very unsure of how simple the code can be maintained and transferred to new team members. At the…
yura
  • 14,489
  • 21
  • 77
  • 126
6
votes
3 answers

jQuery design pattern for selectors to improve code maintainability?

Yesterday I had to go back to a page I had worked on a few weeks ago to redo the UI. The UI consisted of a jQuery UI tab control with 3 tabs. Each tab had 3-5 controls inside of it, and a submit button to only submit the data within the tab. I had…
enriquein
  • 1,048
  • 1
  • 12
  • 28
6
votes
5 answers

How do you understand regular expressions that are written in one line?

This is a neat well documented regular expression, easy to understand, maintain and modify. text = text.replace(/ ( // Wrap whole match in $1 ( ^[ \t]*>[ \t]? // '>' at the start of…
Robin Rodricks
  • 110,798
  • 141
  • 398
  • 607
6
votes
5 answers

Java - can I extend an instance of a class to make it a parent class instance?

Here is a small artificial example of what I am trying to achieve. I have a class with many parameters - Dog. I have a child class JumpyDog and I want to learn how can I can "extend" the instance of Dog to make it an instance of JumpyDog. class Dog…
G33K
  • 249
  • 4
  • 11
6
votes
2 answers

Troubles with large amount of Code duplication

I have a lot of methods that follow in large parts the same algorithm, and I ideally want to be able to make calls to a generic method that eliminates a lot of code duplication. I have tons of methods like the ones below, I would optimally want to…
Guano
  • 139
  • 1
  • 9
6
votes
2 answers

How does Visual Studios calculate the Maintainability Index?

I have been browsing through the posts and the MSDN, but I am not seeing how the Maintainability Index is created. Only what the good and bad values are. http://msdn.microsoft.com/en-us/library/bb385914.aspx Does anyone know? Can we get a reference…
JPK
  • 1,324
  • 2
  • 14
  • 25
6
votes
4 answers

To aggregate or not to aggregate, that is the database schema design question

If you're doing min/max/avg queries, do you prefer to use aggregation tables or simply query across a range of rows in the raw table? This is obviously a very open-ended question and there's no one right answer, so I'm just looking for people's…
pr1001
  • 21,727
  • 17
  • 79
  • 125
6
votes
4 answers

Is there a better design option?

Disclaimer: I would love to be using dependency injection on this project and have a loosely coupled interface-based design across the board, but use of dependency-injection has been shot down in this project. Also SOLID design principles (and…
Matt
  • 14,353
  • 5
  • 53
  • 65
5
votes
3 answers

Game Development: How Do Game Developers Maintain Game Speed Regardless of FPS?

Say like it took a whole second for a character to jump in a game, how would a game developer go about keeping that jump time to 1 second if the FPS is either 10fps, 30fps, 100fps etc? - If you get me, how would you stop a game's fps affecting the…
AlexPriceAP
  • 1,987
  • 6
  • 26
  • 41
5
votes
5 answers

Would you abstract your LINQ queries into extension methods

On my current project we set ourselves some goals for the code metrics "Maintainability Index" and "Cyclometic Complexity". Maintainability Index should be 60 or higher and Cyclometic Complexity 25 or less. We know that the Maintainability Index of…
5
votes
3 answers

Increase readability & maintainability : omit < > for many variable declaration possible?

The question seems very abstract. I will ask by an example instead. Introduction Assume that I have many types of game objects. They are Bullet, Rocket, Enemy, Zone, ... . They are all nicely created & deleted & managed by pools, e.g. Pool
javaLover
  • 6,347
  • 2
  • 22
  • 67
5
votes
2 answers

Use Gradle function from other gradle file

I want to split my 300 lines build.gradle logically into multiple build files to make it easier to maintain and extend. As I've noticed, it is possible to split gradle tasks into multiple files and use them with: apply from: "myGradleFile" With…
Marian Klühspies
  • 15,824
  • 16
  • 93
  • 136
5
votes
4 answers

PHP - get current php version release date

Is it possible in php to get server php version release date? So let's say I've got php 5.3.28. Than something like phpdate() should return 11 Jul 2013.
Adam Pietrasiak
  • 12,773
  • 9
  • 78
  • 91
5
votes
5 answers

How to prove my stakeholder and manager my software works?

What do software engineers encounter after another stressfull release? Well, the first thing we encounter in our group are the bugs we have released out in the open. The biggest problem that we as software engineers encounter after a stressfull…
Hace
  • 1,421
  • 12
  • 17
5
votes
3 answers

Text-Adventure halts unexpectedly after a certain line.

I've been working on a text adventure and it all goes smooth until it reaches a line of code. My friend who is very good at programming couldn't figure out what was wrong so he did some tests and still no good outcome. I need your help because his…