All Questions

Filter by
Sorted by
Tagged with
1050
votes
130answers
336k views

I'm graduating with a Computer Science degree but I don't feel like I know how to program

I'm graduating with a Computer Science degree but I see websites like Stack Overflow and search engines like Google and don't know where I'd even begin to write something like that. During one summer ...
0
votes
0answers
9 views

Granularity of microservices and containers

Let's imagine I have a single web app containing features which are topically related, but have highly differing implementation requirements. Let's imagine that this web app is about fruit, and ...
0
votes
2answers
19 views

Finding Feature Bugs As Quickly As Possible

Currently, whenever I am developing a feature, I write the behaviour tests for it using mocks for our downstream services. These mocks are dumb always serve the same output. I faced something grave ...
6
votes
8answers
484 views

How to apply OOP to real world examples without putting all logic in Manager classes?

I'm lately trying to implement a specific problem using an object-oriented approach. I get the main principles and its advantages, but I fail to apply it to a real world problem. Most examples one ...
0
votes
0answers
10 views

Azure Functions with EF Core Recommended

This is a questions more about if I should more than if I can. I've got an existing Azure App Service which started off as a simple rest api that managed communications between mobile apps and ...
0
votes
0answers
5 views

In search of a performant API Autorisation method for private iot app [on hold]

We have developped a set of api (no api gateway yet) and a set of these apis will be consumed by an application hosted on a private IOT (by that I mean that the machine is physically protected and ...
4
votes
3answers
3k views

What is proper order of pull requests and testing?

We want to setup proper development workflow. We have two main branches: master(release branch) and develop(working branch). We want to use pull requests properly. We see two ways how to do this: The ...
-2
votes
0answers
27 views

How to check if a user may see GUI elements without having to query the microservice each time?

I am trying to find a way to check if user has a permission to see a restricted area without having to request the server each time. Currently I have the following idea: In regards to the sequence ...
-3
votes
0answers
19 views

Naming each specific html component, from `<`, `name`, `param`, `=`, `arg`, `>` etc

Note: This is just a basic question upon terminology. Its probably best to resist the temptation of going into broader parsing strategy, especially because my use case is mostly data scraping and code ...
1
vote
3answers
89 views
+100

How do I architect an iOS app when multiple view models must know when the model has changed?

I'm using MVVM and I have an app with a UITabBarController, the Main tab of which is a list of publications and the other is a Search screen where they can search for publications. Searching returns a ...
11
votes
4answers
5k views

C project avoiding naming conflicts

I'm struggling to find pragmatic real-world advice on function naming conventions for a medium sized C library project. My library project is separated into a few modules and submodules with their own ...
-1
votes
1answer
92 views

How to design effective inter-microservice communication among services? [on hold]

Let me explain what we are trying to achieve. To power below content, we are making three microservice calls. Service A: Resposible for product details. This service is responsible for storing basic ...
0
votes
1answer
121 views

How does a software engineer version two minor updates at the same time?

In a web app I am building, I might finish two distinct minor features at the same time: Implementation of a new web page, and implementation of the notification bar. After merging both of these into ...
30
votes
3answers
16k views

When to separate a project in multiple subprojects

I'd like to know if it makes sense to divide the project I'm working on in two repositories instead of one. From what I can say: Frontend will be written in html+js Backend in .net The backend ...
13
votes
5answers
16k views

How to ensure a single coding standard in .NET with tool support

Probably, the basic situation is familiar to everyone. You have agreed on certain coding standards in your team and now it is time to make sure that everybody follows them. Some do it via heavy ...
19
votes
9answers
23k views

Should you make private properties?

private string mWhatever; private string Whatever { get { return this.mWhatever; } set { this.mWhatever = value; } } I've seen some people who make properties ...
10
votes
6answers
2k views

Is lack of functional requirements agile?

Nowadays everybody wants to be agile. In every team I worked with, the shape of agile was different. Some things are common - like daily stand-ups or planning, but other parts vary significantly. In ...
0
votes
1answer
54 views

How to keep inter-service authorization maintainable?

In our environment (as in many others), it is often the case that one microservice must call another in order to accomplish a task. In our environment, authentication is clear enough - we have a ...
0
votes
3answers
122 views

Are Result objects the cleaner way to handle failure, than exceptions? [duplicate]

I was watching the following video by Vladimir Khorikov, which recommends to "Refactoring Away from Exceptions" pluralsight.com - Applying Functional Principles in C# - Refactoring Away from ...
13
votes
6answers
11k views

When are enums NOT a code smell?

Dilemma I've been reading a lot of best practice books about object oriented practices, and almost every book I've read had a part where they say that enums are a code smell. I think they've missed ...
0
votes
5answers
197 views

Microservices - Are retries enough?

I have been asked to look at moving our current architecture to microservices. I am aware of the warning to always assume a request could fail. So I am aware we should always be prepared to retry ...
-1
votes
0answers
20 views

How XCode, UIKit and Interface Builder are intended to be used? [on hold]

I'm diving into iOS development these days, and I've been very confused about XCode and the Apple Dev ecosystem. First of all, there's no more Storyboards & Interface Builder tutorials on the ...
1
vote
3answers
121 views

Writing Single responsibility methods [on hold]

Let's say we have a typical service class method who does few things, input validation, db object retrieval, some business logic execution and then saving and returning record to user. This is ...
-1
votes
5answers
245 views

Should setters only set values?

I always like to overthink things, so here's my thought of the day: Should setters only set the values of class properties, and not perform any other logic? Suppose I have a class class User { ...
0
votes
1answer
49 views

Is it bad practice to have a helper package in go for testing purposes. Or is this introducing dependence's

I find myself repeating the same code when writing unit tests, for example... When writing functions that work with files, In the setup for the test i often write some code to create a file (in a ...
0
votes
1answer
19 views

Cache maintained by caller app or by provider app in microservices inter-app communication?

Suppose there are app1 and app2 in a microservices. app2 needs to call app1's RESTful APIs. Cache is needed since the call will be frequent. So after a successful RESTful call, there will be cache ...
0
votes
1answer
43 views

Having tasks that can be ran individually or “in trees”, and each task can be blocking or non-blocking

I'm creating a framework that needs to execute certain tasks, I'll use building a car as an example for this. So, an individual task could be something like weld metal or screw bolt. But there are ...
0
votes
1answer
19 views

Jpa Repository save inside a for loop

I have this requirement: Csv Upload (using opencsv) Should display if the record is inserted (if it doesn't exist in the db) or updated (if it exists). Eg.: 5 records inserted 2 records updated. ...
9
votes
5answers
371 views

When do you have enough automatic testing to be confident in your continuous integration pipeline?

Continuous integration with testing is useful for making sure that you have "shippable" code checked in all the time. However, it is really difficult to keep up a comprehensive suite of tests and ...
-1
votes
1answer
57 views

How to handle major changes (cross-cutting concerns) in REST API?

Let's say we have a REST API application A consumed by other 30 applications. Application "A" uses a cross-cutting security implementation using a Security NuGet package 1.0. All minor/major changes ...
0
votes
1answer
52 views

How to keep user logged in when using OpenID Connect & Cookies in dotnet core?

I'm working on an OpenID Connect Hybrid flow, basically the response type in my case is: code id_token Problem: I can't seem to persist the session of the user when logged in using the id_token. I ...
2
votes
3answers
198 views

Is it better to have a single query that returns all related entities, or separate queries for each case?

Summary When writing methods to query for related entities, is it better to have a single method for all related entities or separate methods for each combination? Full Problem I'm writing ...
1
vote
1answer
144 views

DynamoDB - Event Store on AWS

I'm designing an Event Store on AWS and I chose DynamoDB because it seemed the best option. My design seems to be quite good, but I'm facing some issues that I can't solve. The Design Events Events ...
0
votes
2answers
1k views

comparison of computer processing language vs protocol

how can explain the diference between programming languge and protocol?, can protocol have extension? we know that machines communicate with protocol, but they can also do so with expressive ...
-1
votes
0answers
40 views

When does the Single Responsibility principal stop? [duplicate]

Suppose I have a class File that has the ability to perform multiple tasks on that class such as saving, loading, deleting etc... Could this class break the rule of SRP and should it be broken down ...
1
vote
0answers
66 views

Is using a non-compile-time-constant value as a default parameter a code smell? [duplicate]

I'm trying to use App.config and Configuration Manager for the first time. I wanted to use some values in App.config as default parameters for some methods, but this results in an error (not a compile ...
6
votes
7answers
5k views

While loop without evaluating data twice

I often come across the following pattern. while(GetValue(i) != null) { DoSomethingWith(GetValue(i++)); } Here GetValue is executed twice. It would be much nicer to use a pattern where we can ...
2
votes
0answers
60 views

Is bad idea to utilize helper functions on integration tests?

In my job I have a small disagreement on whether we should utilize helper functions for making datasets especially in laravel framework. A sample for the test is: namespace Tests\MyAppTests; use ...
1
vote
1answer
116 views

Transpiling <XY> language into a custom one

Our company has a legacy assembly-like language with some terrible design choices. I'm pretty sure the language is not going to change, since way too many legacy things might change their behavior ...
72
votes
9answers
16k views

Dealing with non-reproducible bugs

Suppose your team writes a software system that is (quite surprisingly!) running fine. One day one of the engineers mistakenly runs some SQL queries that change some of the DB data, then forgets ...
1
vote
1answer
67 views

How to handle API token(s) that expires after time

I'm currently building a facade that's supposed to be in front of a system we are currently using. This system has its own API, but we have decided to simplfy things, and therefore the facade. ...
0
votes
1answer
112 views

What is “serverless mesh”?

I'm familiar with the serverless programming model e.g. GAE and AWS lambda etc. But what is "serverless mesh"? I googled it and found no definition.
0
votes
1answer
34 views

DDD and CQRS - Define an entity for Scheduling use case

I have a use case of scheduling a person to some work for some time range. Eg. A service for assigning a person A to work for time range X to Z in location C. The only constraint it has, is one ...
0
votes
0answers
13 views

Service worker / caching a whole API in a Flask app?

I'm building a small scale app based on the Flask micro framework. In it, I have a service worker that caches the basic shell of my app (HTML, CSS and JS). However, I have dynamic content that is ...
64
votes
18answers
10k views

Are long methods always bad? [on hold]

So looking around earlier I noticed some comments about long methods being bad practice. I am not sure I always agree that long methods are bad (and would like opinions from others). For example I ...
-1
votes
1answer
54 views

Which programming paradigm mixes well with reactive in java? [on hold]

So I have the feeling that one can forget object oriented programming when reactive streams are in use, due to the lack of the async-await syntax (because with the call chaining, the state has to be ...
0
votes
0answers
68 views

How can I economically scale to 100+ instances of my .Net Core app without using 1 container per instance?

Currently I have a .NET core application, which fires up a new thread to hold each customer account. Each thread instance: Is long running for many months or more Holds open SignalR Websockets and ...
1
vote
1answer
91 views

Implementing Business Logic in Architecture

I am currently making architecture for one application in which we have different types of user and every user has different types of functionalities to perform. I am confuse in one point if i try to ...
0
votes
0answers
42 views

Effective database design for time card tracking

I'm building a timecard system for a company of ~50 employees. My problem is designing an efficient way of storing this data. Currently, their timecards are done on a table like the one shown below. ...
0
votes
1answer
59 views

Refactoring – Removing switch statement [duplicate]

There is a base class Product having all the generic properties and methods which a product should have. abstract class Product { public abstract function process(); } Now, These are the few ...

15 30 50 per page