65 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
Best practices
0
votes
2
replies
32
views
Team scale - define architectural principles for project
I want to enforce team to follow architectural standards for new project.
Once architectural standards in place, during code push in gitlab, if the standards are violated then it will notify us.
What ...
2
votes
2
answers
100
views
I am trying to understand why is there a "const char *s;" on the 2nd line in the body of the function memmove from string.c
Looking at the code from string.c for memmove I can see that there is a const char *s; and that s is later assigned the value of src; I was wondering, why didn't the author just skip the const char *s;...
0
votes
0
answers
221
views
Is it okay to throw exceptions and errors from not controller or request class in Laravel or in general?
Is it okay to throw exceptions and errors from not controller or request class in Laravel or in general ?
I have a lot of business logic in my "Repository" class, where I put code to work ...
0
votes
0
answers
29
views
class object definition - programming jargon:
what's the definition of class object that has more than one version?
what's the name of object like that that has a default and than versions with more parameters?
say you have it like that:
public ...
2
votes
1
answer
234
views
QT infinite view on model
I am looking for a way to create an infinite view on a model that is not initialized completely. I would like to create something similar to an Excel spreadsheet, and all I came in was to start with ...
0
votes
0
answers
119
views
When do I need to start grouping my functions into classes?
I have a python script that has has a few nested menus and I want to ask if it is better if I group the individual functions together into classes. I have a main menu with two sub menus and each sub ...
4
votes
1
answer
1k
views
How does Node.js process incoming requests?
In order to dive into more complex concepts about Node.js, I am doing some research to make sure I understand the principles about the language and the basic building blocks it ́s build upon.
As far as ...
0
votes
1
answer
87
views
How could virtual properties in model classes violate the persistence ignorance principle?
I've just read (revised) some architectural principles (as documented here https://learn.microsoft.com/en-us/dotnet/architecture/modern-web-apps-azure/architectural-principles) and felt a bit confused ...
0
votes
1
answer
64
views
Why this boolean doesn't give me the right value?
First of all, my program functions, but the b3 expression (a boolean) does not function like I want to. Instead of giving me a value of 0 (false) when I select that one train is DIESEL or ELECTRICAL, ...
2
votes
1
answer
91
views
SOLID - Violated Open-Closed principle
I have the following code snippet
class Vehicle{
public String brand;
public double price;
public int productionYear;
public String toString(String formatType) {
switch(formatType) {
...
0
votes
0
answers
30
views
Java Swing Listeners [duplicate]
I know how to code with Java listeners but I have one understanding ask:
Is there a loop in every listener which listen to something until the event is happening.
I searched for source codes and ...
-4
votes
1
answer
58
views
C++ Priciples and Practice Exercise - Finding primes from input value n [closed]
Found this answer to Ch4Ex15 of Stroustrups beginner book, the question is to find the first n amount of primes:
#include "std_lib_facilities.h"
bool prime (vector<int> table, int number) {
...
0
votes
2
answers
835
views
Where and how do SLAM algorithms keep a map?
I'm new to SLAM and I'm sure the question is dumb, but I'd really like to know how this pose and area data accumulation goes in SLAM. Once an algorithm initializes it starts to track pose (and write ...
0
votes
1
answer
42
views
Number of ways a program can execute on a sequentially consistent architecture
I am very poor at understanding and trying to solve this problem,
Let's say we have 3 threads with a,b,c instructions each, I need to find how many different ways the program can execute on a ...
1
vote
1
answer
336
views
C# overloading operator==: Return something else than bool
I'm writing a class library to solve non-linear equations using newton's method. I stumbled across operator-overloading and thought about overloading the ==-Operator. Something like expression1 == ...