I've been searching for this topic on SO and it's quite a headache not finding one.
I had developed a website for some time already and found that the current problem is that after postback, if the submission has any error and the user is redirect back to the form, the form values are all gone.
Is there a good way/flow/design to implem...
I've seen lots of references to such studies, but can't find any links right now.
...
I have to store a set of related keywords inside a database. As of now, I am thinking of using the following:
To store the keywords themselves:
CREATE TABLE keywords(
id int(11) AUTO_INCREMENT PRIMARY KEY,
word VARCHAR(255)
);
To store the relations (stores the ids of the related keywords):
CREATE TABLE relatedkeywords(
id ...
Quick question: I have a very busy form going on that I have developed for information about say book records.
I want to design an 'add new book form' that is essentially a pop up to input the info. What is the best way to do this? Use a Usercontrol that is called on a button click or menu click? an entire new form?
Have seen this type...
When do we need to prove (with prototyping or any other kind of proof) that a design solution that we came up with is good before implementation?
Does it depend on how much the actual implementation would take in comparison to the proof of concept? Does it depend on whether there's any uncertainty about the effectiveness of the solution...
I've been involved in several projects which basically involved replacing an "old" system with a "new" system. Invariably, the pattern has been that practically no one on the team building the "new" system has any real knowledge of the "old" system. Whenever I questioned this, I've been told that this is purposeful... by not knowing th...
I'm working on a multi-process spider in Python. It should start scraping one page for links and work from there. Specifically, the top-level page contains a list of categories, the second-level pages events in those categories, and the final, third-level pages participants in the events. I can't predict how many categories, events or pa...
When working on fixed price software development projects, I frequently find myself having to estimate the total number of hours a project will take after the price is set, but before the work is started (or VERY early on in the development). Unfortunately, these types of projects are best developed using an iterative/agile method, whic...
I'm writing some C# bindings for the C library controlling the pulseaudio sound server, and I'm unsure how to idiomatically bind some potentially transient objects exposed: particularly sinks.
pulseaudio has the concept of an audio sink - the hardware a given audio stream is getting played to. This would naturally map to a Sink class, ...
In class library I am currently working on, I need to implement a mechanism in which class users will get hold of an item by operating on an Issuer class:
class Issuer {
public Item GetItem () {
return queue.Pop ();
}
}
//at some other place
var item = issuer.GetItem ();
//work on item and submit back to Issuer
How ca...
I've started looking into architecturing a javascript framework.
I don't want to reinvent the wheel here, especially regarding browser quirks, and know that for that matter, I'll have to rely, at some point, on some commonly-used libraries to handle low-level concerns.
The thing is, I'm not sure how i can depend on an external libr...
I'm having a difficult time finding any resources that describe good UI patterns for large search forms. I have a form that requires 20+ possible inputs and can't come up with a design I feel good about (although in my defense I'm no design expert). In my case I'm looking for a web solution, but I imagine a UI-patter for this scenario is...
Hello,
I've been developing a configuration system that would allow me to easily version and access config values across multiple destinations and I'm having sort of a design issue.
The problem goes something like this. I have a class lets call it FooConfig. This class is basically a data transfer object, all it has is properties. Now ...
Where I work, we've gone back and forth on this subject a number of times and are looking for a sanity check. Here's the question: Should Business Objects be data containers (more like DTOs) or should they also contain logic that can perform some functionality on that object.
Example - Take a customer object, it probably contains some...
Hello,
I am designing a web application in c# that mostly talks with the database. I have created a DTO for each table in the database. Now for each Table there is a custom table repository class that does all the saving and fetching pertaining to that particular table, and I'm using stored procedures for that.
The issue is now some sto...
I am creating a server that starts a thread (listening thread). This thread listens for connections and does it's thing. Eventually it may receive some data, that I want to pass to the creator of the server:
My program --> Creates my server --> Creates the listener --> Creates a thread for every client
Now the question is: if I assign ...
Are there any disadvantages to having first class functions in a language?
Joel in this entry says
"Object-oriented programming languages aren't completely convinced that you should be allowed to do anything with functions."
I might be naïve here, but why don’t all languages support first class functions if there aren’t much issues...
In our application, we structure different web applications by Servlet. There are many, many Servlets and Filters in our applications.
We already use different frameworks but not for this particular legacy web application. One issue is that one application/servlet is completely separate from another.
If you were to redesign your appl...
In C# 3.0 Microsoft introduced support for something called partial methods.
Do you use them? Can you describe how and why?
Do you consider the use of partial methods good programming practice, or not?
edit: Two people downvoted the question? I find that puzzling and amusing. Should I not be asking this?
...
I am sure there is a clever way to handle this, but I just can't get it right in my head. Here is the scenario:
I have a base class with about 30 properties. Say that I have a property on this class called Type. For a subset of the instances of this class, I want to add a few more properties based on the Type property. In this case...