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
20
votes
9
answers
3k
views
What exactly makes code "clean"? [duplicate]
I am an intern at a small software company, doing typical grunt work. Many tasks that the actual developers are doing are above my head however I finally got to see some real "action" and write some ...
2
votes
1
answer
1k
views
Source code of jar.exe - is it available
This may seem an odd question, but I want to create an executable which runs under Windows written in C++. The program needs to be able to update a jar file even if Java is not installed on the ...
0
votes
0
answers
101
views
How to quickly understand a huge piece of code [duplicate]
(This is a general question but I think is important.)
How do you quickly understand a huge piece of code, say, a project with tens of thousands of lines of code (written by other people)?
Are there ...
11
votes
2
answers
5k
views
Updating copyright headers each new year just because Jan 1st has passed? [duplicate]
I've seen some projects that - with each new year - start to change all files in their source-tree to update the copyright year.
Isn't this just pushing hot air on a level of magnitude? AFAIK:
...
4
votes
2
answers
224
views
What is a good license for community submissions to commercial partially closed source software?
I am maintaining a small code base that I am considering selling– but I want to allow developers that use it to submit code for addition to the trunk. This way they can extend the framework and the ...
2
votes
2
answers
1k
views
Prevent code from getting mess [duplicate]
I am a student and a freelance programmer. These days I am developing a software in VB6 which has recently crossed 100KB of source code.
The main problem, I face is, many times I have to refactor my ...
3
votes
2
answers
377
views
Is there a name for being able to quickly find the relevant code? [closed]
I notice that a property of codebases that I like hacking on is that it's quick to find the relevant code for some feature, without knowing much about the code base at all. For example, searching for ...
0
votes
1
answer
188
views
Does Text Editor Sign The Files? [closed]
As images have EXIF data which provide info about where and how they are created, do any Text Editors append such kind of descriptive details to code files? For example I use Coda for my programming ...
12
votes
5
answers
1k
views
Time required to start coding at a new company [closed]
I am a software engineer for 4 years, and I just changed my company for the first time.
Company works with pair programming, and it's been 3 days, I couldn't even write a single line of code.
It's so ...
0
votes
1
answer
553
views
Licensing: source code vs. production code in JavaScript
For commercial and licensing purposes, what is the correct wording for differentiating JavaScript source code (written by the programmer and including comments) from the minified version used in ...
3
votes
1
answer
2k
views
Big project with many external libraries - source code organisation
I was wondering what is the best way to organize my source code. I was researching on SO and found https://stackoverflow.com/a/1398594/137261 but this source code layout is library specific and doesn'...
0
votes
1
answer
416
views
Beta-testing app good practice [duplicate]
I have just released an iOS app for beta-testing with TestFlight.
I'm wondering what is good practice during beta-testing?
Should I halt development of the app during beta-testing?
Should I continue ...
6
votes
4
answers
7k
views
Is Googling every code a bad practice? [duplicate]
I just came from an interview in which they asked me several questions about programming and problem solving. Regarding the programming questions, I asked them to let me Google so I can see the code (...
5
votes
2
answers
2k
views
Source control system for binary files [closed]
At work we have a legacy system written in Visual FoxPRO.
Everything in foxpro is a table, even forms, so basically if you open a form file with a text editor you don't learn much.
Does anyone know ...
11
votes
3
answers
11k
views
How can I become better on explaining the code to other developers? [closed]
While the question itself might sounds silly, the answer is quite important to me,
as I feel that issue is negatively affecting my work performance.
A bit of the background here: I am a seasoned ...
5
votes
3
answers
373
views
Customer ask firmware source file
Recently my company was asked by a customer to develop a control board that includes firmware and PCB layout development. After finishing development the customer will buy the control boards at ...
9
votes
2
answers
458
views
What tools or techniques are useful for describing an unfamiliar codebase? [closed]
When manually inspecting unfamiliar code (to review or modify), I seem to have three options.
A top-down read of the code, choosing each next source file by how fundamental the filename seems. I ...
4
votes
2
answers
2k
views
Tried teaching myself to program before college, accidently overwhelmed myself, tips? [closed]
I'm sixteen, I'm overly interested in programming, and I'm currently taking IT classes during my mornings in high school. Last year, I tried teaching myself to code. It was quite exciting, but all I ...
8
votes
3
answers
1k
views
Does studying other people's programs help in self growth? [closed]
Should I be studying big softwares written by other people in our company? My work may be a small sub module on the top of that software, and I may not be required to know what goes beneath the hood, ...
4
votes
3
answers
9k
views
How to show code samples in an interview? [closed]
There have been questions similar to this, but my question is HOW exactly do you showcase your code when going to an interview? Do you show screenshots, or do you bring the actual code? Do you take ...
3
votes
1
answer
396
views
Distinguishing repetitive code with the same implementation
Given this sample code
import java.util.ArrayList;
import blackjack.model.items.Card;
public class BlackJackPlayer extends Player {
private double bet;
private Hand hand01 = new Hand();
...
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 ...
11
votes
8
answers
816
views
When does 'optimizing code' == 'structuring data'?
A recent article by ycombinator lists a comment with principles of a great programmer.
#7. Good programmer: I optimize code. Better programmer: I structure data. Best programmer: What's the ...
1
vote
1
answer
194
views
How do I parse a header with two different version [ID3] avoiding code duplication?
I really hope you can give me some interesting viewpoints for my situation, because I am not satisfied with my current approach.
I am writing an MP3 parser, starting with an ID3v2 parser.
Right now ...
4
votes
3
answers
3k
views
Are CK Metrics still considered useful? Is there an open source tool to help?
Chidamber & Kemerer proposed several metrics for object oriented code. Among them, depth of inheritance tree, weighted number of methods, number of member functions, number of children, and ...
4
votes
3
answers
806
views
How much should I rely on Visual Studio's Auto Generated Code?
I'm reading about ASP.NET (VB.NET) and I want to built my professionally website. I'm wondering though; I'm still using the basics so I'm really just a novice, but how much should I rely on Visual ...
3
votes
3
answers
3k
views
How much more should I charge for freelance project source code? [closed]
Currently I'm working as a freelancer, and for the first time a faced a client who wants the source code too.
This client owns a software development company, and wants to have rights over the source ...
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 ...
18
votes
11
answers
44k
views
Why is using System.out.println() so bad? [closed]
Of course, it is very good use to use a logging framework for the error messages or warnings. But sometimes I use System.out.println() if I want to try something new in a short time.
Is it really so ...
4
votes
5
answers
676
views
Practices for navigating and changing "long" code files?
Many a times I have to deal with code files which are quite long - about 5 screen pages at the minimum. Almost always there is something towards the top/bottom that I need to refer when I'm at the ...
1
vote
5
answers
1k
views
Does "Property" in C# cost much?
I have a class created in some namespace, like SomeNameSpace.SubNameSpace.StaticClassName
Here is a code snippet from other code file where I want to use this class many more times, so I created a ...
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 ...
4
votes
3
answers
2k
views
Who owns the code, who owns the algorithm, who owns the idea?
This question got me thinking what products of the programming effort belong to the employer, and what don't.
The two extremes are (0) the code - it apparently belongs to the employer and (1) the ...
12
votes
3
answers
8k
views
Should my source code be in UTF-8?
I feel that often you don't really choose what format your code is in. I mean most of my tools in the past have decided for me. Or I haven't really even thought about it. I was using TextPad on ...
0
votes
4
answers
520
views
How can I speed up the process of typing up specification during a meeting with developers? [closed]
I'm studying source code with other developers, and my job is to type up the specifications as the lead programmer describes what each function does. Are there any tips/tricks to doing this faster? a ...
3
votes
2
answers
146
views
Where do you turn for code base improvement on a multi-project scale? [closed]
Are there resources out there for a programmer with a large code base to have professional alalysis performed for the goal of finding the areas of most needed improvement?
Logic/Reason tells me there'...
1
vote
2
answers
227
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 ...
5
votes
5
answers
3k
views
How to make sure the application source code has a proper documentation for new programmers? [duplicate]
Possible Duplicate:
How much documentation is enough?
Do you know how the big IT company like IBM, Microsoft, or google make sure their application source code has proper documentation for future ...
9
votes
3
answers
3k
views
Quantifying the price for source code and software product
I'm about to undertake a project. This requires me to write code, and tons of it. The client's requirement is to hand in all source code at the end of the project.
My question is: How do I quantify ...
4
votes
2
answers
506
views
Create Tickets From TODO (or otherwise annotated) comments [closed]
Is there any software that will allow me to generate trouble tickets (for Trac, Team Foundation Server, etc.) from TODO or otherwise annotated comments in the source code?
40
votes
10
answers
49k
views
Understanding already existing complex code base [duplicate]
Possible Duplicate:
What is the most effective way to add functionality to unfamiliar, structurally unsound code?
Till now, all I have worked on is with Java projects that I build from scratch (...
3
votes
1
answer
1k
views
How to fulfill EASTL license
I'm integrating EASTL into my game programming framework. I did some changes to it since I have my own memory management sub-system and now I'm wondering what I need to do to not break the license ...
11
votes
7
answers
10k
views
Freelancing - Share the source code? [duplicate]
Possible Duplicate:
Hand over source code to customer
I have developed a couple of form based windows application in vb.net for a client and they all work well and he paid me through a freelance site. ...
9
votes
3
answers
2k
views
Are there code reviews in opensource projects? If so, what tools are used to do this?
I know there is a big push for code reviews in commercial development. However, are code reviews used in open source software or is based on trust? If so, then how are they performed? [Is it a delayed ...
5
votes
0
answers
244
views
What to do when tackling an unfamiliar Code base? [duplicate]
Possible Duplicate:
How do you dive into large code bases?
When you join a pre-existing project that has a large code base, what are some of the things you do to get acclimatized quickly towards ...
37
votes
5
answers
5k
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 ...
15
votes
14
answers
5k
views
how to find out if spelling mistakes in source code are a serious issue or not? [closed]
I find very troubling amount of spelling mistakes I see everyday in our codebase, from which I will reproduce a very short but representative example:
ArgumnetCount
Timeount
Gor message from queue
...
22
votes
5
answers
2k
views
How-to convince company to start documenting for legacy software [duplicate]
It has been less than a year since I joined my current company. Their majority of sales have come from a single product that has been alive since the last 10 years. However, there is minimal (if at ...
20
votes
7
answers
3k
views
In a legacy codebase, how do I quickly find out what is being used and what isn't?
I've been asked to evaluate what appears to be a substantial legacy codebase, as a precursor to taking a contract maintaining that codebase.
This isn't the first time I've been in this situation. In ...
5
votes
7
answers
561
views
What should be the "depth of design"? [closed]
We all know that the process of creating a design and the whole architecture of the software is very important before writing the code. But how deep should be dive into the design stuff - should we ...