source-code

Visual Studio (or resharper) variable and method coloring

Ok, I am not sure what the naming for this is actually called, but I would like to know if the following is possible in Visual Studio. When I set my cursor on or highlight a variable, or method name, or string... etc, I would like the IDE to highlight all uses of it. So if I highlight variable x, then it highlights all other uses of va...

Project Structure for C# Development Effort

What directory/solution/project structure do you find to be the most manageable and convenient for medium to large projects written in C#? By "medium to large" I mean projects which include a diverse set of Visual Studio C# project types in a hierarchical structure with nested namespaces.1 I'm primarily interested in those project types...

Source Code and comments for prototype development

I'm involved in a prototype development. We can't say that it's completely prototype development. It's partially following the processes defined within the organization. As far the customer concerned it's a prototype development. The problem is documentation. We don't have any time estimated and scheduled to prepare the architecture des...

Need help in best pratices using Darcs

I develop in Windows, C language using Codeblocks. Last week I started to use darcs. My application has 20 source code files. I am the only developer; it is a home project. What I usually have is a main version, and then have a few branches in parallel which are those I am coding in that moment. When I have finished a feature and have t...

Best practices for version control (SVN) with regard to Web Design

We are in the process of using SVN on a project that has a core and modules. We want module development to be separate from the core, but the modules will be inside of the core files. My question is this: How would you set up the repositories to manage something like this? Would you make all of your modules into their own repositories...

Tricks, hints, shortcuts in documentation / comments

Which tricks, hints or shortcuts do you use regularly when you document your sourcecode? What type of comment does help you most (or is most desired) when looking over a piece of sourcecode? For an example, we always use date, shortcut of name and a +, -, * (added, deletet/commented, modified) and then some description: // 30.04.09 PL...

How do you "check out" code?

I've never really worked with a lot of people where we had to check out code and have repositories of old code, etc. I'm not sure I even know what these terms mean. If I want to to start a new project that involves more then myself that tracks all the code changes, does "check out" (again, don't know what that means), how do I get star...

Is there a search engine for web sites html/js code?

Do you know of a search engine that looks in web sites code, not only text? for example to find all the websites that use Jquery I may search for 'jquery-1.3.2.min.js' .... (I know the question is not directly a programming question but the answer can be very helpful to programmers) ...

Where can I find good C++ source code?

Duplicate of: What C++ open-source projects have good and clean code to learn from? excellent examples of real c/c++ code? Suggestions needed What are some examples of exceptional C++ open-source code? I am learning C++ as a first language. I feel like I am about to hit a ceiling on my learning (I am not learning through a class) ...

Where can I find the source code for Java's Square Root function?

I know that Math.sqrt calls StrictMath.sqrt(double a) I was wanting to look at the actual code used to calculate it. ...

Is there a standard to easily show and hide content?

Do you toggle comments or slabs of code to quickly show or hide content? What are some common methods you use? Is there an accepted standard? Should some methods be avoided? ie could they be misinterpreted by some engines? Is there an alternative or better solution to this? Standard - This is what I use to cover most languages: CSS, J...

Eclipse: Is it possible to edit Java source known via source code "attachment"

I am using Eclipse 3.4.2 to develop my code. As part of my project definition I reference a utility library to which I have attached the source code. So far, so good - I can see that source when I bring up classes from the library and while I am debugging. Now however I would like to make a change to one of the classes while still ret...

Utility for adding or modifying the copyright note in each source file?

Is there is an utility to change or modify the source code copyright notes in all source code files? I'm thinking about writing one in Python for myself, but perhaps there is already a solution available. Some template text with fields to fill in would be nice, too. It should also be somewhat intelligent about the language, i.e. i want i...

Unable to see the source code of Coda

I read Jeff's blog post that someone had managed to see a closed source code by a program called Reflector. I would like see the source code of Coda, which is a shareware app. However, I am not sure which application I should use for that. It seems that Reflector can only be used for. Net apps. How can you see the source code of Coda?...

SQL code inside Java classes

Our current project does not use Hibernate (for various reasons) and we are using Spring's SimpleJdbc support to perform all our DB operations. We have a utility class that abstracts all CRUD operations but complex operations are performed using custom SQL queries. Currently our queries are stored as String constants inside the servic...

Get source of appengine published version

Hi, can I download my appegine source code from google? ...

Where can I view Mono implementations of Math.* or Substring and the like

Question says it all. I tried browsing through the latest tag but could not find the implementations for said functions. ...

searching for pages explaining codes

Google does not allow searching for ! !-f becomes -f What search engines find pages with !-f? ...

let's say I am writing my code and then my PC died, how necessary is it to do a complete scan if i don't want my later source code to be contaminated?

let's say I am writing a Ruby on Rails program and while editing a file, the machine blue screened. in this case, how necessary is it to re-scan the whole hard drive if I don't want my future files to be damaged? Let's say if the OS is deleting a tmp file at the moment when my computer crashed, and still have some pointers to some sect...

How to organise source code in a modular manner

I'm currently working on a project that has scope to become quite large, however being relatively new to C++ and coming from a Java background I'm not sure about the best way to proceed. I would like to have a directory structure similar to: + Root - main.cpp + Engine + Core - foo.cpp - foo.h + Utili...