can (9,296)


c++ - Should I use nested classes in this case?

c++ - Should I use nested classes in this case?

I am working on a collection of classes used for video playback and recording. I have one main class which acts like the public interface, with methods like play(), stop(), pause(), record() etc... Th…


How can I modify.xfdl files?(Update#1)

The.XFDL file extension identifies XFDL Formatted Document files. These belong to the XML-based document and template formatting standard. This format is exactly like the XML file format however, co…



language agnostic - Pass by reference or pass by value?

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, argument…


Why can't I have abstract static methods in C#?

I've been working with providers a fair bit lately, and I came across an interesting situation where I wanted to have an abstract class that had an abstract static method. I read a few posts on the to…


unit testing - How do you mock a Sealed class?

Mocking sealed classes can be quite a pain. I currently favor an Adapter pattern to handle this, but something about just keeps feels weird. So, What is the best way you mock sealed classes? Java answ…


asp.net - Is there some way of recycling a Crystal Reports dataset?

I'm trying to write a Crystal Report which has totals grouped in a different way to the main report. The only way I've been able to do this so far is to use a subreport for the totals, but it means h…


Oracle XE or SQL Server Express

I'm starting a new project here(Windows Forms). What's the best option today for a small(free as in beer) DBMS? I've used SQL Server Express on the past projects, but time and time again I hear peo…


html - How can you customize the numbers in an ordered list?

How can I left-align the numbers in an ordered list? 1. an item// skip some items for brevity 9. another item 10. notice the 1 is under the 9, and the item contents also line up Change the character a…


c# - Returning DataTables in WCF/.NET

I have a WCF service from which I want to return a DataTable. I know that this is often a highly-debated topic, as far as whether or not returning DataTables is a good practice. Let's put that aside f…


How much of your work day is spent coding?

I've been thinking about software estimation lately, and I have a bunch of questions around time spent coding. I'm curious to hear from people who have had at least a couple years of experience devel…




how not the java with for and from you example