Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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



 
Marshal
Posts: 5323
324
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
Marshal
Posts: 5323
324
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: 75646
354
  • 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
Marshal
Posts: 5323
324
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
 
Cob is sand, clay and sometimes straw. This tiny ad is made of cob:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic