Custom tools

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Custom tools

Post by alex.barylski »

I typically use the following little hack tools to allow me to perform more tasks faster or automate certain tasks completely.

I had a php script which scanned the project directory and generated a list of TODO's extracted from my source. I have since just switched to using grep. Still damn handy if your like me and place TODO comments throughout your code.

What kind of tools have you hammered out in the past or present to assist you in making your coding experience more plesant...

try and avoid third party tools like lint, etc...I'm more curious to hear about tools you hacked out to help solve re-occuring problems in a particular project or all projects you work on.

What the heck, mention all the lints you use too...I just wanna know what adhoc type tools you use to make development easier...

No IDE's or their extensions, like source browsers, etc don't count.
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Post by Maugrim_The_Reaper »

Well, I'm writing a behaviour specification suite - does that count ;).

You probably pegged it best - most of the tiny tasks I write (often as Phing plugins) are for recursively scanning source code files and directories hunting for metrics. So I may want to compile a list of @todo notes (I think annotations are the cleanest form of marking), or maybe compile a list of files a specific test requires from the source code under test, or just to allow a quick scan of a class for its method names (so I don't need to go open and read the file to remember them all!). Nearly all run from the command line.
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post by alex.barylski »

or just to allow a quick scan of a class for its method names (so I don't need to go open and read the file to remember them all!).
Thats a good idea. Quick, realtime docs. I wonder if this could easily be accomplished using reflection, to simply list the class name and their methods and parameters.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Not only can reflection give you method and parameter data for classes, it can also give you phpDoc comment blocks associated with them.
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Post by Maugrim_The_Reaper »

Reflection knows all ;). A simple class details lookup script is very small using Reflection.
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

...with the single exception, sadly, of the Vampire class.
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post by alex.barylski »

Kieran Huggins wrote:...with the single exception, sadly, of the Vampire class.
For a second there...I was like Vampire class??? WTF...then it clicked...and I laughed... :lol:

How fitting to, being only a few days after halloween. 8)
Post Reply