---
title: "Discussion on \"Refactoring step by step: extract validation logic from a method\" | Hashnode"
description: "Discussion on \"Refactoring step by step: extract validation logic from a method\". Context\nTesty is one of my open-source projects: it is a minimal Javascript testing framework. Testy, like many other testing tools, has a way to execute some code before each test. It is called before() and it receives a function as a block of code...."
url: "https://hashnode.com/posts/refactoring-step-by-step-extract-validation-logic-from-a-method/61e98e926070d3674d084844"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Refactoring step by step: extract validation logic from a method](https://ngarbezza.hashnode.dev/refactoring-step-by-step-extract-validation-logic-from-a-method?utm_source=hashnode&utm_medium=feed)

Context Testy is one of my open-source projects: it is a minimal Javascript testing framework. Testy, like many other testing tools, has a way to execute some code before each test. It is called before() and it receives a function as a block of code....

Jan 20, 2022 · 5 min read · ngarbezza.hashnode.dev  
Read the article

-   [#programming](https://hashnode.com/tag/programming)
-   [#refactoring](https://hashnode.com/tag/refactoring)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Nahuel Garbezza](https://hashnode.com/@ngarbezza)

@ngarbezza · Argentina

  
[View profile](https://hashnode.com/@ngarbezza)

Software Craftsperson at 10Pines

Object-oriented software developer. Making quality software at 10Pines. Proficient in dynamic languages (Smalltalk, Ruby, Javascript). Teacher at Universidad Católica Argentina. Big fan of object-oriented design, test-driven development and legacy code refactoring.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
