Source code is any collection of computer instructions (possibly with comments) written using some human-readable computer language, usually as text.

learn more… | top users | synonyms (1)

11
votes
5answers
853 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
1answer
110 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 ...
1
vote
1answer
601 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 http://stackoverflow.com/a/1398594/137261 but this source code layout is library specific and doesn't ...
0
votes
2answers
298 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 ...
3
votes
4answers
619 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 ...
40
votes
11answers
3k views

Are there any reasons not to accept a software deliverable as a virtual machine?

This is a question about logistics, not a technical question. My company has outsourced some embedded software work. Specifically, we have payed a contractor to develop an embedded system for us ...
2
votes
2answers
812 views

Source control system for binary files

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 ...
58
votes
13answers
7k views

Can commented-out code be valuable documentation?

I wrote the following code: if (boutique == null) { boutique = new Boutique(); boutique.setSite(site); boutique.setUrlLogo(CmsProperties.URL_FLUX_BOUTIQUE+fluxBoutique.getLogo()); ...
6
votes
3answers
321 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 ...
0
votes
3answers
392 views

Developers taking code home - how bad is it? [duplicate]

I have an idea that if I have programmers under me that it would be better if the company give each of them a [good] laptop on which they can develop conveniently and allow them to take their machine ...
4
votes
3answers
194 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 ...
0
votes
1answer
107 views

Running pieces of code distributed through out the system, automatically

I have pieces of code, written in java, which I can convert in jar and run from the terminal. I also have some node.js script, which I would like to run before running these jar files. So the ...
7
votes
3answers
625 views

How can I present some printed Visual Basic source code in an aesthetically pleasing manner?

Right now I'm interning at a major engineering company. I'll be leaving in a few months though, so my project manager has requested a print out of my source code for a VBA project I've been working ...
-1
votes
3answers
990 views

Study Doom 3 Source Code [duplicate]

Possible Duplicate: How do you dive into large code bases? I want to study the source code of a large project (for example, the Doom 3 source code) and I would like some help determining ...
6
votes
3answers
176 views

How to refer to specific areas of code in documentation?

I'm about to leave a project, and before I go my boss has asked for me to document code (I've not documented very well). It's not a big deal, the project is not terribly complex. But I'm finding ...
10
votes
2answers
244 views

What tools or techniques are useful for describing an unfamiliar codebase?

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 ...
5
votes
5answers
357 views

Question regarding code readability

I would like to know, is it considered a common practice to use constructions like |=, &&, ||, != altogether in the single line of code? E.g. hasErrors |= vi2!=null && ...
7
votes
4answers
422 views

Would you refactor this and if so, would you charge your client?

I am working on a freelance job at home. The client wants me to write some new functionality for his CMS, but it is taking me a lot of time to figure out what the code is doing, because it is written ...
1
vote
3answers
1k views

Is there any open source code analyzer for java which I can adopt my software metrics algorithm on it? [closed]

I am doing my masters dissertation and I have conducted a software metrics. I need to adopt my metrics on an open source tool. I have found PMD and check style on sourceforge.net but there is not ...
3
votes
2answers
893 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 ...
6
votes
3answers
430 views

Does studying other people's programs help in self growth?

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, ...
2
votes
3answers
2k views

How to show code samples in an interview?

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
1answer
1k views

Picking a code review tool [closed]

We are a startup looking to migrate from Fogbugz/Kiln to a new issue tracker/code review system. We are very happy with Jira, especially the configurability, but we are undecided on a code review ...
0
votes
2answers
842 views

Who owns the IP rights of the software without written employment contract? Employer or employee? [closed]

I am a software engineer who got an idea, and developed alone an integrated ERP software solution over the past 2 years. I got the idea and coded much of the software in my personal time, utilizing my ...
4
votes
1answer
242 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(); ...
57
votes
14answers
7k 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 ...
9
votes
8answers
635 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 ...
0
votes
1answer
124 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 ...
-2
votes
1answer
770 views

HTML5 to Native compiler code [closed]

Is there any HTML5, CSS3 and JS tool that compiles your code, and turns it into a native mobile application? I made a little research, and it looks like phone gap one of them. Which one do you use ...
3
votes
3answers
333 views

Code bases for desktop and mobile versions of the same app

I have written a small Java Swing desktop application. It seems like a natural step to port it to Android since I am interested in learning how to program for that platform. I believe that I can reuse ...
1
vote
2answers
822 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
3answers
444 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 ...
2
votes
3answers
961 views

How much more should I charge for freelance project source code?

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 ...
84
votes
29answers
18k 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 ...
7
votes
4answers
795 views

Semi-intelligent “diff” utility

Part of the QA steps required for a project I am tangentially involved with require the person who is responsible to integrate new version of source file to first calculate how many lines have been ...
8
votes
11answers
7k 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 ...
5
votes
1answer
522 views

Does custom created code for a client imply copyright ownership?

I know of a potential customer that has been paying for website development work on an hourly basis for several years by several independent contractors, but has never signed an agreement as to terms ...
3
votes
5answers
373 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 ...
0
votes
5answers
374 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 ...
50
votes
7answers
3k 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 ...
55
votes
9answers
4k views

Is committing/checking in code everyday a good practice?

I've been reading Martin Fowler's note on Continuous Integration and he lists as a must "Everyone Commits To the Mainline Every Day". I do not like to commit code unless the section I'm working on ...
3
votes
3answers
361 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 ...
181
votes
23answers
29k views

Should you keep a copy of all the code you write?

I know the company you work for owns the code and obviously you will get arrested if you try to sell it. But is it uncommon for developers to keep a personal copy of the code they wrote (for future ...
2
votes
2answers
569 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
4answers
368 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 ...
2
votes
2answers
86 views

Where do you turn for code base improvement on a multi-project scale?

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 ...
2
votes
2answers
168 views

In need of a divide and conquer approach for re-writing small open-source utilities

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 ...
3
votes
5answers
850 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 ...
2
votes
4answers
272 views

Cross-Platform: Develop in parallel or series?

When starting a new software project that will be used on several platforms, how do you determine the best way to start development? Do you develop for one platform and then port to the next? Do you ...
5
votes
7answers
533 views

What are some ways to maintain codebases written in two languages that implement the same logic?

I have a logic intensive algorithm that I need to code in two languages (actually I finished it in one language satisfactorily and am about to start coding in the other language). By logic intensive ...