My question is not android specific. it is rather more design-specific.Previously I had a BaseFragment that many child fragments were derived from. base fragment had objects of mapbox map to handle ...
I have two classes: Student and Group.Student attributes:private String registrationNumber;private String firstName;private String lastName;private Date dateOfBirth;private String password;...
Our application is somewhat of a middleman that transforms data from numerous APIs. Initially to simplify things, we wrote a bunch of specific clients which wrap an instance of HttpClient created in ...
This question is about when to use and inject delegates vs intantiating objects. Say I want to model a card game, I might want to inject the behavior for building the deck and shuffling. Since these ...
I’m working on a NestJS + TypeORM backend and ran into an architectural question as my codebase evolved.Initially, I had a simple setup:InvestorProfileController handles PATCH /investor-profile...
When using setters/getters on arrays, does your set() override the entire array or just the key? What is the accepted or best practice for this?Would you use set() for something like this or would ...
Could you tell me how to write type-bound procedures for parameterized types?For example:module parameterstype :: sinx (kind) integer, kind :: kind=4 real(kind) :: xcontains procedure,...
I'm playing around with OOP in Python, and I have something like this:class Person: def __init__(self,name, age): self.name = name self.age = age self.hobbies = [] ...
I complete the implementation of a VM (ALU part) by adding operations to a Coprocessor. In this sense, I'm looking for a C++ design.Through a template, the VM is instantiated in 2 ways : A first ...
I want to write a method that converts a collection of generic type elements into a human-readable string. This method should also work with nested collections. I haven't found a better approach than ...
As a coding test I've been tasked with developing a toy three-layer architecture DBMS project, involving OOP principles. The three-layer stuff isn't strictly my background so I've been trying to study ...
An exception occurred while iterating over the results of a query for context type 'MyProject.Data.SQLServer.SQLServerContext'.System.InvalidOperationException: The required column 'img' was not ...
I'm trying to use a for loop to iterate through a set of objects, check if those objects store string data (specifically their 'Pokemon.evolution' variable) which is the same as a the name of one of ...