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. The Lounge
  3. Visual Basic needs more credit

Visual Basic needs more credit

Scheduled Pinned Locked Moved The Lounge
206 Posts 32 Posters 436 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.
  • C Colborne_Greg

    The code was a quick attempt at a just works client. My laziness just so happened to spill over into this thread ;)

    S Offline
    S Offline
    Stefan_Lang
    wrote on last edited by
    #194

    It's exactly that 'just works' mentality that needlessly causes hours and days of maintenance effort when it comes to figuring out what a buggy function does, or what it takes to adapt it to a new functionality without introducing regressions. If you care about the state of your program in 6, or even 2 months, then you should care about comments and think beyond 'just works'. Not saying or implying that this is your professional style of coding, but it is all that we see here, so don't be surprised if people react and respond accordingly.

    GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

    C 1 Reply Last reply
    0
    • C Colborne_Greg

      I always forget about pascal, a language I learned but never really wrote anything in.

      S Offline
      S Offline
      Stefan_Lang
      wrote on last edited by
      #195

      That was just an aside. Every single object oriented language doesn't need and doesn't want a with keyword! If you need to perform a series of operations on a single object, then you write a method for that! You won't even need the introductory '.', and you can just call the method from different places without having to copy the original code (including the errors therein). That's a lot more elegant than your example, and far better readable because the implementation will be within the context of the object class, rather than in the context of some arbitrary function that just happens to use it! I do realize that VB has classes too - but that is all the more reason that it shouldn't even have a with statement: it just leads to code that is harder to maintain than writing a class method. Have you never wondered why an old language like Pascal has it, but none of the newer ones? Not even the newer languages by Niklaus Wirth himself (Modula, Oberon) have it! If you must discuss the merits of with, shouldn't you instead ask why its inventor, Niklaus Wirth, and (almost) all other designers of modern programming languages abandoned it?

      GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

      C 1 Reply Last reply
      0
      • C Colborne_Greg

        I am using Unidex and not a database, Unidex does not have null issues.

        S Offline
        S Offline
        Stefan_Lang
        wrote on last edited by
        #196

        When you're trying to access data from any source that is not in your application memory already, then you should consider the possibility that the data connection might get corrupted for unexpected reasons. Depending on how the connection is working, follow-up requests may clog the input queue and lead to the application blocking, which is just as inconvenient - or even more so - as an app crash! Not dealing with exceptions and at least trying to find out if it reoccurs is just a recipe for trouble. If nothing else, it's a security hole waiting to be exploited. At the very least you're potentially wasting a lot of time waiting for responses to data requests that never arrive. If the user wants to display 5000 data records, and your loop gets a 'connection timed out' exception every time, just how long do you think the user is happy to wait for a response?

        GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

        C 1 Reply Last reply
        0
        • S Stefan_Lang

          When you're trying to access data from any source that is not in your application memory already, then you should consider the possibility that the data connection might get corrupted for unexpected reasons. Depending on how the connection is working, follow-up requests may clog the input queue and lead to the application blocking, which is just as inconvenient - or even more so - as an app crash! Not dealing with exceptions and at least trying to find out if it reoccurs is just a recipe for trouble. If nothing else, it's a security hole waiting to be exploited. At the very least you're potentially wasting a lot of time waiting for responses to data requests that never arrive. If the user wants to display 5000 data records, and your loop gets a 'connection timed out' exception every time, just how long do you think the user is happy to wait for a response?

          GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

          C Offline
          C Offline
          Colborne_Greg
          wrote on last edited by
          #197

          Unidex manages the problems, its a connectionless state, serialized, time stamped, with automatic collision detection, that produces a daily report of user errors. It even comes in a marshalled version with a web api for web services. 100% of SQL related errors and practices are gone.

          S 1 Reply Last reply
          0
          • S Stefan_Lang

            That was just an aside. Every single object oriented language doesn't need and doesn't want a with keyword! If you need to perform a series of operations on a single object, then you write a method for that! You won't even need the introductory '.', and you can just call the method from different places without having to copy the original code (including the errors therein). That's a lot more elegant than your example, and far better readable because the implementation will be within the context of the object class, rather than in the context of some arbitrary function that just happens to use it! I do realize that VB has classes too - but that is all the more reason that it shouldn't even have a with statement: it just leads to code that is harder to maintain than writing a class method. Have you never wondered why an old language like Pascal has it, but none of the newer ones? Not even the newer languages by Niklaus Wirth himself (Modula, Oberon) have it! If you must discuss the merits of with, shouldn't you instead ask why its inventor, Niklaus Wirth, and (almost) all other designers of modern programming languages abandoned it?

            GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

            C Offline
            C Offline
            Colborne_Greg
            wrote on last edited by
            #198

            I has everything to do with being able to get full words onto the screen and not have to repeat them, there is no compiler benefit. There is a psychology difference in the mind of the programmer that is more acceptable to human error and overall costs less while getting to the result faster and cleaner then any language.

            S 1 Reply Last reply
            0
            • S Stefan_Lang

              It's exactly that 'just works' mentality that needlessly causes hours and days of maintenance effort when it comes to figuring out what a buggy function does, or what it takes to adapt it to a new functionality without introducing regressions. If you care about the state of your program in 6, or even 2 months, then you should care about comments and think beyond 'just works'. Not saying or implying that this is your professional style of coding, but it is all that we see here, so don't be surprised if people react and respond accordingly.

              GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

              C Offline
              C Offline
              Colborne_Greg
              wrote on last edited by
              #199

              We don't spend time on bugs, we use Unidex.

              S 1 Reply Last reply
              0
              • S Stefan_Lang

                It all depends on the kind of work at hand: I've been working with high skilled programmers for 30 years, and my experience is quite the opposite. The applications were all quite large and complex, or had highly innovative and complex functionality, or both. Of course if the job at hand is more mechanical in nature and doesn't require the coder to really think out of the box, then a skilled programmer won't be happy, and will quit, or not even apply to the job in the first place.

                GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

                C Offline
                C Offline
                Colborne_Greg
                wrote on last edited by
                #200

                My family owns a factory warranty center for Panasonic, growing up I was trained on programming microchips. When I deal with people and they tell me they know computers my first thought is to think they are full of themselves.

                1 Reply Last reply
                0
                • C Colborne_Greg

                  I has everything to do with being able to get full words onto the screen and not have to repeat them, there is no compiler benefit. There is a psychology difference in the mind of the programmer that is more acceptable to human error and overall costs less while getting to the result faster and cleaner then any language.

                  S Offline
                  S Offline
                  Stefan_Lang
                  wrote on last edited by
                  #201

                  What you say are exactly the things I didn't bother pointing out in favor of using class methods, and against the with statement. But if you're not familiar with basic OO concepts, then there's no point discussing this any further.

                  GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

                  C 1 Reply Last reply
                  0
                  • C Colborne_Greg

                    We don't spend time on bugs, we use Unidex.

                    S Offline
                    S Offline
                    Stefan_Lang
                    wrote on last edited by
                    #202

                    Which nobody here appears to know, and on google turns up blank. Meaning the only reference to your coding is the lazy sample you gave us. P.S.: If you didn't find bugs, you didn't test enough.

                    GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

                    C 1 Reply Last reply
                    0
                    • C Colborne_Greg

                      Unidex manages the problems, its a connectionless state, serialized, time stamped, with automatic collision detection, that produces a daily report of user errors. It even comes in a marshalled version with a web api for web services. 100% of SQL related errors and practices are gone.

                      S Offline
                      S Offline
                      Stefan_Lang
                      wrote on last edited by
                      #203

                      Now you're sounding like advocating some religious sect. I mean, nobody here has ever heard of Unidex, witnessed it's superiority, or revels in the light of its magnificence. If it sounds too good to be true, it isn't.

                      GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

                      C 1 Reply Last reply
                      0
                      • S Stefan_Lang

                        Now you're sounding like advocating some religious sect. I mean, nobody here has ever heard of Unidex, witnessed it's superiority, or revels in the light of its magnificence. If it sounds too good to be true, it isn't.

                        GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

                        C Offline
                        C Offline
                        Colborne_Greg
                        wrote on last edited by
                        #204

                        I started writing Unidex in 2002 when I was trained on .net 1.1 by Microsoft. It's been in use by Realty Executives since 2007, I created the web API and services last year. Windows 8 apps are the first to showcase Unidex in a public forum. Except for the serialization process of Windows 8 all I had to do was copy the code into a portable library and the code works. You can see some primitive examples of Unidex software by looking up our facebook page, which hasn't been updated in a while, advertising is never something I have had to do to be successful.

                        1 Reply Last reply
                        0
                        • S Stefan_Lang

                          Which nobody here appears to know, and on google turns up blank. Meaning the only reference to your coding is the lazy sample you gave us. P.S.: If you didn't find bugs, you didn't test enough.

                          GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

                          C Offline
                          C Offline
                          Colborne_Greg
                          wrote on last edited by
                          #205

                          https://www.facebook.com/UnidexSoftware[^] I don't find bugs because the programming intelligence model is based on what errors happen.

                          1 Reply Last reply
                          0
                          • S Stefan_Lang

                            What you say are exactly the things I didn't bother pointing out in favor of using class methods, and against the with statement. But if you're not familiar with basic OO concepts, then there's no point discussing this any further.

                            GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

                            C Offline
                            C Offline
                            Colborne_Greg
                            wrote on last edited by
                            #206

                            I think you mean OOP object-orientated-programming. No I am only advocating for the use of full word camel cased variables because I have no experience in the field.

                            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