Questions tagged [source-code]
Source code is any collection of computer instructions (possibly with comments) written using some human-readable computer language, usually as text.
275 questions
227
votes
11
answers
31k
views
Why do we need so many classes in design patterns?
I am junior developer among seniors and am struggling a lot with understanding their thinking, reasoning.
I am reading Domain-Driven Design (DDD) and can't understand why we need to create so many ...
149
votes
13
answers
26k
views
Should I refactor the code that is marked as "don't change"?
I am dealing with a pretty big codebase and I was given a few months to refactor existing code. The refactor process is needed because soon we will need to add many new features to our product and as ...
144
votes
31
answers
160k
views
How do you dive into large code bases?
What tools and techniques do you use for exploring and learning an unknown code base?
I am thinking of tools like grep, ctags, unit-tests, functional test, class-diagram generators, call graphs, ...
101
votes
9
answers
24k
views
Why did BASIC use line numbers?
Why did old BASICs (and maybe other languages) use line numbers as part of the source code?
I mean, what problems did it (try to) solve?
98
votes
6
answers
29k
views
Why are some C programs written in one huge source file?
For example, the SysInternals tool "FileMon" from the past has a kernel-mode driver whose source code is entirely in one 4,000-line file. The same for the first ever ping program ever written (~2,000 ...
91
votes
17
answers
7k
views
How do you cope with ugly code that you wrote? [closed]
So your client asks you to write some code, so you do. He then changes the specs on you, as expected, and you diligently implement his new features like a good little lad. Except... the new features ...
89
votes
29
answers
21k
views
Can my company give IP rights away for an application I wrote off hours to another startup? [closed]
I am an intern for a health company (unpaid), let's call it Company A and I noticed that they are using a lot of paper form for things that can be done on the computer. Excel files for things that ...
89
votes
4
answers
71k
views
Classes naming: singular or plural? [closed]
It is always difficult for me to choose between singular and plural forms for classes names:
CustomerRepository vs. CustomersRepository
CustomerService vs. CustomersService
CustomerController vs. ...
81
votes
5
answers
41k
views
How do you put a price on your source code? [closed]
I was asked to sell the source code (along with existing users) of small utility app I created years ago. I've investigated how to put a price on the source code but so far haven't come up with a good ...
67
votes
14
answers
18k
views
How to prevent code from leaking outside work? [duplicate]
Possible Duplicate:
How to manage a Closed Source High-Risk Project?
I'm working on an institution that has a really strong sense of "possession" - each line of software we write should be only ...
64
votes
10
answers
23k
views
When is code "legacy"? [closed]
We've all done it, we've labelled some code (often stuff we've inherited) as "legacy"? But it's still used in the production systems - so is it really legacy? And what makes it legacy? ...
60
votes
6
answers
6k
views
Why aren't there code overviews for open-source projects? [closed]
There are very complex open source projects out there, and to some of them I think I could make some contributions, and I wish I could, but the barrier to entry is too high for a single reason: for ...
56
votes
5
answers
39k
views
Where do you go to read good examples of source code? [closed]
I have heard a few people say that one of the best ways to improve your coding ability is to read others code and understand it. My question, as a relatively new programmer, where do I go to find ...
54
votes
7
answers
4k
views
Is there something wrong with how we're doing version control?
I work with a team of programmers as the business analyst. We just released version 2.0 of our product and are working on the next version to be released in 3 months (it's an internal software ...
52
votes
9
answers
11k
views
Bad sign if nobody can comprehend one's code? [duplicate]
If a coder writes code that nobody other than he can understand, and code reviews always end with the reviewer scratching his head or holding their head in their hands, is this a clear sign that the ...