# Cleanup & requires & so on

**URL:** <https://www.ruby-forum.com/t/cleanup-requires-so-on/101453>\
**Category:** Ruby\
**Created:** [August 4, 2006, 9:49pm UTC](https://www.ruby-forum.com/t/cleanup-requires-so-on/101453 "2006-08-04T21:49:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tbobker](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/73ab20/32.png) [@tbobker](https://www.ruby-forum.com/u/tbobker)\
**Post date:** [August 4, 2006, 9:49pm UTC](https://www.ruby-forum.com/t/cleanup-requires-so-on/101453/1 "2006-08-04T21:49:08Z")

</div>

I’m just finishing up my first real chunk of Ruby work, and it’s sitting  
in a dozen different .rb files, and obviously there was a lot of  
refactoring along the way. Is there a tool that can look at my code and  
make sure that I don’t have extra 'require’s and highlight other  
bookkeeping errors & so on? I’m used to NetBeans, and it just takes  
care of this stuff for you.

-Tim

---

<div class="post-metadata">

**Author:** ![tbobker](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/73ab20/32.png) [@tbobker](https://www.ruby-forum.com/u/tbobker)\
**Post date:** [August 4, 2006, 11:10pm UTC](https://www.ruby-forum.com/t/cleanup-requires-so-on/101453/2 "2006-08-04T23:10:32Z")

</div>

I’m no expert, and I’m relatively new to the language myself, though a  
fair amount of experience elsewhere (though not nearly as much as you,  
arguably), but I will honestly say that I’ve not come across anything  
so explicit as a refactoring tool. However, I’ve seen Mauricio’s rcov  
which shows you code coverage and many different things that would  
help you to slim things down and spot problematic areas.

[http://eigenclass.org/hiki.rb?rcov+0.7.0](http://eigenclass.org/hiki.rb?rcov+0.7.0)

Cheers,

M.T.

---

<div class="post-metadata">

**Author:** ![tbobker](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/73ab20/32.png) [@tbobker](https://www.ruby-forum.com/u/tbobker)\
**Post date:** [August 4, 2006, 11:16pm UTC](https://www.ruby-forum.com/t/cleanup-requires-so-on/101453/3 "2006-08-04T23:16:33Z")

</div>

“Tim B.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote in message  
news:removed\_email\_address@domain.invalid…

> I’m just finishing up my first real chunk of Ruby work, and it’s sitting  
> in a dozen different .rb files, and obviously there was a lot of  
> refactoring along the way. Is there a tool that can look at my code and  
> make sure that I don’t have extra 'require’s and highlight other  
> bookkeeping errors & so on? I’m used to NetBeans, and it just takes care  
> of this stuff for you.

```
I somehow doubt you have to worry about extraneous "requires" 

```

anymore  
than you’d have to worry about extra “includes” in a C project… I  
think  
it’s fair and, in fact, desirable to “require” whatever that source file  
requires (hence the choice of keyword…)…
