language-agnostic

Language-agnostic automated build and test server for multiple projects

To ease our release testing, we're looking for a system to automatically build and (unit) test our software projects on a variety of architectures. Our constraints are: The code to build is written in several languages, including Python, Java and C. We have several distinct deployment architectures. We have multiple projects, which we ...

How can I convince my co-programmers not to do paranoid "just to be sure programming"?

I've often found that when a programmer or the one assigning the task doesn't really understand how a solution could work, they kind of randomly add stuff until it works. Examples: Repainting a window which for some reason isn't painted as the programmer would like it: Invalidate(); Revalidate(); ProcessMessages(); Update(); Repa...

How to create our own numeric system?

The question is for any modern unmanaged language.C-like languages,delphi,anything. I'd like to create my own cryptography algorithm that ,unlike others,decreases the length of the encrypted string. My first thought was to create my own numberic system similiar to hexadicimal,but with more characters.For example [0..9] + [A..Z].That wo...

Performance Cost of Profiling a Web-Application in Production

I am attempting to solve performance issues with a large and complex tomcat java web application. The biggest issue at the moment is that, from time to time, the memory usage spikes and the application becomes unresponsive. I've fixed everything I can fix with log profilers and Bayesian analysis of the log files. I'm considering running ...

What would a multithreaded UI api look like, and what advantages would it provide?

Or, equivalently, how would you design such an API. Expected/example usage would be illustrative as well. My curiosity comes directly from the comments (and subsequent editting on my part) of this answer. Similar questions/discussions in the past provide a bit of inspiration to actually asking it. Executive summary: I don't feel a mu...

Low latency programming

I've been reading a lot about low latency financial systems (especially since the famous case of corporate espionage) and the idea of low latency systems has been in my mind ever since. There are a million applications that can use what these guys are doing, so I would like to learn more about the topic. The thing is I cannot find anythi...

Why all the functions from object oriented language allows to return only one value (General)

Hello all, I am curious to know about this. whenever I write a function which have to return multiple values, either I have to use pass by reference or create an array store values in it and pass them. Why all the Object Orinented languages functions are not allowed to return multiple parameters as we pass them as input. Like is there...

Lesser known string similarity metrics

Hello. This may be a hard question to answer but I'm researching something and I was wondering if anyone knew of "lesser known" string similarity metrics (see this page for examples of well-known ones). I've been to wikipedia and Sourceforge has a nice library called Simmetrics with a bunch of string metric algorithms. Has anyone done so...

Paint me a Rainbow

How would you go about making a range of RGB colours evenly spaced over the spectral colour range? So as to look like a real rainbow. ...

Taking Over Incomplete Software

A friend of mine wants to buy a nearly bankrupt software company and is interested in one of their incomplete software. What should he get from them besides the source code as the company is willing to provide any kind of documentation he wants. And he wants to get the most essential kind of documentation to minimize the duration of the...

"stop words" list for english?

I'm generating some statistics for some english-language text and I would like to skip uninteresting words such as "a" and "the". Where can I find some lists of these uninteresting words? Is a list of these words the same as a list of the most frequently used words in English? update: these are apparently called "stop words" and not ...

How can I improve the subjective speed of my application?

Today my co-worker noticed that when adding a decimal place to a progress indicator leads to the impression that the program is running faster than without. (i.e. instead of 1,2,3... it shows 1, 1.2, 1.4, 1.6, ...) I checked it and I was surprised that I got the same impression even though I knew it was faked. That makes me wonder: What...

Hungarian Algorithm and multiple factors

I have a situation where I need to allocate people to several events. If we just had a price as a factor, it would be fine, but there is a number of factors that come in. First, some background. This is for a non-profit organization that promotes story hours for children that are hospitalized for any reason, so they depend on voluntary ...

how do I create a line of arbitrary thickness using Bresenham?

I am currently using Bresenham's algorithm to draw lines but they are (of course) one pixel in thickness. My question is what is the most efficient way to draw lines of arbitrary thickness? The language I am using is C. ...

How to identify a programmer good at multi-threaded programming?

Should there be any preconditions to be fulfilled by a team if the team were to be assigned a task that would involve a good deal of multi-threaded coding? What would you look for? ...

TextBox Search string manipulation

This is sort of complicated for me to explain,let me try anyway. i want to know how can i manipulate the string i've collected from this(such type of ) textbox and use it for my pupose in webapp or dektop app. i mean for example, i've two situations. 1) If i've to take the search string in text box and want to forward user to say s...

IntelliSense rules for "get best match" during member selection

First of all, I finally made this a wiki, but I believe a "simple," straightforward answer is highly desirable, especially since the result would define a unified IDE behavior for everyone. More on the simple later. In the past, I've blogged about what it means to have a well-behaved member selection drop down. If you haven't read it, d...

What is the benefit of explicitly naming getters and setters as "get..." and "set..."?

Does this rankle anyone else out there? I would much rather see: block.key(newKey); // set the key for this block and testKey = block.key(); // look up the key for this block than block.setKey(newKey); // set the key for this block testKey = block.getKey(); // look up the key for this block First, the "set" and "get" are r...

How does the verbosity of identifiers affect the performance of a programmer?

I always wondered: Are there any hard facts which would indicate that either shorter or longer identifiers are better? Example: clrscr() opposed to ClearScreen() Short identifiers should be faster to read because there are fewer characters but longer identifiers often better resemble natural language and therefore also should be f...

Do all programming languages have boolean short-circuit evaluation?

In the PHP code if(a() && b()) when the first argument is false, b() will not be evaluated. Similarly, in if (a() || b()) when the first argument is true, b() will not be evaluated.. Is this true for all languages, like Java, C#, etc? This is the test code we used. <?php function a(){ echo 'a'; return false; } function b(){ e...