Skip to main content

Questions tagged [hierarchy]

Filter by
Sorted by
Tagged with
0 votes
1 answer
113 views

I have a (php) program, which must change yearly. This program calculates tax for every year and there are sometime changes in requirements. First, the user fills their incomes, expenses, etc. Then ...
nrob's user avatar
  • 111
2 votes
1 answer
1k views

I'm new to MVVM but experienced in OOP. I have an easy solution to my problem, but I'm not sure if it violates MVVM or OOP or if it is a good practice. I have a set of ViewModel classes in my WPF ...
Marvin's user avatar
  • 222
3 votes
1 answer
1k views

I'm making my 1st official project. It's written in Python, is open-sources, and I'd like people to be able to freely and easily fork and modify the code. The project name is "shelf" and the ...
ChocolateOverflow's user avatar
3 votes
1 answer
2k views

I am designing a system that contains organizational hierarchy management. There are four roles in the system which are the user, admin, manager and head of procurement: I am trying to let the ...
Abdulaziz Yesuf's user avatar
1 vote
1 answer
944 views

1 We are trying to redesign a database that currently holds thousands of parameters for different datatypes and currently has a flat data structure. We generate XML files from the database, which ...
WebbyLass's user avatar
-2 votes
3 answers
656 views

I've been doing some studying on the types of inheritance. From what I've learned: Single inheritance refers to when a class inherits another class. Multi-level inheritance refers to when a class ...
SameOldNick's user avatar
1 vote
1 answer
98 views

I'm working on a CMake module which, at some point, invokes try_run(). The file I'm compiling is not really part of the project's sources - it's not used anywhere. It's only ever useful for CMake, to ...
einpoklum's user avatar
  • 2,808
0 votes
1 answer
130 views

I would like to express a task as either itself or a container for other tasks (recursively). The problem is that each task has to be one of two fundamental types: a goal or a routine. And, children ...
clabe45's user avatar
  • 103
9 votes
3 answers
14k views

I am developing a large software project using DDD (Domain-Driven Design). I have an entity that acts as an aggregate root, let's call it Root. This entity refers to a collection of child entities of ...
Subsurf's user avatar
  • 241
98 votes
12 answers
17k views

junior developer here. I am currently working alone on a web application for a big client of my company. I started last month. The client wants at least 25% of comments in each of its software ...
Robin_'s user avatar
  • 553
1 vote
2 answers
186 views

I need to implement a class hierarchy and be able to implement it in multiple ways. I want to create a logical representation of a query language, and then be able to parse it to/from different ...
matanper's user avatar
  • 111
2 votes
2 answers
1k views

Setting Let's take the following example: We have a series of entertaining events on the television with each lasting only an hour and this goes on for 3 weeks. We want to create a simple App that ...
oneManArmin's user avatar
1 vote
2 answers
2k views

I am building a personal app to store my notes in. It is not a new concept, of course, but it is giving me a great project to learn Node.JS together with trying out a graph database: Neo4j. What I am ...
PIDZB's user avatar
  • 253
3 votes
4 answers
139 views

So I'm building a card game where each card has cost, damage, and durability, as well as name and description. Obviously one would think of creating a Card class: class Card { int cost int ...
Mahi's user avatar
  • 406
0 votes
1 answer
83 views

I'm writing a trading framework in MQL and I'm confused how I should organise my class hierarchy. |-- Terminal (Log) | |-- Market | | |-- Chart | | | |-- Draw | |-- Account | | | |...
kenorb's user avatar
  • 137
1 vote
0 answers
108 views

GitHub has: pull requests pull request reviews pull request review comments BitBucket has only: pull requests pull request comments So there are three kinds of objects. I write code ...
porton's user avatar
  • 791
1 vote
0 answers
147 views

If I have "Object" as the top level class, then I have various interfaces, ISomething, ISomethingB, ISomethingC, then I have Class x,y,z, all ultimately deriving from the class Object (these ...
johnny's user avatar
  • 3,679
0 votes
2 answers
1k views

I have a table Company and User like below... Company Table: CompanyID CompanyName etc... User Table: UserID Email UserType CompanyID etc... First I must tell you that, currently ...
Krishnandu Sarkar's user avatar
1 vote
1 answer
3k views

I'm currently writing a web application for our small company which was originally just planned to organize appointments more efficiently by displaying our customer structure and automatically plan ...
Broco's user avatar
  • 81
3 votes
1 answer
2k views

I have a profile resource. Profiles can have a parent and an arbitrary number of child profiles. What's the best way to model this in a RESTful scenario? I thought of a number of different solutions,...
Andrea Casaccia's user avatar
0 votes
1 answer
107 views

I am not sure how to phrase this. I believe this should have been asked somewhere, but I am unable to find it because I don't know the keywords. Basically, I have some types like this: interface Foo ...
SOFe's user avatar
  • 728
2 votes
1 answer
1k views

Say you have the hierarchical storage concept of "Foo." "Foo" holds an id, various values, and zero to many "Foo." Obviously, in turn, the child elements can hold zero to many Foos. The data is purely ...
Ranger's user avatar
  • 148
1 vote
3 answers
924 views

Recently I've been wanting to experiment with NoSQL databases, especially document store ones. After reading, I still don't understand how one might model information that is contained in a relational ...
q3d's user avatar
  • 119
1 vote
1 answer
67 views

I'm looking for a language agnostic approach for the following. We are prototyping this in both relational and graph DBs, so, again I'm open to hearing all opinions with respect to those. Here is ...
Joe Essey's user avatar
  • 211
6 votes
3 answers
357 views

Several of our customers have come to us with an interesting problem that involves adjusting data that occurred in the past which is rolled up and reported based on an org hierarchy. For example: If ...
Vyrotek's user avatar
  • 161
-1 votes
2 answers
236 views

Background Construction Note that I am using C# here, but it may not be necessary to provide input to my conceptual questions about design. Consider the following design methodology... I work at a ...
Snoop's user avatar
  • 2,758
6 votes
3 answers
601 views

Say I have an array of strings, like this: var folders = new[] { "Foo", "Bar", "Foo\Bar" "Foo\Bar\Baz" }; And that I have an object that represents a folder - something like this: ...
Mathieu Guindon's user avatar
16 votes
5 answers
872 views

Background Here's the actual problem I'm working on: I want a way to represent cards in the card game Magic: The Gathering. Most cards in the game are normal-looking cards, but some of them are ...
codebreaker's user avatar
  • 1,764
0 votes
3 answers
2k views

Let's say I've got a generic java class Filter<InputType, OutputType> which receives an input object and transforms it to an output object. Now I've got two other classes (NoInputFilter<...
Obenland's user avatar
  • 201
4 votes
3 answers
3k views

So I am making a Super Mario Bros NES clone in pygame and for all enemies that are drawn to the window, I have a class hierarchy that is 5 classes deep. Going in the order of: Object (A base class for ...
Robbie's user avatar
  • 222
6 votes
1 answer
1k views

Say you normally have FooException. /** * @throw FooException If Foo is invalid for searching. */ public bool exists(Foo a) But at some point you need to have two more specific exceptions for Foo. ...
Wes's user avatar
  • 872
0 votes
1 answer
126 views

I have this software package which installs itself to /usr/local/mypackge, with a bunch of subdirs. In bin/ I have linked code, as ELF executables, in /share/doc I have documents, etc. Now suppose I'...
einpoklum's user avatar
  • 2,808
9 votes
1 answer
3k views

Some background: A colleague and myself have different interpretations of MVC which means, given the same problem, we are coming up with radically different solutions. He comes from a Java background ...
kvanbere's user avatar
  • 195
6 votes
3 answers
3k views

I'm trying to learn how to produce quality object-oriented code and have been studying concepts like SOLID. I'm currently working on an entity-component-process system for a small game engine. ...
Shane's user avatar
  • 175
0 votes
0 answers
117 views

I have a Java library, quite a huge one. I'm asking regarding Best Practices of structuring the source. For example, the logging sybsystem: Option 1: All in one package, named to sort nicely Log - ...
MightyPork's user avatar
0 votes
2 answers
1k views

I'd like to validate I'm not in the wrong way. My team project is using Visual Studio Scrum 2.x. Since each area/product has a lot of kind of requirements (security, user interface, HTTP/REST ...
Matías Fidemraizer's user avatar
2 votes
2 answers
1k views

Whilst I have good experience with OOP, I'm fairly new to the concept of (H)MVC. I understand the basic concept of modular design that comes with HMVC, it's the great attraction of it. But one thing ...
Styphon's user avatar
  • 194
6 votes
2 answers
1k views

I'm working on visualizing a hierarchy. There will be clusters of objects, each cluster containing rectangles of fixed width but variable height. I'd like to arrange these within a rectangular space ...
user avatar
4 votes
2 answers
237 views

Pretty simple question. Should package structure closely resemble class hierarchy? If so, how closely? Why or why not? For instance, let's say you've got class A and class B, plus class AFactory ...
Panzercrisis's user avatar
  • 3,223
-1 votes
1 answer
204 views

Why is it that diff programs work on a line-by-line basis instead of a hierarchal one? All code can be expressed in a hierarchy, even though it's not immediately apparent. Most of the data we work ...
Brad's user avatar
  • 107
1 vote
2 answers
950 views

I'm wondering how to set up the organization with Scrum Masters. I would prefer to see real examples of where the scrum masters are located in the organization's hierarchy and how report-to / chain-of-...
user84305's user avatar
3 votes
1 answer
2k views

Doing some reading on Stack Overflow, I've found a lot of information suggesting that proper organization of a file system is crucial to a well-written web app. One of the key pieces of evidence is ...
Wolfpack'08's user avatar
5 votes
1 answer
318 views

We currently have an application that allows users to create a Contract. A contract can have 1 or more Project. A project can have 0 or more sub-projects (which can have their own sub-projects, and so ...
Thelonias's user avatar
  • 153
13 votes
3 answers
3k views

I have two client types, an "Observer"-type and a "Subject"-type. They're both associated with a hierarchy of groups. The Observer will receive (calendar) data from the groups it is associated with ...
Aske B.'s user avatar
  • 239
1 vote
1 answer
512 views

I understand that the hierarchy, in cppcms for templates, goes skin (topmost, representing a namespace), then view (representing a class) and finally template (representing a function). I want to ...
Will03uk's user avatar
  • 443
1 vote
1 answer
75 views

I want to model a Thesaurus using the ANSI/NISO standard relation description like "broader term", "narrow term", etc. (see this Wikipedia article for details). Is it valid for a Thesaurus item in ...
blerontin's user avatar
  • 113
6 votes
2 answers
1k views

Our library extends another (third-party) library. When we create a child class in our library, and want to throw exceptions, should those exceptions extend the exceptions from the parent class or ...
cmbuckley's user avatar
  • 162
3 votes
1 answer
387 views

I have entered into an existing project that is all about maintaining nested data structures. You have companies which are assigend to accounts, and contacts and notes and... basically the usual bunch ...
Frank N's user avatar
  • 131
2 votes
3 answers
637 views

Most of my projects start small. Many times I start with a web page (1 file) that has the code to... select stuff from the database => display it to the user and offer editing => receive the edits (...
Mikhail's user avatar
  • 367
2 votes
4 answers
310 views

There's an approach to organising information that says that hierarchy is a tool of the devil, or at least is overrated. I've embraced this understanding for a data-driven site I'm working on which ...
iftheshoefritz's user avatar