Click here to Skip to main content
15,867,453 members

The Insider News

   

The Insider News is for breaking IT and Software development news. Post your news, your alerts and your inside scoops. This is an IT news-only forum - all off-topic, non-news posts will be removed. If you wish to ask a programming question please post it here.

Get The Daily Insider direct to your mailbox every day. Subscribe now!

 
GeneralRe: 5 Code commenting don'ts PinPopular
Chris Maunder13-Apr-20 4:09
cofounderChris Maunder13-Apr-20 4:09 
GeneralRe: 5 Code commenting don'ts Pin
TheGreatAndPowerfulOz13-Apr-20 8:21
TheGreatAndPowerfulOz13-Apr-20 8:21 
GeneralRe: 5 Code commenting don'ts Pin
markrlondon13-Apr-20 11:32
markrlondon13-Apr-20 11:32 
GeneralRe: 5 Code commenting don'ts Pin
TheGreatAndPowerfulOz13-Apr-20 15:03
TheGreatAndPowerfulOz13-Apr-20 15:03 
GeneralRe: 5 Code commenting don'ts Pin
Mark_Wallace13-Apr-20 18:31
Mark_Wallace13-Apr-20 18:31 
GeneralRe: 5 Code commenting don'ts Pin
TheGreatAndPowerfulOz13-Apr-20 18:56
TheGreatAndPowerfulOz13-Apr-20 18:56 
GeneralRe: 5 Code commenting don'ts Pin
Greg Utas13-Apr-20 11:52
professionalGreg Utas13-Apr-20 11:52 
GeneralRe: 5 Code commenting don'ts Pin
Bohdan Stupak13-Apr-20 5:47
professionalBohdan Stupak13-Apr-20 5:47 
Still, I guess the thing is that code comments are not enforced by the compiler.
So you may end up with smth like this after some refactorings (actually a real code I've witnessed)
C#
//decrease counter
public void IncreaseCounter()

So I'd rather abstain from code comments unless I really need them. Lots of stuff can be fixed with the right naming and extract method or complex conditional refactoring.
GeneralRe: 5 Code commenting don'ts Pin
Nelek13-Apr-20 7:27
protectorNelek13-Apr-20 7:27 
GeneralRe: 5 Code commenting don'ts Pin
TheGreatAndPowerfulOz13-Apr-20 17:25
TheGreatAndPowerfulOz13-Apr-20 17:25 
NewsSprayableTech: Large-scale interactive surfaces using airbrushed ink Pin
Kent Sharkey12-Apr-20 13:00
staffKent Sharkey12-Apr-20 13:00 
GeneralRe: SprayableTech: Large-scale interactive surfaces using airbrushed ink Pin
Mark_Wallace12-Apr-20 21:21
Mark_Wallace12-Apr-20 21:21 
GeneralRe: SprayableTech: Large-scale interactive surfaces using airbrushed ink Pin
Kris Lantz13-Apr-20 7:56
professionalKris Lantz13-Apr-20 7:56 
NewsApollo 13 in real time Pin
Kent Sharkey12-Apr-20 13:00
staffKent Sharkey12-Apr-20 13:00 
NewsMicrosoft brings 8,000 royalty-free images and icons to Office for Windows users Pin
Kent Sharkey12-Apr-20 13:00
staffKent Sharkey12-Apr-20 13:00 
GeneralRe: Microsoft brings 8,000 royalty-free images and icons to Office for Windows users Pin
Nelek12-Apr-20 23:33
protectorNelek12-Apr-20 23:33 
NewsThis website replicates the sounds of being in the office again Pin
Kent Sharkey12-Apr-20 13:00
staffKent Sharkey12-Apr-20 13:00 
GeneralRe: This website replicates the sounds of being in the office again Pin
kalberts12-Apr-20 16:02
kalberts12-Apr-20 16:02 
GeneralRe: This website replicates the sounds of being in the office again Pin
raddevus13-Apr-20 2:22
mvaraddevus13-Apr-20 2:22 
GeneralRe: This website replicates the sounds of being in the office again Pin
Nelek13-Apr-20 2:31
protectorNelek13-Apr-20 2:31 
GeneralRe: This website replicates the sounds of being in the office again Pin
raddevus13-Apr-20 4:28
mvaraddevus13-Apr-20 4:28 
GeneralRe: This website replicates the sounds of being in the office again Pin
Nelek13-Apr-20 7:25
protectorNelek13-Apr-20 7:25 
GeneralRe: This website replicates the sounds of being in the office again Pin
Greg Utas13-Apr-20 2:58
professionalGreg Utas13-Apr-20 2:58 
GeneralRe: This website replicates the sounds of being in the office again Pin
raddevus13-Apr-20 4:24
mvaraddevus13-Apr-20 4:24 
JokeRe: This website replicates the sounds of being in the office again Pin
Richard Deeming14-Apr-20 2:06
mveRichard Deeming14-Apr-20 2:06 

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.