Skip to content

Extract Method as part of Refactoring - #464

Closed
bharatwaaj wants to merge 1 commit into
HtmlUnit:masterfrom
bharatwaaj:asdc-assignment-set-1-extract-method
Closed

Extract Method as part of Refactoring#464
bharatwaaj wants to merge 1 commit into
HtmlUnit:masterfrom
bharatwaaj:asdc-assignment-set-1-extract-method

Conversation

@bharatwaaj

@bharatwaaj bharatwaaj commented Mar 26, 2022

Copy link
Copy Markdown
Contributor

Refactoring: Extract Method

Reason for change:

The method is a complex method as it performed multiple operations and the method had to be split onto a setupWebClientPage method and could be extracted.

 

Particulars Details Comments
Commit Hash com.gargoylesoftware.htmlunit  
Branch Name asdc-assignment-set-1-extract-method  
Branch Link https://github.com/bharatwaaj/htmlunit/tree/asdc-assignment-set-1-extract-method  
PR URL #464  

@bharatwaaj bharatwaaj changed the title Update HtmlArea.java Extract Method as part of Refactoring Mar 26, 2022
@rbri

rbri commented Mar 26, 2022

Copy link
Copy Markdown
Member

Hi @bharatwaaj ,
many thanks for this PR. But i will close this. I think there is no real benefit in splitting this method into two. Yes i know there are other opinions around, but i usually look from the maintainers point of view (in this case the new method is private, so the only person seeing this is the maintainer.
There a so many points to discuss on this, but i don't like to do it here. I'm doing professional software development since 1990 and have tried many different ways to do things so i have some experiences and reasons to do so.

Instead of this i have introduces another WebRequest ctor to simplify the code a bit.

Thanks for this - it will be great if you can add your full name to the list of contributors in your next PR.

@rbri rbri closed this Mar 26, 2022
@bharatwaaj

bharatwaaj commented Oct 11, 2022 via email

Copy link
Copy Markdown
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants