Refactoring

- Improving the Design of Existing Code

  • Format
  • Bog, hardback
  • Engelsk

Beskrivelse

Martin Fowler’s guide to reworking bad code into well-structured code

Refactoring improves the design of existing code and enhances software maintainability, as well as making existing code easier to understand. Original Agile Manifesto signer and software development thought leader, Martin Fowler, provides a catalog of refactorings that explains why you should refactor; how to recognize code that needs refactoring; and how to actually do it successfully, no matter what language you use.

Refactoring principles: understand the process and general principles of refactoringCode smells: recognize “bad smells” in code that signal opportunities to refactorApplication improvement: quickly apply useful refactorings to make a program easier to comprehend and changeBuilding tests: writing good tests increases a programmer’s effectivenessMoving features: an important part of refactoring is moving elements between contextsData structures: a collection of refactorings to organize data, an important role in programsConditional Logic: use refactorings to make conditional sections easier to understandAPIs: modules and their functions are the building blocks of our software, and APIs are the joints that we use to plug them togetherInheritance: it is both very useful and easy to misuse, and it’s often hard to see the misuse until it’s in the rear-view mirror---refactorings can fix the misuse Examples are written in JavaScript, but you shouldn’t find it difficult to adapt the refactorings to whatever language you are currently using as they look mostly the same in different languages.

"Whenever you read [Refactoring], it’s time to read it again. And if you haven’t read it yet, please do before writing another line of code." –David Heinemeier Hansson, Creator of Ruby on Rails, Founder & CTO at Basecamp

“Any fool can write code that a computer can understand. Good programmers write code that humans can understand.” –M. Fowler (1999)

Læs hele beskrivelsen
Detaljer
  • SprogEngelsk
  • Sidetal448
  • Udgivelsesdato11-01-2019
  • ISBN139780134757599
  • Forlag Addison-Wesley
  • FormatHardback
Størrelse og vægt
  • Vægt920 g
  • Dybde2 cm
  • coffee cup img
    10 cm
    book img
    19,2 cm
    23,4 cm

    Findes i disse kategorier...

    Se andre, der handler om...

    Velkommen til Saxo – din danske boghandel

    Hos os kan du handle som gæst, Saxo-bruger eller Saxo-medlem – du bestemmer selv. Skulle du få brug for hjælp, sidder vores kundeservice-team klar ved både telefonerne og tasterne.

    Om medlemspriser hos Saxo

    For at købe bøger til medlemspris skal du være medlem af Saxo Premium, Saxo Shopping eller Saxo Ung. De første 7 dage er gratis for nye medlemmer. Medlemskabet fornyes automatisk og kan altid opsiges. Læs mere om fordelene ved vores forskellige medlemskaber her.

    Machine Name: SAXO080