• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

What is Refactoring in the context of software versioning?

 
Ranch Hand
Posts: 108
2
Netbeans IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Author,
A Refactor method means Restructuring of logical structure in code.

For e.g. Software Version 1, and Version 2 are produced.
Method: Change of 1 class in Version 2 only.
Suppose in Version 2

needs to be existed as


How should it be applied for version 1 & 2 and its dependencies too?
Simply i need to confirm,
Does it mean class AA in Version 1 too?

Thank you



 
Sheriff
Posts: 5552
326
IntelliJ IDE Python Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any code change results in a new version. Even if the only change was the renaming a method that has no functional impact on the product behaviour it would result in a new version.
 
Tim Cooke
Sheriff
Posts: 5552
326
IntelliJ IDE Python Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I should clarify on what I define as a version.

When you build your application into a deployable artefact, such as a jar in the case of a Java application, that is a versionable artefact.

For example

I build my code and call the resulting jar Version 1.0

I make a bunch of changes to my code

I build my code and call the resulting jar Version 2.0

Does that answer your question?
 
Marshal
Posts: 78695
374
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tim Cooke wrote:. . .
I build my code and call the resulting jar Version 1.0



I make very few changes to my code

I build my code and call the resulting jar Version 1.01

Or something like that.
 
Tim Cooke
Sheriff
Posts: 5552
326
IntelliJ IDE Python Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ah well now we're getting into a separate topic of versioning schemes. I like to use Semantic Versioning.
 
Noorul Hameed
Ranch Hand
Posts: 108
2
Netbeans IDE Firefox Browser Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tim Cooke wrote:I should clarify on what I define as a version.

Does that answer your question?



Yes
 
If somebody says you look familiar, tell them you are in porn. Or in these tiny ads:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic