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.

8 – How do I extend a specific node type form?

I'm looking for a way to override that NodeForm to get one class per bundle.

Indeed EntityForm manages the form for all entities.
NodeForm extends it and manages the forms for all nodes.

I enrolled CustomNodeForm replace NodeForm Behavior for all nodes.

/**
 * Implements hook_entity_type_build().
 */
function ftvisi_main_entity_type_build(array &$entity_types) {
  $entity_types('node')->setFormClass('default', CustomNodeForm::class);
}

Now I want to get a class per bundle that extends that CustomNodeForm but I do not feel able to do it.

CustomNodeForm Maybe a form is instantiated for each bundle – but I do not like this approach and we still have only one constructor that can cause problems like:

"OK, my first bundle form needs this service, and my second bundle form needs another. Should I inject the full container myself and then use services on the fly?" => Pretty bad idea, I know.

Anyway, if CustomNodeForm instantiating other classes themselves, it will be difficult to mock and test. I definitely do not like this approach.

I then thought about using the form modes, but the same problem: A form mode can be used for any node type, so we still do not have a class per bundle and only one constructor for all forms that use this form mode.

Any idea to help?

How can I extend the timeout of an IIS Web service in Windows 10?

In an IIS Web server (version 10.0) on Windows 10, the default timeout is 110 seconds. I tried to extend the timeout duration to 200 seconds (3 minutes 20 seconds).

I've received a hyperlink https://stackoverflow.com/questions/2414441/how-to-increase-request-timeout-in-iis/51010915 for a solution to extend IIS Web Services timeout on my Win10 laptop, though all mentioned failed to make even a second extension!

In summary, I have used the following approaches:

1) Set the executionTimeout value in the web.config file and in a particular ASPX paging file in a web service application to 200 seconds. For example,

2) Adjust the server WebFarm configuration in the Win10 configuration file% WinDir% System32 Inetsrv Config applicationHost.config

For example,

3) In the advanced IIS settings, set the connection timeout. The detailed operations are shown below:

Open your IIS
Go to the "Sites" option.
Right-click with the mouse.
Then open the "Manage Website" property.
Then click on "Advanced Settings".
Expand the "Connection Limits" area, here you can set your "Connection Timeout"

4) Run the following Power Shell command:

Set-WebConfigurationProperty -pspath & # 39; MACHINE / WEBROOT / APPHOST / Default Web Site & # 39; Filter "system.web / httpRuntime" -name "executionTimeout" value "00:03:20"
5) Run the following AppCmd ​​commands:

appcmd.exe set config "Default Web Site" section: system.web / httpRuntime / executionTimeout: "00:03:20"
Now I'm looking for your help to find a workable solution.

Thank you so much!

Usa – Travel with an existing visa and extend it as part of the administrative process

Indian citizen. The current F1 visa is valid until July 2020. You need 2 more years visa before the expected completion. Conduct a consulate interview on December 15, 2019. When I get some administrative work, it may take a while for me to decide. Is it possible to do the following: Keep my passport with an existing visa and travel to the United States. Send it back to parents when processing is complete. You can go to the consulate and have it stamped and sent back to me.

Things to worry about:

Can I send my passport back to India for a week while I'm in the US?
1. I think this is more obvious if I can do point 1: assure passport delivery in both directions.
2. Do I have to present the passport to the US Consulate in India as soon as the permit is received "in person" or can my parents do so?
Third Immigration problem at the port of entry when using my current visa while processing a new application under 221 g.

Reason for all this is that I can book a flexible ticket for the return trip to the US, but the prices can be up to 4000 USD. Any advice on booking flexible tickets without worrying too much about price differences is welcome.

Plot – Extend a 2D Plot to 3D

So it's hard to record that potential in 3D

$ U (x) = frac {k ^ 2} {4g} – frac {k} {2} x ^ 2 + frac {k} {2} x ^ 4 $

I have that for 2D

frame k = 1 and g = 1

U(x_) := .25 - .5 x^2 + .25 x^4

Plot(U(x), {x, -1.5, 1.5})

Enter image description here

How do I extend this to mathematics with 3D?

Extend time for SQL Server Agent job

I try to execute the stored procedure with SQL server Agent but my Json has a lot of data and takes time to load and therefore my stored procedures are not fully loaded and give errors

JSON text is not formatted correctly. Unexpected character "." is located at position 512

Can you please tell me how to extend the time in SQL Server Agent?

Office 365 – Sharepoint sponsored links – Extend beyond the standard

I am trying to increase the size of my links advertised by o365. I searched for CSS options and applied them to the page with the script editor and can successfully enlarge the tile and image.

However – my problem:
The title displayed on the tile is longer than the character limit and can not display all. I have no description under the title. Is there a way to increase the character limit?

My code is;

/ * Image dimensions * /
.ms-tileview-tile-content img {
Width: 160px! important;
Height: 162px! important;

/ * Tile and frame size. Delta between ms-tileview-tile-root and the size of the promoted link tiles is the distance between the tiles /
.ms-tileview-tile-root {
Width: 200px! important;
Height: 200px! important;
}
/
Size of advertised link tiles * /
.ms-tileview-tile-content, .ms-tileview-tile-detailsBox {
Width: 200px! important;
Height: 200px! important;
}

/ * Shadow behind text * /
div.ms-tileview-tile-content, div.ms-tileview-tile-detailsBox, div.ms-tileview-tile-content> a> div> span {
Height: 200px! important;
Width: 200px! important;
}

/ * Changes the title of the sponsored link when you hover over it * /
.ms-tileview-tile-detailsListMedium {
Font size: normal;
Height: 200px;
Padding: 8 x 14 x 14 x;
Font size: 18px;
Line height: 14px;
}

/ * Adjust the text in the reduced sponsored link /
.ms-tileview-tile-titleTextMediumCollapsed {
Font size: normal;
Width: 180px;
Height: 200px;
Position: left;
above: -50px;
left: 0px;
Text orientation: absolute;
align vertically: center;
Font size: 20px;
/
If you want to change the font size, change the top * /
Line height: 15px;
Newline: break word;
}

Any help is greatly appreciated!

Development – Can I pragmatically extend team work time verification using PSI? (Project Server 2010)

To pragmatically transfer administrative tasks to employees' timesheets, these tasks, such as employee annual vacation times, must be imported and automatically added to the timesheet instead of being manually added by the employee.

is this possible with the old Project Server 2010 version via PSI?

wp query – How do I extend WP_query to a specific table?

I've created a new spreadsheet (named extrapage) in the WordPress database (called wpsite_db). I've added a few pages to this spreadsheet that have not been published directly to WordPress, and I want those pages to be considered when searching the site. But I do not know how to go about it. I researched and learned that I had to extend WP_query to my new table. But I am a beginner and I do not know how to proceed in real life.

Can someone help me please? Thank you in advance.