todo

S

Slava Mikerin

What is the correct (if any) way to mark code with todo sign (#todo,
@todo, ...)?
 
J

Jason Stewart

I use TODO because vim syntax highlights it. I try to stay away from
it in favor of writing a test for it instead.
 
T

Thomas Preymesser

[Note: parts of this message were removed to make it a legal post.]

2009/8/15 Slava Mikerin said:
What is the correct (if any) way to mark code with todo sign (#todo,
@todo, ...)?


you could use blocks like this:

def to &b
puts "TODO at file #{b.source_location[0]} line: #{b.source_location[1]}"
end

puts 1
to do
write code to output "2"
end
puts 3
to do
calculate the square root
end

-Thomas

--
Thomas Preymesser
(e-mail address removed)
http://thopre.googlepages.com/
http://thopre.wordpress.com/
Sent from Berlin, BE, Germany
Pablo Picasso<http://www.brainyquote.com/quotes/authors/p/pablo_picasso.html>
- "Computers are useless. They can only give you answers."
 
L

Lars Christensen

What is the correct (if any) way to mark code with todo sign (#todo,
@todo, ...)?

A failing unit test, and/or:

raise NotImplementedError, "This needs to be implemented..."
 
R

Robert Dober

I use TODO because vim syntax highlights it. I try to stay away from
it in favor of writing a test for it instead.
I wish I could write tests for that kind
TODO: Refactor that holy mess
;)
Well I could maybe use some code metrics to catch the worst cases.

But your advice is sound of course, Jason.

Cheers
Robert
--=20
module Kernel
alias_method :=EB, :lambda
end
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top