design

Dependency Injection Frameworks: How do they work?

I consider myself an experienced programmer and understand the basic concept of dependency injection. On the other hand, most of my experience is in writing relatively low-level, one-man number crunching code. I have no experience whatsoever working on large enterprise projects. Given this background, I can't for the life of me wrap m...

What is the best web based app for mocking up and editing designs?

We are looking for a tool where we can take screenshots easily and manipulate layouts, fonts, and add arrows and documentation to "change this" so that our dev team can implement our designs more easily. ...

Member pointers or reference arguments?

I have the following problem. I got a class PluginLoader which oversees loading of plugins. It divides sub-stages of work to other classes like Plugin. Plugin calls functions of PluginLoader in its processing. Let's call that function AddData. Here, PluginLoader has to check if the data it receives is duplicate. For that, it uses a Conf...

Cast-order for inherited classes?

I've got 3 classes: class Super { virtual int getType() { return 1; } } class Special : public class Super { virtual int getType() { return 2; } } class SpecialSpecial : public class Special { virtual int getType() { return 3; } } And I've got a function which takes an std::vector<Super*> as argument: void handleClasses...

Fixed width website the only real possibility?

When creating a web-site design, is the only real option to provide a fixed content width? I notice most major websites (this one included) center all the content into a fixed width, which ensures all elements look correct on all screen sizes. I think I already know the answer to this, but a colleague seems to think that there should n...

Compact Framework buttons image + label

Hi I am working on a C# .net app for windows mobile. Problem is, I am a web developer, this is the first ever for me to write code for a desktop app, and to make things worse, I even have to work using the CF. I have this problem: I need to use buttons (System.Windows.Forms.Button) but I don't know if I can use a nice picture for the b...

Class wrapper design question

I want to wrap part of the TinyXML library in some custom classes in my project because I only need some of its functionality and I do not wish to expose everything. I have a problem where my XMLDocument::AddNode(...) function is basically doing the same thing that my XMLNode class is meant for. I wondered if anyone could give me som...

Indicating Text Field is Autocomplete Capable

I've not seen anything but has anyone come across any kind of visual indicator that suggests a text field will autocomplete? Anything that is becoming standard/common? Also asked here ...

Common functionality recommendations for a small-business site

So a friend of mine has a small business, where he sells paper products, as well as custom posters, banners, and the like. He doesn't have a website, so he's hired me to create one for him, where users can place orders, check the status of their order, etc. Other than his requirements, I'm trying to come up with other common functionali...

How to remove unwanted functions from interface.

I have an interface class MyFunction. There are three functions in this class with the following signatures: virtual bool Eval(int& iReturnVal, size_t szArgumentCount, list<Param> lParameterList) = 0; virtual bool Eval(double& dReturnVal, size_t szArgumentCount, list<Param> lParameterList) = 0; virtual bool Eval(char*& zReturnVal, size_...

Good programmer must to be good designer?

I am a C++ programmer myself and trying to make the transition to being a designer. I was just wondering does being a programmer helps in being a good OO designer or just that one can learn OO principles and the design principles and become as good a designer. The question may sound lame or pretty much obvious but i have seen some pretty...

Qt Creator - How to write the UI?

Hi, I've just started working with Qt Creator and I want to write the UI. My question is: what is the best way to write it? By drag and drop from widget box or writing code? I've dragged some widgets and I saw that not all of build in QWidget like QIcon and QMultiLineEdit are in the widget box. How to add them? Thanks! ...

How to make website look same on all browsers?

Hi, I am designing my site on a mac. I used basic formatting and then when i want on to my pc, the wrapper width was too wide. My question is what can i do so that my website looks the same on all browsers/os? ...

Why people use message/event buses in their code?

I think that you have heard of message/event buses, it's the single place when all events in the system flow. Similar architectures are found in computer's motherboards and LAN networks. It's a good approach for motherboards and networks as it reduces the number of wires, but is it good for software development? We don't have such restri...

Init grid row height doesn't work

Hi, this is my simple try-it application that create a grid with 2 rows. The 1st row's height is bound to a properties. The value I assigned to it only works at run-time. I tried to make it also work when design-time but I failed to do that (I used this thread to write my app). Please help me to see what I miss. Thank you! [Edit] The ...

Is it proper TDD practice to design your model before you write tests, or write tests that design your model?

I am building a DDD system and we have all the requirements on paper for the system already set. There is a disagreement on how we go about building our domain model that I need an opinion on. My preference is to take the requirements and sketch out a basic domain model with the outline for the classes, their properties and behaviors a...

Tradeoff of creating collection on the fly or beforehand.

Whats the pro's and con's of creating a collection instance on the fly or beforehand, during initialisation for use later. I have a whole bundle of threads that each need to output a buffer which is enqueued on a priority or intervalheap queue. I was wondering if it would be more effecient in c# to create, a circular buffer of type X, ...

What´s is this hands font?

I wanna knw what´s is this hands font https://signup.37signals.com/images/products/basecamp/thanks.png thanks ...

I want an idea to design medal for programming in general

I want to design medal for programming in general , there is medal like but Visual Studio icon make the medal more specification , I want a general icon ... tell me about your brilliant ideas ...

Java Design/Architecture : How to access and popup other application interface from our Application ?

This question is more towards Design and Architecture and I want to know SO Readers think on my scenario. I have a requirement where in my Application should provide other application interface when the user logs in to my application. For example, lets say my application is www.gmail.com and other application is www.stackoverflow.com...