FAQ Database Discussion Community


Why doesn't JavaScript get its own thread in common browsers?

javascript,browser,architecture,software-design
Not enough that JavaScript isn't multithreaded, apparently JavaScript doesn't even get its own but shares a thread with a load of other stuff. Even in most modern browsers JavaScript is typically in the same queue as painting, updating styles, and handling user actions. Why is that? From my experience an...

Java Interface Design - Helper Methods

java,software-design
I have an interface like so public interface Manager { public void manage(); } Now, all Managers will need to load work to manage, however, I have mixed feelings about adding public void loadWork() to the interface... On one hand, all Managers will do this, but on the other hand,...

C#/.NET console applications that behave like normal Unix tools

c#,windows,unix,software-design
This question is regarding designing console applications in .NET that behave like normal Unix tools. The basic fundamental of Unix tools is that they can be chained together with 1 tool being able to take input from any compatible stream and giving output to any compatible stream. If I'm writing...

Tracking unsaved changes in Java Swing application

java,swing,model-view-controller,software-design
My question What would be a good way for notifying the "top-level" model (the one that represents the whole application, but without knowing the details of every "child" model it is composed of) whenever any little change has happened to any of the "child" models? Context for the question I'm...

Activity Diagram for Game Functions/Interaction

design-patterns,uml,diagram,software-design,activity-diagram
I am creating an activity diagram for a game, although I am not sure if I am using the correct diagram. Is this the correct diagram to represent the functions of the game? Functions: The aim of the game is for the character to move around the screen to collect...

design issue when too many derived classes are needed

entity-framework,inheritance,design-patterns,software-design,derived-class
I am trying to build a badge system that is similar to StackOverflow in my entity-framework code-first application. I will have around 10 badges in total and each type of badge has its own properties. I am thinking to have base class Badge and derive the other classes from the...

Is it possible to use my PC's fingerprint in C#?

testing,arduino,software-design,fingerprint,biometrics
I am developing a software which needs a fingerprint ID to get access or login. Meanwhile, I can't work with Arduino and fingerprint sensors, because There is no mushc time ahead. I am thinking about using the integrated-Fingerfrint of my laptop to get Finger's ID. Is it possible to do...

What's the recommended way to load an object graph from Data Access Layer?

c#,architecture,domain-driven-design,data-access-layer,software-design
From a relatively old software architecture book: In other situations, the same conceptual Get-Orders query might generate different data—for example, a collection of Order objects plus order items information. What should you do? Should you expose two slightly different GetOrders methods out of your DAL? And what if, depending on...

Can association lines be merged in one line in UML?

uml,software-design,class-diagram,relationships
Is it in accordance with the UML standard to merge a few association lines into one line, like on the attached diagram? ...

Can I use final nodes in activity diagrams to end a use case?

client-server,software-design,activity-diagram
I'm working on several activity diagrams wich describes different use cases about a client-server application. Can final nodes be used to specify the end of a use case and not of a process? For example at the end of the login use case both server and client don't end but...

C# Code design / Seperate classes for each TabControl

c#,oop,architecture,software-design,code-design
My main problem is that my tool grows and grows and I start loosing the focus on the different parts of my code. The main-Form got a docked tabControl at fullsize. I got 5 different tabs with for really different functions. So I can say my tool is splitted into...

Is it right extend an user controller in another user controller in MVC?

php,model-view-controller,software-engineering,software-design
I am in a situation where i am thinking in extend an user controller to eliminate code replication, but i am not sure if this can broke some MVC rule and if it is a good practice. To ilustrate, below is an code example. class MyController extends CoreController { public...

confused in development process, How to put in pratice all that? [closed]

software-engineering,software-design,extreme-programming,rational-unified-process
I've been having a hard time putting into practice the software development processes that have studied, read several books as: 'UML and UP' 'Head First Software Development' 'Head First Object Oriented Analysis and Design' among others. The one that got close for my understanding was Head First Software Development that...

V-model with graphviz

graphviz,software-design
I have the job to draw a V-Modell for software development. I want to use graphviz to keep it more maintainable then in Visio. How can I get the typicall V-structure into graphviz. I think I nee horizontal and vertical allingment. I also tried to work with dummy-nodes but the...

In abstract factory pattern the main abstract factory class, Does it always have to be an abstract class?

oop,design-patterns,software-design
All the example i see of Abstract factory Pattern They use an abstract class to give the Abstraction for factories. Is it always required to use abstract class? Given the circumstances we can happily use Interface. If we use interface does it going to violate the Design principle? Example I...

How to measure redundancy in code bases?

architecture,software-engineering,software-design,redundancy,entropy
I inherited a medium-sized code base, whose only programming paradigm appears to have been Copy&Paste. There are literally dozens of code snippets that could be easily parametrized and replaced by a simple function call. The code isn't mission-critical, as it's "only" testing code. Nevertheless this makes it a pain to...