9 Replies - 1161 Views - Last Post: 19 October 2011 - 09:08 AM

#1 DarenR   User is offline

  • D.I.C Lover

Reputation: 638
  • View blog
  • Posts: 4,228
  • Joined: 12-January 10

Nothing drives me more nuts!

Posted 19 October 2011 - 07:23 AM

Nothing drives me more nuts than when you have to check a program for its coding deficiencies and a variable has mutlipurposes but only uses one name.

Example:

a file uploader variable located in 1 folder but does 9 different upload types but is just named fileuploader. trying to differantiate between a jpeg uploader, a resume uploader, and 7 others suck when you have to open each file on its own just to see what it does....

Is This A Good Question/Topic? 0
  • +

Replies To: Nothing drives me more nuts!

#2 AdamSpeight2008   User is offline

  • MrCupOfT
  • member icon

Reputation: 2298
  • View blog
  • Posts: 9,535
  • Joined: 29-May 08

Re: Nothing drives me more nuts!

Posted 19 October 2011 - 07:46 AM

What language is this?
Was This Post Helpful? 0
  • +
  • -

#3 DarenR   User is offline

  • D.I.C Lover

Reputation: 638
  • View blog
  • Posts: 4,228
  • Joined: 12-January 10

Re: Nothing drives me more nuts!

Posted 19 October 2011 - 07:57 AM

they did this in vb and named all the files file uploader instead of picFileuploader, resumeFileuploader, etc..
Was This Post Helpful? 0
  • +
  • -

#4 AdamSpeight2008   User is offline

  • MrCupOfT
  • member icon

Reputation: 2298
  • View blog
  • Posts: 9,535
  • Joined: 29-May 08

Re: Nothing drives me more nuts!

Posted 19 October 2011 - 07:58 AM

vb.net or vb6?
Was This Post Helpful? 0
  • +
  • -

#5 DarenR   User is offline

  • D.I.C Lover

Reputation: 638
  • View blog
  • Posts: 4,228
  • Joined: 12-January 10

Re: Nothing drives me more nuts!

Posted 19 October 2011 - 08:01 AM

vb.net
Was This Post Helpful? 0
  • +
  • -

#6 AdamSpeight2008   User is offline

  • MrCupOfT
  • member icon

Reputation: 2298
  • View blog
  • Posts: 9,535
  • Joined: 29-May 08

Re: Nothing drives me more nuts!

Posted 19 October 2011 - 08:04 AM

I don't believe you, I demand to see the alleged offending sourcecode, or didn't happen.
Was This Post Helpful? 0
  • +
  • -

#7 DarenR   User is offline

  • D.I.C Lover

Reputation: 638
  • View blog
  • Posts: 4,228
  • Joined: 12-January 10

Re: Nothing drives me more nuts!

Posted 19 October 2011 - 08:13 AM

Namespace BWeb


Public Class uc_File_Uploader

Public Sub Show_Images()



Namespace BWeb


Public Class uc_File_Uploader

Public Sub Show_Resume()


and so on
Was This Post Helpful? 0
  • +
  • -

#8 AdamSpeight2008   User is offline

  • MrCupOfT
  • member icon

Reputation: 2298
  • View blog
  • Posts: 9,535
  • Joined: 29-May 08

Re: Nothing drives me more nuts!

Posted 19 October 2011 - 08:22 AM

What wrong with it, from what you have shown(so far) it is not that bad. They suggest that the classes are UserControl via the uc_ prefix
Secondly if the second BWeb namespace is inside the first BWeb then the Same Class name don't matter, they are treated a separate.
Imagine if there wasen't any namespace (at all in .net) the class naming would be even more crazy.

Have you check the documentation to see if it state the differences.

This post has been edited by AdamSpeight2008: 19 October 2011 - 08:22 AM

Was This Post Helpful? 0
  • +
  • -

#9 DarenR   User is offline

  • D.I.C Lover

Reputation: 638
  • View blog
  • Posts: 4,228
  • Joined: 12-January 10

Re: Nothing drives me more nuts!

Posted 19 October 2011 - 08:31 AM

I ahve been renaming them because in order to find lets say an image uploader to change the coding you have to open each of the files. As far as documentation -- there is none, who ever wrote the code didn't like to document any of it. Thus that is what I am doing right now. I'd show more code but it is proprietary and I don't feel like gettign in trouble.
Was This Post Helpful? 0
  • +
  • -

#10 AdamSpeight2008   User is offline

  • MrCupOfT
  • member icon

Reputation: 2298
  • View blog
  • Posts: 9,535
  • Joined: 29-May 08

Re: Nothing drives me more nuts!

Posted 19 October 2011 - 09:08 AM

If the basic functionality is the same, this to me suggests a good opportunity to use inheritance. I bet they have lot similar code.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1