cqfn / pdd

Command line toolkit for collecting TODO markers from your code, known as Puzzle Driven Development (PDD)
https://www.0pdd.com
MIT License
76 stars 25 forks source link

Puzzle Header #241

Closed volodya-lombrozo closed 7 months ago

volodya-lombrozo commented 7 months ago

I'd like to address the readability of issue headers in pdd, particularly when dealing with puzzles. Currently, the headers are not human-readable, as exemplified by the following example:

* @todo #431:30min Measure the assembling time and print it to logs. 
*  The assembling time should be measured in milliseconds and printed to logs. 
*  Moreover, we have to add one more log entry that would print the path of the file 
*  being assembled. The entire log should look like this: 
*  "Assembling file.xmir (5kb)....". 
*  "Assembled file.class (6kb) in 100ms". 

Issue Header:

ImprovementBytecodeFootprint.java:85-90: Measure the... #447

I propose a more user-friendly format, such as:

Measure the assembling time and print it to logs. (30min, from #issue)

or a simplified version:

Measure the assembling time and print it to logs.

My goal is to encapsulate all meta information directly within the puzzle description. Is there a way to configure pdd to generate issue headers in this human-readable format?

volodya-lombrozo commented 7 months ago

@yegor256 Could you help here, please?

yegor256 commented 7 months ago

@pnatashap maybe you can help?

php-coder commented 7 months ago

pdd just extracts data and populates fields in pdd.xml, in other words, it's a low-level tool. I believe that this should be implemented on 0pdd level.

If we look at https://github.com/yegor256/0pdd, there is parameter short-title that removes ImprovementBytecodeFootprint.java:85-90: from the title. So, I'd rather introduce another parameter for configuring title's format.

volodya-lombrozo commented 7 months ago

@php-coder Thank you! I'll try to use short-title then. If I have questions, I will ask them in the 0pdd repository.