Questions tagged [design-decisions]

general tips and guidelines for designing better applications, regarding APIs, Architecture and internal structures.

93 questions
1
vote
4 answers

Class Diagram with aggregation and generalization

I am working on a university project and i have the following problem i can not figure out. I have a class Called Employee from this i generalize two classes Contractor employee and Permanent Employee. Now i have a team that is made by both types…
GigaPr
  • 5,206
  • 15
  • 60
  • 77
1
vote
1 answer

Quiz Game - IF Statements & Possible Else If?

I am very new to this and was wondering if anyone could help me. I want the code to be able to stop asking questions after the answer is on certain questions. I get it to work on the first ones like the parrot and emu but I can't seem to add others.…
Ozzy
  • 39
  • 1
  • 3
1
vote
5 answers

What are the uses for Joomla?

I've taken over development for a site that was started to be built in Joomla. So far, there is just a few static pages and user registration. The specs state it will basically be a file-sharing website. The admin's (and only admin's) will add…
Matt McCormick
  • 13,041
  • 22
  • 75
  • 83
0
votes
3 answers

If we have @Override why is there not @Implementation or @Implements`?

I'm curious as to why we have the @Overrides annotation, but there is not a similar idiom for interfaces (such as @Implements or @Implementation). It seems like it'd be a useful feature, as you could require the interface you are implementing to be…
Scott
  • 9,458
  • 7
  • 54
  • 81
0
votes
2 answers

How to let Java library users choose between JSON parsing frameworks?

I am developing a Java library that can be used to call a certain web API that is using JSON data format to pass information. Said library will only contain data classes according to the data structure defined by the API spec. Code required to call…
Franz Wimmer
  • 1,477
  • 3
  • 20
  • 38
0
votes
0 answers

Why does FFmpeg encode by default?

By default the following unpresuming FFmpeg command: ffmpeg -i "input.mp4" "output.mkv" ...will lossily encode a file unless it has the -c copy flag added, which will then pass the video through without any encoding. I remember not realising this…
0
votes
1 answer

How to make a decision based on illumination and array input in Matlab?

I'm trying to complete a code that I started on. I have an .bmp image that I transferred into a thermal image. I also changed the orientation of the output into a r and theta from the central point of the picture. What I am trying to do is take in…
0
votes
1 answer

What kind of on-line / real-time applications have you deployed using R?

R can be very useful for prototyping and some exploratory work. However, I'd like to know what kind of on-line or real-time applications have you (the SO reader) successfully deployed using R and why did you choose R for that task. Questions: What…
Grega Kešpret
  • 11,827
  • 6
  • 39
  • 44
0
votes
1 answer

Making conditional decision based on objects in an Array

I currently have an object which contains an array of other objects { "id": 2247511687, "timeStamp": "2020-12-20T19:51:32.275Z", "children": [ { "id": 2662773967, "qualifierId": 33 }, { …
user3473406
  • 115
  • 1
  • 10
0
votes
1 answer

How can my class be provided some information about its environment?

Here's a code sample I wrote with encapsulation and composition in mind: class Bullet { private: Vector2 position; Vector2 speed; public: void move(float time_delta) { position += speed * time_delta; } }; Basically, there's just a…
passing_through
  • 1,778
  • 12
  • 24
0
votes
1 answer

How can a function ask its caller class to invoke one of its methods?

I'm in a situation like this: class Callee { public: void request(); }; class Caller { void call() { Callee{}.request(); } void invoke1(); // the implementation doesn't matter void invoke2(); // the implementation doesn't matter //…
passing_through
  • 1,778
  • 12
  • 24
0
votes
1 answer

How can I avoid including a class stored as a field in a data structure?

Let's say I have a class Squad with a dynamic array of Units. I'm looking for a way to avoid #includeing "Unit.h" into "Squad.h" and users of the latter. The global idea is avoiding #includes leading to other ones - a pretty annoying thing. I've…
0
votes
2 answers

Why doesn't my character sheet work with input() when trying to choose a race in a text based adventure? python3.x

So this is just the beginning of a long line of questions I know that I am going to have. In this text based adventure I would like to eventually have puzzles and multiple branching paths, factions you can eventually join, choice dialogue that…
0
votes
4 answers

EpiServer CMS 5 R2: Custom Page Providers - The right choice?

I'm using EpiServer CMS 5R2 on a new project. I've been tasked with creating a CustomPageProvider to link to an existing back end store which we don't have control of. However looking at the sample provider (XmlPageProvider) it appears that the…
Rob Stevenson-Leggett
  • 35,279
  • 21
  • 87
  • 141
0
votes
3 answers

chose .NET IoC container for a long living project

I find that when it comes to plain features the IoC containers out there for .NET are more or less interchangeable. Because our project has been and most likely will be alive for a very long time, we tend to pick one based on "future-proofness". We…
bitbonk
  • 48,890
  • 37
  • 186
  • 278