Too much abstraction makes it difficult to extend code

I'm having trouble with what I think is too much abstraction in the code base (or at least bypassing it). Most methods in the codebase have been abstracted to include the highest parent A in the codebase, but the child B of this parent has a new attribute that affects the logic of some of these methods. The problem is that these attributes can not be checked in these methods because the input to A is abstracted and A does not have that attribute, of course. When I try to create a new method to handle B differently, it's called for code deduplication. The proposal of my technical manager is to create a common method that takes into account Boolean parameters. However, the problem is that some people see this as a "hidden control flow" where the common method has logic that may not be apparent to future developers. Additionally, this shared method becomes too complex / complicated for future attributes even if it is divided into smaller shared methods. This also increases the coupling, reduces cohesion and violates the principle of individual responsibility that someone on my team has pointed out.

In essence, much of the abstraction in this codebase helps reduce code duplication, but makes it difficult to extend / modify methods to get the highest levels of abstraction. What should I do in such a situation? I'm at the center of the blame, although everyone else disagrees about what they think is good, and it hurts me in the end.

magento2 – Problem with website URL

There has suddenly been a problem with URLs on my site. I currently have the following configuration.

However, if a user visited, the AU Store would load without redirecting to the / au / URL.

I am not sure why this will stop working and a 404 error will be returned when you visit

Can someone help with troubleshooting?

I want to put variables previously defined in PHP into an array and then export them to json

$toJson = array();
$arr = array_push($toJson, array(
    'numero_casas' => $n,
    'token' => $myToken,
    'cifrado' => $criptografada,
    'decifrado' => $desCriptografada,
    'resumo_criptografico' => $rc

echo $toJson;

$exitJson = json_encode($toJson);

echo $exitJson;

$file = fopen("answer.json","w+");

fwrite($file, $exitJson);

python – # A program that lets you see how red, blue, and purple appear in the resolution for fun

I'm doing a bit of analogue and digital art. This time I did a color test digital. To work on my programmability so that it is divisible, I ask for help to get a code review.

What is the readability?
Is it easy to follow the train of thought?

Greetings Johan

#A program for fun to see how red, blue and purple appears at resolution 

from math import *
from graphics import *

def hole(win, centerx, centery, radius): #draws an inverted sphere
    for circle in range(radius, 0, -1):
        c = Circle(Point(centerx, centery), circle)
        coloratangle = int(sin(circle/radius*pi/2)*255) #max resolution from black to white is 255 steps
        c.setFill(color_rgb(coloratangle * (circle % 2), 0, coloratangle * ((circle + 1) % 2))) # Modulus instead of Boolean? Modulus in c.setFill or in another line?

windowheight = 1350
windowwidth = 730
win = GraphWin("My Circle", windowheight, windowwidth)
win.setBackground(color_rgb(255, 100, 100))

centerx = int(windowheight / 2)
centery = int(windowwidth / 2) #intetger
radius = int(sqrt(centerx**2 + centery**2)) #pythagoras

hole(win, centerx, centery, radius)

win.getMouse() # Pause to view result
win.close()    # Close window when done

javafx – View data from three different entities or classes in JFXTreeTableView

I have three classes, countries, cities and towns.
The country class refers to cities and in countries I have a list attribute where I save the cities. The cities class refers to locations from one to many, and in cities I have a list attribute where I store the locations. My question
How can JFXTreeTableView show a country like Root with its cities and the city with its communities?

Canada – Is a middle name a first name?

"My first name only in the field first name (s)"

When asked for "first name", a single name may be acceptable. But it did not work.

Note the "(s)". This means that there can be more than one name.

Note the "Given", that is, everything except your surname that was not inherited.

The form did not ask for "first name"; it was asked for "first name (s)".

Many countries improve their forms by saying "Given" rather than "First," as there are many societies where the first name is actually the surname.
(For example, in Chinese, "Xi Jinping," "Xi Jin Ping," and "Xi Jin-Ping" are all valid transcripts of "习近平." "Xi" comes first, but it's the family name.)

google pixel 2 – Call me / let me know when I receive a text message from a VIP

I am Australian and have registered to receive SMS notifications at different (unscheduled) times during the US time of day, the Australian night time.

I want to make sure I get notified when I receive a text message from them.

Can I change the sound when receiving an SMS from this VIP?

Ideally, I would like to have an alarm that does not stop until I take care of it.

Help appreciated.

Find all consistent representations of the affiliated Poincaré group

I study representation theory of Lie groups and their combination with theoretical physics and worry about the following. Is there a comprehensive way to find all consistent representations of the connected Poincaré group? $ SO (1,3) _e rtimes mathbb {R} ^ 4 $, I think Mackey theory does the trick, but does anyone know any other ways?

Unit – Is there an algorithm that can generate an optimized mesh from the vector list?

I want to create a mesh from a list of vectors or vertices. I like to do it in unit 2d. I have an idea to find the next vectors to each vector and create a kind of linked list, but I think there should be some algorithms for that.

I also need to know how to do it in unit 2d because we have no polygons and triangles in 2d.