comments - How indicate when a functions was upgraded in relationship to the entire program

admin2025-06-03  4

Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for WordPress Development Stack Exchange.

Closed 12 years ago.

Improve this question

for inline documentation there are those @somethings for some php documenter, when

there is the common @since @version and so on.

I have a lot of functions that are all part of a big package. But what if i want to indicate when i last updated a function and show on what version of the mayor package it was done?

should i just use @version and give the function the version of the entire package?

In case i cause confusion:

lets say i have a function with @since 0.1 in my program 1.0. then the program itself gets developed up to 2.9 and for the 3.0 version the function would have a change.

So actually the functions version would be 0.2 now but i want to show on what version of my entire programm it was updated. So should i just jump and say @version 3.0 at this function?

i just used a @updated but thats not existing right? nothing like this documented here

Is there anything for my purpose?

Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for WordPress Development Stack Exchange.

Closed 12 years ago.

Improve this question

for inline documentation there are those @somethings for some php documenter, when

there is the common @since @version and so on.

I have a lot of functions that are all part of a big package. But what if i want to indicate when i last updated a function and show on what version of the mayor package it was done?

should i just use @version and give the function the version of the entire package?

In case i cause confusion:

lets say i have a function with @since 0.1 in my program 1.0. then the program itself gets developed up to 2.9 and for the 3.0 version the function would have a change.

So actually the functions version would be 0.2 now but i want to show on what version of my entire programm it was updated. So should i just jump and say @version 3.0 at this function?

i just used a @updated but thats not existing right? nothing like this documented here

Is there anything for my purpose?

Share Improve this question edited Feb 9, 2019 at 0:03 fuxia 107k39 gold badges255 silver badges461 bronze badges asked Jul 8, 2012 at 19:22 amyamy 3851 gold badge5 silver badges14 bronze badges 2
  • The question is not about WordPress, it’s about software development in a wider scope. I wanted to move to programmers but they don’t want it. – fuxia Commented Jul 8, 2012 at 19:51
  • Yeah i know, i can't post in SO anymore so i did this here. Could have been migrated, but why bother just close thanks for nothing. – amy Commented Jul 9, 2012 at 1:33
Add a comment  | 

1 Answer 1

Reset to default 1

Inline docs are the place to track changes. There are better tools for that: revision control. Use Git, Mercurial or – if you want to stay old-school ;) – SVN.

Each time you change something, you make a commit: A short note explaining the difference between the last and the new version (example).

Usually, when you look at source code you want to know what it does right now. And why. These docs are important. Everything else, including @since, doesn’t really belong to comments.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1748926950a314884.html

最新回复(0)