Click here to Skip to main content
14,453,249 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
CodeWraith24-Oct-19 0:57
MemberCodeWraith24-Oct-19 0:57 
GeneralRe: An interesting exit Molotov Pin
BillWoodruff26-Oct-19 23:59
mveBillWoodruff26-Oct-19 23:59 
GeneralCode analysis sucks Pin
Dean Roddey23-Oct-19 11:45
MemberDean Roddey23-Oct-19 11:45 
GeneralRe: Code analysis sucks Pin
Greg Utas23-Oct-19 12:16
professionalGreg Utas23-Oct-19 12:16 
GeneralRe: Code analysis sucks Pin
Dean Roddey23-Oct-19 12:54
MemberDean Roddey23-Oct-19 12:54 
GeneralRe: Code analysis sucks Pin
Stuart Dootson24-Oct-19 1:00
professionalStuart Dootson24-Oct-19 1:00 
GeneralRe: Code analysis sucks Pin
Super Lloyd23-Oct-19 16:29
MemberSuper Lloyd23-Oct-19 16:29 
GeneralRe: Code analysis sucks Pin
Sander Rossel23-Oct-19 23:55
professionalSander Rossel23-Oct-19 23: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):
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 1:41
MemberBryanFazekas24-Oct-19 1:41 
GeneralRe: Code analysis sucks Pin
#realJSOP24-Oct-19 1:58
mva#realJSOP24-Oct-19 1:58 
GeneralRe: Code analysis sucks Pin
johannesnestler24-Oct-19 2:23
Memberjohannesnestler24-Oct-19 2:23 
GeneralRe: Code analysis sucks Pin
Dean Roddey24-Oct-19 7:26
MemberDean Roddey24-Oct-19 7:26 
GeneralPerhaps ... Re: Code analysis sucks Pin
Davie2124024-Oct-19 5:38
MemberDavie2124024-Oct-19 5:38 
GeneralRe: Perhaps ... Re: Code analysis sucks Pin
Dean Roddey24-Oct-19 7:24
MemberDean Roddey24-Oct-19 7:24 
GeneralRe: Perhaps ... Re: Code analysis sucks Pin
Davie2124024-Oct-19 8:26
MemberDavie2124024-Oct-19 8:26 
GeneralRe: Code analysis sucks Pin
Steve Naidamast24-Oct-19 8:36
professionalSteve Naidamast24-Oct-19 8:36 
GeneralRe: Code analysis sucks Pin
Dean Roddey24-Oct-19 16:54
MemberDean Roddey24-Oct-19 16:54 
QuestionHow do you know when the TOTD is a Dad joke? Pin
littleGreenDude23-Oct-19 7:56
MemberlittleGreenDude23-Oct-19 7:56 
GeneralThought of the Day Pin
OriginalGriff23-Oct-19 5:51
communityengineerOriginalGriff23-Oct-19 5:51 
GeneralRe: Thought of the Day Pin
musefan23-Oct-19 6:02
Membermusefan23-Oct-19 6:02 
GeneralRe: Thought of the Day Pin
Johnny J.23-Oct-19 7:37
professionalJohnny J.23-Oct-19 7:37 
GeneralRe: Thought of the Day Pin
musefan23-Oct-19 22:10
Membermusefan23-Oct-19 22:10 
GeneralRe: Thought of the Day Pin
jeron123-Oct-19 6:18
Memberjeron123-Oct-19 6:18 
GeneralRe: Thought of the Day Pin
Daniel Pfeffer23-Oct-19 6:55
professionalDaniel Pfeffer23-Oct-19 6:55 
GeneralRe: Thought of the Day Pin
Daniel Pfeffer23-Oct-19 6:58
professionalDaniel Pfeffer23-Oct-19 6: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.