Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Weird and The Wonderful
  4. God, I hate VB. All I want for Christmas is for you to smite the retards responsible for its existence

God, I hate VB. All I want for Christmas is for you to smite the retards responsible for its existence

Scheduled Pinned Locked Moved The Weird and The Wonderful
databasecsharpc++data-structures
39 Posts 20 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Ri Qen Sin

    Hey! I write good programs! :mad:

    ROFLOLMFAO

    P Offline
    P Offline
    PIEBALDconsult
    wrote on last edited by
    #20

    Ri Qen-Sin wrote:

    I write good programs!

    I believe you... because you didn't say, "I write programs good!" :-D

    S 1 Reply Last reply
    0
    • R Ri Qen Sin

      Does this remind anyone of the chicken or the egg problem? :laugh:

      ROFLOLMFAO

      N Offline
      N Offline
      Nemanja Trifunovic
      wrote on last edited by
      #21

      Ri Qen-Sin wrote:

      Does this remind anyone of the chicken or the egg problem?

      Nope. There is bootstrapping[^]

      Programming Blog utf8-cpp

      1 Reply Last reply
      0
      • A Alaric_

        God, I hate VB. All I want for Christmas is for you to smite the retards responsible for its existence....and if it pleases you, oh God: can you send some of the "Non"s with them? This was written in 2005 in a VB.NET project

        GoTo Error_Trap
        End Try

                Me.LBL\_status.Text = ""
            Else
                Me.DV\_Search.Visible = True
                Me.DV\_Results.Attributes("style") = "display:none"
                Me.LBL\_status.Text = "No Rows Returned."
            End If
        
            Exit Sub
        

        Error_Trap:
        ShowError()

        ...The "Business Logic", "Data Access" and "Presentation" layers are maintained not as separate projects inside a solution, but as FOLDERS!!! inside a single project. ...which results in a "hard-wired disgusting switch-boxed bastardization" of the layered pattern ...The mechanism that was chosen by our unqualified senior architect (who makes God knows how much a year) for accessing the database is to have the presentation layer do something like this:

        Dim tbl As DataTable

            tbl = Common.GetDataTable(SQLScripts.GetBaseEmpSql(UserID))
        

        rather than having stored procedures encapsulate the sql scripts, the choice was made to maintain them in code. (Granted, I obfuscated the schema name and each of the table names so that I could post)

        Public Shared Function getSQL(ByVal aryPVIDs() As String) As String
        'aryPVIDs must be an array of pvids
        Dim sql, strSelect, strFrom, strWhere As String
        Dim strPVIDs As String

            strPVIDs = Join(aryPVIDs, "','")
        
            strSelect = "Select p.ID, p.Ps\_Project\_NBr, " & vbCrLf & \_
            " p.Project\_Desc\_txt, pt.Project\_type\_txt, p.project\_type\_cd, " & \_
            " p.spread\_method\_cd, sm.spread\_method\_txt, p.project\_mgr\_id, pm.last\_nm||', '||pm.first\_nm ProjectMgrFullName, " & vbCrLf & \_
            " p.asset\_mgr\_id, am.last\_nm||', '||am.first\_nm AssetMgrFullName, " & vbCrLf & \_
            " p.lead\_eng\_id, le.last\_nm||', '||le.first\_nm LeadEngineerFullName, " & vbCrLf & \_
            " p.start\_dt, p.revised\_start\_dt, " & vbCrLf & \_
            " p.orig\_serv\_dt, p.revised\_serv\_dt, p.projected\_serv\_dt, " & vbCrLf & \_
            " p.host\_flg, p.engineer\_group\_cd, eg.engineer\_group\_txt, " & vbCrLf & \_
            " p.Trans\_region\_cd, tr.transmission\_region\_txt, p.comments\_txt, " & vbCrLf & \_
            " p.Distr\_region\_cd, dr.distr\_region\_txt, " & vbCrLf & \_
            " p.project\_status\_cd, priority\_cd , archive\_flg, " & vbCrLf & \_
            " ps.cpp, p.glbu, ps.ci\_status\_nbr
        
        P Offline
        P Offline
        Paul Conrad
        wrote on last edited by
        #22

        That is just plain hideous.

        "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

        1 Reply Last reply
        0
        • R Ray Cassick

          Why is your post not titled "I hate dumb ass VB programmers"? I have seen equally as dumb ass stuff written in C++, C#, Pascal, etc... The language is syntacticly FINE. It is the idiots that USE it that you have problems with.


          My Blog[^]
          FFRF[^]


          P Offline
          P Offline
          Paul Conrad
          wrote on last edited by
          #23

          Ray Cassick wrote:

          language is syntacticly FINE. It is the idiots that USE it that you have problems with.

          I ditto that. The same code could have been done in any other language and looked just as bad.

          "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

          P 1 Reply Last reply
          0
          • M mr_lasseter

            I find it ironic that you are blasting VB, but in your messages on your profile you are using access. But in your defense that is some terrible code, where do you work and are they passing out salaries in the 200K range? I think I could move...

            P Offline
            P Offline
            Paul Conrad
            wrote on last edited by
            #24

            mr_lasseter wrote:

            using access

            That is just about as bad.

            "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

            1 Reply Last reply
            0
            • P Paul Conrad

              Ray Cassick wrote:

              language is syntacticly FINE. It is the idiots that USE it that you have problems with.

              I ditto that. The same code could have been done in any other language and looked just as bad.

              "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

              P Offline
              P Offline
              Patrick Etc
              wrote on last edited by
              #25

              Paul Conrad wrote:

              I ditto that. The same code could have been done in any other language and looked just as bad.

              I think I could make some reasonable disagreement with that. When I'm forced to use VB.NET, I think differently than when I'm using C#. The C# language can do things VB.NET can't; and while I do try hard to retain the clarity of work I do in C#, the language itself gets in the way. It's like being a highly skilled acrobat trying to walk down a straight hallway when all of the strangely shaped objects on the floor keep moving, trying to trip you. VB is those moving objects. The language itself seems designed to prevent clarity of thought.


              It has become appallingly obvious that our technology has exceeded our humanity. - Albert Einstein

              P A 2 Replies Last reply
              0
              • P Patrick Etc

                Paul Conrad wrote:

                I ditto that. The same code could have been done in any other language and looked just as bad.

                I think I could make some reasonable disagreement with that. When I'm forced to use VB.NET, I think differently than when I'm using C#. The C# language can do things VB.NET can't; and while I do try hard to retain the clarity of work I do in C#, the language itself gets in the way. It's like being a highly skilled acrobat trying to walk down a straight hallway when all of the strangely shaped objects on the floor keep moving, trying to trip you. VB is those moving objects. The language itself seems designed to prevent clarity of thought.


                It has become appallingly obvious that our technology has exceeded our humanity. - Albert Einstein

                P Offline
                P Offline
                Paul Conrad
                wrote on last edited by
                #26

                Patrick Sears wrote:

                hard to retain the clarity of work I do in C#, the language itself gets in the way.

                Can you give an example? Only problem I have is switching back to C# from VB.NET and forgetting ; sometimes.

                "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

                1 Reply Last reply
                0
                • M mr_lasseter

                  I find it ironic that you are blasting VB, but in your messages on your profile you are using access. But in your defense that is some terrible code, where do you work and are they passing out salaries in the 200K range? I think I could move...

                  F Offline
                  F Offline
                  Florin Crisan
                  wrote on last edited by
                  #27

                  I know some VB. Where can I find the 200k jobs? :)

                  Florin Crisan

                  1 Reply Last reply
                  0
                  • D Dave Kreskowiak

                    Sadly, it's not the retards writing the VB net compiler that want backwards compatibility. It's the retards using the old VB syntax that want it. I for one, can't stand the old VB6 crap and the "shortcuts" and implicit conversions it does in the background. If it was up to me, "On Error Goto", and alot of other pre-VB.NET crap, would have been tied to a post, blindfolded, and asked what it wanted on its Tombstone.

                    A guide to posting questions on CodeProject[^]
                    Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                         2006, 2007

                    M Offline
                    M Offline
                    Matt Sollars
                    wrote on last edited by
                    #28

                    I concur. Regardless of the language; when something is no longer useful, it should be deprecated, then removed. In the case of VB.NET, many things haven't even made it to deprecation, while others have been in the deprecated phase for years and versions upon versions. If you think about it, one of the absolute biggest problems that Microsoft deals with is supporting backwards compatibility. They just need to grow a pair and cut the old "features" off at the knees. Move on! We cannot ever expect to receive a truly greater product if it continues to support these old (and completely useless) ideas. The problem is, if they did move on and drop useless ideas, Microsoft would face a hailstorm from the "beginners" and the 61-year old original-COBOL programmer that just can NOT bring himself to learn something new.


                    Matt
                    (Find your own niche! This one's mine.)

                    D 1 Reply Last reply
                    0
                    • M Matt Sollars

                      I concur. Regardless of the language; when something is no longer useful, it should be deprecated, then removed. In the case of VB.NET, many things haven't even made it to deprecation, while others have been in the deprecated phase for years and versions upon versions. If you think about it, one of the absolute biggest problems that Microsoft deals with is supporting backwards compatibility. They just need to grow a pair and cut the old "features" off at the knees. Move on! We cannot ever expect to receive a truly greater product if it continues to support these old (and completely useless) ideas. The problem is, if they did move on and drop useless ideas, Microsoft would face a hailstorm from the "beginners" and the 61-year old original-COBOL programmer that just can NOT bring himself to learn something new.


                      Matt
                      (Find your own niche! This one's mine.)

                      D Offline
                      D Offline
                      Dave Kreskowiak
                      wrote on last edited by
                      #29

                      They already did faced that garbage when they announced they were dropping support for VB6. A bunch of people really griped about it, including a bunch of MS MVPs that they just couldn't do that because there are a bunch of legacy apps out there they they still needed to support. I say fine, start phasing out support for your legacy apps and move up to VB.NET. I know it costs money, and a bunch of it, to rewrite apps in VB.NET. That's why there is a migration path where VB.NET supports the old stuff in VB6. Great. But now we're into the 4th generation of VB.NET. They just can't tell me that they wasted the last 7 years still developing new apps in VB6 instead of moving their code base to .NET. That's just plain lazy...

                      A guide to posting questions on CodeProject[^]
                      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                           2006, 2007

                      1 Reply Last reply
                      0
                      • A Alaric_

                        Dave Kreskowiak wrote:

                        I for one, can't stand the old VB6 crap and the "shortcuts" and implicit conversions it does in the background. If it was up to me, "On Error Goto", and alot of other pre-VB.NET crap

                        "On Error Goto" was never a correct implementation of exception handling. I say that I hate "VB" because Visual Basic is the most popular incarnation of the BASIC language (in the current .NET flavor), but more accurately, I should have said that I despise BASIC ...does anyone that writes BASIC even know what it is??? It stands for Beginner's All-purpose Symbolic Instruction Code. If you're a Beginner, writing BASIC is completely understandable. But you MUST realize that it is intended for use by non-programmers as a stepping stone to whatever language you go to after you are comfortable enough to step up

                        "I need build Skynet. Plz send code"

                        S Offline
                        S Offline
                        supercat9
                        wrote on last edited by
                        #30

                        [quote]It stands for Beginner's All-purpose Symbolic Instruction Code.[/quote] The popularity of BASIC in the 1980's stemmed not from human ease of use, but rather from the ability to make a very compact editor/interpreter package. Some simple versions of BASIC are 4K or less. Indeed, the Atari 2600 implementation of BASIC includes a CodeView-style display (showing current execution point and the values of all variables), and has to implement its own font display handling (the hardware has none), keypad scanning logic, and even a crude screen-saver, and yet it still fits within 4K. Many of the horrible parts of vb6 syntax can be traced to Microsoft's original BASIC interpreter for the IBM PC more than 25 years ago. Using oddball invocation formats for graphics statements line line (x1,y1)-(x2,y2),color,bf is fine in an on-the-fly interpreted language, but is not a good approach in a compiled procedural or object-oriented language. Fortunately, the most horrible aspects of syntax were dropped in vb.net.

                        A 2 Replies Last reply
                        0
                        • S supercat9

                          [quote]It stands for Beginner's All-purpose Symbolic Instruction Code.[/quote] The popularity of BASIC in the 1980's stemmed not from human ease of use, but rather from the ability to make a very compact editor/interpreter package. Some simple versions of BASIC are 4K or less. Indeed, the Atari 2600 implementation of BASIC includes a CodeView-style display (showing current execution point and the values of all variables), and has to implement its own font display handling (the hardware has none), keypad scanning logic, and even a crude screen-saver, and yet it still fits within 4K. Many of the horrible parts of vb6 syntax can be traced to Microsoft's original BASIC interpreter for the IBM PC more than 25 years ago. Using oddball invocation formats for graphics statements line line (x1,y1)-(x2,y2),color,bf is fine in an on-the-fly interpreted language, but is not a good approach in a compiled procedural or object-oriented language. Fortunately, the most horrible aspects of syntax were dropped in vb.net.

                          A Offline
                          A Offline
                          Alaric_
                          wrote on last edited by
                          #31

                          supercat9 wrote:

                          ...The popularity of BASIC in the 1980's...

                          And we are 2 years from "the 80s" being 30 years old. I imagine there might be legacy embedded systems in existence that still require the ability to fit everything within 4K of storage, but I would retort with the idea that if you needed something with that light of a memory signature, the programmer should be working on their optimization skills with whatever assembly language targets said embedded system's processor. BASIC serves absolutely no *valid* purpose, WHATSOEVER as a programming language outside of academia. There is a stigma on the culture surrounding BASIC as being full of underqualified, improperly educated developers. I would tend to agree with this stigma on a general basis, but I would say that it is only the fault of the developer in the fact that they never "advanced" beyond the beginner stage. Most of the blame can be placed on the language itself. Example: Visual Basic supports optional parameters. I've heard developers complain that C# doesn't support optional parameters and think "oh...he/she's an ex VB programmer or a bad C++ programmer" Optional parameters promote horrid programming practices and completely belie a basic tenet of object-oriented programming (polymorphism) Optional parameters basically mode a method signature, which is a practice that has been laughed at for nearly 20 years as being a juvenile solution to any system outside of a state machine.

                          "I need build Skynet. Plz send code"

                          1 Reply Last reply
                          0
                          • S supercat9

                            [quote]It stands for Beginner's All-purpose Symbolic Instruction Code.[/quote] The popularity of BASIC in the 1980's stemmed not from human ease of use, but rather from the ability to make a very compact editor/interpreter package. Some simple versions of BASIC are 4K or less. Indeed, the Atari 2600 implementation of BASIC includes a CodeView-style display (showing current execution point and the values of all variables), and has to implement its own font display handling (the hardware has none), keypad scanning logic, and even a crude screen-saver, and yet it still fits within 4K. Many of the horrible parts of vb6 syntax can be traced to Microsoft's original BASIC interpreter for the IBM PC more than 25 years ago. Using oddball invocation formats for graphics statements line line (x1,y1)-(x2,y2),color,bf is fine in an on-the-fly interpreted language, but is not a good approach in a compiled procedural or object-oriented language. Fortunately, the most horrible aspects of syntax were dropped in vb.net.

                            A Offline
                            A Offline
                            Alaric_
                            wrote on last edited by
                            #32

                            ...beyond that, dimensional variable declarations are just plain syntactically hideous. That should be enough for anyone to loathe VB on its own

                            "I need build Skynet. Plz send code"

                            1 Reply Last reply
                            0
                            • S sulu

                              The UnEducated (Mostly Indian/Russian/Chinese) Developers will always write poor programs no matter what the language. VB just makes it eaiser for them to do it! I have seen some excellent and well written VB Programs

                              A Offline
                              A Offline
                              Andrew Torrance
                              wrote on last edited by
                              #33

                              sulu wrote:

                              The UnEducated (Mostly Indian/Russian/Chinese) Developers will always write poor programs no matter what the language. VB just makes it eaiser for them to do it!

                              And what nationality is responsible for raising a person with such a biased , ignorant viewpoint ? :mad:

                              1 Reply Last reply
                              0
                              • A Alaric_

                                ...btw, if you're a VB programmer and you think that I was insulting you or anything, then you misunderstood my intentions. ...My gripe is with the language and the reasoning behind the language....VB was designed to give "Non"programmers the ability to write quick, dirty desktop apps. I have a HUGE problem with VB being the language of choice in an enterprise setting, because most of the people that actually would say "Oh, I think we'll write this in VB. It does what we need to do" probably doesn't have the skill to make that decision. VB should never be used for anything other than "my app: I'm building it; I'm supporting it; It's running on my machine" Anything that is to actually be deployed to production should be written in a much more appropriate language because the GENERAL developer base for VB is absolute crap(a bunch of kiddie scripters that read a book and presto: qualified) ...and you end up with systems designed like the one that my snippets illustrate. Again, not insulting ALL VB programmers(A qualified programmer is a qualified programmer is a qualified programmer) ...I write VB(mostly against my will, but what are you gonna do when the system was written in this horrible language and an enhancement comes your way?) ....Gripe about it.....every chance you get. GOD I HATE VB!!!!!

                                "I need build Skynet. Plz send code"

                                H Offline
                                H Offline
                                Howard Richards
                                wrote on last edited by
                                #34

                                I think you are being a tad unfair to VB here. The choice of language is mainly syntactical (I write and use both). The design of your system's architecture is nothing to do with VB per se, it's just bad design. I do conceed that there are lots of bad/indifferent programmers in VB - but are there more because it's easier to learn VB than C# and so you get more beginners and self-taught coders in VB than other languages.

                                'Howard

                                1 Reply Last reply
                                0
                                • A Alaric_

                                  God, I hate VB. All I want for Christmas is for you to smite the retards responsible for its existence....and if it pleases you, oh God: can you send some of the "Non"s with them? This was written in 2005 in a VB.NET project

                                  GoTo Error_Trap
                                  End Try

                                          Me.LBL\_status.Text = ""
                                      Else
                                          Me.DV\_Search.Visible = True
                                          Me.DV\_Results.Attributes("style") = "display:none"
                                          Me.LBL\_status.Text = "No Rows Returned."
                                      End If
                                  
                                      Exit Sub
                                  

                                  Error_Trap:
                                  ShowError()

                                  ...The "Business Logic", "Data Access" and "Presentation" layers are maintained not as separate projects inside a solution, but as FOLDERS!!! inside a single project. ...which results in a "hard-wired disgusting switch-boxed bastardization" of the layered pattern ...The mechanism that was chosen by our unqualified senior architect (who makes God knows how much a year) for accessing the database is to have the presentation layer do something like this:

                                  Dim tbl As DataTable

                                      tbl = Common.GetDataTable(SQLScripts.GetBaseEmpSql(UserID))
                                  

                                  rather than having stored procedures encapsulate the sql scripts, the choice was made to maintain them in code. (Granted, I obfuscated the schema name and each of the table names so that I could post)

                                  Public Shared Function getSQL(ByVal aryPVIDs() As String) As String
                                  'aryPVIDs must be an array of pvids
                                  Dim sql, strSelect, strFrom, strWhere As String
                                  Dim strPVIDs As String

                                      strPVIDs = Join(aryPVIDs, "','")
                                  
                                      strSelect = "Select p.ID, p.Ps\_Project\_NBr, " & vbCrLf & \_
                                      " p.Project\_Desc\_txt, pt.Project\_type\_txt, p.project\_type\_cd, " & \_
                                      " p.spread\_method\_cd, sm.spread\_method\_txt, p.project\_mgr\_id, pm.last\_nm||', '||pm.first\_nm ProjectMgrFullName, " & vbCrLf & \_
                                      " p.asset\_mgr\_id, am.last\_nm||', '||am.first\_nm AssetMgrFullName, " & vbCrLf & \_
                                      " p.lead\_eng\_id, le.last\_nm||', '||le.first\_nm LeadEngineerFullName, " & vbCrLf & \_
                                      " p.start\_dt, p.revised\_start\_dt, " & vbCrLf & \_
                                      " p.orig\_serv\_dt, p.revised\_serv\_dt, p.projected\_serv\_dt, " & vbCrLf & \_
                                      " p.host\_flg, p.engineer\_group\_cd, eg.engineer\_group\_txt, " & vbCrLf & \_
                                      " p.Trans\_region\_cd, tr.transmission\_region\_txt, p.comments\_txt, " & vbCrLf & \_
                                      " p.Distr\_region\_cd, dr.distr\_region\_txt, " & vbCrLf & \_
                                      " p.project\_status\_cd, priority\_cd , archive\_flg, " & vbCrLf & \_
                                      " ps.cpp, p.glbu, ps.ci\_status\_nbr
                                  
                                  K Offline
                                  K Offline
                                  KarstenK
                                  wrote on last edited by
                                  #35

                                  It is possible to write fine apps in VB if there is some knowledge about programming and OOP. With some modules and business logic it will work. Dont ferget that it is .net-Technology so it is "only" another slang to write it in C#. :-O Your senior architect gives you space to show your talents and improve your salary. ("I've done that project fine. What about a raise?") That the SQL isnt written in one procedures is a crime. No way out.:mad:

                                  Greetings from Germany

                                  1 Reply Last reply
                                  0
                                  • P Patrick Etc

                                    Paul Conrad wrote:

                                    I ditto that. The same code could have been done in any other language and looked just as bad.

                                    I think I could make some reasonable disagreement with that. When I'm forced to use VB.NET, I think differently than when I'm using C#. The C# language can do things VB.NET can't; and while I do try hard to retain the clarity of work I do in C#, the language itself gets in the way. It's like being a highly skilled acrobat trying to walk down a straight hallway when all of the strangely shaped objects on the floor keep moving, trying to trip you. VB is those moving objects. The language itself seems designed to prevent clarity of thought.


                                    It has become appallingly obvious that our technology has exceeded our humanity. - Albert Einstein

                                    A Offline
                                    A Offline
                                    Agbeko_Dzamesi
                                    wrote on last edited by
                                    #36

                                    Then i guess the problem is you, and not the language. Programming languages are just tools used to create what we imagine. If you lack skill and imagination you cannot write any sensible code with C# or C++. I work with VB most of the time, but I can develop in C# or C++ easily without any problems. Most people are decieved into thinking writing code that "looks" complex makes them skilled. C++ code normally looks like the following, it mostly contains symbols and therefore makes it look like it belongs to a so called skilled programmer. _ATL$Main { //Shift 3 blocks to the left __ *HRESULT ^ pointer!: ?0x000007-IXc x++ } :laugh: :laugh:

                                    P 1 Reply Last reply
                                    0
                                    • A Agbeko_Dzamesi

                                      Then i guess the problem is you, and not the language. Programming languages are just tools used to create what we imagine. If you lack skill and imagination you cannot write any sensible code with C# or C++. I work with VB most of the time, but I can develop in C# or C++ easily without any problems. Most people are decieved into thinking writing code that "looks" complex makes them skilled. C++ code normally looks like the following, it mostly contains symbols and therefore makes it look like it belongs to a so called skilled programmer. _ATL$Main { //Shift 3 blocks to the left __ *HRESULT ^ pointer!: ?0x000007-IXc x++ } :laugh: :laugh:

                                      P Offline
                                      P Offline
                                      Patrick Etc
                                      wrote on last edited by
                                      #37

                                      What the bloody hell are you talking about? I'm not talking about writing complex code. You think VB is simple? Please. All the extra fluff simply obscures what the program does. You want to deride programs for "looking" complex to make the writer seem skilled, berate VB. I have no problem in Matlab, C#, C++, or C. My problem is not a lack of imagination, you sanctimonious twit. VB, however, gives me hives because it is so verbose. Believe it or not, there actually CAN be tools that are ineffective at making our mental constructs a reality. For instance, you wouldn't use a tire iron to build a fence. Maybe some people are really good at building fences with tire irons. Personally, I would find the tire iron to get in the way. Now, if you replace "fence" with "program" and "tire iron" with "VB" you'll get what I'm saying. Maybe some people are good at writing programs in VB. For me, the language gets in the way. All tools are not equal, which is essentially what you're attempting to argue.


                                      It has become appallingly obvious that our technology has exceeded our humanity. - Albert Einstein

                                      1 Reply Last reply
                                      0
                                      • A Alaric_

                                        God, I hate VB. All I want for Christmas is for you to smite the retards responsible for its existence....and if it pleases you, oh God: can you send some of the "Non"s with them? This was written in 2005 in a VB.NET project

                                        GoTo Error_Trap
                                        End Try

                                                Me.LBL\_status.Text = ""
                                            Else
                                                Me.DV\_Search.Visible = True
                                                Me.DV\_Results.Attributes("style") = "display:none"
                                                Me.LBL\_status.Text = "No Rows Returned."
                                            End If
                                        
                                            Exit Sub
                                        

                                        Error_Trap:
                                        ShowError()

                                        ...The "Business Logic", "Data Access" and "Presentation" layers are maintained not as separate projects inside a solution, but as FOLDERS!!! inside a single project. ...which results in a "hard-wired disgusting switch-boxed bastardization" of the layered pattern ...The mechanism that was chosen by our unqualified senior architect (who makes God knows how much a year) for accessing the database is to have the presentation layer do something like this:

                                        Dim tbl As DataTable

                                            tbl = Common.GetDataTable(SQLScripts.GetBaseEmpSql(UserID))
                                        

                                        rather than having stored procedures encapsulate the sql scripts, the choice was made to maintain them in code. (Granted, I obfuscated the schema name and each of the table names so that I could post)

                                        Public Shared Function getSQL(ByVal aryPVIDs() As String) As String
                                        'aryPVIDs must be an array of pvids
                                        Dim sql, strSelect, strFrom, strWhere As String
                                        Dim strPVIDs As String

                                            strPVIDs = Join(aryPVIDs, "','")
                                        
                                            strSelect = "Select p.ID, p.Ps\_Project\_NBr, " & vbCrLf & \_
                                            " p.Project\_Desc\_txt, pt.Project\_type\_txt, p.project\_type\_cd, " & \_
                                            " p.spread\_method\_cd, sm.spread\_method\_txt, p.project\_mgr\_id, pm.last\_nm||', '||pm.first\_nm ProjectMgrFullName, " & vbCrLf & \_
                                            " p.asset\_mgr\_id, am.last\_nm||', '||am.first\_nm AssetMgrFullName, " & vbCrLf & \_
                                            " p.lead\_eng\_id, le.last\_nm||', '||le.first\_nm LeadEngineerFullName, " & vbCrLf & \_
                                            " p.start\_dt, p.revised\_start\_dt, " & vbCrLf & \_
                                            " p.orig\_serv\_dt, p.revised\_serv\_dt, p.projected\_serv\_dt, " & vbCrLf & \_
                                            " p.host\_flg, p.engineer\_group\_cd, eg.engineer\_group\_txt, " & vbCrLf & \_
                                            " p.Trans\_region\_cd, tr.transmission\_region\_txt, p.comments\_txt, " & vbCrLf & \_
                                            " p.Distr\_region\_cd, dr.distr\_region\_txt, " & vbCrLf & \_
                                            " p.project\_status\_cd, priority\_cd , archive\_flg, " & vbCrLf & \_
                                            " ps.cpp, p.glbu, ps.ci\_status\_nbr
                                        
                                        J Offline
                                        J Offline
                                        Jordanwb
                                        wrote on last edited by
                                        #38

                                        I don't entirely understand what's going on in your code but I hate VB too.

                                        1 Reply Last reply
                                        0
                                        • P PIEBALDconsult

                                          Ri Qen-Sin wrote:

                                          I write good programs!

                                          I believe you... because you didn't say, "I write programs good!" :-D

                                          S Offline
                                          S Offline
                                          SilimSayo
                                          wrote on last edited by
                                          #39

                                          You don't say, "I write programs good!" You say, "I write programs well."

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups