refactoring.com Open in urlscan Pro
198.101.146.21  Public Scan

Submitted URL: https://refactoring.com/catalog/extractMethod.html
Effective URL: https://refactoring.com/catalog/extractFunction.html
Submission: On December 16 via manual from NZ — Scanned from NZ

Form analysis 3 forms found in the DOM

GET https://www.google.com/search

<form method="GET" action="https://www.google.com/search">
  <input type="hidden" name="ie" value="UTF-8">
  <input type="hidden" name="oe" value="UTF-8">
  <input class="field" type="text" name="q" size="15" maxlength="255" value="">
  <button class="button" type="submit" name="btnG" value=" " title="Search"></button>
  <input type="hidden" name="domains" value="refactoring.com">
  <input type="hidden" name="sitesearch" value="">
  <input type="hidden" name="sitesearch" value="refactoring.com">
</form>

GET https://www.google.com/search

<form method="GET" action="https://www.google.com/search">
  <input type="hidden" name="ie" value="UTF-8">
  <input type="hidden" name="oe" value="UTF-8">
  <input class="field" type="text" name="q" size="15" maxlength="255" value="">
  <button class="button" type="submit" name="btnG" value=" " title="Search"></button>
  <input type="hidden" name="domains" value="martinfowler.com">
  <input type="hidden" name="sitesearch" value="">
  <input type="hidden" name="sitesearch" value="martinfowler.com">
</form>

GET https://www.google.com/search

<form method="GET" action="https://www.google.com/search">
  <input type="hidden" name="ie" value="UTF-8">
  <input type="hidden" name="oe" value="UTF-8">
  <input class="field" type="text" name="q" size="15" maxlength="255" value="">
  <button class="button" type="submit" name="btnG" value=" " title="Search"></button>
  <input type="hidden" name="domains" value="martinfowler.com">
  <input type="hidden" name="sitesearch" value="">
  <input type="hidden" name="sitesearch" value="martinfowler.com">
</form>

Text Content

 * Catalog

 * part of martinfowler.com
 * 
 * 





TOPICS

Architecture

Refactoring

Agile

Delivery

Microservices

Data

Testing

DSL


ABOUT ME

About

Books

FAQ


CONTENT

Videos

Content Index

Board Games

Photography


THOUGHTWORKS

Insights

Careers

Products


FOLLOW

Twitter

RSS

Mastodon


EXTRACT FUNCTION

How do I access the web edition?



function printOwing(invoice) {
  printBanner();
  let outstanding  = calculateOutstanding();

  //print details
  console.log(`name: ${invoice.customer}`);
  console.log(`amount: ${outstanding}`);  
}


image/svg+xml

function printOwing(invoice) {
  printBanner();
  let outstanding  = calculateOutstanding();
  printDetails(outstanding);

  function printDetails(outstanding) {
    console.log(`name: ${invoice.customer}`);
    console.log(`amount: ${outstanding}`);
  }
}


inverse of Inline Function

aliases Extract Method


TOPICS

Architecture

Refactoring

Agile

Delivery

Microservices

Data

Testing

DSL


ABOUT ME

About

Books

FAQ


CONTENT

Videos

Content Index

Board Games

Photography


THOUGHTWORKS

Insights

Careers

Products


FOLLOW

Twitter

RSS

Mastodon

© Martin Fowler | Privacy Policy | Disclosures