{"id":18914212,"url":"https://github.com/sc0v0ne/method_refactoring_change_function_declaration","last_synced_at":"2026-04-25T22:34:00.489Z","repository":{"id":104310009,"uuid":"486982470","full_name":"sc0v0ne/method_refactoring_change_function_declaration","owner":"sc0v0ne","description":"This code aims to use the 'Change Function Declaration' refactoring method. Simple code to understand the method.","archived":false,"fork":false,"pushed_at":"2022-04-30T12:43:47.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-31T02:59:11.000Z","etag":null,"topics":["college","faculdade-metodista-granbery","fmg","granbery","martin-fowler-book","pytest","python","python-3","refactoring"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sc0v0ne.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-04-29T13:28:10.000Z","updated_at":"2022-05-02T16:33:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"6bbdd4eb-5897-4e5d-afdc-11573722b88f","html_url":"https://github.com/sc0v0ne/method_refactoring_change_function_declaration","commit_stats":null,"previous_names":["sc0v0ne/method_refactoring_change_function_declaration"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sc0v0ne/method_refactoring_change_function_declaration","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sc0v0ne%2Fmethod_refactoring_change_function_declaration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sc0v0ne%2Fmethod_refactoring_change_function_declaration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sc0v0ne%2Fmethod_refactoring_change_function_declaration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sc0v0ne%2Fmethod_refactoring_change_function_declaration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sc0v0ne","download_url":"https://codeload.github.com/sc0v0ne/method_refactoring_change_function_declaration/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sc0v0ne%2Fmethod_refactoring_change_function_declaration/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32279656,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T18:29:39.964Z","status":"ssl_error","status_checked_at":"2026-04-25T18:29:32.149Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["college","faculdade-metodista-granbery","fmg","granbery","martin-fowler-book","pytest","python","python-3","refactoring"],"created_at":"2024-11-08T10:10:37.960Z","updated_at":"2026-04-25T22:34:00.466Z","avatar_url":"https://github.com/sc0v0ne.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Change Function Declaration\n\n🎓 College: [Faculdade Metodista Granbery](http://granbery.edu.br/)\n\n👨‍🏫 Teacher: [Marco Antônio - Github](https://github.com/marcoaparaujo) | [Linkedin](https://www.linkedin.com/in/marco-ant%C3%B4nio-ara%C3%BAjo/)\n\n📗 Book: [Refatoração - Aperfeiçoando o design de códigos existentes - Martin Fowler](https://www.amazon.com/-/pt/dp/B087N8LKYB/ref=sr_1_1?__mk_pt_BR=%C3%85M%C3%85%C5%BD%C3%95%C3%91\u0026crid=M4T29CCKD30E\u0026keywords=refatora%C3%A7%C3%A3o\u0026qid=1651322207\u0026sprefix=refatora%C3%A7%C3%A3o%2Caps%2C203\u0026sr=8-1)\n\nEsse código tem como objetivo utilizar o método de refatoração 'Change Function Declaration'. Código simples para poder entender o método.\n\nThis code aims to use the 'Change Function Declaration' refactoring method. Simple code to understand the method.\n\n## Simple Method\n\nNesse código utilizei o procedimento simples. De acordo com livro, que está referenciado logo acima, você deve seguir esse passos:\n\n- Se você estiver removendo um parâmetro, certifique-se de que ele não seja referenciado no corpo da função.\n- Altere a declaração do método para a declaração desejada.\n- Encontre todas as referências à declaração antiga do método e atualize-as  com a nova chamada.\n- Teste.\n\nIn this code I used the simple procedure. According to the book, which is referenced just above, you must follow these steps:\n\n- If you are removing a parameter, make sure it is not referenced in the function body.\n- Change the method declaration to the desired declaration.\n- Find all references to the old method declaration and update them with the new call.\n- Test.\n\nPara visualizar o código da refatoração você deve clicar na aba de branches, uma branch está sem refatoração a ou está com refatoração.\n\nTo view the refactoring code you must click on the branches tab, a branch is not refactored or is refactored.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsc0v0ne%2Fmethod_refactoring_change_function_declaration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsc0v0ne%2Fmethod_refactoring_change_function_declaration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsc0v0ne%2Fmethod_refactoring_change_function_declaration/lists"}