Questions tagged [rewrite]
The rewrite tag has no usage guidance.
57
questions
0
votes
2
answers
176
views
Should I split backend into legacy and modern app to make the rewrite feasible?
My vanilla PHP backend app needs to be rewritten due to very poor design and lot of unstructured code. The legacy app is very large and the team small, so doing full rewrite in limited time is quite ...
-1
votes
2
answers
235
views
4 Months of Code Rewritten in 2 Days Team Dilemma [closed]
I recently had a project that I took me 4 months to do , I hit some very significant bugs that where impossible to track down. I said this code is absolute garbage and started from scratch, drank a ...
1
vote
5
answers
482
views
What are some considerations when deciding to fix a bug, or rewrite the code in question?
At some organizations I'm seeing a trend where if a bug is reported, engineers will directly rewrite the offending code without knowing the root cause. In general this will fix the bug, but in my ...
6
votes
5
answers
995
views
Code review turned into rewrite, should I push my changes?
I was reviewing a pull request of a programmer that works under me, and found that in testing fixes to their code, I ended up completely rewriting it.
Should I push my changes and then explain what I ...
-1
votes
1
answer
105
views
How to reconcile CD with major architectural changes?
(This question is inspired by the SO blog entry Fulfilling the promise of CI/CD and this old question of mine: Why is it wrong to comment out code and then gradually remove it to keep track of what I'...
-2
votes
3
answers
162
views
How to determine if a module within an application is worth refactoring or rewriting?
We all know Joel Spolsky's famous article to never rewrite working code.
How about if we don't consider overall program but a module within? Module can be e.g.:
payment handling microservice in e-...
2
votes
1
answer
141
views
How should one perform a major refactor in parallel with continuous delivery of new features?
Suppose you've been hired to perform a major refactor/rewrite of a large project that is already in production and maintained by a very small team. The scope of this rewrite is to the point where you ...
-3
votes
1
answer
79
views
Might be inheriting a php spagetti project. Full rewrite in different tech stack? [duplicate]
I'm in dire need of some help.
My background is from python, js and ruby, with using frameworks to provide good structure.
A potential client has an internal app which does quite a bit of stuff. This ...
1
vote
3
answers
214
views
Approach for rewriting a large, mission-critical method
Context: I am a new hire out of university at a large software company tasked with either refactoring or re-writing a large legacy method (~500 lines, ~2000 lines expanded with private method calls) ...
7
votes
3
answers
472
views
When is a rewrite appropriate? [duplicate]
I have a project at work that was written entirely by a scientist who was learning programming while writing it. It is almost 200,000 lines of C++, and almost every variable is a global variable (over ...
0
votes
1
answer
364
views
How important is it to have a consistent technological stack? [closed]
I'm trying to make a browser MMO game as a hobby project.
Currently, the server-side code is written in ASP.NET Core (this was not my choice; the game started as an academic project and the prof ...
12
votes
6
answers
3k
views
Is lack of functional requirements agile?
Nowadays everybody wants to be agile. In every team I worked with, the shape of agile was different. Some things are common - like daily stand-ups or planning, but other parts vary significantly.
In ...
2
votes
0
answers
120
views
mod_rewrite should I define a url prefix for assets?
I am working on a little framework where I have this directory tree:
project/
|--- ... (directories unrelated to the question)
|--- public/
| |--- index.php
.htaccess
The .htaccess sends every ...
9
votes
4
answers
1k
views
Refactoring - is it appropriate to simply rewrite code, as long as all tests pass?
I recently watched "All the Little Things" from RailsConf 2014. During this talk, Sandi Metz refactors a function that includes a large nested if-statement:
def tick
if @name != 'Aged Brie' &&...
-1
votes
5
answers
416
views
Writing software from scratch in business [closed]
I'm a programmer with ten years of experience. I've worked as full time programmer in 2 companies in these ten years as a software developer.
I have always loved to have my own business.
My question ...
1
vote
1
answer
149
views
Rewriting an old, broken desktop application via a local API
We are currently supporting a very outdated, unstructred, untested and unstable ERP desktop application coded in Windev (on windows). As the days go on, we need to add more features for the users but ...
5
votes
8
answers
1k
views
Is code being constantly rewritten and is it therefore pointless to worry about the quality of the early iterations of rewriting code?
In the University one of the lecturers was insisting on a piece of advice I found odd.
This lecturer insisted that his pupils do not care too much about decisions like the choice of the programming ...
11
votes
7
answers
4k
views
How to deal with a large codebase with no requirements and the responsible person leaving the company soon [duplicate]
i am faced with the following scenario and i wonder if you guys have some tips for me on how to approach this.
One of my colleagues is going to leave the company in a few month and i am ordered to ...
2
votes
2
answers
183
views
Should I rewrite a large portion of code to make it more organized for my web application? [closed]
I've been working on a LAMP application(a social network), and am about 4000 lines of code in, and have a working prototype. I learned PHP this way, and thus it isn't programmed very well, and am now ...
2
votes
1
answer
176
views
Gap between Code base and Production application
Background
I joined a company as a solutions architect less than a year ago, with a main task of consolidating, and modernizing legacy code resulting from 90+ company acquisitions over the past 20+ ...
-2
votes
1
answer
166
views
Is there any place for a "start from scratch" philosophy? How often is starting over considered a good idea? [closed]
It may be inexperience, but in the small projects I've worked on, I've often found it super useful to completely start over. Is this unique to novices or is it a real thing?
It obviously doesn't ...
-4
votes
1
answer
164
views
Rewrite legacy code or continue to live with it [duplicate]
Last year I decided to create a web-based SAP Business One extension system consisting of a JavaScript SPA written with Aurelia that communicates with two REST backends written in Go and Java (...
2
votes
2
answers
251
views
Object Oriented Re-Design/Re-Write
Let me begin by stating I have already reviewed the following related questions, and just wanted to showcase the software architecture which I have inherited to see how opinions may vary.
When is a ...
14
votes
7
answers
2k
views
How to avoid rewriting parts of an application
I'm working at a company on a project for their Sales department. It's my first professional programming job, but I've been coding by myself and learning for years. Part of the project involves taking ...
0
votes
3
answers
939
views
Is rewriting old code a good idea yet? [duplicate]
Inspiration here
Let's say I have a big, wonderful set of integration tests for my product. It tests anything and everything that we need to test. And after the product passes all these tests, we ...
3
votes
2
answers
911
views
Mix Web Forms and ASP.NET MVC
I am working on a very large ASP.NET Web Forms project. Our team wants to rewrite this project with ASP.NET MVC and domain driven design. Is it a good idea to combine Web Forms with MVC?
With this ...
1
vote
1
answer
2k
views
Best way to rewrite an mvc application to an angular architecture
We have an mvc application that we would like to gradually move to an angular platform. It is a wizard style app with 6-8 pages.
We currently have a classic mvc layout. We would like to move to an ...
0
votes
5
answers
373
views
When creating time estimates for features, is there a standard percentage to tack on for potential refactoring?
Note: I get that refactoring is something you do along the way, you don't treat it as it's own "thing", or it's own specific task. I am talking about refactoring along the way, however I am not sure ...
188
votes
21
answers
24k
views
A large part of my code has a major design flaw. Finish it off or fix it now? [closed]
I am a high school student working on a C# project with a friend of mine with about the same skill level as me. So far, we have written roughly 3,000 lines of code and 250 lines of test code in a span ...
3
votes
2
answers
302
views
When rewriting medium to large applications, which of these approaches are useful?
Despite Joel's missive that software rewrites are to be avoided under pain of death, it is still fairly common place. A lot of the existing software is good, but here and there, parts of it niggle, so ...
1
vote
0
answers
199
views
Switching from Node.js class techniques to C++
I'm going to be rewriting a project from Node.js into C++11. The device the Node.js scripts are being run on are ARM based, and Node.js is slow to start up on the device.
In the Node.js program, I ...
30
votes
3
answers
3k
views
Version control practice for Rewrites
We developed a product (prototype) P_OLD in language X and we are now rewriting it from scratch as P_NEW in language Y.
Since P_NEW and P_OLD are the same product:
Should P_NEW just be a brach of ...
4
votes
3
answers
791
views
Is a complete rewrite against the license/eula of this software?
Okey, so I have for a while now been thinking of rewriting the minecraft server, this time in a language called golang. It's just a example project that I can learn a new programming language through.....
3
votes
3
answers
486
views
How would you rewrite/refactor this ? [duplicate]
Old application that is used by 50-60.000 paying customers.
Company is several hundred people big.
Application has a lot of business critical code (30% of all code) written in classic asp.
Application ...
1
vote
2
answers
321
views
Advice on approaching a significant rearrangement/refactoring?
I'm working on an application (hobby project, solo programmer, small-medium size), and I have recently redesigned a significant part of it. The program already works in it's current state, but I ...
5
votes
7
answers
3k
views
"All software has an expiration date by which time it must be rewritten from scratch." [closed]
I stumbled upon a discussion between senior engineers and people from non-technical backgrounds and this seems to be a strongly held belief in some places.
I'm of the opinion that such a situation is ...
5
votes
3
answers
245
views
Engineering a better solution, coming from existing codebase [duplicate]
The Code
I have high-business-value daily-used-by-customer software that is written in PHP and spans approximately 600K lines of code.
Customer for a long time needs, wants, and demands new features ...
2
votes
4
answers
778
views
Considerations before rewriting a software component from scratch? [duplicate]
A piece of software is a patchwork of old and undocumented efforts. There are no comments, no documentation, and the code is hairy -- it involves Unix shell scripts that check for dummy files and then ...
1
vote
3
answers
985
views
How Microsoft Market DotNet? [closed]
I just read an Joel's article about Microsoft's breaking change (non-backwards compatibility) with dot net's introduction. It is interesting and explicitly reflected the condition during that time. ...
2
votes
9
answers
13k
views
Hiding query strings logically?
I feel uncomfortable when using query string parameters as:
http://xyz.com/default.aspx?carId=1129&country=uk&uniqueId=98745DVF4563VVf1259
I would rather use something that should not make ...
24
votes
2
answers
12k
views
We have a large Ruby on Rails application (25 million monthly users), our management decided to rewrite in Node.js, am I crazy?
Please tell me if:
Node.js will make our site faster!
Node.js will consume fewer server resources, we can save money!
Node.js will make us more productive!
Node.js means we can share client and ...
13
votes
6
answers
3k
views
Rewriting software using Agile methodologies
Suppose you have to rewrite an entire application using Agile methodologies, how would you do it?
I guess you could write a big bunch of user stories based in the behavior of your current system. And ...
0
votes
2
answers
111
views
Inheriting projects - General Rules? [duplicate]
Possible Duplicate:
When is a BIG Rewrite the answer?
Software rewriting alternatives
Are there any actual case studies on rewrites of software success/failure rates?
When should you rewrite?
...
14
votes
5
answers
1k
views
Software rewriting alternatives [duplicate]
We have a legacy system to bring up-to-date because:
It uses an unpopular (amoung our users) non-sql database (Btrieve)
Provides only a text interface
Is written in Turbo Pascal (but compiled in free ...
1
vote
2
answers
285
views
Using mod_rewrite for a Virtual Filesystem vs. Real Filesystem
I started working in a department that uses a CMS in which the entire "filesystem" is like this:
create a named file or folder - this file is given a unique node (ex. 2345) as well as a default "...
1
vote
2
answers
214
views
In need of a divide and conquer approach for re-writing small open-source utilities [duplicate]
Preamble (Skip if you don't like to read)
I've been learning C/C++ in school for a year now and all the assignments in the book, after reading through the chapters, were not too difficult to ...
36
votes
5
answers
4k
views
Are there any actual case studies on rewrites of software success/failure rates?
I've seen multiple posts about rewrites of applications being bad, people's experiences about it here on Programmers, and an article I've ready by Joel Spolsky on the subject, but no hard evidence or ...
5
votes
1
answer
165
views
To Press Onward or Not?
In the past week I've been meeting and speaking with someone who's interested in finding help on developing a game (built using php and mysql, with a little bit of javascript). I agreed to help out, ...
15
votes
10
answers
841
views
suggesting large changes/a rewrite as an intern [closed]
The context:
it's an internal project (that I don't think a lot of people use)
it's old
we're updating it
The issues:
it abuses the mvc framework (no use of models, business logic in views, etc)
...
8
votes
6
answers
2k
views
Remake old web forms application in asp.net mvc [duplicate]
I've inherited the code maintenance of a complex web site for a customer that continuously requests enhancements for it. This application took years to develop and I'm facing increased difficulties to ...