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. VB haters, look away

VB haters, look away

Scheduled Pinned Locked Moved The Lounge
csharpc++rubylearning
138 Posts 40 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.
  • S Slacker007

    Now we must talk about the Oracle at Delphi. Sheesh.... :)

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

    I'm just glad Delphi wasn't at (from) Oracle.

    1 Reply Last reply
    0
    • C CodeWraith

      They are not the same thing, but I still don't like them at all. I prefer code that's readable without the help of costly tools like Visual Studio or Intellisense.

      F Offline
      F Offline
      Forogar
      wrote on last edited by
      #67

      Quote:

      costly tools like Visual Studio or Intellisense.

      I use the community edition of VS 2015 at home for free and it has intellisense built it for free. Did I mention it was free? Not costly at all.

      - I would love to change the world, but they won’t give me the source code.

      C 1 Reply Last reply
      0
      • P PIEBALDconsult

        Have you read the original 1964 spec of BASIC?

        C Offline
        C Offline
        CodeWraith
        wrote on last edited by
        #68

        Was there a formal spec back then or has it been written afterwards as for most languages of that time?

        P 1 Reply Last reply
        0
        • C Chris Losinger

          CodeWraith wrote:

          Variants, anybody?

          they're called "var", in C#

          image processing toolkits | batch image processing

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

          No, they're called dynamic in C#. ;P Using var, your variable is still strongly-typed; you're just letting the compiler work out what that type is.


          "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
          • F Forogar

            Quote:

            costly tools like Visual Studio or Intellisense.

            I use the community edition of VS 2015 at home for free and it has intellisense built it for free. Did I mention it was free? Not costly at all.

            - I would love to change the world, but they won’t give me the source code.

            C Offline
            C Offline
            CodeWraith
            wrote on last edited by
            #70

            Don't call Rome just yet. The Microsofties may all be absolutely selfless may have performed enough miracles, but they have to be dead to be made saints by the Pope. Personally, I have already moved on and would not want to invest any time or money in Microsoft anymore. There are far more interesting things to do than keeping up with their escapades.

            1 Reply Last reply
            0
            • C CodeWraith

              Was there a formal spec back then or has it been written afterwards as for most languages of that time?

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

              http://bitsavers.trailing-edge.com/pdf/dartmouth/BASIC_Oct64.pdf[^]

              C 1 Reply Last reply
              0
              • L Lost User

                [Visual J++ - Wikipedia](https://en.wikipedia.org/wiki/Visual\_J%2B%2B)

                Quote:

                Microsoft later developed the C# ("C Sharp") language as the primary language for the .NET platform, which was in many ways influenced by Java; subsequently the .NET Framework shares many ideas in common with Java. Much like Java, C# is compiled to a type of bytecode (called CIL), and runs on top of a virtual machine called the Common Language Runtime in .NET. Visual Studio 2005 was the last release to include J#.

                Now is it bad enough that you let somebody else kick your butts without you trying to do it to each other? Now if we're all talking about the same man, and I think we are... it appears he's got a rather growing collection of our bikes.

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #72

                Brent Jenkins wrote:

                Now is it bad enough that you let somebody else kick your butts without you trying to do it to each other? Now if we're all talking about the same man, and I think we are... it appears he's got a rather growing collection of our bikes.

                Right turn Clyde.

                Michael Martin Australia "I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible." - Mr.Prakash One Fine Saturday. 24/04/2004

                1 Reply Last reply
                0
                • P peterkmx

                  Perhaps Delphi should be mentioned here ... [Anders Hejlsberg - Wikipedia](https://en.wikipedia.org/wiki/Anders\_Hejlsberg) Regards,

                  G Offline
                  G Offline
                  GenJerDan
                  wrote on last edited by
                  #73

                  Yeah. I was wondering what Anders would say about VB being C#'s progenitor.

                  We won't sit down. We won't shut up. We won't go quietly away. YouTube and My Mu[sic], Films and Windows Programs, etc.

                  1 Reply Last reply
                  0
                  • P PIEBALDconsult

                    http://bitsavers.trailing-edge.com/pdf/dartmouth/BASIC_Oct64.pdf[^]

                    C Offline
                    C Offline
                    CodeWraith
                    wrote on last edited by
                    #74

                    There we go. The index values range from 0 to (n-1), as they should. Now at which point did they start with 1? Every early home computer had a BASIC interpreter in a ROM, which in most cases was a customized Microsoft BASIC. Atari developed the BASIC from scratch, and was zero based. Look here.[^] It has been some time since I used that manual, but I should still have it somewhere. :-)

                    P 1 Reply Last reply
                    0
                    • L Lost User

                      Arrays start at 1 - just like when counting your fingers. C# (C, C++...) messed up, who counts anything from zero? It's unnatural, zero simply does not exist.

                      Sin tack the any key okay

                      B Offline
                      B Offline
                      BillWoodruff
                      wrote on last edited by
                      #75

                      I would tell you what the zeroth. finger is, but, I don't think you are ready, yet.

                      «Differences between Big-Endians, who broke eggs at the larger end, and Little-Endians gave rise to six rebellions: one Emperor lost his life, another his crown. The Lilliputian religion says an egg should be broken on the convenient end, which is now interpreted by the Lilliputians as the smaller end. Big-Endians gained favor in Blefuscu.» J. Swift, 'Gulliver's Travels,' 1726CE

                      P 1 Reply Last reply
                      0
                      • P peterkmx

                        Perhaps Delphi should be mentioned here ... [Anders Hejlsberg - Wikipedia](https://en.wikipedia.org/wiki/Anders\_Hejlsberg) Regards,

                        B Offline
                        B Offline
                        BillWoodruff
                        wrote on last edited by
                        #76

                        Applause ! Finally Delphi is mentioned. And, can we not give Anders, Mads, Eric L., Eric T., and others, some credit for bring geniuses who created something remarkable ?

                        «Differences between Big-Endians, who broke eggs at the larger end, and Little-Endians gave rise to six rebellions: one Emperor lost his life, another his crown. The Lilliputian religion says an egg should be broken on the convenient end, which is now interpreted by the Lilliputians as the smaller end. Big-Endians gained favor in Blefuscu.» J. Swift, 'Gulliver's Travels,' 1726CE

                        1 Reply Last reply
                        0
                        • C Clifford Nelson

                          Was happy that they finally updated the switch in C# to have be as flexible as the Visual Basic Select Case. Waited a long time for that one.

                          B Offline
                          B Offline
                          BillWoodruff
                          wrote on last edited by
                          #77

                          One of the "beauties" of the stock C# switch statement was that using integer case qualifiers it compiled to a mean and lean jump-table in CIL. I assume it still does; have yet to see any performance comparisons of use of the new features and other techniques for switch-a-roo. I like the new features.

                          «Differences between Big-Endians, who broke eggs at the larger end, and Little-Endians gave rise to six rebellions: one Emperor lost his life, another his crown. The Lilliputian religion says an egg should be broken on the convenient end, which is now interpreted by the Lilliputians as the smaller end. Big-Endians gained favor in Blefuscu.» J. Swift, 'Gulliver's Travels,' 1726CE

                          K C 2 Replies Last reply
                          0
                          • J Jeremy Falcon

                            Yeah, but the point is, it was based on Java. Way more than VB. I think that book author is just biased. I don't have citations, but I always heard that even MS hired some top Java guys to help with the initial design of C#. As much as we love to hate Java, we still have it thank for what we use.

                            Jeremy Falcon

                            L Offline
                            L Offline
                            Lost User
                            wrote on last edited by
                            #78

                            [Anders Hejlsberg - Wikipedia](https://en.wikipedia.org/wiki/Anders\_Hejlsberg) - he didn't work for Sun but he worked on Microsoft's J++ language.

                            Quote:

                            In 1996, Hejlsberg left Borland and joined Microsoft. One of his first achievements was the J++ programming language and the Windows Foundation Classes; he also became a Microsoft Distinguished Engineer and Technical Fellow. Since 2000, he has been the lead architect of the team developing the C# language. In 2012 Hejlsberg announced his new project, TypeScript, a superset of JavaScript.

                            Now is it bad enough that you let somebody else kick your butts without you trying to do it to each other? Now if we're all talking about the same man, and I think we are... it appears he's got a rather growing collection of our bikes.

                            K 1 Reply Last reply
                            0
                            • J Jeremy Falcon

                              Yeah, but the point is, it was based on Java. Way more than VB. I think that book author is just biased. I don't have citations, but I always heard that even MS hired some top Java guys to help with the initial design of C#. As much as we love to hate Java, we still have it thank for what we use.

                              Jeremy Falcon

                              K Offline
                              K Offline
                              kalberts
                              wrote on last edited by
                              #79

                              Is it worthwile to distinguish between "Based on Java" and "Based on experience with Java"? It seems to me (own thoughts - no Wikipedia URL) that the C# designers sure made a thorough study of how Java served in practice, not just the formal language definition. Seeing how it was used, how the compiler handled it, how well the bytecode/VM idea worked in practice, made them go back to the drawing board, saying "OK, Java did it their way - some of it was successful, some of it was not. Now let us redo it in a way we believe will get at higher fraction of 'successful' elements." - Of course they did the same study of C++. Whether you will call it "based on" or "based on experience with" may be a matter of taste, but to me, the former alternative suggests much more of "a further development of ...", which C# certainly is not from Java.

                              1 Reply Last reply
                              0
                              • L Lost User

                                [Visual J++ - Wikipedia](https://en.wikipedia.org/wiki/Visual\_J%2B%2B)

                                Quote:

                                Microsoft later developed the C# ("C Sharp") language as the primary language for the .NET platform, which was in many ways influenced by Java; subsequently the .NET Framework shares many ideas in common with Java. Much like Java, C# is compiled to a type of bytecode (called CIL), and runs on top of a virtual machine called the Common Language Runtime in .NET. Visual Studio 2005 was the last release to include J#.

                                Now is it bad enough that you let somebody else kick your butts without you trying to do it to each other? Now if we're all talking about the same man, and I think we are... it appears he's got a rather growing collection of our bikes.

                                K Offline
                                K Offline
                                kalberts
                                wrote on last edited by
                                #80

                                I must say that a statement that says "C# is compiled to a type of bytecode (called CIL)" (my emphasis) makes me somewhat sceptical to the competence of the writer. I doubt very much that (s)he has implemented very many compilers :-)

                                L K J 3 Replies Last reply
                                0
                                • L Lost User

                                  Arrays start at 1 - just like when counting your fingers. C# (C, C++...) messed up, who counts anything from zero? It's unnatural, zero simply does not exist.

                                  Sin tack the any key okay

                                  K Offline
                                  K Offline
                                  kalberts
                                  wrote on last edited by
                                  #81

                                  To me, as a mathmatically inclined person, it really hurts taking the elevator in our new office building down to the basement: It goes: 4, 3, 2, 1, -1 ...!!! HEY! You dropped something! There is supposed to be something in between there! I am equally upset about Christian churches - I don't know if it applies to all, but at least the Protestants in Europe and the Catholics officcialy number years "..., -2 (i.e 2BC), -1, +1, +2...). There are years before Christ and years after Christ, but no year "of Christ", i.e. the year of of his birth. This hurts my mathematical feelings.

                                  P J 2 Replies Last reply
                                  0
                                  • C Clifford Nelson

                                    Was happy that they finally updated the switch in C# to have be as flexible as the Visual Basic Select Case. Waited a long time for that one.

                                    K Offline
                                    K Offline
                                    kalberts
                                    wrote on last edited by
                                    #82

                                    Why didn't they make it multivariable as well, like in CHILL? switch (a, b, c) { (1, 'a', 4.3): ...code; (2, 'A', 0.0): ...code; (2, ELSE, pi): ...code; (3, 'C', *): ...code; ELSE: ...code; } * for a value means "don't care". ELSE for a value means "any value not used in any other switch alternative for this variable. Yes, you CAN make it very messy if you exploit the flexibility for all that it is worth. But a diciplined use can be far more readable than a 20-way switch, each alternative with a 7-15 way (varying among the 20) switch, each of those again with a 2-15 way (varying) switch. Then I'd rather prefer the single, clean, 3-dimensional switch.

                                    C 1 Reply Last reply
                                    0
                                    • Z ZurdoDev

                                      I'm reading a C# book that was recommended on here recently and found this gem in the beginning.

                                      Quote:

                                      The truth of the matter is that many of C#’s syntactic constructs are modeled after various aspects of Visual Basic (VB) and C++. TROELSEN, ANDREW; Japikse, Philip. C# 6.0 and the .NET 4.6 Framework (Kindle Locations 3123-3124). Apress. Kindle Edition.

                                      :-\

                                      There are two kinds of people in the world: those who can extrapolate from incomplete data. There are only 10 types of people in the world, those who understand binary and those who don't.

                                      A Offline
                                      A Offline
                                      atverweij
                                      wrote on last edited by
                                      #83

                                      I worked with the first few versions of Delphi (Object Pascal) in the 90ties. And when I saw .Net (VB and C#), I had to conclude that they copied Delphi, only replaced the Pascal Language with a VB dialect and a C-ish/Java-ish language.

                                      1 Reply Last reply
                                      0
                                      • S Slacker007

                                        Medical fact - quitting VB now will greatly increase your lifespan. No citations needed. :-D

                                        A Offline
                                        A Offline
                                        atverweij
                                        wrote on last edited by
                                        #84

                                        Medical fact: Case sensitive languages that also require semicolons at the end of every line and do not know the difference between a functions and a property unless you add () to the end of a parameter-less function drives you crazy within hours. But seriously. I do not understand the rant against *any* language. Especially when it comes to VB.net and C#; they are almost the same languages. See: C# and VB.NET Comparison Cheat Sheet: ASP Alliance[^] I think people can build crappy software and good software in any language. ;P

                                        K 1 Reply Last reply
                                        0
                                        • K kalberts

                                          I must say that a statement that says "C# is compiled to a type of bytecode (called CIL)" (my emphasis) makes me somewhat sceptical to the competence of the writer. I doubt very much that (s)he has implemented very many compilers :-)

                                          L Offline
                                          L Offline
                                          Lost User
                                          wrote on last edited by
                                          #85

                                          Those who can, do.. those that can't, teach.. those that can't teach write Wikipedia articles :)

                                          Now is it bad enough that you let somebody else kick your butts without you trying to do it to each other? Now if we're all talking about the same man, and I think we are... it appears he's got a rather growing collection of our bikes.

                                          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