source-code

How to prepare my code for publishing?

I've been working on a project for a while, producing a small pile of code to do a specific task as a part of a larger framework. Now the time has come to publicly include this code in the framework. What do you suggest to do with the code before pushing it to the publicly available repository? How can I prepare it in a way to have the l...

Input mask for partial date without year in vba

I have the below input mask which take in the date format: 21/10/98 00/00/00;0;_ But i need to be in the below format : 21/10 (without year) This syntax of input mask shown below 00/00;0;_ is not giving the right answer. Please help More clarification: If we right click on the text box of vba form and take the input mask pro...

How to read code without any struggle

Hello, I am a new to professional development. I mean I have only 5 months of professional development experience. Before that I have studied it by myself or at university. So I was looking over questions and found here a question about code quality. And I got a question related to it myself. How do I increase my code understanding/read...

google or other search engine's SQL code (or other DB-specific code)

Has someone seen the actual SQL ( or bigtable or whatever ) code that actually makes the search in some major search engine like google, yahoo, etc? I'm just curious. (please don't close, let me reformulate if it's not acceptable as a SO question) ...

Why print your code?

What benefits can be gained by printing out code as opposed to reading it on screen? Do you print your source code? If so why? ...

TFS source viewer in project portal

Hello community We're using TFS as source control provider and for the project management (documents, ...). Maybe I missed something completely, but is there a possibilty to view source code directly from the project portal? I know that source code is not stored there, but does there exist a 3rd-party viewer or something? It would be ni...

Is there any tool to track source code contributions made to a project?

To protect ourselves from later patent claims etc. we feel the urge to track contributions being made to the core code of a future open source project. We thought of the following procedure if we get contributions: a contributor has to do a quick registration with us if he commits more than just small bugfixes to our main codebase (st...

How to get the source code for Komodo Edit?

How do I get the source code for Komodo Edit? Komodo Edit is an open source text editor. I want to inspect and learn from the source code for Komodo Edit. In the download location, http://downloads.activestate.com/Komodo/releases/5.1.4/, I can only see binaries. Do you know how to get the full source code? Update 1: Apparently the ...

Source code for hashmap implementation?

I’d like to study the source code for a fast and memory efficient hashmap implementation. Any suggestions where I can find one online? ...

Proper Open Source license to release academic code?

Hello. As part of the work in our research lab, we often code up simple/complex implementations of various algorithms and give them away with a simple "Acknowledgment Request desired, if used" message in the code itself. I want to release them under a proper Open-Source licenses, so as to prevent undesired misuse and also enable others t...

Keeping the entity sourcecode small

Thinking about entity classes, what could I do to keep my source code with a few number of lines of code, when the entity starts to getting bigger? The entity in this case have attributes, methods (already optimized to be small), lazy-loading code for reference to another objects, and repository objects to allow lazy-loading. I'm not t...

How to improve this code? (too many if)

I want to print the border of the square... It may print only one side, or more sides of the square, so , I write this method printBorder(N, E, S, W) { if (N) { square.printBorder(0,0,0,10); } if (E) { square.printBorder(0,10,10,10); } if (S) { square.printBorder(10,0,10,10); } if (W) { square.printBord...

asp.net + MS SQL Server: Best Source Control

I work on a growing web team that needs to adopt a Source Control system. We looked into Source Safe, but were put off by it's lack of SQL Server source control. The Visual Studio Team System range looks like it does the trick, in terms of source code + database - but I must admit to be confused by the various versions. So my questions...

Managing temporary code.

This is (pehaps bad) habit I have formed and I am wondering if others have experienced the same thing and strategies for managing it. A lot of times I will write a fair amount of experimental throw away code in the course of coming to the most effective solution. Sometimes complex loops and arrays and various functions that have a fairl...

How to find (and replace) all old C-style data type casts in my C++ source code?

Hello How can I locate all old C-style cast in my source? I'm using Visual Studio, may be there is some compilator warning that I have to enable? Or use some software tool for this? ...

How can I automatically export XML source comments to a text document?

I have been using XML comments to document my source code in VB.Net (and C# when I get to). I seem to remember someone telling me a long time ago that there was a way to automatically export the XML comments into a text document or other format for easy reference outside of Visual Studio. Is there? What is it, or are they? Thank you in ...

Source Clean-up Question

I have source that has been around for 10 years old in C++. It works on OS X, Linux and Windows well. It is a static Library of API calls other developers might need to use. Over time, previous programmers have sort of not kept it tidy. So my question: There are several headers that most sources use. I could put them all in a single h...

C# sourcecode Search

Duplicate: this is a duplicate of How can I index our internal source code?. Please vote to close it as a duplicate, and direct answers at the original question. I must find a way to research in large number of c# files. Someone knows engine like google code search ready to use and working with c# sorcecode? I find only: http://code.g...

Multiple git repo in one project

I'm using github as a repo for a little project, but I'd also like to use some code written by another github user. Is it possible to setup a /library/libraryname folder inside my project which maintains it's links back to the other users repo as well as being part of my projects commits? For example: If the other user updates their co...

Removing strings from C source code

Can anyone point me to a program that strips off strings from C source code? Example #include <stdio.h> static const char *place = "world"; char * multiline_str = "one \ two \ three\n"; int main(int argc, char *argv[]) { printf("Hello %s\n", place); printf("The previous line says \"Hello %s\"\n", place); return 0...