LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > LinuxQuestions.org > Linux - News > Syndicated Linux News
User Name
Password
Syndicated Linux News This forum is for the discussion of Syndicated Linux News stories.

Notices

Reply
 
Search this Thread
Old 07-17-2007, 12:31 AM   #1
LXer
LXer NewsBot
 
Registered: Dec 2005
Posts: 74,360

Rep: Reputation: 82
LXer: Linux: Moving and Changing Code


Published at LXer:

In response to a recent merge request, Linus Torvalds explained a best practice when moving and changing code,"when doing renames it is generally *much* nicer to do a 100% rename (perhaps with just _trivial_ changes to make it compile - the include statements etc change, and maybe you want to change the name in the comment header too)." He went on to explain,"doing 'move the code and change it at the same time' is considered bad form. Movement diffs are much harder to read anyway, so the general rule is: move code around _without_ modifying it, so that code movement doesn't really introduce any real changes, and is easier to look through the changes; do the actual changes to the code as a separate thing."

Read More...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Who is Moving to Linux and Why? LXer Syndicated Linux News 0 11-09-2006 11:33 AM
LXer: Book Review : Moving to Ubuntu Linux LXer Syndicated Linux News 0 10-17-2006 09:54 PM
LXer: TurboCASH debates moving to Linux LXer Syndicated Linux News 0 01-18-2006 11:01 AM
LXer: Korean Government Moving Towards Linux LXer Syndicated Linux News 0 12-30-2005 01:01 AM
Help moving mouse with code. nonconformative Programming 1 12-02-2003 06:44 PM


All times are GMT -5. The time now is 04:45 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration