All Questions

0
votes
0answers
2 views

time complexity for 3 foor loops different leangth

I have this method arr // input new_ sequence = [] for i in arr: new_sequence.append(i) for j in arr if j not in new_sequence: new_sequence.append(j) for k in arr if k not in ...
0
votes
0answers
3 views

How to structure microservices in your repository

I am assigned to a project where we have about 20 micro-services. Each of them is in a separate repository without any references to any other, apart from one Nuget package where we maintain some ...
0
votes
0answers
5 views

Correct event managment architecture in web application

My team and I are working on a large web application, and I've noticed that we're working in a way which I believe is an incorrect usage of flux (probably from lack of understanding). We're using ...
0
votes
1answer
22 views

Is this code a wrapper or an adapter?

I´m using a framework for javascript to display beautiful alert boxes. This framework uses another framework to actually display the boxes. So it´s something like that: let showAlert = function (...
-2
votes
0answers
6 views

Data Science Documentation development and column naming concept

What you all think that should be there for data science Documentation. Suggest me in such a way that it is concise clear and easy to understand and for a project maximum of 500 lines python codes. ...
-1
votes
0answers
39 views

Difference between Code Craft and Code Health [on hold]

I came across these two terms Code Craft and Code Health while reading description for a programming job. I was not familiar with these terms before that. After searching and reading some webpages, It ...
0
votes
0answers
17 views

Event based architecture - multiple producers single consumer

I'm having a discussion at work that event-based architecture should not be used in a scenario that we have multiple producers and a single consumer. In our company, we have many external ...
-1
votes
0answers
5 views

Offloading CLOB/BLOB data in ORACLE Database to Hadoop

My organization is thinking about offloading the unstructured data like Text , images etc saved as part of Tables in Oracle Database , into Hadoop. The size of the DB is around 10 TB and growing. The ...
0
votes
0answers
20 views

Placing Haskell typeclass instances

I'd like to hear some pros and cons about where it's best to put Haskell typeclass instances. I identify 2 possible cases and can not decide for myself which one is best: Put the instances together ...
-3
votes
0answers
8 views

How to differentiate between different testing types for a dashboard that contain multiple widgets of equal importance?

I am currently working on two Analytics applications containing around 50 widgets i.e. Donut, Pie, Area and Column Charts. I need to write Smoke, Sanity, Regression, Acceptance and Solution Test Cases ...
1
vote
0answers
12 views

How should a non-React component subscribe and respond to Redux state changes?

I’m new to React/Redux tools and still figuring out some idiomatic design patterns. Here's a scenario: A user adding a place marker 📍 (that has some associated metadata) to an interactive map (...
4
votes
3answers
844 views

Is “avoid yoyo problem” a reason to allow “primitive obsession”?

According to When is Primitive Obsession not a code smell?, I should create a ZipCode object to represent zip code instead of a String object. However, in my experience, I prefer to see public class ...
0
votes
0answers
6 views

How to integrate cyber-ark with a java application for authentication of users?

I want to use cyber ark to implement authentication during user login. My application is in java.I have come across conjur api, but the example on github is bit complex and not easily reproducable. I ...
-3
votes
0answers
17 views

Designing API's For Enterprise Data Integration

I have questions around API Design. We want to expose tabular data (in other words RDBMS table records) through API's for data integration needs. The data in these tables could range from few ...
2
votes
1answer
47 views

how to efficiently reuse std::unordered_map in a recursive function?

Please read Edit2 first. I have std::unordered_map (let's call it umap) in recursive function foo() and since foo() is recursive, I want to avoid allocation and deallocation of the memory for umap in ...
-1
votes
0answers
7 views

Including azure webjobs in continuous deployment

I'm trying to publish my azure webjobs alongside with my webapp, I use azure devops build pipeline. I've already tried other samples, however all of them didn't work. What can I do to include webjobs ...
0
votes
2answers
59 views

Where should the logic concerning a class's behavior reside? In the class itself or in the calling subroutine?

I have a car object. The car cannot be driven unless it is turned on. When should I check to see if the car is on before I try to drive it? In the main program? class Program { static void Main(...
0
votes
0answers
35 views

Linear “steps” of operations considered a state machine?

I have a set of tasks I perform to complete some larger operation. These tasks must be executed in linear order, and you cannot proceed onto the next task until the previous completes. For the most ...
0
votes
0answers
18 views

Creating an API for adding third-party JIT support to a VM

I have created my own VM/runtime environment engine and I would like to give my runtime environment an API so that a developer could interface any type of JIT compiler to my VM. So far I've created ...
1
vote
1answer
77 views

How should I document a method's computational complexity in the code?

I am currently working on a project that has very little documentation overall. The team is working to change that. I am doing my part, by adding xml comments to the methods I make and the ones I edit,...
1
vote
0answers
23 views

How should propagation of service abuse information work within a microservice architecture?

At the moment, I'm working on a product that's being broken down from a monolith to a bunch of microservices, and it seems to be going well enough. However, if a user is abusing the service somehow, ...
2
votes
3answers
146 views

I feel like these constants should be in a different class?

I have a static class called RenderingUtilities that houses several useful methods and constants. Some of these constants are related to the Earth as an object such as the Earth's radius. I believe ...
0
votes
1answer
25 views

Should I run my tests against production build transforms (i.e. Babel)?

A coworker of mine recently setup testing in a new project (a JS library) where a transform step hooks in to the babel config for Webpack in the production config. For reference, this is the setting ...
1
vote
0answers
16 views

Test Results Database Design

I am trying to write a database to store test results for components, against a serial number, with different components potentially having different tests. I want to prioritise ease of adding new ...
1
vote
0answers
10 views

Does using ElasticSearch X-Pack Watcher make sense for emailing error logs?

Watcher for X-pack seems like an awesome technology for dealing with system events, however I think it may be overkill for my current use case. All I am trying to do at the moment is email an admin ...
0
votes
2answers
104 views

How can I figure out where the code starts for a complex software project?

Say I want to (try to) read through and understand a fairly complex piece of code (for example the free software Coreboot firmware code, which can be found here). How can I figure out where the code ...
1
vote
1answer
53 views

When is it reasonable to register an activity on the SCRUM board and when it is not necessary?

In my work we use the scrum board for the registration of activities, however there is always a dilemma of what to register there, some colleagues want to register on the scrum board the email answer (...
-4
votes
0answers
43 views

What are several types of example cases where Inversion of Control does not demonstrate dependency injection? [on hold]

Dependency injection (DI) is one kind of Inversion of Control (IoC). So there should be cases where IoC does not demonstrate DI. How is IoC used without being DI ?
1
vote
1answer
63 views

Multiple APIs v One API

Is it normal to have a bounded context spread accross multiple APIs or should there really be one API per bounded context? I am trying to understand if I can use the Scatter Gatherer pattern (https:...
1
vote
1answer
214 views

Creating a control flow graph for a given function

Given is a short Java function and I like to create a control flow graph for it but I'm not sure if it's fine like that? Because I left some things away such as variables that have already been ...
0
votes
1answer
49 views

How to efficiently check if location is inside certain area? And how to set that area?

I would like to know what's the best way or the options I have to limit a user selected location (latitude and longitude) to be within a certain area, for example like Uber does with their rides when ...
3
votes
2answers
95 views

Should detected vulnerabilities in old commits be remedied?

One of my projects on GitHub has received a vulnerability alert, in this case of moderate severity. The vulnerability has been detected in a dependency of an old version of the code. Current versions ...
1
vote
1answer
32 views

Unit testing about API endpoints and parameters

Consider a simple web application, I'll use a Python(ish) example, but i think the question is relevant for other languages as well. The user is trying to fetch a page, and in order to render that ...
1
vote
0answers
65 views

What are the “gotchas” of refactoring code that is binary serialized? [on hold]

I have a few classes that I have to refactor and my particular concern is that they are marked as Serializable. I know with 100% certainty that these classes are parsed out into a file and read back ...
-1
votes
0answers
22 views

A question about errors and exception in production [on hold]

Let's say you have a production app that continuously explodes every 2 minutes on a specific route and return 500. What is your current setup for getting alerts? Are you using Airbreak, Pagerduty or ...
0
votes
0answers
26 views

Are groovy automatic getters and setter effectively any different to public variables?

To provide a very blunt example (as I am at work and can't currently think of a sensible example). If I write a groovy class like this class Wendy{ byte[] frank String doSomethingWithFrank(){...
0
votes
0answers
93 views

OS libraries and compiling for dynamic libraries [on hold]

I'm looking to make my own compiler / translator between languages, and can probably manage reading code etc... but I do not understand how dynamic libraries (.dlls) are handled by the compiler. To ...
-2
votes
0answers
15 views

Is it possible to implement to Mobirise my own vector icons? [on hold]

I need to create the site and I like the way Mobirise works. But I need to add to the project my own icons. Is it possible?
2
votes
1answer
33 views

Where to keep Ansible Inventory file

I keep my Ansible based deployment module in the same repository/directory as my application code. I use Mercurial for my VCS. The inventories file is ephemeral as the IP's of the cloud hosts keep on ...
-2
votes
0answers
39 views

How Nosql on SQL Server performance for million data?

I am trying to develop software with a Sql server database. I am using it as a document store for JSON documents. The queries use the JSON_VALUE built-in function to extract data from the document. I ...
-1
votes
0answers
24 views

What are some of the pros and cons of react-native-web?

We are using react-native to develop a mobile app. We also need to develop a web app that will have all the mobile app features plus some extra ones. Is react-native-web a good choice? What are the ...
-2
votes
0answers
18 views

Octave plots - how to flush out the plot (is it a pipe still?)

I am running Octave 4.21 - it works great, however, the command purge_tmp_files does not execute. I just want to make sure that when I run a script, that the previous script's run is completely "...
1
vote
1answer
111 views

Should I break functionality out into new classes?

I currently have an object that is composed from several simple objects. Each simple object is used to render a particular portion of the larger object as a whole. Think of it as building a 3D ...
-1
votes
2answers
85 views

Is QA/QC more related to proprietary softwares?

I'm not a software engineer, but I like coding for myself. Thus, I don't know what goes in IT companies. Keeping the amount I spend on GitHub, I never heard of the term QA/QC in regards to open ...
1
vote
2answers
89 views

Is it a good idea to use strings in a struct as values to static properties?

I'm in a discussion with a co-worker concerning the use of structs. I have a couple of structs that contain several static properties that are used throughout our website. The value of those ...
-2
votes
0answers
41 views

Creating a Wi-Fi Protected Setup broadcaster (WPS Push)?

Sometimes I am stumbling across devices which require WPS to work, but the router does not offer it (Either by hardware or software limitations). Therefore, my goal is to recreate / use the WPS ...
-2
votes
0answers
31 views

Example of Use Case that contains another use case

Use case diagrams can have an include relationship (eg., A include B). B could be an extension of A or steps in the flow of events. I understand the general intuition in diagrams, for example, verify ...
-1
votes
1answer
62 views

Can you Compile Assembly 6502 into a Stand-Alone Application With a Compiler? [on hold]

Before we go into this, I may as well tell you what Assembly 6502 is. Assembly 6502 is a language meant for humans to compile it themselves not compilers, its an older Assembly that powered the olden ...
0
votes
0answers
16 views

Sending push notifications to android by nodejs server

I am having the requirement in my project, that nodejs server has to send the notification (kind of push notification) to our mobile, and user( or mobile holder ) have to act on that notification like ...
2
votes
3answers
211 views

Do language features affect the use of dependency injection?

I've been looking into dependency injection, what it is, how it works, how it's being used. It's a neat system and to understand it a bit better, I'm going to implement a small demo app using this ...

15 30 50 per page