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.

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

273 questions
91
votes
17 answers

How do you cope with ugly code that you wrote?

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 kind of conflict with the old features, so now…
mpen
  • 1,889
81
votes
5 answers

How do you put a price on your source code?

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 solution. I've searched the net, but haven't…
deviDave
  • 2,943
50
votes
14 answers

Do you sign each of your source files with your name?

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 author metadata. I am not; I prefer to rely on source…
37
votes
11 answers

Is "funny commenting" a bad practice or not?

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, and I have personally stumbled at many such things…
somebody
  • 373
33
votes
14 answers

Dealing with profanity in source code

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?
sal
  • 2,078
  • 1
  • 15
  • 19
24
votes
16 answers

Do you think code is self documenting?

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 interviewer in question was looking for a black and white…
Desolate Planet
  • 6,058
  • 3
  • 30
  • 38
9
votes
8 answers

Interpreting others' source code

Note: I am aware of this question. This question is a bit more specific and in-depth, however, focusing on reading the actual code rather than debugging it or asking the author. As a student in an introductory-level computer science class, my…
Maxpm
  • 3,146
6
votes
2 answers

Sharing source code of my online game?

So one of my long-standing projects is an online fan-game that's been running for a good four years now, and is at least somewhat well-known among the related community. To give you an idea, Alexa ranks my online game higher than the official…
5
votes
4 answers

Is Googling every code a bad practice?

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 (I quoted that logic is the thing to learn, not…
user4124
3
votes
2 answers

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 there's a limit to what a code review question can…
Aaron Anodide
  • 5,553
  • 6
  • 30
  • 37
1
vote
3 answers

Difference between 'system code' and 'application code'

I'm reading Code Complete (2nd Edition) and in Chapter 21 the author mentions the terms system code and application code in the context of formal inspections, saying that system code has to be handled at a slower pace than application code in order…
Tudor Timi
  • 203
  • 2
  • 7
1
vote
4 answers

How do I protect my website (Codes, Database, FTP informations) from freelancer?

I'm developing a website using Joomla and many other 3rd party plugins and also I want to make some custom components so I'm hiring some freelancer developers and few are an online companies they say located in UK or somewhere. After explaining them…
-4
votes
1 answer

Can answers of a test which is an exe file be viewed?

is it possible to view behind the scenes of an exe file once its executed? to find the answers of a test questions? For example if someone clicks on F12 on a website the code is viewable to the user, is this also applicable to an exe file? Thank…