codebase

Organizing the source code base when mixing two or more langauges (like Java and C++)

I ran into a problem a few days ago when I had to introduce C++ files into a Java project. It started with a need to measure the CPU usage of the Java process and it was decided that the way to go was to use JNI to call out to a native library (a shared library on a Unix machine) written in C. The problem was to find an appropriate place...

What's the best way to become familiar with a large codebase?

Joining an existing team with a possibly-large codebase already in place can be daunting. What's the best approach; Broad; try to get a general overview of how everything links together, from the code Narrow; focus on small sections of code at a time, understanding how they work fully Pick a feature to develop and learn as you go along...

How do you familiarize with a codebase that has no documentation?

I don't know, I've been told that the previous developers did fine in picking up and heading straight into coding with no major problem. I wonder if I am doing it wrong by requesting my manager for some brief meetings with some senior programmers here. Is it better to be cautious and finish this time sensitive tracker the long way, or ru...

Is changing a variable name throughout your entire codebase just asking for disaster?

Let’s say that you decide to change the name of Stack Overflow to Frack Overflow. Now, in your code you already have dozens of objects and variables and selectors with some variation of the name "Stack". You want them to now be replaced with "Frack". So my question is, would you opt to run your entire codebase through a regular expres...

Add to Wikipedia's code?

I know that the wiki concept is let people from around the world contribute and everything. Now is there a way to add code ("contribute") to Wikipedia's codebase? Open-source? For eg. I'd like to offer a poll to every Wikipedian (registered user) on their user-page asking whether they're deletionists (rather have less) or additionists (...

Understanding a Large, Undocumented Set of Source Code?

I have always been astonished by Wine. Sometimes I want to hack on it, fix little things and generally understand how it works. So, I download the Wine source code and right after that I feel overwhelmed. The codebase is huge and - unlike the Linux Kernel - there are almost no guides about the code. What are the best-practices for under...

Why does my App.Config codebase not help .NET locate my assembly?

I have the following client application and its corresponding config file: namespace Chapter9 { class Program { static void Main(string[] args) { AppDomain.CurrentDomain.ExecuteAssembly("AssemblyPrivate.exe"); } } } <configuration> <runtime> <assemblyBinding xmlns="urn:schemas-micro...

Remote Codebase

I have a dll. That dll is uploaded on a server. I want that each time the application starts to get the "latest" dll from the server, so I've used the following code in my app.config. Why isn't it working? here is the app.config file: <configuration> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <depe...

Merging Core Libraries

About a year ago our company rolled a relatively large software package written primarily by two senior developers. For ease of demonstration, I'll call it "project A". Since then, we have been working on a new software package, "project B" and in its tree is a branch of project A. Project B has a reference to project A, but now that ...

Javascript_Java_Interaction applet "Codebase" problem

I saw an article about Javascript_Java_Interaction today at : http://www.rgagnon.com/javadetails/java-0184.html [ You can try the working version on that site ] So I tried it on my PC, after some simple format change the files look like this : ========================================================================================...

Open Sourcing a Framework: Ok, I bought the concept, now what?

(Note to moderators: I did my homework, and I know there is a very similar question, I'm putting on a different perspective. Please be somewhat more lenient to me. Yes, I'm asking for forgiveness not permission :]) In the past year, I wrote an application in order to deliver as my grad thesis. Its fine, and it works with some interestin...

How is duplicate HTML represented in your codebase, in a non-duplicate way?

Most HTML in a large website is duplicated across pages (the header, footer, navigation menus, etc.). How do you design your code so that all this duplicate HTML is not actually duplicated in your code? For example, if I want to change my navigation links from a <ul> to a <ol>, I'd like to make that change in just one file. Here's how I...

rmi class can not found exception

I wrote an simple project using java rmi and exported to an executable jar file. When I tries to run it, sometimes i got exceptions and sometimes it works. When I specify -Djava.rmi.server.codebase=file:serverClasses/, it seems it didn't create the jar file correctly. Here is the stacktrace: java.rmi.ServerException: RemoteException oc...

Assembly.Load(Byte[]) and Assembly.Location/Assembly.Codebase

I'm trying to load an assembly without locking the file. These assemblies could be third party assemblies so we don't necessarily have access to the code and one or two of them make use of Assembly.Location to read files from their directory, files they might depend on. I'm aware you can do this via Shadow Copying but it's a real pain ...

How do you sync changes between multiple codebases?

Let's say I want to create a spinoff of a chat application branded under a different name, different UI, and some changed features. How would one sync changes between these to codebases which are 80% the same? EDIT: Already use git. ...

Can't get AllPermission configured for intranet applet. Can anyone help?

Hello everyone, After doing a lot of reading and testing I've been unable to give all permissions to an intranet applet through the codeBase grant option. This applet need full permissions because it will have to acess driver libs for OCR readers (which also write image files to HDD) and other such external devices. I've configured my ...

how to use C# debugger (or anything else) to examine what happens during a GUI event in an open source app?

imagine that you are given a big nice app in C#, with full source code. So you want to figure out what methods are executed when you do a user event, e.g. press a button or press a hotkey or whatever. The codebase is so big that you don't feel like looking for the relevant part of the code manually, e.g. tracking down the event handler f...

java.rmi.UnmarshalException: unable to pull client classes by server

Hi, I have an RMI client/server set-up on two machines that works fine in a simple situation when the server doesn't require a client-side defned class. However, when I need to use a class defined on the client side I am unable to have the server unmarshall those classes. I suspect this is an issue with my java.rmi.server.codebase prop...

Using <codebase> element in app.config

Hi guys, I intend to keep few dll's in a folder other than the bin folder for my .NET 3.5 Windows application. I am unsure of how would I use the codebase element or the probing element to specify the right path. This is what I have in the app.config file now, <runtime> <assemblyBinding> <dependentAssembly> <assemblyIdentity na...

RMI Activation Strange problem

I am trying to get an RMI activatable server to work - but no luck so far. Actually the server seems to run, but the client triggers a strange exception. I have 3 projects: client common server Common is shared code between client and server (such as remote interfaces). Steps I follow (been adapting this tutorial): start registr...