Click here to Skip to main content
15,891,905 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: An interesting exit Molotov Pin
CodeWraith23-Oct-19 23:57
CodeWraith23-Oct-19 23:57 
GeneralRe: An interesting exit Molotov Pin
BillWoodruff26-Oct-19 22:59
professionalBillWoodruff26-Oct-19 22:59 
GeneralCode analysis sucks PinPopular
Dean Roddey23-Oct-19 10:45
Dean Roddey23-Oct-19 10:45 
GeneralRe: Code analysis sucks Pin
Greg Utas23-Oct-19 11:16
professionalGreg Utas23-Oct-19 11:16 
GeneralRe: Code analysis sucks Pin
Dean Roddey23-Oct-19 11:54
Dean Roddey23-Oct-19 11:54 
GeneralRe: Code analysis sucks Pin
Stuart Dootson24-Oct-19 0:00
professionalStuart Dootson24-Oct-19 0:00 
GeneralRe: Code analysis sucks Pin
Super Lloyd23-Oct-19 15:29
Super Lloyd23-Oct-19 15:29 
GeneralRe: Code analysis sucks Pin
Sander Rossel23-Oct-19 22:55
professionalSander Rossel23-Oct-19 22:55 
Well yes, but also no.
I'm now doing a VB.NET WinForms project.
I get naming conventions and that we should be using PascalCasing for methods.
But controls are still often named "btnSave" or "txtName", and the VS default for events is btnSave_Click.
ERROR! btnSave_Click is not according to conventions (then again, nothing in this project is).
Even if I named it SaveButton, VS still generates the _ and I'm not going to change that kind of generated code.

The original developer didn't care one bit about conventions and had code as follows (comments added here by me):
VB
Public Class someClass
    Dim SomeVar ' This is possible as Options Strict is Off, making it late bound/loosely typed
    Dim _anothervar As Entities
    Private yetanothervar As Int32 = "0" ' Again, option Strict is Off
    Dim theListGoesOn As Integer
I don't know how many rules this breaks and the lack of consistency is alarming (and I wish I was overdoing it here, but I don't).
The code analyzer did help me to clean things up though.

Another thing the analyzer doesn't get is that a shown form should NOT be disposed!
Doing so will immediately close the form, learned that the hard way some years back Laugh | :laugh:

So while I was able to resolve literally 100's of possible bugs and inconsistencies it also leaves me with 100's that I cannot or will not fix!
It's a double edged blade Smile | :)

GeneralRe: Code analysis sucks Pin
BryanFazekas24-Oct-19 0:41
BryanFazekas24-Oct-19 0:41 
GeneralRe: Code analysis sucks Pin
#realJSOP24-Oct-19 0:58
mve#realJSOP24-Oct-19 0:58 
GeneralRe: Code analysis sucks Pin
johannesnestler24-Oct-19 1:23
johannesnestler24-Oct-19 1:23 
GeneralRe: Code analysis sucks Pin
Dean Roddey24-Oct-19 6:26
Dean Roddey24-Oct-19 6:26 
GeneralPerhaps ... Re: Code analysis sucks Pin
Davie2124024-Oct-19 4:38
Davie2124024-Oct-19 4:38 
GeneralRe: Perhaps ... Re: Code analysis sucks Pin
Dean Roddey24-Oct-19 6:24
Dean Roddey24-Oct-19 6:24 
GeneralRe: Perhaps ... Re: Code analysis sucks Pin
Davie2124024-Oct-19 7:26
Davie2124024-Oct-19 7:26 
GeneralRe: Code analysis sucks Pin
Steve Naidamast24-Oct-19 7:36
professionalSteve Naidamast24-Oct-19 7:36 
GeneralRe: Code analysis sucks Pin
Dean Roddey24-Oct-19 15:54
Dean Roddey24-Oct-19 15:54 
QuestionHow do you know when the TOTD is a Dad joke? PinPopular
littleGreenDude23-Oct-19 6:56
littleGreenDude23-Oct-19 6:56 
GeneralThought of the Day Pin
OriginalGriff23-Oct-19 4:51
mveOriginalGriff23-Oct-19 4:51 
GeneralRe: Thought of the Day Pin
musefan23-Oct-19 5:02
musefan23-Oct-19 5:02 
GeneralRe: Thought of the Day Pin
Johnny J.23-Oct-19 6:37
professionalJohnny J.23-Oct-19 6:37 
GeneralRe: Thought of the Day Pin
musefan23-Oct-19 21:10
musefan23-Oct-19 21:10 
GeneralRe: Thought of the Day Pin
jeron123-Oct-19 5:18
jeron123-Oct-19 5:18 
GeneralRe: Thought of the Day Pin
Daniel Pfeffer23-Oct-19 5:55
professionalDaniel Pfeffer23-Oct-19 5:55 
GeneralRe: Thought of the Day Pin
Daniel Pfeffer23-Oct-19 5:58
professionalDaniel Pfeffer23-Oct-19 5:58 

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.