Skip to main content

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.

Filter by
Sorted by
Tagged with
-1 votes
4 answers
210 views

My question is simple, how should I comment during development so that it can be beneficial in the following cases: Understandable for my seniors while code reviewing. Should be able to search my work ...
FaizanHussainRabbani's user avatar
1 vote
4 answers
5k views

The problem: Documentation is in code in the form of docs, its in wiki websites, its written down on notes, in diagrams and issue management systems. When documentation is so spread out, how does ...
stevebot's user avatar
  • 2,013
0 votes
1 answer
510 views

I have question about MIT licence code sources Can I publish code snippets [MIT licence] from site like bootsnipp to my blog? Do I have to include source link to site where I have found that snippet (...
Adam Demotiv's user avatar
0 votes
2 answers
5k views

Should I just copy the project files to him? Should I sit and explain the code to him ? If so, up to which level of details? Or do I just tell him where everything is within the solution and not how ...
user3340627's user avatar
2 votes
2 answers
444 views

I'm in the middle of developing an asp.net webforms application to a customer, i've been using DataAccess and BusinessLogic layers in a folder structure within my application, in which my DataAccess ...
user1927272's user avatar
41 votes
13 answers
9k views

Suppose I'm reviewing code that job applicants send to prove their skills. Clearly I don't want to run executables they send. Not so clearly I'd rather not run the result of compilation of their code (...
sharptooth's user avatar
  • 4,387
-1 votes
1 answer
344 views

I have some source code I want to release but I'm unsure of the best license to put on it. From my research such licenses as MIT and GNU are horrible as they offer little to no protection towards ...
G.T.D.'s user avatar
  • 508
13 votes
3 answers
2k views

Let's say I have a blog available under one of the Creative Commons licences. Such type of licence would be displayed at the bottom of each page with a link to the actual licence, etc.. However, ...
mguassa's user avatar
  • 707
1 vote
1 answer
126 views

I'm building a big, very complex piece of open-source software, and it's killing me trying to make what I have as "clean" as it needs to be. What I want to know is: If there is an undetected flaw in ...
CheshireChild's user avatar
0 votes
1 answer
148 views

I inherited a php project of 3rd party code with a good deal of company-specific customization lumped on top of it. Now I've got to upgrade it and the person who owned the project is the one I've ...
Peter Turner's user avatar
  • 6,985
3 votes
1 answer
2k views

I applied for a job in a small company (~25 employees) on December and after a month the CEO of the company wrote to me that he is interested to interview me. During the interview I got a bad ...
quantum's user avatar
  • 141
52 votes
9 answers
11k views

If a coder writes code that nobody other than he can understand, and code reviews always end with the reviewer scratching his head or holding their head in their hands, is this a clear sign that the ...
Coder Guy's user avatar
  • 727
0 votes
1 answer
135 views

I wrote simple function that returns a string depending on which condition is TRUE. Here is my code: private String getMyString() { if(!mStrigMember.isEmpty()) { return mStrigMember; }...
user3291059's user avatar
8 votes
3 answers
1k views

I just came across the following in a lab manual at university: You do need to study the interfaces of the classes by generating the javadoc for them so you know what operations are provided (feel ...
Todd Davies's user avatar
0 votes
1 answer
126 views

I have this software package which installs itself to /usr/local/mypackge, with a bunch of subdirs. In bin/ I have linked code, as ELF executables, in /share/doc I have documents, etc. Now suppose I'...
einpoklum's user avatar
  • 2,808
2 votes
1 answer
9k views

I am working on a collaborative project, for which I have to submit source code, which will be used/embedded in the main repository for re-compilation. Is there any way, I can encrypt the source code ...
Qasim's user avatar
  • 133
60 votes
6 answers
6k views

There are very complex open source projects out there, and to some of them I think I could make some contributions, and I wish I could, but the barrier to entry is too high for a single reason: for ...
fiatjaf's user avatar
  • 737
0 votes
1 answer
1k views

So I'm an android programmer,have been programming for about 3 years,but it wasn't until 5 months ago that I started really taking it seriously. Recently I got my first internship,and I'm happy with ...
Rhynoboy2009's user avatar
2 votes
1 answer
214 views

So, i've started working as a freelancer and therefore find myself copy/pasting util methods from one class to another. Not good to say the least. I do this on my mobile frontend dev and backend .net....
jim's user avatar
  • 483
10 votes
4 answers
9k views

I'm working on a calendar project, on my own. In this project I've to use Swiss Ephemeris. It is licensed under GPLv2 and commercial. With commercial version of license, developers entitled to ...
Arnab Das's user avatar
  • 203
19 votes
8 answers
11k views

A long-standing question for me has been: when do I store data (actual values) in a database table, and when do I store them right in the code? The untold consensus has typically been as such(*): If ...
Dennis's user avatar
  • 8,267
4 votes
2 answers
495 views

Suppose I have a GPL v2-licensed library that is of interest to a closed-source project (e.g. Wolfram Alpha). If some of my code were used in Wolfram Alpha, or a product that interfaces with Wolfram ...
Jess Smith's user avatar
3 votes
0 answers
102 views

I am working in a jsp project an got stuck in a big problem. My project consist of accounts table for super admin, reseller, admin and users for executives and manager mapped in the account ...
singhakash's user avatar
28 votes
2 answers
52k views

There are some good examples of well-documented code out there, such as java api. But, a lot of code in public projects such as git and internal projects of companies is poorly documented and not very ...
Erran Morad's user avatar
1 vote
2 answers
504 views

This is not the usual "I don't want to write code during an interview", in this question the assumption is that I need to write code during an interview (think about the level of rewriting the ...
user129506's user avatar
1 vote
1 answer
991 views

Say you have a bunch of nested loops. public void testMethod() { for(int i = 0; i<1203; i++){ //some computation for(int k=2; k<123; k++){ //...
Force444's user avatar
  • 643
6 votes
2 answers
855 views

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 ...
Niet the Dark Absol's user avatar
0 votes
1 answer
2k views

I use git for versioning. Just yesterday I was working on refactoring my Python code base. After adding a test I found that I had introduced a bug in one of project euler solutions. So I checked out a ...
Aseem Bansal's user avatar
  • 3,044
0 votes
2 answers
784 views

Recently, I found multiple GitHub repositories that would allow me to perform the same task. (In my case, assess the readability of text strings.) It made me wonder, what are the best practices for ...
Gyan Veda's user avatar
  • 133
0 votes
1 answer
423 views

I have to continue feature development, issue fixing of a halfway completed code base. There is a no documentation, all developers had left the company. The technology stack is somewhat familiar to ...
Kasun's user avatar
  • 109
11 votes
5 answers
11k views

It seems to me that the Boolean class is an ideal candidate to be implemented as an enum. Looking at the source code, most of the class is static methods which could be moved unchanged to an enum, ...
Highland Mark's user avatar
3 votes
3 answers
2k views

When I create PHP projects, is it better to put all database (e.g. MySql) queries in a single file (i.e. "queries.php")? Or is it better to place the respective queries in any "model" classes (i.e. ...
user2225945's user avatar
1 vote
1 answer
181 views

During all my work I've been working with ORM, WS, integration services, viewmodel and so on. The common stuff in all these kind of work is that I had to make mappings and not always the available ...
M.F05051985's user avatar
5 votes
4 answers
2k views

Our team has recently adopted agile practices and most of the team is new to agile. In our product, we use some code developed by another team and only they maintain that code. For the last 4-5 years,...
Anup Shah's user avatar
  • 179
0 votes
1 answer
413 views

I need to reference the latest version of Bouncy Castle in a project I intend to publish to Github. In my first posting of the code to Github, someone complained that I downloaded the entire Bouncy ...
makerofthings7's user avatar
39 votes
16 answers
8k views

Is it a good practice to put bug numbers in the file itself inside a header comment? The comments would look something like this: MODIFIED (MM/DD/YY) abc 01/21/14 - Bug 17452317 - npe in drill ...
9 votes
2 answers
7k views

After reading this article I realized that I really didn't read any "serious" source code during my 3-years as a professional developer. Recently I started a new web-project which makes heavy use of ...
Abaco's user avatar
  • 211
2 votes
4 answers
6k views

I'm in a situation with my company where this may be an important distinction. Is there any distinction between "source code" and "source files" in a technical context? Is there any distinction ...
user avatar
51 votes
1 answer
33k views

I read the original text of Apache License, Version 2.0 and the explanation in plain English. OK, I copy a class distributed by The Best Company in the World, their license, and modify the code a bit....
Maksim Dmitriev's user avatar
0 votes
1 answer
3k views

Actually, I'm writing my undergrad thesis, that consists in analysing the BitTorrent algorithm and see its application on Transmission client as an example of implementation. Reading through its code,...
paulochf's user avatar
  • 111
4 votes
1 answer
564 views

I want to create two applications that will have a lot of common functionality. Basically, one system is a more advanced version of the other system. Let's call them Simple and Advanced. The Advanced ...
Azrael Seraphin's user avatar
5 votes
2 answers
4k views

This week I could optimize using a reduced C library that allowed a drastic shrinkage in code size - from about 60 K to about 6 K and then we could load the code in the 8 K on-chip memory of an FPGA (...
Niklas Rosencrantz's user avatar
10 votes
6 answers
1k views

Why do we still embed natural language descriptions of source code (i.e., the reason why a line of code was written) within the source code, rather than as a separate document? Given the expansive ...
Dave Jarvis's user avatar
1 vote
1 answer
1k views

I am writing some software that (for once - usually I open source stuff on sourceforge/github/etc.) I plan on selling. To each source file, I want to attach a proprietary software license that doesn't ...
herpylderp's user avatar
  • 2,057
2 votes
2 answers
1k views

I am having some difficulty with MySQL and returning a unique row to a thread. I want it so the thread will search for a row from the table where the bit (see below) is false and only one row is ...
Matt S's user avatar
  • 31
32 votes
8 answers
8k views

I often read that developers must write beautiful code, but for a beginner as I am it remains obscure of what is beautiful code and how do you recognize it? The corollary question is: How to write ...
torr's user avatar
  • 493
81 votes
5 answers
41k views

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 ...
deviDave's user avatar
  • 2,963
12 votes
3 answers
9k views

The C# community has so ubiquitously used the "I" prefix to denote an interface that even the most inexperienced programmers know to use it. Why is it then that we do not prefix enums, abstract ...
Stephen's user avatar
  • 8,868
3 votes
2 answers
941 views

Is it ethical to make a copy of my work's source code, for the sole purpose of my own reference? By reference, I mean as reference where I can refer to it about how I (and my teammates) implemented ...
Louis Rhys's user avatar
  • 6,182
1 vote
0 answers
105 views

I'm currently working on a client's project that involves programming in multiple languages. It has gotten to the point where the amount of source code for each language has grown to such a large ...
Reactgular's user avatar
  • 13.1k