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)

7
votes
2answers
294 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
576 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
399 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
157 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
178 views

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

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, ...
10
votes
6answers
3k 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
993 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
710 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
145 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
413 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
478 views

How do I handle this intense client situation?

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 ...
17
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
3k 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
232 views

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

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 [on hold]

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

Why is code sometimes called “listings”?

When reading Programmers at Work (by Susan Lammers), they often refer to code as "listings". Why is that?
1
vote
7answers
375 views

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

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?

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
339 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.
47
votes
22answers
12k views

What are some good practices before checking in source code?

My team uses Team Foundation Server for source control, and today I fixed some bugs and smoke test application before I checked it in but I forgot to comment some code. (This code made the UI a little ...
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, ...
5
votes
6answers
341 views

Does my JavaScript look big in this?

As programmers, you have certain curtains to hide behind with your code. With PHP all of your code is server side preprocessed, so this never see's the light of day as far as the user is concerned. If ...
39
votes
5answers
9k 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 ...
12
votes
9answers
2k views

Bringing code to an interview? [closed]

Is bringing printed code or code on a USB to an interview a good idea? If so, what kind of code should I bring. Should I avoid big projects and just show small snippets which show off my skills?
21
votes
10answers
6k views

Hand over source code to customer

I have made a couple iphone applications for a customer and was asked today to hand over the source code so that they could do the maintenance if this should be required. Until now, no code issues ...
11
votes
6answers
949 views

Development Approach: User Interface In or Domain Model Out?

While I've never delivered anything using Smalltalk, my brief time playing with it has definitely left its mark. The only way to describe the experience is MVC the way it was meant to be. ...
2
votes
1answer
984 views

What source code organization approach helps improve modularity and API/Implementation separation?

Few languages are as restrictive as Java with file naming standards and project structure. In that language, the file name must match the public class declared in the file, and the file must live in ...
20
votes
16answers
2k views

How do you go about understanding others' code? [duplicate]

What do you do to understand some code that you didn't write? Or code that you wrote long time ago and don't remember what it does anymore. Do you have some technique that you go about? Do you ...
4
votes
4answers
340 views

Correct alignment when outcommenting code

Suppose I have some code void some_block(void) { some_statement_1(); some_statement_2(); some_statement_3(); } Now I wish to out-comment statement #2, but here I never can find a way ...
81
votes
17answers
4k 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 ...
13
votes
18answers
3k views

How to read thousands lines of code without any documentation?

Previously I was searching for a good TimeLine control for a WPF project. I found an answer in Here which direct me to this CodePlex project. Now I want to change code to feed my culture needs. But ...
1
vote
7answers
199 views

btnBack vs backButtonField [closed]

For blackberry GUI developement. I am using the name convention like backButtonField and some of my colleagues are using btnBack. But sometimes I stuck with the names like loginVerticalFieldManager ...
7
votes
9answers
1k views

What are your thoughts on Periods/Full Stops in code comments? [closed]

I saw this asked in the SO Tavern, so I'm posting the question here. I thought it an interesting question. (Of course it doesn't belong on SO, but I think it's OK here.) Do you add periods (or, as ...
9
votes
11answers
1k views

How serious is losing the source code? [closed]

If a software company loses the source code to one of the products they are selling, how serious would that be, in terms you could explain to a layman? Would the term "gross negligence" be too ...
23
votes
12answers
2k views

How do people manage to write and maintain extremely complex and hard to read code? [closed]

Reading SQLite source code is IMO mission impossible. Yet it is a usable piece of quite complex software (it's a full-blown embedded database after all) that can be downloaded, compiled and used from ...
5
votes
6answers
561 views

How complex is the documentation you write? [closed]

In a book I'm reading there is a chapter on documentation for your code. The book is about PHP and described some easy methods but also going for some complicated and time consuming methods (xml, xsl) ...
22
votes
12answers
2k views

Should developers be forced to check-in before leaving work each day, even if the code does not compile? [closed]

During a previous consulting position, the developers where told to check-in code on a nightly basis, regardless if it complied or was complete. Managers were afraid of losing any code and said now we ...
12
votes
0answers
760 views

I sold my source code to a client, can I now re-build similar code and sell to someone else? [closed]

So we built a website and software for a client, charged our fee and handed over the code. The client then got a request from another company about the software. The client passed on the request but ...