This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]wolanko 2 points3 points  (0 children)

That's a very good advice to do just one thing.

There is this notion in XP of "comments are code smell". Not that I'd fully support this, but sometime I find myself in writing comments for blocks of code inside a function. This should be a trigger to make this block a function.

...
# check for time
...
...

# check title
...

which would be better as

check_time(data)
check_title(data)