0
votes
0answers
4 views

Proper Architectural Structure to Parse files and import to database

After reading this, what is the proper architectural structure to parse files and write into a database? https://www.codeproject.com/Tips/806934/How-to-Return-the-Contents-of-a-CSV-file-as-a-Gene How ...
0
votes
0answers
7 views

How should I store multiple, related models when configuration control is required?

My problem: I plan to store a "project" in a database, where a project is composed of multiple items e.g. documents, and each document has multiple items e.g. paragraphs. Paragraphs may cross-...
-1
votes
0answers
20 views

How long should it take to create a 20 field web service using C# Web API Entity Framework

Basically I'm contracting out some work and I asked the contractor to build a simple asp.net WebAPI 2 project to connect to a single table in a database using Entity Framework. This table has no ...
0
votes
1answer
53 views

Naming conventions for pure functions

Are there 'conventions' / best practices on naming pure functions? For example: adding numbers: add or sum? calculating the square root: calcSqrt or sqrt? reversing a list: reverse or reversed? ...
-1
votes
0answers
15 views

Want to change my batch code into a fully fledged program

So I've forked a project from Github here -> https://github.com/Defirence/CSGO-Ping-Tester and I want to find out if there's any way to "convert" this code into say a program, I did try and mess ...
0
votes
2answers
22 views

C# Namespace Ordering Coding Convention

Is there a general coding convention in ordering namespaces? Is it always order of importance, or alphabetical? Currently I order by main important ones first. I know it does not affect program, just ...
-1
votes
0answers
21 views

Re-purposing a text editor for non-coding use

So by day I work in healthcare and by night I code. When I am at work I can't help but think how much time a functional text editor should help my job. I am constantly writing documentation that has ...
3
votes
0answers
32 views

Design point for product search and auto-complete using Elastic search?

I need to implement product search using Elastic search similar to it is done on any scalable ecommerce site.I am planning below algorithm for this Whenever product is added to system, First add it ...
-1
votes
1answer
40 views

How to minimize multilayer coupling of features? [on hold]

Web-application architecture is something usual: front-end (JavaScript, HTML) in the browser, Flask views, actions ("scripts", that query/act on models), models (using ORM), SQL database Now, ...
-1
votes
2answers
78 views

How a standard video file is structured under the hood

I am new to looking into video file formats, and am wondering what it would take to parse one. To do that, I first would need to understand what the format looks like, so that's what this question is ...
-1
votes
0answers
14 views

AttributeError: 'AddLocationForm' object has no attribute 'found_location'

i am working now with a kivy weather app project. i am using kivy version: 1.9.1 and python version:2.7. when i am running my code i get the error: AttributeError:'AddLocationForm' ...
0
votes
0answers
46 views

I need Auto-incremental like key but how?

I have a business specific pattern for storing their IDs. It's in the format of yy-mm-autoincrement. I could just store date and incremental id but there's another problem. It should be restarted ...
1
vote
0answers
47 views

The programming paradigm behind beginFill/endFill

The only place I have really noticed this sort of programming style is with the graphics engines. Essentially like this: graphics.clear() graphics.setStrokeStyle(myStrokeWidth) graphics.beginStroke(...
1
vote
1answer
19 views

DDD Application Service Architecture Question

I often run into this decision making scenario of where to call a Domain (or Application Service) when building my Domain Models. Maybe the confusion is in identifying whether this is a Domain service ...
1
vote
0answers
27 views

Microservices loose coupling using distributed business logic or centralized?

How do we achieve loose coupling in the below scenario: N microservices (let's call them Callers) needs a logic or business( let's call it Worker) to be executed with different contracts. Although ...
-1
votes
0answers
29 views

Should entity properties be represented by a value object?

I read somewhere that one should be generous in creating value objects for entity properties that are part of the class API. So I did that with my project entity/aggregate, but it still looks weird: ...
-2
votes
1answer
36 views

Relational Database Design with a table having redundant information

I am creating a database table that will store a single number 1 thru 16 in 2 fields (there will be many rows of data). I'm trying to avoid duplicating a lot of data and make my dbase most ...
-1
votes
0answers
21 views

How do I correctly separate the code that does three things and when to use events?

I have in controller: (pseudo code) public class MainController { public void accept(RequestData requestData) { Ticket ticket = this.generateTicket(); DB db = this....
1
vote
1answer
20 views

Abstraction for Account transactions and balance

We have 10 applications which updates account balance table, without logging credit/debit line transactions (not sure why). They all have the pretty much same SQL Statement. In order to get out of ...
1
vote
1answer
14 views

Web Crawling Form Help Needed [on hold]

If I have a form built on my website. How can I get that form 1 to plugin results into another websites form 2 and extract information to display on my website? For example, if I wanted to create a ...
0
votes
1answer
23 views

Function for processing files: Business Layer, Service Layer, or anything else?

I read that Repositories should not refer to other repositories. I have a method ProcessFile that refers to multiple repositories, it parses a file, and inserts into many table models in different ...
1
vote
1answer
25 views

DDD - Aggregate Root get reference to another Aggregate Root

I have 3 ARs: Student Guardian Business Rule: Student should have at least 1 authorized Guardian Entities should not be in an invalid state right? Right now I enforced the invariant in my Student ...
0
votes
1answer
45 views

Would you implement an interface to connect to a database?

I found in a book (Learning PHP Design Patterns, Chapter 2, page 25) a text explaining the importance of interfaces in OOP design. The author ended up by giving this example: <?php interface ...
3
votes
1answer
50 views

What is the origin of “deployment environments” (dev/test/staging/prod)?

When reading about software deployment/release, I see many references to an idea that Wikipedia calls "deployment environments". The deployment environments of Development, Test, Acceptance and ...
-3
votes
0answers
21 views

Contents of a web application

Currently I am working on a research of web application migration. So I need to clear my mind about the contents of a web application. I want to know whether a dynamic web application can have both ...
-4
votes
0answers
25 views

What Julia methods can be used for communication between Julia and a .NET app?

I've got a .NET windows app, which needs to communicate with a Julia app on the same Windows 10 computer. Real-time data from USB-2 flows into .NET app and is de-framed. To get this data to Julia, I'...
3
votes
1answer
44 views

Auto-Initializable Objects Pattern

I'm working on a system where we consistently apply "patterns" or approaches such as Dependency Injection. I'd rather not expose the current underlying technology as not to get biased solutions, ...
-1
votes
0answers
16 views

Express downloading file process in Sequence Diagram

I'm trying to make a sequence diagram for downloading file process, but I get confused to expressing it. In my current sequence diagram, the download file from control is directly send to actor as ...
-2
votes
0answers
55 views

Stack storage or heap storage? [on hold]

What common approaches do compilers use to determines whether an object is allocated on the heap or the stack (for languages that don't make the choice of storage category explicit)? What kind of ...
1
vote
1answer
28 views

Using framework (Wordpress) functions in layered architecture

I'm building an app with the usual layers like presentation, application, infrastructure. Right now, I have been using Wordpress functions in both my controllers and repositories. I figured that ...
1
vote
0answers
17 views

Displaying entity framework calls in Sequence Diagram

I have a controller action which gets all the Plants by location from the database puts it inside a view model and passes it to the view. public ActionResult index() { List<Plant> plants = ...
-2
votes
1answer
36 views

Get familiar and be more confident in a new (PHP framework) environment [on hold]

I began to work at a company which mostly uses a framework called SuiteCRM. I am familiar with core php and have experimented with cakephp, but I am stuck with SuitCRM. I have to ask my colleges ...
1
vote
0answers
26 views

Message Queues and Multiple Subscribers

My team is discussing using RabbitMQ for microservice to microservice communication (among other things). We are also supporting a SAP backend that will be pushing data to us in a method undecided at ...
0
votes
0answers
25 views

c++ templates - combining deduction with default template arguments

I have a simple class (details here) namespace MemoizerSupport { template <typename T1, typename T2> using DEFAULT_CACHE = LRUCache<T1, T2>; } template <typename RESULT, ...
1
vote
2answers
57 views

Wait for file(s) in a remote directory to be created, then transfer the file(s) immediately to local computer

I'm wondering what the best practice would be for the following task: I start a program on a remote node, which will generate subsequently new files in a publicly accessable folder. Whenever a new ...
-1
votes
0answers
16 views

What are some design ideas for a data mapping and transformation application?

Here is a high level outline of the project: We frequently need to convert data from a new incoming system to our in house system (sort of a basic ETL process) We would prefer to do this dynamically, ...
0
votes
0answers
20 views

Implementing the Repository-Client and Interface Pattern with a common controller assembly

I'm currently working on an MVC project for a web utility. This utility takes input from a user, sends it off via JSON to an API that reads from a database, and brings the data back in tables; it does ...
4
votes
1answer
60 views

Approach for Constructing View Models in Complex MVVM Application

I'm struggling with the design in a WPF MVVM application. In a few courses I've taken, they say that having a lot of parameters in a constructor is a code smell, but they never address how to deal ...
0
votes
1answer
39 views

how to deal with collection of different type of resource

I was wondering what was the best practices in terms of collection of resource ID of different types. My software has a service for each resource, each of this resource has a unique id (hexadecimal ...
0
votes
1answer
50 views

Logic circuit simulation: homebrew or third party solution?

Software I'm working on requires simulation of logic circuits, both combination and sequential. Now the simulation doesn't need to be too detailed, in fact it could be detrimental to the function of ...
84
votes
8answers
7k views

New developer can't keep up with branch merges

I am the new developer - this is my first programming position. My issue is this: We use git - I cut a branch from our develop branch, then I start working on the minor task I've been assigned. It's ...
3
votes
1answer
87 views

How to deal with friend requests in social API REST

I'm designing an API that a social network app will consume. I need to manage friend requests between users. I have this endpoint: POST /users/{userId}/friend-requests { requesterId: string } ...
0
votes
0answers
20 views

Private/Hiding dependencies between Maven modules

Given three project modules X, Y and Z on a Maven based project, and Y depends of Z and X of Y and X should not know that Y depends of Z, being this: X -> Y Y -> Z X -X> Z What is the best way to ...
-1
votes
0answers
24 views

Model view controller: where do I put the function QObject::connect(Object1, Signal1, Object2, Slot2); ? In view or controller?

I have a doubt about Model View Controller. I put the function connect in class Controller but I don't know if it's right or wrong. Maybe in the view is better. How can I do? The user should make ...
-3
votes
0answers
90 views

My team have a design doc requirement for any issues that take more than one week to do - A good practice? [on hold]

All. Sorry for rambling around, as a software developer, I try not to complain and focus on the fun part - programming. However, my team including myself were told to write a design document for ...
1
vote
1answer
52 views

Should this part of my web-app implemented on server-side or client-side?

I want to write an application which monitors a few URLs (like a couple hundred) of all branches of school. By monitoring, we mean that it sends requests to those URLs at regular intervals (Interval ...
2
votes
1answer
63 views

Using SPA ( Single-page-application) in production with separate configuration file/module

Problem statement dev team Dev team wants to pre-build the SPA's (Angular App & React App) and provide single package containing JS, CSS, & HTML file. There's no server-side rendering / lazy ...
0
votes
1answer
90 views

Microservice to access databases [on hold]

Our company is designing a new ERP based on microservices. The reason we want to implement microservices is because we noticed that some critical parts of the old ERP are being heavily used by our ...
0
votes
0answers
10 views

Should I implement a JAX-RS ExceptionMapper for java.lang.Error?

I have a Jersey server that handles REST requests where I've implemented a RuntimeExceptionsMapper implements ExceptionMapper<RuntimeException>. If there's an unexpected exception, it handles it ...
0
votes
1answer
43 views

C# Separate Online Store into Different Solutions and Nugets

I am creating an Online Shopping Cart store. It is built through Net MVC Core. There is a Front End View website: html, css, razor. Then we have backend code design for Customers: including shopping ...

15 30 50 per page