general-development

Proper handling of GetLastError (and others) in a multithreaded context.

Is it correct to assume that GetLastError (and variants) are per-thread or is it per-process? The problems if it is per-process are somewhat obvious in multithreaded apps because there is no way to guarentee that no other Win32 calls were made between your failed call and GetLastError. Sometimes the value of GetLastError is important. ...

What is the best way for a programmer to learn most efficient and common way to write code?

Possible Duplicate: How to become a better programmer? As a programmer when you want to learn a programming language, you usually focus on syntax, language features, etc. but knowing languages syntax in not important; the most important thing is the way of coding. simply the Programming Logic. obviously it is experimental an...

Are the terms "URL" and "path" interchangeable?

If you think they are not, please give an example for a string that can be called "URL" and not "path" and one that can be called "path" and not "URL". ...

GENERAL: Programming Code Guidelines & Styles

I know that each programming language has certain guideline and styles. My question is about two languages that I write code in, that isn't very popular or documented. I know this topic is very broad, and everyone has their own unique way of doing things. What I would like is to hear advantage, disadvantages to certain styles. In orde...

What are functional and non functional parts of an application ?

I was asked this question in an interview. What are functional and non functional parts of an application ? ...

Front-end first or back-end?

Hi I have to do a small CMS application in MS ASP.NET using WebForms. I do everything on my own: front-end and back-end and Data Base schema. I know HTML and CSS quite well, but very little of .NET and SQL (I just finish study some books). Now that I want to develop the site, I wonder if I should start from front-end first, or back-end...

Best way to store availablility of employee

I am looking to add a component to our system (and build out the database tables) that will allow a user to set their availability with the following characteristics: Hours of the day (and day of the week) generally available Days during the month generally available Days specifically not available - could be a day of the week, recurri...

Stuck in .NET 2.0. How to start with 3.5 or 4.0 ..

I am just confused. There is sooooo much to start with LINQ, WCF, WPF, MVC, MVC2, Entity, Workflow.. .. 4.0 Books take too much time and energy. I can spare couple of hours a day. I did started with reading articles on WCF but after a while everything just goes away as I do practical work on 2.0 as of now. Most probably my next projec...

Validation: Beyond email addresses/Phone numbers

Several years ago I developed a website for a wholesale company that wanted to keep its online catalog (and wholesale pricing) private. Short of manually reviewing each submitted application, I was really stuck on how to accurately accomplish this. This has also come up in other web projects requiring registration to access certain "sli...

a question about try and catch

Hi all Suppose an error is occurred in an line. if it is then the control goes to catch statement. so the question is how the error-ed line(from try block) knows to go to catch statement.. this is not a c#/java/c++ question. How it works internally,how the line knows to go catch statement. thanks saj ...

example of b2b applications

what are some examples of b2b applications??? ...

How is time-based programming done?

I'm not really sure what the correct term is, but how are time-based programs like games and simulations made? I've just realized that I've only wrote programs that wait for input, then do something, and am amazed that I have no idea how I would write something like pong :) How would something like a flight simulator be coded? It obvi...

Applications to help programming/project manage

By applications I mean anything from Windows/Mac apps to web applications to iPhone applications - just anything that can generally help a programmer. I develop in ASP.NET and C#, and I'm still relatively new to both languages, so would like some applications to help, and also applications to help me manage my outstanding issues/bugs. D...

How to write a human language translator software that supports multiple languages?

Is it possible to do it by one person? The reason I ask is, would doing this require the programmer to know each language like his own mother tongue? Or is there someone else who designs how the conversion should occur from 1 language to another? Btw I am talking about languages like English, French, Russian, Italian, Chinese, etc. ...

Spatial organisation of a group of blocks on a grid

I have a grid of cells (empty at beginning), and a collection of blocks which are rectangles or squares whose size are a multiple of a cell (for example, a block might be 2 cells by 3 cells). I won't know all the blocks in advance, but will have to place them as they arrive. In case anyone's wondering, this has to do with placing a bunch...

When to use explicit string or from a constant string

In terms of strings I understand the need to have strings am going to reuse overname wrapped away somewhere in an XML file or configuration section for strings such as Company Name. The problem am having with this is where to draw the line on using configuratioh or locally expressed strings? What decides whether to have the string con...

OSGi like modularity in other programming languages

Is the concept of a strict modularity provided by OSGi frameworks in Java, available in any other programming language? I felt the concept of friend classes in C++ is somewhat similar, but it seems to be a much more granular control. I'm not sure if the friend concept can be applied at a namespace level. In other languages I have no ...