are (7,311)


performance - What is the fastest way to get the value of π?

performance - What is the fastest way to get the value of π?

I'm looking for the fastest way to obtain the value of π, as a personal challenge. More specifically, I'm using ways that don't involve using#define constants like M_PI,or hard-coding the number in. T…


sql server - Editing database records by multiple users

I have designed database tables(normalised, on an MS SQL server) and created a standalone windows front end for an application that will be used by a handful of users to add and edit information. We…



vb6 - How to use a mutex in Visual Basic

I have imported the kernel32 library so I have the createMutex function available but I am not quite sure of the various parameters and return values. This is classic Visual Basic, not Visual Basic.N…


optimization - Data verifications in Getter/Setter or elsewhere?

I'm wondering if it's a good idea to make verifications in getters and setters, or elsewhere in the code. This might surprise you be when it comes to optimizations and speeding up the code, I think y…


Global Exception Handling for winforms control

When working on ASP.NET 1.1 projects I always used the Global.asax to catch all errors. I'm looking for a similar way to catch all exceptions in a Windows Forms user control, which ends up being a hos…


What are the best practices for using Extension Methods in.Net?

I have seen these being used every which way, and have been accused of using them the wrong way(though in that case, I was using them that way to demonstrate a point). So, what do you think are the…


How do you pack a visual studio c++ project for release?

I'm wondering how to make a release build that includes all necessary dll files into the.exe so the program can be run on a non-development machine without it having to install the microsoft redistr…


Full complete MySQL database replication? Ideas? What do people do?

Currently I have two Linux servers running MySQL, one sitting on a rack right next to me under a 10 Mbit/s upload pipe(main server) and another some couple of miles away on a 3 Mbit/s upload pipe(m…


windows - Registry vs. INI file for storing user configurable application settings

I'm a new Windows programmer and I'm not sure where I should store user configurable application settings. I understand the need to provide a user friendly means for the user to change application s…


language agnostic - What is the prefered style for single decision and action statements?

In the case of languages that support single decision and action without brackets, such as the following example: if(var== true) doSomething(); What is the preferred way of writing this? Shoul…




how the not and what for java example with why