Tagged Questions
The code-reuse tag has no wiki summary.
6
votes
4answers
368 views
In what situations is it a bad idea to use open source code for a corporate project?
Are there any situations where it may not be a good idea to use the code of an open source project, even if your company might allow you to do so?
Some cases that I think might be valid include:
...
24
votes
11answers
2k views
Is it wrong to take code you have produced at work and re-use it for personal projects?
Throughout my various workplaces and through my university life I always wrote code which I thought "this would be really useful in generic situations". Indeed, I intentionally write code, even if it ...
7
votes
3answers
314 views
Reinventing the wheel because it doesn't exist
One of the languages I have to use at work is a very small, niche language called psl. One of the largest complaints I have about it as a language is that the libraries are very limited.
While that's ...
4
votes
9answers
292 views
Quality vs Time
I have heard of developers who work with code which is a complete mess because originally the code was quickly developed and the quality was not there in the first place.
Its always good to get ...
3
votes
3answers
204 views
When not to reuse software?
I'm working on an application that had basic requirements for authentication in the first version (i.e. think single administrator login), and now I have a requirement to extend this to allow for ...
4
votes
4answers
213 views
When is a 'core' library a bad idea?
When developing software, I often have a centralised 'core' library containing handy code that can be shared and referenced by different projects.
Examples:
a set of functions to manipulate strings
...
42
votes
9answers
4k views
Why shouldn't classes be designed to be “open”?
When reading various Stack Overflow questions and others' code the general consensus of how to design classes is closed. This means that by default in Java and C# everything is private, fields are ...
4
votes
3answers
142 views
Should public code libraries I have written stay free and open after using them in a contract / commercial product?
I have written a small library of classes in my preferred language (PHP, but it doesn't really matter), and typically use them in most of my projects.
Until now, the projects have been personal, or ...
1
vote
1answer
158 views
Legal concern over “borrowed” code
A company my friend works for (let's call him Me) recently unveiled a new face for their internal "networking" website. This new face looks remarkably like Facebook, and indeed, examination of the ...
4
votes
5answers
237 views
Logistics of code reuse (OOP)
One of the driving points behind OOP is code reuse. I am curious about the actual logistics of this and how others both in team or solo handle it. For example lets say you have 5 projects you have ...
28
votes
9answers
639 views
How do I overcome paralysis by analysis when coding?
When I start a new project, I often times immediately start thinking about the details of implementation. "Where am I gonna put the DataBaseHandler? How should I use it? Should classes that want to ...
2
votes
6answers
219 views
Code reuse: Reusing complex method vs. cherry-picking parts
I am currently facing a situation where I am not quite sure how to best proceed.
Background
I am planning a new data import process, which will import personnel and salary
information from a text ...
2
votes
6answers
436 views
When you use inheritance to reuse code, do you find it too tricky that it swallows the benifits of reuse?
I've been coding for about 8 years, however I still find inheritance is too flexible and sometimes it makes you totally confused with the code you have written. One simplest example would be:
...
3
votes
3answers
126 views
How to apply one of the OOP concepts (Closed for Modification and Open for extension)?
Days before, I created Question, Quiz, and Main classes. One Quiz has one or more Questions. From the main class I first create Question objects (the constructor accepts an array of numbers). The Quiz ...
6
votes
8answers
303 views
What should be done with code that has reached end of life?
When a project has reached end of life and is being retired, either because the technology is obsolete, a newer version of the program has been rewritten, or it no longer solves a problem that is ...