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. Programming Question of the Week?

Programming Question of the Week?

Scheduled Pinned Locked Moved The Lounge
questionfunctional
29 Posts 13 Posters 3 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.
  • S Sascha Lefevre

    Obviously JavaScript can't be beat in this discipline. JavaScript-is-a-dysfunctional-programming-language - The Insider News[^]

    If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson

    N Offline
    N Offline
    Nagy Vilmos
    wrote on last edited by
    #12

    No swearing in the lounge! Feckin Java Feckin Script!

    veni bibi saltavi

    1 Reply Last reply
    0
    • Richard DeemingR Richard Deeming

      On Error Resume Next
      10 Print "No no no no no"
      20 Goto 10

      Happy now? :-D


      "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

      J Offline
      J Offline
      Johnny J
      wrote on last edited by
      #13

      The line numbering takes me way further back than VB.Net, all the way to Commodore 64 (and as you know, I'm in a nostalgic mood today :laugh:) :thumbsup:

      Anything that is unrelated to elephants is irrelephant
      Anonymous
      -----
      The problem with quotes on the internet is that you can never tell if they're genuine
      Winston Churchill, 1944
      -----
      I'd just like a chance to prove that money can't make me happy.
      Me, all the time

      N T 2 Replies Last reply
      0
      • J Johnny J

        The line numbering takes me way further back than VB.Net, all the way to Commodore 64 (and as you know, I'm in a nostalgic mood today :laugh:) :thumbsup:

        Anything that is unrelated to elephants is irrelephant
        Anonymous
        -----
        The problem with quotes on the internet is that you can never tell if they're genuine
        Winston Churchill, 1944
        -----
        I'd just like a chance to prove that money can't make me happy.
        Me, all the time

        N Offline
        N Offline
        Nagy Vilmos
        wrote on last edited by
        #14

        In VB3 you could use optional line numbers. We had a doofus who would put them in as it 'helped with debugging'. We had him humanely destroyed.

        veni bibi saltavi

        J Richard DeemingR 2 Replies Last reply
        0
        • N Nagy Vilmos

          In VB3 you could use optional line numbers. We had a doofus who would put them in as it 'helped with debugging'. We had him humanely destroyed.

          veni bibi saltavi

          J Offline
          J Offline
          Johnny J
          wrote on last edited by
          #15

          You can still do that (use line numbers, that is) - I just checked in my VS 2015. Not only for VB, even for C#! :~ Tools / Options / Text Editor / Basic (or C#) - And there it is: The Line numbers checkbox :laugh:

          Anything that is unrelated to elephants is irrelephant
          Anonymous
          -----
          The problem with quotes on the internet is that you can never tell if they're genuine
          Winston Churchill, 1944
          -----
          I'd just like a chance to prove that money can't make me happy.
          Me, all the time

          1 Reply Last reply
          0
          • M megaadam

            I don't get this fad in "functional programming". Who can recommend a decent dysfunctional language?

            Life is too shor

            S Offline
            S Offline
            Super Lloyd
            wrote on last edited by
            #16

            Javascript! A perfectly dysfunctional language! ;P (and also a perfectly cromulent one! ;) )

            All in one Menu-Ribbon Bar DirectX for WinRT/C# since 2013! Taking over the world since 1371!

            1 Reply Last reply
            0
            • N Nagy Vilmos

              In VB3 you could use optional line numbers. We had a doofus who would put them in as it 'helped with debugging'. We had him humanely destroyed.

              veni bibi saltavi

              Richard DeemingR Offline
              Richard DeemingR Offline
              Richard Deeming
              wrote on last edited by
              #17

              You can still use line numbers in the latest version of VB.NET:

              10: Dim i As Integer = 1
              20: Console.WriteLine("Nope")
              30: If i < 10 Then
              40: i += 1
              50: Goto 20
              60: End If


              "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

              "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

              1 Reply Last reply
              0
              • J Johnny J

                The line numbering takes me way further back than VB.Net, all the way to Commodore 64 (and as you know, I'm in a nostalgic mood today :laugh:) :thumbsup:

                Anything that is unrelated to elephants is irrelephant
                Anonymous
                -----
                The problem with quotes on the internet is that you can never tell if they're genuine
                Winston Churchill, 1944
                -----
                I'd just like a chance to prove that money can't make me happy.
                Me, all the time

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

                Ah, yes... line numbering... and then you realize you need a chunk of code in the middle and no line numbers are left. That created a need for a program that could renumber your code. Fondly remembered...

                N 1 Reply Last reply
                0
                • T Tim Carmichael

                  Ah, yes... line numbering... and then you realize you need a chunk of code in the middle and no line numbers are left. That created a need for a program that could renumber your code. Fondly remembered...

                  N Offline
                  N Offline
                  Nagy Vilmos
                  wrote on last edited by
                  #19

                  IIRC most, if not all, BASIC systems supported a RENUM command.

                  veni bibi saltavi

                  T 1 Reply Last reply
                  0
                  • N Nagy Vilmos

                    IIRC most, if not all, BASIC systems supported a RENUM command.

                    veni bibi saltavi

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

                    Missing in Commodore BASIC and C-64 BASIC which was an even older version of Commodore BASIC. Commodore BASIC had decent garbage handling; C-64.. not so much.

                    1 Reply Last reply
                    0
                    • J Johnny J

                      Shouldn't there have been a _GoTo_ somewhere in there? :confused: And an _On Error Resume Next_

                      Anything that is unrelated to elephants is irrelephant
                      Anonymous
                      -----
                      The problem with quotes on the internet is that you can never tell if they're genuine
                      Winston Churchill, 1944
                      -----
                      I'd just like a chance to prove that money can't make me happy.
                      Me, all the time

                      S Offline
                      S Offline
                      Sinisa Hajnal
                      wrote on last edited by
                      #21

                      That is VB6, not VB.NET. VB.NET is object oriented, VB6 is language of MS office macros

                      Richard DeemingR J 2 Replies Last reply
                      0
                      • S Sinisa Hajnal

                        That is VB6, not VB.NET. VB.NET is object oriented, VB6 is language of MS office macros

                        Richard DeemingR Offline
                        Richard DeemingR Offline
                        Richard Deeming
                        wrote on last edited by
                        #22

                        VBA is the language of Office macros. It's like VB6-lite - all the horrible syntax and design decisions, with some extra restrictions on top. And VB.NET still supports both On Error ... and Goto.


                        "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                        "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

                        S 1 Reply Last reply
                        0
                        • S Sinisa Hajnal

                          That is VB6, not VB.NET. VB.NET is object oriented, VB6 is language of MS office macros

                          J Offline
                          J Offline
                          Johnny J
                          wrote on last edited by
                          #23

                          Sinisa Hajnal wrote:

                          VB.NET is object oriented

                          Yes, but you can still use GoTo! ;)

                          Anything that is unrelated to elephants is irrelephant
                          Anonymous
                          -----
                          The problem with quotes on the internet is that you can never tell if they're genuine
                          Winston Churchill, 1944
                          -----
                          I'd just like a chance to prove that money can't make me happy.
                          Me, all the time

                          S 1 Reply Last reply
                          0
                          • M megaadam

                            I don't get this fad in "functional programming". Who can recommend a decent dysfunctional language?

                            Life is too shor

                            M Offline
                            M Offline
                            Marc Clifton
                            wrote on last edited by
                            #24

                            megaadam wrote:

                            Who can recommend a decent dysfunctional language?

                            Python Ruby VB PHP Javascript C++ (yes, C++, because from what I've seen, what was once elegant has become a monster in symbol obfuscation hell) Marc

                            Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!

                            1 Reply Last reply
                            0
                            • J Johnny J

                              Sinisa Hajnal wrote:

                              VB.NET is object oriented

                              Yes, but you can still use GoTo! ;)

                              Anything that is unrelated to elephants is irrelephant
                              Anonymous
                              -----
                              The problem with quotes on the internet is that you can never tell if they're genuine
                              Winston Churchill, 1944
                              -----
                              I'd just like a chance to prove that money can't make me happy.
                              Me, all the time

                              S Offline
                              S Offline
                              Sinisa Hajnal
                              wrote on last edited by
                              #25

                              So? You can do it in C# too and no one complains :) See MSDN [^]

                              1 Reply Last reply
                              0
                              • Richard DeemingR Richard Deeming

                                VBA is the language of Office macros. It's like VB6-lite - all the horrible syntax and design decisions, with some extra restrictions on top. And VB.NET still supports both On Error ... and Goto.


                                "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                                S Offline
                                S Offline
                                Sinisa Hajnal
                                wrote on last edited by
                                #26

                                On Error... legacy. Just because it exists, doesn't mean you have to use it. You could use regex to traverse XML documents and yet, most people use XmlDocument and related classes Or you could use COBOL... goto exists in C# too and I'm sure there is some obscure reference or use for it in java too :) I know for sure it is used in various SQL variations in stored procedures X|

                                1 Reply Last reply
                                0
                                • M megaadam

                                  I don't get this fad in "functional programming". Who can recommend a decent dysfunctional language?

                                  Life is too shor

                                  C Offline
                                  C Offline
                                  Clifford Nelson
                                  wrote on last edited by
                                  #27

                                  APL...A Programming Language (APL (programming language) - Wikipedia, the free encyclopedia[^]

                                  1 Reply Last reply
                                  0
                                  • OriginalGriffO OriginalGriff

                                    COBOL It was damn dysfunctional when I wrote in it!

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

                                    M Offline
                                    M Offline
                                    Mark_Wallace
                                    wrote on last edited by
                                    #28

                                    True, it's procedural -- like lawyers

                                    I wanna be a eunuchs developer! Pass me a bread knife!

                                    1 Reply Last reply
                                    0
                                    • OriginalGriffO OriginalGriff

                                      A Haiku about VB.NET coding:

                                      No no no no no
                                      No no no no no no no
                                      No no no no no

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

                                      M Offline
                                      M Offline
                                      Mark_Wallace
                                      wrote on last edited by
                                      #29

                                      Must write VB code? Only one thing you can do Call JSOP

                                      I wanna be a eunuchs developer! Pass me a bread knife!

                                      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