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)

37
votes
14answers
3k views

Do you sign each of your source files with your name? [duplicate]

Possible Duplicate: How do you keep track of the authors of code? One of my colleagues is in the habit of putting his name and email address in the head of each source file he works on, as ...
1
vote
1answer
264 views

Store build server configuration in same repository as source code?

Some co-workers and myself are tasked with a "rewrite" of an ancient, unmaintainable application and to shape it into something workable. I am setting up a continuous integration server, and since we ...
3
votes
3answers
292 views

When you create an open source project, how to know who's participating and if his version is good?

my friend has developed a CAD program in C, here it is http://web2coders.jrcw3.com/ i have convinced him to go open source, but we have some concerns: if you upload a project to sourceforge or ...
8
votes
4answers
720 views

Is integer used too much as a data type?

Do most application developers use signed integers in places where they really mean to use unsigned integers? I do it all the time, so do my co-workers. I haven't seen a lot of other extensive ...
54
votes
10answers
9k 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? Should we shy ...
0
votes
5answers
451 views

Hiring Developers - Securing Source Code [duplicate]

I have a popular web-based app, and now suddenly my main developer has disappeared. Although I've found other great developers but I don't want to distribute the source code to everyone. Is there any ...
4
votes
5answers
500 views

View Source - is the Viewable markup important to you?

I just read a very compelling blog post from Scott Hanselman where he quoted colleague Erik Meijer as follows: JavaScript is an assembly language. The JavaScript + HTML generate is like a .NET ...
5
votes
4answers
338 views

What can I gain from examining others code? [closed]

I recently downloaded some large code bases and have had light reads through them, but what can I gain from this? How can I be sure what the author is doing is the right way to go about things? (One ...
6
votes
3answers
995 views

Is collective code ownership mandatory in Scrum?

Is is an absolute must when following the Scrum methodology to practice collective code ownership, instead of for example weak code ownership?
0
votes
4answers
218 views

Deciphering foreign code [duplicate]

What is the best strategy to go about understanding some one else's code for a medium sized project, if the code is not well documented and does not adhere to many coding standards?
0
votes
4answers
227 views

API naming and namespacing [closed]

Is it right or more beautiful to name the functions with an prefix, like in Qt? Or using "many" namespaces, but 'normal' names for functions? For example, slOpenFile(); //"sl" means "some lib" vs ...
217
votes
15answers
24k views

How can a code editor effectively hint at code nesting level - without using indentation?

I've written an XML text editor that provides 2 view options for the same XML text, one indented (virtually), the other left-justified. The motivation for the left-justified view is to help users ...
1
vote
1answer
2k views

C++ IDE and tools with Clang integration [closed]

Recently I've read this blog about Google integrating Clang parser into their code analysis tools This is something in which C++ is at least a decade behind other languages like Java, but now that ...
8
votes
5answers
1k views

Is it acceptable to decompile someone else's code for the purpose of learning what they did, and how they did it? [closed]

I am not talking about stealing code, or reusing someone's for profit. But I am assuming that if a program or plugin is distributed in a format where I can't readily view the source, that is a ...
4
votes
5answers
483 views

What is the right level of granularity for code commenting? [closed]

Commenting in code I believe is very important but recently I've been reviewing code that has left me wondering particular this one. //due to lack of confidence with web programming leaving this ...
22
votes
5answers
2k views

Is code ownership a code smell?

This is something I've been thinking about ever since I read this answer in the controversial programming opinions thread: Your job is to put yourself out of work. When you're writing ...
16
votes
2answers
6k views

How secure is my private repository on bitbucket

Does anybody know how secure are my private repositories on bitbucket.org? Can I rely on that? I have some repositories and I only want them to be reachable only by me and two others.
3
votes
5answers
469 views

SVN - Is it OK to use any flavor of SVN amongst the team?

Is it OK if, within a team, developers use different flavors of SVN? Say one using Tortoise SVN and other using Versionsapp.com SVN?
5
votes
5answers
955 views

How did they count the number of lines of code executed at runtime?

There was a PC game released in 2001 called Black & White by Lionhead studios in which there was a lengthy statistics page which updated in real-time. There were stats such as how many people ...
7
votes
2answers
296 views

How can I estimate the lifespan of a line of code?

I'm trying to figure out a way to analyze code longevity in open source projects: that is, how long a specific line of code is active and in use. My current thinking is that a line of code's lifespan ...
3
votes
4answers
3k views

GPL Confusion! Can I sell a product with GPL covered components without making the source available?

I'm really confused.. I'm looking into making a commercial program and there are a few open source, GPL covered components i'd like to use.. Am I allowed to sell my product with the components in ...
8
votes
2answers
582 views

Contributing to open source software (how to hack) [duplicate]

Possible Duplicate: How do you dive into large code bases? I am currently a student and started programming a few years ago. I am able to write complete working software in many languages. ...
1
vote
2answers
400 views

Looking for quality sites built with JavaScript (not jQuery) to learn from their example [closed]

I'm new to JavaScript. I've read JavaScript: The Good Parts and half of Professional JavaScript for Web Developers. Now I want to follow this advice - find the best sites and look at their code. As ...
6
votes
7answers
227 views

Under what conditions does it make sense to break code into many files, or merge them?

Just finished merging seven scripts into one, but got me thinking that I really don't have a formal logic for breaking scripts into pages, or why I'd merge them. Suggestions?
30
votes
5answers
2k views

How much of original code is left in modern software products? [closed]

Many of you out there work for large companies that ship well-known software. I was wondering, how much of original code (basically, code that was "v1.0" release) is left in modern massive ...
4
votes
2answers
2k views

Seeking Delphi (Pascal) code beautifier [closed]

Preferably a tool which will run from inside of the Delphi IDE (I use Delphi 7), but I can accept a standalone program. Should have the ability to define rules (X space indent, no tabs, one statement ...
2
votes
3answers
158 views

Reasons for separate source and generated trees

What are the reasons for putting the generated files in a tree parallel to the source trees? For example, in Eclipse I usually choose to put the sources to .../src and the compiler generated files in ...
0
votes
1answer
179 views

Department organization of “source code”, “projects”, and “processes/work-instructions”? [closed]

How do you organize your software assets (source code and resources), your "active" and "past" projects, and your Software Department processes/work-instructions (including source code conventions, ...
11
votes
6answers
4k views

Is it necessary to write a javadoc comment for EVERY parameter in a method's signature?

One of the devs on my team believes that it is necessary to write a javadoc comment for EVERY parameter in a method's signature. I do not think this is necessary, and in fact I think it can even be ...
6
votes
4answers
999 views

Mobile App Development Language Converter?

I was talking with a friend about developing a mobile app (android/iphone) but I've never messed around with mobile app development code before. My friend flippantly told me that I don't "need to ...
4
votes
3answers
731 views

Will a copyrighted code get into public domain once its copyright expires?

Since source code license is protected through the Copyright Law (Berne Convention to be precise), and all copyrighted material will be in public domain for certain number of years, depending on which ...
0
votes
2answers
146 views

Does this status show a green signal?

I have done this static code analysis with Code Analyzer. Is it a green signal or should I improve my coding standards?
12
votes
7answers
9k views

What are some good open source c++ packages to study in order to learn advanced software construction? [closed]

I've heard that you should read 10 times more than you should write. This applies to both literature and source code. Therefore, I'd like to study the best c++ packages we've developed. I'm ...
14
votes
7answers
4k views

How do you read other's code? [closed]

Almost every advanced programmer says that it's very useful to read the code of other professionals. Usually they advice open source. Do you read it or not? If you do, how often and what's the ...
4
votes
1answer
415 views

Code licensing / software licensing [closed]

I’ve been working on something outside of my day job and they have asked me if they can use it. It is a closed source project, but I don’t mind giving them the source code; but I definitely want to ...
8
votes
7answers
2k views

Is “send us a page with code” a typical interview requirement? [closed]

Recently I was asked to show "a page with code" for a job interview. Being mainly a back-end programmer, and that's the position I applied for, I first said to the person I was talking to exactly ...
8
votes
7answers
481 views

How do I handle this intense client situation? [closed]

I have worked with a client for two weeks who knows nothing about the complexity of programming a CMS. After two weeks, our relationship has gone from mildly discomforting to the point where I have ...
18
votes
3answers
2k views

Must source code released under GPL be human-readable?

In a response to another question, a poster suggested that under the GPL: ...you need to provide the human readable [code], not a whitespace stripped version... Readability would seem to me to ...
32
votes
11answers
4k views

Is “funny commenting” a bad practice or not? [closed]

I want to ask you whether adding some "easter eggs" in the source documentation is unprofessional or not. Probably you have read the StackOverflow poll for funny comments in a source documentation, ...
1
vote
2answers
234 views

Beginning programming for real clients, what copyright should I put in the code? [closed]

So far, I've been writing projects for my friends and friends of my friends, which required no legal stuff. Now I've moved on to freelance programming on websites like vworker.com and I'm wondering ...
9
votes
11answers
2k views

Version control comments - past or present tense [closed]

For version control comments what do other users do/recommend - past or present tense? I.e. Changed x to be y. or Changing x to be y.
6
votes
3answers
1k views

Best practices for managing deployment of code from dev to production servers?

I am hoping to find an easy tool or method, that allow's managing our code deployment. Here are the features I hope this solution has: Either web-based or batch file, that given a list of files, ...
1
vote
7answers
378 views

Is it easier to define and recognize poor application design than good application design? [closed]

A couple recent questions focused on "well designed applications" and "poorly designed applications". Looking at the responses it appears to me that it might be easier to recognize and define poor ...
17
votes
11answers
2k views

“// …” comments at end of code block after } - good or bad? [closed]

I've often seen such comments be used: function foo() { ... } // foo while (...) { ... } // while if (...) { ... } // if and sometimes even as far as if (condition) { ... } // if ...
25
votes
14answers
6k views

Dealing with profanity in source code [closed]

How do people deal with profanity in source code and VCS comments. Keep or delete? What about soft-expletives like WTF or Arrgggh? Is unprofessional, offensive or something to be shrugged off?
2
votes
2answers
343 views

Writing/discussions about the aesthetics of code? [closed]

I'm looking for considerations of the questions "Can code be beautiful?" and "What makes code beautiful?" Examples would include: This academic paper: Obfuscation, Weird Languages, and Code ...
24
votes
16answers
2k views

Do you think code is self documenting? [closed]

This is a question that was put to me many years ago as a gradute in a job interview and it's nagged at my brain now and again and I've never really found a good answer that satisfied me. The ...
15
votes
2answers
11k views

What is programming like in the Japanese language? [closed]

Is the code written in Japanese? Are filenames in English? What about like a C preprocessor? Is that still in English? Are comments in Japanese? Examples would be nice too.
11
votes
2answers
2k views

Anyone had success with selling source code, at sites like code canyon? [closed]

Recently I came across two sites that help programmers sell source code - binpress and codecanyon. Anyone have experience/success with sites like these? Would you use them again? What was good about ...
2
votes
4answers
1k views

What are standard directory layouts for source code, other libraries, build scripts, etc.? [closed]

I'm in the process of proposing a new standard directory layout that will be used across all the projects in our organization. Projects can have compiled source code, setup scripts, build scripts, ...