software-design

Most elegant way to access UINavigationController from pushed controllers

Say I have NavigationController->Root[Table View Controller subclass] So from didSelectRowAtIndexPath of my Table View Controller subclass I have to push another view controller to NavigationController. What is the most elegant way to access NavigationController? Should I use have delegate of NavigationController in my Table View Contro...

Passing managedObjectContext along to view/controller hierarchy

Managed object context in most cases created in application delegate. What are the ways of passing it along to view/controller hierarchy, so every navigation/tab controller in the tree can have access to it. Passing it every time from parent to child may not be the best since I have to carry this information every time and sometimes not ...

Good Data Structure for Unit Conversion?

Hello, StackOverflow crowd. I have a very open-ended software design question. I've been looking for an elagant solution to this for a while and I was wondering if anyone here had some brilliant insight into the problem. Consider this to be like a data structures puzzle. What I am trying to do is to create a unit converter that is cap...

The principles of beautiful web design vs Desktop software design

I'm about to embark on my first attempt at Desktop Software Design and I wanted to know any similarities behind the core principles of Web design that i can take with me or differences or books or articles etc? Any help greatly appreciated. ...

Passing DTOs around in the domain model

I see DTO types being created within and passed between types in the domain model. Is this good practise? I always thought DTOs were to be used principally at context boundaries (i.e. at the edge of the object graph) to decouple context implementations (e.g. at the domain / ui boundary). ...

What is the architecture of a social networking program?

For instance, when Mark Zuckerberg says in an interview that he wrote Facebook in 2 weeks, what exactly (or at least approximately) did he write? I imagine "user" objects in a big database or tree with the ability to negotiate links to other user objects, but I'm wondering how the overarching manager of the tree works. When a user log in...

Error handling: show error message or not?

Generally, in software design, which of the options below is preferred when there is a problem or error with a resource such as a database or file? Show an error message Do not show an error message and act as though the resource was empty (eg. do not populate a GUI component)] For example, should the user see an empty DataGrid follo...

Why we use same word "Design" for designing class diagrams and designing UI elements?

I noted that we use design for design software, design class diagrams, design, ... I also know we use design for UI design. Why we use same word for two different purposes? Is there a way to distinguish between them? tnks ...

Utility classes are evil?

I saw this thread http://stackoverflow.com/questions/3339929/if-a-utilities-class-is-evil-where-do-i-put-my-generic-code and thought why are utility classes evil? edit -- here is a specific example that might be instructive. Lets say I have a domain model that is dozens of classes deep. I need to be able to xml-ify instances. Do...

How to organise the file structure of my already working plugin system?

I am working on a project whose main design guiding principle is extensibility. I implemented a plugin system by defining a metaclass that register - with a class method - the class name of any plugin that gets loaded (each type of plugin inherit from a specific class defined in the core code, as there are different types of plugins in ...

Server architecture for a geosocial app?

I'm interested in getting some ideas and suggestions for a server architecture for a real time geosocial app. One that tracks at the very least user locations live. Are there any stacks that favour this kind of information? Java Servlets? Darkstar/RedDwarf? Others that I'm maybe not aware of? Live connections to clients and the abi...

Looking for a good method of extending external data with an internal database table

I have an application that receives most of its data from a third party. One of these sets of data is a transaction list. I can't write to this service, but I want to add more information to that data for use in my own application. I intend to do that with a SQL table with extended info. The problem is that the third-party data does ...

Ressources for learning software design using uml

I would some ressources for learning software design using uml (Case study, books) ...

Dependency injection OR configuration object?

I have the following constructor for my Class public MyClass(File f1, File f2, File f3, Class1 c1, Class2 c2, Class3 c3) { .......... } As can be seen, it has 6 parameters. On seeing this code, one of my seniors said that instead of passing 6 parameters I should rather pass a configuration object. I wrote the code this way because ...

ACL's Permissions and Business Logic

I would like to know where people draw the boundary between assigning permissions to a user in a muliti user appliction and the business logic. For example if a user can have permission to access a number of cars do you assign these permissions directly through the user class by adding them to a collection of car objects on the user o...

How does an application like Wireshark work?

Im am wondering how wireshark functions. What would be the design of an application that could listen to the traffic on all ports of a given machine? What is the kind of overheard that such an application generates? What would be a good way to go about writing an app that monitors traffic? Thanks ...

What's the difference between Architectural Patterns and Architectural Styles?

In Software Architecture - Foundations, Theory and Practice, I can find definitions for both. The problem is that I don't get what each one of them means in plain english: Architectural Pattern. An Architectural Pattern is a named collection of architectural design decisions that are applicable to a recurring design problem pa...

need help in choosing the right tool

Hi, I have a client who has set-up a testing environment in some AI language. It basically runs some predefined test cases and stores the results in as log files (comma separated txt files). My job is to identify and suggest a reporting system and I have these options in mind. either 1. Importing the logs into MSSQL and use the reportin...

Designing a flexible and extensible bonus system for a Scrabble's game implementation

Let's say I'm implementing my own version of Scrabble. I currently have a Board class that contains lots of Squares. A Square in turn is composed of a IBonus and a Piece. The bonus implementations are actually the usual bonus for Scrabble, but it is possible that I might try to add some new and twisted bonus to spice the game -- flexibil...

Twitter-like app using MongoDB

I'm making an app that uses the classic "follow" mechanism (the one used by Twitter and a lot of other apps around the web). I'm using MongoDB. My system has a difference, though: an user can follow groups of users. That means that if you follow a group, you'll automatically follow all the users who are members of that group. Of course ...