Click here to Skip to main content
15,882,114 members
Home / Discussions / Work Issues
   

Work Issues

 
AnswerRe: If a silver member gives a negative comment against a solved code Pin
F-ES Sitecore22-Nov-17 23:28
professionalF-ES Sitecore22-Nov-17 23:28 
GeneralRe: If a silver member gives a negative comment against a solved code Pin
Laxmidhar tatwa technologies23-Nov-17 0:40
Laxmidhar tatwa technologies23-Nov-17 0:40 
QuestionRelated point Pin
Laxmidhar tatwa technologies20-Nov-17 17:48
Laxmidhar tatwa technologies20-Nov-17 17:48 
AnswerRe: Related point Pin
ZurdoDev21-Nov-17 1:28
professionalZurdoDev21-Nov-17 1:28 
GeneralRe: Related point Pin
Laxmidhar tatwa technologies22-Nov-17 18:08
Laxmidhar tatwa technologies22-Nov-17 18:08 
QuestionWhere is my article ? Pin
Kishan Zunjare3-Nov-17 20:07
Kishan Zunjare3-Nov-17 20:07 
AnswerRe: Where is my article ? Pin
Afzaal Ahmad Zeeshan3-Nov-17 23:00
professionalAfzaal Ahmad Zeeshan3-Nov-17 23:00 
QuestionHow to write a programming language in Hindi? Pin
INDtanay5-Oct-17 6:01
INDtanay5-Oct-17 6:01 
AnswerRe: How to write a programming language in Hindi? Pin
Member 1349103928-Oct-17 20:29
Member 1349103928-Oct-17 20:29 
PraiseRe: How to write a programming language in Hindi? Pin
INDtanay22-Nov-17 20:19
INDtanay22-Nov-17 20:19 
GeneralRe: How to write a programming language in Hindi? Pin
Member 1349103923-Nov-17 4:26
Member 1349103923-Nov-17 4:26 
GeneralRe: How to write a programming language in Hindi? Pin
INDtanay23-Nov-17 6:01
INDtanay23-Nov-17 6:01 
GeneralRe: How to write a programming language in Hindi? Pin
Member 1349103927-Nov-17 17:07
Member 1349103927-Nov-17 17:07 
GeneralMessage Closed Pin
4-Jan-22 19:03
JK-8584-Jan-22 19:03 
QuestionWorking with software houses / SDLC expertise Pin
JohnLBevan4-Oct-17 0:30
professionalJohnLBevan4-Oct-17 0:30 
SuggestionDrop Down Issue Pin
Member 1332500523-Jul-17 21:04
Member 1332500523-Jul-17 21:04 
GeneralRe: Drop Down Issue Pin
Richard Deeming24-Jul-17 8:07
mveRichard Deeming24-Jul-17 8:07 
QuestionOf Code and Comments Pin
I.explore.code30-Jun-17 8:19
I.explore.code30-Jun-17 8:19 
AnswerRe: Of Code and Comments Pin
David A. Gray30-Jun-17 9:22
David A. Gray30-Jun-17 9:22 
GeneralRe: Of Code and Comments Pin
I.explore.code30-Jun-17 10:19
I.explore.code30-Jun-17 10:19 
GeneralRe: Of Code and Comments Pin
David A. Gray30-Jun-17 10:33
David A. Gray30-Jun-17 10:33 
GeneralRe: Of Code and Comments Pin
I.explore.code30-Jun-17 12:55
I.explore.code30-Jun-17 12:55 
GeneralRe: Of Code and Comments Pin
David A. Gray5-Jul-17 16:02
David A. Gray5-Jul-17 16:02 
IMO, old-fashioned != outdated.

As an example, last year, I had a changeset that included models, views, and controllers for two entities. A few weeks later, when I reviewed the code for another use story, I found myself scratching my head about why the view, which shouldn't have been affected by the changes to implement the last user story that touched these modules. I eventually figured out why it got in there, but I wasted a good deal of time on it that could have been put to better use working on another user story.

Histories were banned at the last two places that I worked. Instead, programmers were urged to enter dated comments adjacent to code changes. While this is nice, and I do that, you can't find them without searching the file for a date, and praying that everyone writes theirs in the same format. A history at the top of the source file is easy to maintain, and is discarded by the compiler, so has no effect on the generated machine code or byte code.

When I review source code that has a history, I can frequently confine my examination of a particular file to its history, because I can learn everything I need to know about it from the last entry or two. Working on a complex application that has many moving parts, changeset notes just aren't enough. Besides, they are not written until after the change is made and tested, when it's harder to remember why you changed each file in the set.

From time to time, I've brought some of my own code into a project, and when I've done so, the history stayed with it.

I wrote my first "real" program in 1978, and everything that I just said is the result of almost 40 years of hard won lessons, some learned when I stopped doing something that I thought was unnecessary, or had been superseded by some newer method that was allegedly better. I can't count the times that I've had to revert to my "old" way of doing things, because the "new" way was just too unproductive. Histories in source code belongs on that list.
David A. Gray
Delivering Solutions for the Ages, One Problem at a Time
Interpreting the Fundamental Principle of Tabular Reporting

GeneralRe: Of Code and Comments Pin
I.explore.code14-Jul-17 13:13
I.explore.code14-Jul-17 13:13 
GeneralRe: Of Code and Comments Pin
Davie2124019-Feb-18 10:43
Davie2124019-Feb-18 10:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.