design

Stateless Blocking Server Design

Hello Ladies and Gents, A little help please. I am designing a stateless server that will have the following functionality: Client submits a job to the server. Client is blocked while the server tries to perform the job. The server will spawn one or multiple threads to perform the job. The job either finishes, times out or fails. The...

Why do i need to wrap this code in a cast to short?

If i have some code like the following: short myShortA = 54; short myShortB = 12; short myShortC = (short)(myShortA - myShortB); Both operands are shorts and it's going into a short so why do i have to cast it? ...

Should software be designed with performance in mind?

Is it advisable to zero-in on design of a component or architecture of a software with performance in mind? What I mean is, how ready should the design/architecture be to used in a performance-intensive environment? While designing components, should we just follow good OO principles and just ensure that the component is 'extendable'. T...

I know how to program. Now how do I learn to design?

Hi, I'm a community college student graduating this year. Over the last couple of years I learned HTML, CSS, VB.NET, C#, PHP, and to a lesser extent some other languages. I have no problems whatsoever with assignments given in class. In fact, I always get A's and I'm never challenged. But when I to go ahead and try to write something big...

Embedded programming books

What embedded programming/design books would you suggest? With embedded I mean near to hardware programming in ASM and C/C++. I'm looking something related to best practices in embedded programming/design. Operation system could be Linux, Real Time Linux or any other RTOS. ...

designing a portable app with local lightweight database that sync with a central server

how do you go about designing an application that allows the sales team to have a local copy of the information and then sync with the server whenever they are connected back into the office network? how do you deal with edit conflicts while syncing ? ...

Core data, file downloads, and thread-safety

What's the preferred approach for constantly sharing data across threads when using Core Data? I am downloading a large file and want to show progress of the download in a UIProgressBar. The actual download is happening in a background thread created by NSOperation. The download information (local path, total bytes, bytes received) is ...

What are good and bad things in the design of the Linux kernel?

I am not a master of the kernel code, but have some basic idea of its code structure. In this post we can discuss what are the good and bad things in the design of the kernel. Update: No, this is not for homework. I would have mentioned that if that was the case. See this: http://stackoverflow.com/questions/1548442/i-know-how-to-progra...

Learn to design a website user-interface

Hi, I wanted to design a website where I need to develop menus, login screens, Center Header Frame, and some frames such as which are used in the website "http://www.lynda.com/" Kindly share some experiences of yours as to how can I design such a web user-interfaces. I am a programmer which have experience in Java+C+Database etc. So, k...

Are the MS MVC framework and jQuery suitable for a long-lived application?

I'm working on a web-based application that is intended to have at least a 6 year lifetime. Once the application is delivered, chances are that it won't be modified during that time frame. We're considering using the asp.net MVC framework and jQuery, but I'm wondering if that's a good choice. The customer is probably not going to want...

What is the best way to layout/design a long complex web form to collect user input.

I need to design a web form which landlords can use to add rental listings. There are 8 mandatory text boxes and 2 optional text boxes, 11 drop-down lists, 12 checkboxes and one large text area. Any suggestions about how to arrange them in a way that is clean, and uncluttered? My concern is, if the form looks lengthy, they may not want t...

What is a good way to assign a model object to a symbol after saving it?

How do I return the object after a model save like: Message.new(:receiver => receiver, :sender => self, :subject => subject, :body => body).save I understand I could probably do a Message.last But will there be any implications during a high traffic time period where the database is constantly being access...

I need a good programming discussion board.. (Systems Design) : Edited

I'm needing to run some ideas by others dealing with systems design. I doubt stackoverflow.com is the place to have the conversation(s). Is there a good and active discussion board for systems design out there? EDIT : Ok, here we go, If you had to design a file processing component/system, that could take in a wide variety of file ...

Caching architecture for search results in an ASP.NET application

What is a good design for caching the results of an expensive search in an ASP.NET system? Any ideas would be welcomed ... particularly those that don't require inventing a complex infrastructure of our own. Here are some general requirements related to the problem: Each search result can produce include from zero to several hundred ...

How do you start the Framework Architect career?

I am a C# programmer, but like to crete/invent/architect things. Since I am in the technology industry I am sure I would like to architect new programing languages, frameworks or languages. Can you advise me on the correct steps to enter this field? My dream would be to work with teams who architect SQL Server or other databases, or .NET...

What can I do to handle bad behavior from users on a website?

I am working on a project with a group, and we are making an experimental site that involves heavy user interaction. In a nutshell, the nature of the site involves heavy user posting and commenting. Based on the theme of our site, we are expecting to get controversial posts and most likely offensive material. My question is what algori...

how to create horizontal spinner+timer like this?

is it possible to create a design something like this? any help regarding this would be very helpful for me.the functionality i want is to rotate the wheel left-to-right or right to left for selecting time...yellow is selection color and red is shows the remaining time when countdown is running ...

Help with Supertype/Subtype? (and categories..)

I have a service table. Each service is defined by 1 main category and 1 sub category. For example, Service = Joe's Web Company, MainCategory = Information Technology, SubCategory = Web Development Each service offered will have a common set of properties (cost, location etc) Each service will also have a set of attributes specific...

What's the recommended way of designing my public-facing API to support multiple POD types while minimizing the chance of breaking binary compatibility?

I'm currently designing a public-facing C++ API for a product which will require a precompiled binary/DLL (it will be cross-platform). I'd like for the API to allow the user to use any POD we support (where applicable), however the base requirements are maximum flexibility and binary compatibility. I'm doing something a bit similar to CP...

Where to store system values

This seems like it'd be a common question, but I cannot find it. Perhaps "system value" is the wrong phrase. Anyway, by "system value" I mean the built-in values that a system has for a given concept. For example, if I have a list of categories (e.g., mexican, american, italian, etc...) where would you store them? Would you hard-code...