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. Good grief

Good grief

Scheduled Pinned Locked Moved The Lounge
pythondatabasecomfunctionallearning
34 Posts 22 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.
  • M Marc Clifton

    I'm debugging some legacy VB X| code to figure out why a report is crashing, and encountered this fragment of SQL code: e.TerminalType *= f.TerminalType :omg: The last time I encountered a left outer join specified in that way was probably 20 years ago. Marc

    Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project! Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny

    F Offline
    F Offline
    F ES Sitecore
    wrote on last edited by
    #2

    The thing I hate most about syntax like that is that if you're not familiar with it it's near impossible to google.

    W 1 Reply Last reply
    0
    • M Marc Clifton

      I'm debugging some legacy VB X| code to figure out why a report is crashing, and encountered this fragment of SQL code: e.TerminalType *= f.TerminalType :omg: The last time I encountered a left outer join specified in that way was probably 20 years ago. Marc

      Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project! Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny

      D Offline
      D Offline
      Dan Neely
      wrote on last edited by
      #3

      Marc Clifton wrote:

      The last time I encountered a left outer join specified in that way was probably 20 years ago.

      Makes sense. That's also about the last time VB was considered a good idea. :rolleyes:

      Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason? Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful? --Zachris Topelius Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies. -- Sarah Hoyt

      OriginalGriffO I 2 Replies Last reply
      0
      • D Dan Neely

        Marc Clifton wrote:

        The last time I encountered a left outer join specified in that way was probably 20 years ago.

        Makes sense. That's also about the last time VB was considered a good idea. :rolleyes:

        Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason? Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful? --Zachris Topelius Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies. -- Sarah Hoyt

        OriginalGriffO Offline
        OriginalGriffO Offline
        OriginalGriff
        wrote on last edited by
        #4

        Nah - we thought it was rubbish back then too. ;)

        Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

        "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
        "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

        M D 2 Replies Last reply
        0
        • OriginalGriffO OriginalGriff

          Nah - we thought it was rubbish back then too. ;)

          Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

          M Offline
          M Offline
          megaadam
          wrote on last edited by
          #5

          Hear! Hear!

          ... such stuff as dreams are made on

          1 Reply Last reply
          0
          • OriginalGriffO OriginalGriff

            Nah - we thought it was rubbish back then too. ;)

            Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

            D Offline
            D Offline
            Dan Neely
            wrote on last edited by
            #6

            20 years ago it was considered a good idea by some people (the people churning out crap in it by choice). That people who preferred MFC, raw win32, or whatever *nix used at the time all thought it was a festering swamp doesn't change that then there were people who thought it a good idea for writing software (as opposed to a for a drinking game).

            Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason? Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful? --Zachris Topelius Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies. -- Sarah Hoyt

            1 Reply Last reply
            0
            • D Dan Neely

              Marc Clifton wrote:

              The last time I encountered a left outer join specified in that way was probably 20 years ago.

              Makes sense. That's also about the last time VB was considered a good idea. :rolleyes:

              Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason? Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful? --Zachris Topelius Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies. -- Sarah Hoyt

              I Offline
              I Offline
              Ian Shlasko
              wrote on last edited by
              #7

              Nah, VB was, for a while, good for a very specific purpose: Writing simple GUI tools and database frontends quickly, without having to worry (much) about destabilizing the rest of the system or leaking out all the RAM with a badly-written MFC app. It was never meant for high-end computing or commercial applications, though I've seen it used for both. Just like Excel... It's an amazing application if you use it as a spreadsheet, or for prototyping. Once you have tons of VBA macros and entire applications written in it, you'll want to shoot yourself. Been there, too.

              Proud to have finally moved to the A-Ark. Which one are you in?
              Author of the Guardians Saga (Sci-Fi/Fantasy novels)

              D F G Kornfeld Eliyahu PeterK pkfoxP 5 Replies Last reply
              0
              • I Ian Shlasko

                Nah, VB was, for a while, good for a very specific purpose: Writing simple GUI tools and database frontends quickly, without having to worry (much) about destabilizing the rest of the system or leaking out all the RAM with a badly-written MFC app. It was never meant for high-end computing or commercial applications, though I've seen it used for both. Just like Excel... It's an amazing application if you use it as a spreadsheet, or for prototyping. Once you have tons of VBA macros and entire applications written in it, you'll want to shoot yourself. Been there, too.

                Proud to have finally moved to the A-Ark. Which one are you in?
                Author of the Guardians Saga (Sci-Fi/Fantasy novels)

                D Offline
                D Offline
                Dan Neely
                wrote on last edited by
                #8

                Ian Shlasko wrote:

                Just like Excel... It's an amazing application if you use it as a spreadsheet, or for prototyping. Once you have tons of VBA macros and entire applications written in it, you'll want to shoot yourself. Been there, too.

                Fortunately(?) by the time your Excel turns into exHell it'll be slow enough that the bullet won't be able to break your skin. I had one of those too, as an initial proof of concept I ported the big nasty data mangling step to C# and called it from the VBA using COM (with was a cluster elephant in and of itself). It dropped the run time on our worst data set from ~6 hours to 45 seconds. Of which ~30 were spent scraping the spreadsheet and sending it over COM, 15 were spent by C# to do the data mangling, and <1 was spent to write the much smaller data set back to the spreadsheet. The truly amazing bit was that the intern/very junior dev (not sure if he went full time before or after writing it) managed to get the >1000 lines of very complex logic copy pasta with about 8 intend levels and gotos to short circuit another half dozen working and fully debugged. :omg:

                Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason? Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful? --Zachris Topelius Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies. -- Sarah Hoyt

                I 1 Reply Last reply
                0
                • I Ian Shlasko

                  Nah, VB was, for a while, good for a very specific purpose: Writing simple GUI tools and database frontends quickly, without having to worry (much) about destabilizing the rest of the system or leaking out all the RAM with a badly-written MFC app. It was never meant for high-end computing or commercial applications, though I've seen it used for both. Just like Excel... It's an amazing application if you use it as a spreadsheet, or for prototyping. Once you have tons of VBA macros and entire applications written in it, you'll want to shoot yourself. Been there, too.

                  Proud to have finally moved to the A-Ark. Which one are you in?
                  Author of the Guardians Saga (Sci-Fi/Fantasy novels)

                  F Offline
                  F Offline
                  F ES Sitecore
                  wrote on last edited by
                  #9

                  Ian Shlasko wrote:

                  It was never meant for ... commercial applications

                  LOL says who? I've written many a commercial app and website using it, what else were we supposed to use? It's like anything, the second it is superseded all of a sudden people talk like it's rubbish and always was. When .net is superseded people will be slagging it off saying how garbage it was, how assembly binding via configuration and convention was a stupid idea and so on.

                  K B 2 Replies Last reply
                  0
                  • F F ES Sitecore

                    The thing I hate most about syntax like that is that if you're not familiar with it it's near impossible to google.

                    W Offline
                    W Offline
                    Wendelius
                    wrote on last edited by
                    #10

                    F-ES Sitecore wrote:

                    if you're not familiar with it it's near impossible to google.

                    It's because at that time we didn't have google... Nor internet... I think we did have colour TV though ;)

                    F 1 Reply Last reply
                    0
                    • W Wendelius

                      F-ES Sitecore wrote:

                      if you're not familiar with it it's near impossible to google.

                      It's because at that time we didn't have google... Nor internet... I think we did have colour TV though ;)

                      F Offline
                      F Offline
                      F ES Sitecore
                      wrote on last edited by
                      #11

                      Mika Wendelius wrote:

                      I think we did have colour TV though ;)

                      With a remote control that was attached by a long wire :)

                      F W 2 Replies Last reply
                      0
                      • M Marc Clifton

                        I'm debugging some legacy VB X| code to figure out why a report is crashing, and encountered this fragment of SQL code: e.TerminalType *= f.TerminalType :omg: The last time I encountered a left outer join specified in that way was probably 20 years ago. Marc

                        Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project! Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny

                        T Offline
                        T Offline
                        Tim Carmichael
                        wrote on last edited by
                        #12

                        Marc Clifton wrote:

                        e.TerminalType *= f.TerminalType

                        I've been forced to use that format when writing for older Oracle systems. So, it may not be the language that is/was the issue, it may be the data source. The implication being.. such a join may be seen in other languages like C, C#, etc.

                        1 Reply Last reply
                        0
                        • I Ian Shlasko

                          Nah, VB was, for a while, good for a very specific purpose: Writing simple GUI tools and database frontends quickly, without having to worry (much) about destabilizing the rest of the system or leaking out all the RAM with a badly-written MFC app. It was never meant for high-end computing or commercial applications, though I've seen it used for both. Just like Excel... It's an amazing application if you use it as a spreadsheet, or for prototyping. Once you have tons of VBA macros and entire applications written in it, you'll want to shoot yourself. Been there, too.

                          Proud to have finally moved to the A-Ark. Which one are you in?
                          Author of the Guardians Saga (Sci-Fi/Fantasy novels)

                          G Offline
                          G Offline
                          glennPattonPub
                          wrote on last edited by
                          #13

                          Quote:

                          It was never meant for high-end computing or commercial applications,

                          And yet it is used for both, I know of at least one application where when it was found the reaction was "Oh No, change it!" Followed by "Well it has worked reliably for the X years, trust us you don't want to mess with this code as it is too wide spread to make a fix all update". It is used in flight control systems of a very well known heavy lift helicopter.:~

                          I 1 Reply Last reply
                          0
                          • M Marc Clifton

                            I'm debugging some legacy VB X| code to figure out why a report is crashing, and encountered this fragment of SQL code: e.TerminalType *= f.TerminalType :omg: The last time I encountered a left outer join specified in that way was probably 20 years ago. Marc

                            Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project! Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny

                            Sander RosselS Offline
                            Sander RosselS Offline
                            Sander Rossel
                            wrote on last edited by
                            #14

                            I recently encountered ( +) in an Oracle query. It's the same thing, except this query was written a week earlier... :sigh: I had never seen that syntax by the way, not in Oracle or SQL Server :D

                            Read my (free) ebook Object-Oriented Programming in C# Succinctly. Visit my blog at Sander's bits - Writing the code you need. Or read my articles here on CodeProject.

                            Simplicity is prerequisite for reliability. — Edsger W. Dijkstra

                            Regards, Sander

                            J 1 Reply Last reply
                            0
                            • G glennPattonPub

                              Quote:

                              It was never meant for high-end computing or commercial applications,

                              And yet it is used for both, I know of at least one application where when it was found the reaction was "Oh No, change it!" Followed by "Well it has worked reliably for the X years, trust us you don't want to mess with this code as it is too wide spread to make a fix all update". It is used in flight control systems of a very well known heavy lift helicopter.:~

                              I Offline
                              I Offline
                              Ian Shlasko
                              wrote on last edited by
                              #15

                              glennPattonWorking wrote:

                              It is used in flight control systems of a very well known heavy lift helicopter.

                              :wtf:

                              Proud to have finally moved to the A-Ark. Which one are you in?
                              Author of the Guardians Saga (Sci-Fi/Fantasy novels)

                              G 1 Reply Last reply
                              0
                              • D Dan Neely

                                Ian Shlasko wrote:

                                Just like Excel... It's an amazing application if you use it as a spreadsheet, or for prototyping. Once you have tons of VBA macros and entire applications written in it, you'll want to shoot yourself. Been there, too.

                                Fortunately(?) by the time your Excel turns into exHell it'll be slow enough that the bullet won't be able to break your skin. I had one of those too, as an initial proof of concept I ported the big nasty data mangling step to C# and called it from the VBA using COM (with was a cluster elephant in and of itself). It dropped the run time on our worst data set from ~6 hours to 45 seconds. Of which ~30 were spent scraping the spreadsheet and sending it over COM, 15 were spent by C# to do the data mangling, and <1 was spent to write the much smaller data set back to the spreadsheet. The truly amazing bit was that the intern/very junior dev (not sure if he went full time before or after writing it) managed to get the >1000 lines of very complex logic copy pasta with about 8 intend levels and gotos to short circuit another half dozen working and fully debugged. :omg:

                                Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason? Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful? --Zachris Topelius Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies. -- Sarah Hoyt

                                I Offline
                                I Offline
                                Ian Shlasko
                                wrote on last edited by
                                #16

                                Yeah, I could tell some horror stories about a portfolio management system written in Excel... But given that this is a public forum and I'm using my real name, I think I'll refrain :)

                                Proud to have finally moved to the A-Ark. Which one are you in?
                                Author of the Guardians Saga (Sci-Fi/Fantasy novels)

                                F 1 Reply Last reply
                                0
                                • I Ian Shlasko

                                  glennPattonWorking wrote:

                                  It is used in flight control systems of a very well known heavy lift helicopter.

                                  :wtf:

                                  Proud to have finally moved to the A-Ark. Which one are you in?
                                  Author of the Guardians Saga (Sci-Fi/Fantasy novels)

                                  G Offline
                                  G Offline
                                  glennPattonPub
                                  wrote on last edited by
                                  #17

                                  When I was include on the Email chain it was truely a :wtf: moment. what better (or worse) it was using VB5!!

                                  1 Reply Last reply
                                  0
                                  • I Ian Shlasko

                                    Nah, VB was, for a while, good for a very specific purpose: Writing simple GUI tools and database frontends quickly, without having to worry (much) about destabilizing the rest of the system or leaking out all the RAM with a badly-written MFC app. It was never meant for high-end computing or commercial applications, though I've seen it used for both. Just like Excel... It's an amazing application if you use it as a spreadsheet, or for prototyping. Once you have tons of VBA macros and entire applications written in it, you'll want to shoot yourself. Been there, too.

                                    Proud to have finally moved to the A-Ark. Which one are you in?
                                    Author of the Guardians Saga (Sci-Fi/Fantasy novels)

                                    Kornfeld Eliyahu PeterK Offline
                                    Kornfeld Eliyahu PeterK Offline
                                    Kornfeld Eliyahu Peter
                                    wrote on last edited by
                                    #18

                                    Ian Shlasko wrote:

                                    It was never meant for high-end computing or commercial applications

                                    Are you sure? Microsoft had - 16-17 years ago - DNA Labs all over the word, where Microsoft gave the help to port enterprise-scale applications to VB6... My boss felt for it and I spend there half a year and cursed for an other two, before we moved back to c++...

                                    Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

                                    "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

                                    I 1 Reply Last reply
                                    0
                                    • M Marc Clifton

                                      I'm debugging some legacy VB X| code to figure out why a report is crashing, and encountered this fragment of SQL code: e.TerminalType *= f.TerminalType :omg: The last time I encountered a left outer join specified in that way was probably 20 years ago. Marc

                                      Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project! Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny

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

                                      ... aaand back to therapy... :sigh:

                                      1 Reply Last reply
                                      0
                                      • F F ES Sitecore

                                        Mika Wendelius wrote:

                                        I think we did have colour TV though ;)

                                        With a remote control that was attached by a long wire :)

                                        F Offline
                                        F Offline
                                        Foothill
                                        wrote on last edited by
                                        #20

                                        That's why you have kids. Back then, they were the remote control.

                                        if (Object.DividedByZero == true) { Universe.Implode(); } Meus ratio ex fortis machina. Simplicitatis de formae ac munus. -Foothill, 2016

                                        1 Reply Last reply
                                        0
                                        • I Ian Shlasko

                                          Yeah, I could tell some horror stories about a portfolio management system written in Excel... But given that this is a public forum and I'm using my real name, I think I'll refrain :)

                                          Proud to have finally moved to the A-Ark. Which one are you in?
                                          Author of the Guardians Saga (Sci-Fi/Fantasy novels)

                                          F Offline
                                          F Offline
                                          Foothill
                                          wrote on last edited by
                                          #21

                                          Don't get me started on having very important calculations written in VBA, I have known my fair share of Actuaries.

                                          if (Object.DividedByZero == true) { Universe.Implode(); } Meus ratio ex fortis machina. Simplicitatis de formae ac munus. -Foothill, 2016

                                          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