All Questions

Filter by
Sorted by
Tagged with
2
votes
2answers
55 views

Load factor and prime number for hashing in HashTable

I am trying to design a HashTable from scratch. I am starting with an initial bucket size of 11 and trying to maintain a load factor 0.75. Java documentation mentions that whenever the number of ...
-3
votes
0answers
14 views

Looking for opinionated ways of maintaining large-scale and complex frontend projects on various popular frameworks?

I have been working on frontend projects for more than a decade. Every project, we apply our learnings from the past but there's always basics that people miss out or aren't fully equipped to think ...
36
votes
10answers
6k views

When is it appropriate to introduce a new layer of abstraction into a class hierarchy?

Suppose I'm creating a game played on a 2D coordinate grid. The game has 3 types of enemies which all move in different ways: Drunkard: moves using type 1 movement. Mummy: moves using type 1 movement,...
3
votes
1answer
156 views

Can Mean Shift Algorithm used in color quantization?

I have a problem with deciding algorithm for color quantization. The image that I want to do color quantization is an RGB image with resolution 512 x 512. I want to reduce the color value in the pixel ...
3
votes
0answers
61 views

Global variables and common block management in Fortran

Background The high level overview of my situation is described here. I am breaking it apart into smaller, specific questions, such as this one, regarding extensive use of global variables in a ...
4
votes
4answers
474 views

Whose responsibility is it to fix merge conflicts?

Say that A is working on a branch based off master and B merges changes into the master branch, which introduces merge conflicts between A's branch and master. Whose responsibility is it to fix merge ...
3
votes
2answers
82 views

How should a data warehouse be maintained for a quickly changing schema

I am currently in a process of maintaining a data warehouse for a quickly growing start up company. There is a lot of reporting demands from the clients, and this is usually handled by a data ...
0
votes
0answers
90 views

When to use TCP protocol instead of HTTP [closed]

I am aware that HTTP is application level protocol and it uses TCP internally to communicate. And like everyone, I have used HTTP very well. I was reading about zookeeper, which says it communicates ...
-2
votes
0answers
27 views

How to add “Result” in an ER diagram?

I created ER diagram and class diagram for my individual stand-alone project named university management system I will attach the ER diagram and the class diagram I have been drown. Actually this is ...
0
votes
2answers
42 views

How to use strict schema with seemingly fluid data type

Our company is trying to find a good generic way to have Many-to-One data for an entity. For example, a user might have 1 primary email, but many other emails also attached to their account. So we ...
7
votes
1answer
2k views

How do I deal with projects within projects in python?

Note I realise this could be subjective question to answer, but I don't expect an answer in the form of "Do this and everything will work out". I am aware there will probably be some decisions to be ...
36
votes
10answers
18k views

I am a beginner. Can I directly start learning C++11? or I have to learn old C++? [closed]

I'm a beginner and have only little knowledge in programming. Would it be good if I directly learn C++ from books which cover new C++11 or should I study through the old best C++ books? Should I ...
7
votes
5answers
586 views

Tuples or Objects

Today, talking with some colleagues of mine, we were discussing the usage of tuples. The specific problem was: we have an API returning a list of some kind of objects (let's say POJO instances) ...
-4
votes
0answers
28 views

Most efficient database for the location based statistics

I would like to create a simple application where I will show the tourists counts of a particular location with the tourist origin. For example Spain got 20 million visitors from which 5 million of ...
0
votes
3answers
81 views

Proper development workflow for fullstack app with multiple developers?

Say that I am developing a web application that has the following structure: An SPA web frontend (angular in my case) Postgresql database with: A bunch of initial data in CSV's and JSON's that need ...
1
vote
1answer
57 views

REST: Seperate API endpoints for user images and all images?

I'm designing an API for a website where users can share images and all other users can see these images. The current idea is to have a path /user/name/images/xyz to GET a user's image and then a ...
-3
votes
0answers
55 views

Is there a way to draw in any IDE? [closed]

For me, having my draw-book right next to my code would be bliss, but yet my google pages have not helped me. Is there a way to draw over code in an IDE via a plugin/package/extension? If sadly not, ...
1
vote
2answers
64 views

When to model an aggregate's entities as part of a value object?

I've read a lot about Domain Driven Design including books from Eric Evans and Vaughn Vernon. So I am familiar with the concepts Aggregate Root, Entity, and Value Object. But while I was modeling ...
1
vote
1answer
20 views

Context separation for a group of entities

We currently handle a well separated monolithic service which handles various 'contexts' to help with the separation. I haven't had any issues so far when dealing with problems that require the ...
99
votes
13answers
16k views

How to deal with 'almost good' code from a junior developer? [closed]

I got a question about team managing. Right now I'm dealing with a junior developer who's working remotely from a coding factory. The guy is open to criticism and willing to learn, but I got some ...
0
votes
1answer
38 views

First steps in BPMN 2.0 - Music production diagram

I'm trying to simulate the hiring process of a record label. Formally, I decided that the steps to do it are these: The artist send its new album to the record label, which will review it and decide ...
-2
votes
0answers
50 views

type of testing for an open source project [closed]

Looking for some sample github open source projects that do following: Include integration tests in the source code Integrate with circleci for build/release process Execute integration tests in ...
-3
votes
0answers
59 views

What do you do when refactoring leads to more copy pasting? [closed]

for example, for database access i refactored several crud functions for each document type/table into one generic class that took a model class as an argument. yet ive copy pasted that generic class ...
17
votes
9answers
17k views

When should pointers be checked for NULL in C?

Summary: Should a function in C always check to make sure it is not dereferencing a NULL pointer? If not when is it appropriate to skip these checks? Details: I've been reading some books about ...
0
votes
0answers
38 views

Where is the distinction between a web application and an API?

This question is highly related to this over question. I'm asking another question between I still am a bit confused on the topic. The Issue I Ran Into I currently have a Django web application ...
2
votes
4answers
97 views

In a Conceptual class diagram, should Abstract Classes and arrowed lines be utilised?

Since we are just describing the problem domain rather than showing how the actual software will be designed, does that mean that we should not need abstract classes to show inheritance and arrowed ...
0
votes
1answer
23 views

Does logged-in User information belong on a Command?

Imagine I am creating a command called UpdatePhoneNumberCommand. Imagine also that in my application a business rule dictates that no-one may update anyone else's phone number - it is always you ...
1
vote
2answers
39 views

How to design a process and adopt to changing business rules and sending alerts/notifications

Currently working on designing a process which demands me to send alerts like email notifications to the users which meet a business criteria(we can also call business rules). I want to make this ...
0
votes
3answers
192 views

Is this proper way to unit test?

I'm trying to unit test some repositories and have no idea what I'm doing if someone could point in the right direction that would be good, currently, I'm testing behaviour of creating a new user ...
-1
votes
1answer
46 views

Deployment / Release strategy for separated frontend + backend web app

We develop a web app which consists of a frontend and a backend project. The frontend is consuming an API that is provided by the backend. Frontend and backend are developed separately by different ...
-4
votes
0answers
36 views

how to draw er diagram for hospital management system (there is also a app for the patient) [closed]

we are going to create a hospital management system for the staff of the hospital to do their internal stuff. and also we are going to create an android app for the patients. so they can register ...
-1
votes
3answers
180 views

Pull requests as knowledge transfer: an anti-pattern?

I assumed that the purpose of pull requests within a team is to get a second set of eyes and basically proofread the code. But lately I am noticing that they can serve an additional function of ...
-1
votes
1answer
50 views

Recommend a way to handle multiple UI frameworks in a pattern library

We are setting up a pattern library. It's use is on the one hand to document and display our UI elements in a web view. On the other hand, it should also be the place where components are built. The ...
0
votes
1answer
59 views

Is it considered a good practice to hardcode package versions in something as high-level as a Dockerfile?

We had an application break in production during a deployment because a load-balancer package in our top-level Dockerfile had pulled its latest version, which happened to have a new API. Our app broke ...
1
vote
1answer
23 views

Server side rendering of third party updated html components

Say I am wanting to include a third party HTML component in my site... I know that I can simply include a <script> tag to pull in the component on the client's side; however because I do not ...
4
votes
2answers
16k views

Best way to get push notifications to server from MS SQL Server

I partially found a solution to my question, but I'm not really satisfied with the result. My application consists of ASP.NET MVC + MS SQL Server. The case is as follows: An external application ...
2
votes
2answers
100 views

How is memory unsafety generated, found, exploited and fixed?

I'm not a low-level programmer, I mainly program in C# which is a managed language. Still, every now and then I read articles, news and patch notes about the most varied software talking about memory ...
-2
votes
0answers
61 views

Using Decorator Pattern For Debugging

So I keep being asked to add new metrics and log certain debug information to my current project. Now, as one would expect, this has start cluttering the code too much. From what I have read and seen ...
0
votes
0answers
20 views

Window based singel page applications

Traditionally web applications has been build by one singel page served to the client for every functionality (/settings, /users …). So every time you need a new Gui, you would have to navigate to a ...
0
votes
1answer
57 views

How far we have to consider the plug-ability while designing an email service using external library

I was designing an email service in .net standard 2.0 using mailkit library. I proposed the following design This design was not accepted stating the following reasons: This design have to many ...
17
votes
1answer
2k views

Books and stories on programming culture, specifically in the 80's / early 90's [closed]

I've enjoyed a number of (fiction/non-fiction books) about hacker culture and running a software business in the 80's, 90's. For some reason things seemed so much more exciting back then. Examples are:...
0
votes
0answers
43 views

Memory Usage for Website

I have been working on a project and Im hoping to get a gauge on possible performance issues before I put it in any production environment. Currently on my local machine Chrome's task manager says I ...
6
votes
4answers
314 views

Performance: Is There a Reason to Use Processes over Threads?

This is a general question but I work in the .NET world so I'd like to know if there any specific quirks about the .NET Framework / Core platforms that I should be concerned about here. I think it's ...
9
votes
1answer
2k views

Are “normal order” and “call-by-name” the same thing?

I was studying the book Structure and Interpretation of Computer Programs and in section 1.1.5 The Substitution Model for Procedure Application the author explains the concepts of normal order and ...
1
vote
1answer
63 views

Are symbolic links a good way to 'import' a project into another?

I've been thinking on how to import a project B into a project A, which both are GitHub repositories. Project B is a library I reuse over many projects, I do add stuff in it, directly from project X, ...
-2
votes
0answers
27 views

Is there a benefit incorporating TLS 1.3 into OPC-UA [closed]

TLS 1.3 seems to have a strong benefit of ephemeral keys which adds a measure of security. Does anyone know if there are plans to incorporate it into a future spec of OPC-UA? Would it make sense to ...
8
votes
3answers
9k views

Process to generate hierarchical structure based on relational data?

I have a csv of employee ids, names, and a reference column with the id of their direct manager, say something like this emp_id, emp_name, mgr_id 1,The Boss,, 2,Manager Joe,1 3,Manager Sally,1 4,...
5
votes
2answers
1k views

How does the Fibonacci exponentiation by squaring algorithm work?

This is one of the best algorithms to calculate the nth Fibonacci sequence. It only needs O(log(n)) time to do its job, so it's very efficient. I found it somewhere but don't know how it works! Can ...
-2
votes
0answers
30 views

micro service and resiliency and production services

I have read about micro services advantages. I am interested in knowing of disadvantages related to support services or production support. Application teams develop microservices, but in ...
0
votes
1answer
107 views

Should I use an `else lif` or an `if` for the second of two consecutive assertions?

Here's an example of my question in python. Notice there's only a very subtle difference: changing an if to an elif. There's no difference in behavior; if the first if statement is executed, the ...

15 30 50 per page
1 2 3 4 5 1113