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. If I see any more VB...

If I see any more VB...

Scheduled Pinned Locked Moved The Lounge
csharpc++htmlcomregex
36 Posts 13 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.
  • Z Offline
    Z Offline
    Zachery
    wrote on last edited by
    #1

    Finally! I just finished translating over 1500 lines of VB code to C#. (It's for uber printing of any type of control, text, or form.) I had only worked a little with VB, just enough to know that I didn't like it, but after extensive translation of it over a day and a half, I not only know that I don't like it, I see that it fails as being a good lang in so many ways. Lack of structure and some of the functions and methods have cryptic names (there's a Type called type:mad:. That took me awhile to find an eqivalent). It's lack of semicolons (it seems like you can place one after some lines of code but not after others, and there's not pattern) and brackets the can be open with no closing or closing with no open. What pissed me off the most was their For and With statments! VB:

    For field = 0 To ds.Table.Columns.Count - 1

    Where's the friggin thrid ;?? And no (). It just reminds me of using the alphabet with 20 missing letters. And the With statments, just use the variable name each time:mad:! VB:

    With report
    .Title = "Report from Person Objects"
    .SubTitleLeft = Now

    I'm just glad I'm done with it (at least I hope so). Now it's off to Ohio for a 4 day WoodStock like concert called The Gathering. I think my boss wanted to make sure I earned my time off. I hope CP will be ok without me and my Domo-Kun of DOOM!.:-D

    ..........Zack.......... Developer Extraordinaire && Full Time Geek

    "Never underestimate the power of stupid people in large groups." - George Carlin "I will stand on my side of the fence, reguardless of the circumstances or the consequence." - Monoxide "Hugbees!" GCS\P\SS d- s-:- a-- C++$ U--- P--- L- E- W++ N o K-? w+++ O++ !M-- V PS+ PE Y+ PGP t+ 5+ X+ R++ tv++ b++ DI++ D+++ G+>G++++ e* h- r++ y+

    D T S Z J 7 Replies Last reply
    0
    • Z Zachery

      Finally! I just finished translating over 1500 lines of VB code to C#. (It's for uber printing of any type of control, text, or form.) I had only worked a little with VB, just enough to know that I didn't like it, but after extensive translation of it over a day and a half, I not only know that I don't like it, I see that it fails as being a good lang in so many ways. Lack of structure and some of the functions and methods have cryptic names (there's a Type called type:mad:. That took me awhile to find an eqivalent). It's lack of semicolons (it seems like you can place one after some lines of code but not after others, and there's not pattern) and brackets the can be open with no closing or closing with no open. What pissed me off the most was their For and With statments! VB:

      For field = 0 To ds.Table.Columns.Count - 1

      Where's the friggin thrid ;?? And no (). It just reminds me of using the alphabet with 20 missing letters. And the With statments, just use the variable name each time:mad:! VB:

      With report
      .Title = "Report from Person Objects"
      .SubTitleLeft = Now

      I'm just glad I'm done with it (at least I hope so). Now it's off to Ohio for a 4 day WoodStock like concert called The Gathering. I think my boss wanted to make sure I earned my time off. I hope CP will be ok without me and my Domo-Kun of DOOM!.:-D

      ..........Zack.......... Developer Extraordinaire && Full Time Geek

      "Never underestimate the power of stupid people in large groups." - George Carlin "I will stand on my side of the fence, reguardless of the circumstances or the consequence." - Monoxide "Hugbees!" GCS\P\SS d- s-:- a-- C++$ U--- P--- L- E- W++ N o K-? w+++ O++ !M-- V PS+ PE Y+ PGP t+ 5+ X+ R++ tv++ b++ DI++ D+++ G+>G++++ e* h- r++ y+

      D Offline
      D Offline
      Duncan Edwards Jones
      wrote on last edited by
      #2

      The third ; is optional in VB.Net - it defaults to 1 if not used but if you want a different step size use the Step keyword No command in VB.Net require a semi colon after them. The parser is able to know where one command ends and another begins because the syntax is 'well formed' Of course - you know there is a VB to C# translator out there somewhere somewhere...I'll do a wee search... '--8<------------------------ Ex Datis: Duncan Jones Merrion Computing Ltd

      Z M 3 Replies Last reply
      0
      • D Duncan Edwards Jones

        The third ; is optional in VB.Net - it defaults to 1 if not used but if you want a different step size use the Step keyword No command in VB.Net require a semi colon after them. The parser is able to know where one command ends and another begins because the syntax is 'well formed' Of course - you know there is a VB to C# translator out there somewhere somewhere...I'll do a wee search... '--8<------------------------ Ex Datis: Duncan Jones Merrion Computing Ltd

        Z Offline
        Z Offline
        Zachery
        wrote on last edited by
        #3

        I used BableFisken, but it didn't do too well.

        ..........Zack.......... Developer Extraordinaire && Full Time Geek

        "Never underestimate the power of stupid people in large groups." - George Carlin "I will stand on my side of the fence, reguardless of the circumstances or the consequence." - Monoxide "Hugbees!" GCS\P\SS d- s-:- a-- C++$ U--- P--- L- E- W++ N o K-? w+++ O++ !M-- V PS+ PE Y+ PGP t+ 5+ X+ R++ tv++ b++ DI++ D+++ G+>G++++ e* h- r++ y+

        1 Reply Last reply
        0
        • Z Zachery

          Finally! I just finished translating over 1500 lines of VB code to C#. (It's for uber printing of any type of control, text, or form.) I had only worked a little with VB, just enough to know that I didn't like it, but after extensive translation of it over a day and a half, I not only know that I don't like it, I see that it fails as being a good lang in so many ways. Lack of structure and some of the functions and methods have cryptic names (there's a Type called type:mad:. That took me awhile to find an eqivalent). It's lack of semicolons (it seems like you can place one after some lines of code but not after others, and there's not pattern) and brackets the can be open with no closing or closing with no open. What pissed me off the most was their For and With statments! VB:

          For field = 0 To ds.Table.Columns.Count - 1

          Where's the friggin thrid ;?? And no (). It just reminds me of using the alphabet with 20 missing letters. And the With statments, just use the variable name each time:mad:! VB:

          With report
          .Title = "Report from Person Objects"
          .SubTitleLeft = Now

          I'm just glad I'm done with it (at least I hope so). Now it's off to Ohio for a 4 day WoodStock like concert called The Gathering. I think my boss wanted to make sure I earned my time off. I hope CP will be ok without me and my Domo-Kun of DOOM!.:-D

          ..........Zack.......... Developer Extraordinaire && Full Time Geek

          "Never underestimate the power of stupid people in large groups." - George Carlin "I will stand on my side of the fence, reguardless of the circumstances or the consequence." - Monoxide "Hugbees!" GCS\P\SS d- s-:- a-- C++$ U--- P--- L- E- W++ N o K-? w+++ O++ !M-- V PS+ PE Y+ PGP t+ 5+ X+ R++ tv++ b++ DI++ D+++ G+>G++++ e* h- r++ y+

          T Offline
          T Offline
          Turtle Hand
          wrote on last edited by
          #4

          the with statement is quite cool, wish c# had it. what's the point of typing the variable name over and over again? it's wrapped in a with block you no what the members belong to. it also performs faster. typically loops increment by 1, so what's the point of typing i++. i believe if you do want to increment by something other than 1 you can use the word step followed by the number. if i had a choice between vb and c#, i would choose c# because it doesn't require as much typing, i like braces and semicolons. but the features you've complained about are advantages. Josef Wainz Software Developer

          C C M 3 Replies Last reply
          0
          • Z Zachery

            Finally! I just finished translating over 1500 lines of VB code to C#. (It's for uber printing of any type of control, text, or form.) I had only worked a little with VB, just enough to know that I didn't like it, but after extensive translation of it over a day and a half, I not only know that I don't like it, I see that it fails as being a good lang in so many ways. Lack of structure and some of the functions and methods have cryptic names (there's a Type called type:mad:. That took me awhile to find an eqivalent). It's lack of semicolons (it seems like you can place one after some lines of code but not after others, and there's not pattern) and brackets the can be open with no closing or closing with no open. What pissed me off the most was their For and With statments! VB:

            For field = 0 To ds.Table.Columns.Count - 1

            Where's the friggin thrid ;?? And no (). It just reminds me of using the alphabet with 20 missing letters. And the With statments, just use the variable name each time:mad:! VB:

            With report
            .Title = "Report from Person Objects"
            .SubTitleLeft = Now

            I'm just glad I'm done with it (at least I hope so). Now it's off to Ohio for a 4 day WoodStock like concert called The Gathering. I think my boss wanted to make sure I earned my time off. I hope CP will be ok without me and my Domo-Kun of DOOM!.:-D

            ..........Zack.......... Developer Extraordinaire && Full Time Geek

            "Never underestimate the power of stupid people in large groups." - George Carlin "I will stand on my side of the fence, reguardless of the circumstances or the consequence." - Monoxide "Hugbees!" GCS\P\SS d- s-:- a-- C++$ U--- P--- L- E- W++ N o K-? w+++ O++ !M-- V PS+ PE Y+ PGP t+ 5+ X+ R++ tv++ b++ DI++ D+++ G+>G++++ e* h- r++ y+

            S Offline
            S Offline
            Sijin
            wrote on last edited by
            #5

            there's a Type called type That is there in C# too :) For field = 0 To ds.Table.Columns.Count - 1 You find this less readable than for(field=0;field<=ds.Table.Columns.Count-1;field++) With report .Title = "Report from Person Objects" .SubTitleLeft = Now Imagine you had to set 20 fields of an object, now isn't the "with" syntax going to be really neat then. I don't the syntatic things make VB a bad language, it's just he lack of structure and a stress on GUI programming which wrecks any proper OO design concepts that makes it a bad choice as a fully blown language, IMHO VB should only be used for front-ends and prototyping.


            I always think that the idea of a compiler that compiles another compiler or itself is rather incestuous in a binary way. - Colin Davies My .Net Blog

            Z D 2 Replies Last reply
            0
            • D Duncan Edwards Jones

              The third ; is optional in VB.Net - it defaults to 1 if not used but if you want a different step size use the Step keyword No command in VB.Net require a semi colon after them. The parser is able to know where one command ends and another begins because the syntax is 'well formed' Of course - you know there is a VB to C# translator out there somewhere somewhere...I'll do a wee search... '--8<------------------------ Ex Datis: Duncan Jones Merrion Computing Ltd

              Z Offline
              Z Offline
              Zachery
              wrote on last edited by
              #6

              Merrion wrote: the syntax is 'well formed' WellthenitseemsthatIammistakenPunctuationisnotnessecarryatallAslongasthesyntaxiscorrectHoweverwouldntthatbelikesayingthatspacesperiodsapostraphesandcommasarentnessecarryaslongasthegrammariscorrect

              ..........Zack.......... Developer Extraordinaire && Full Time Geek

              "Never underestimate the power of stupid people in large groups." - George Carlin "I will stand on my side of the fence, reguardless of the circumstances or the consequence." - Monoxide "Hugbees!" GCS\P\SS d- s-:- a-- C++$ U--- P--- L- E- W++ N o K-? w+++ O++ !M-- V PS+ PE Y+ PGP t+ 5+ X+ R++ tv++ b++ DI++ D+++ G+>G++++ e* h- r++ y+

              D 1 Reply Last reply
              0
              • D Duncan Edwards Jones

                The third ; is optional in VB.Net - it defaults to 1 if not used but if you want a different step size use the Step keyword No command in VB.Net require a semi colon after them. The parser is able to know where one command ends and another begins because the syntax is 'well formed' Of course - you know there is a VB to C# translator out there somewhere somewhere...I'll do a wee search... '--8<------------------------ Ex Datis: Duncan Jones Merrion Computing Ltd

                M Offline
                M Offline
                Mike Dimmick
                wrote on last edited by
                #7

                I thought (part of) the point of .NET was that you could compile one block of code in one language and another block in another, and use them together. Of course, that does - at the moment - require that you compile the VB bits into one module and the C# bits into another; there's no cross-language linker that can link it all into one module. Well, apart from using ILDASM to output the IL for both modules, then using ILASM to build one assembly from the IL files :~

                1 Reply Last reply
                0
                • Z Zachery

                  Finally! I just finished translating over 1500 lines of VB code to C#. (It's for uber printing of any type of control, text, or form.) I had only worked a little with VB, just enough to know that I didn't like it, but after extensive translation of it over a day and a half, I not only know that I don't like it, I see that it fails as being a good lang in so many ways. Lack of structure and some of the functions and methods have cryptic names (there's a Type called type:mad:. That took me awhile to find an eqivalent). It's lack of semicolons (it seems like you can place one after some lines of code but not after others, and there's not pattern) and brackets the can be open with no closing or closing with no open. What pissed me off the most was their For and With statments! VB:

                  For field = 0 To ds.Table.Columns.Count - 1

                  Where's the friggin thrid ;?? And no (). It just reminds me of using the alphabet with 20 missing letters. And the With statments, just use the variable name each time:mad:! VB:

                  With report
                  .Title = "Report from Person Objects"
                  .SubTitleLeft = Now

                  I'm just glad I'm done with it (at least I hope so). Now it's off to Ohio for a 4 day WoodStock like concert called The Gathering. I think my boss wanted to make sure I earned my time off. I hope CP will be ok without me and my Domo-Kun of DOOM!.:-D

                  ..........Zack.......... Developer Extraordinaire && Full Time Geek

                  "Never underestimate the power of stupid people in large groups." - George Carlin "I will stand on my side of the fence, reguardless of the circumstances or the consequence." - Monoxide "Hugbees!" GCS\P\SS d- s-:- a-- C++$ U--- P--- L- E- W++ N o K-? w+++ O++ !M-- V PS+ PE Y+ PGP t+ 5+ X+ R++ tv++ b++ DI++ D+++ G+>G++++ e* h- r++ y+

                  Z Offline
                  Z Offline
                  Zachery
                  wrote on last edited by
                  #8

                  I just think that what you call advantages are eventual downfalls. A lot of the VB was cryptic and It's shorter but, kinda confusing, like my last Spelling vs Grammar post. Similar to a long trigonemetic funtion written all on one line with no spaces and all the mathematical signs takes out.

                  ..........Zack.......... Developer Extraordinaire && Full Time Geek

                  "Never underestimate the power of stupid people in large groups." - George Carlin "I will stand on my side of the fence, reguardless of the circumstances or the consequence." - Monoxide "Hugbees!" GCS\P\SS d- s-:- a-- C++$ U--- P--- L- E- W++ N o K-? w+++ O++ !M-- V PS+ PE Y+ PGP t+ 5+ X+ R++ tv++ b++ DI++ D+++ G+>G++++ e* h- r++ y+

                  1 Reply Last reply
                  0
                  • T Turtle Hand

                    the with statement is quite cool, wish c# had it. what's the point of typing the variable name over and over again? it's wrapped in a with block you no what the members belong to. it also performs faster. typically loops increment by 1, so what's the point of typing i++. i believe if you do want to increment by something other than 1 you can use the word step followed by the number. if i had a choice between vb and c#, i would choose c# because it doesn't require as much typing, i like braces and semicolons. but the features you've complained about are advantages. Josef Wainz Software Developer

                    C Offline
                    C Offline
                    Chris Meech
                    wrote on last edited by
                    #9

                    JoeJoeMa wrote: it also performs faster. faster than what?? :confused: :confused: An initialisor function? 'inline' Set methods? JoeJoeMa wrote: but the features you've complained about are advantages OIC. You don't have to think about what you are doing. Chris Meech "what makes CP different is the people and sense of community, things people will only discover if they join up and join in." Christian Graus Nov 14, 2002. "And when you need to hire a programmer to do mostly VB programming, it's not good enough to hire a VB programmer, because they will get completely stuck in tar every time the VB abstraction leaks." Joel on Software Nov 11, 2002.

                    Z T 2 Replies Last reply
                    0
                    • Z Zachery

                      Merrion wrote: the syntax is 'well formed' WellthenitseemsthatIammistakenPunctuationisnotnessecarryatallAslongasthesyntaxiscorrectHoweverwouldntthatbelikesayingthatspacesperiodsapostraphesandcommasarentnessecarryaslongasthegrammariscorrect

                      ..........Zack.......... Developer Extraordinaire && Full Time Geek

                      "Never underestimate the power of stupid people in large groups." - George Carlin "I will stand on my side of the fence, reguardless of the circumstances or the consequence." - Monoxide "Hugbees!" GCS\P\SS d- s-:- a-- C++$ U--- P--- L- E- W++ N o K-? w+++ O++ !M-- V PS+ PE Y+ PGP t+ 5+ X+ R++ tv++ b++ DI++ D+++ G+>G++++ e* h- r++ y+

                      D Offline
                      D Offline
                      Duncan Edwards Jones
                      wrote on last edited by
                      #10

                      Mmm - I meant "well formed syntax" in the context of Noam Chomsky's work on syntax and lexicon. '--8<------------------------ Ex Datis: Duncan Jones Merrion Computing Ltd

                      1 Reply Last reply
                      0
                      • T Turtle Hand

                        the with statement is quite cool, wish c# had it. what's the point of typing the variable name over and over again? it's wrapped in a with block you no what the members belong to. it also performs faster. typically loops increment by 1, so what's the point of typing i++. i believe if you do want to increment by something other than 1 you can use the word step followed by the number. if i had a choice between vb and c#, i would choose c# because it doesn't require as much typing, i like braces and semicolons. but the features you've complained about are advantages. Josef Wainz Software Developer

                        C Offline
                        C Offline
                        Chris Losinger
                        wrote on last edited by
                        #11

                        JoeJoeMa wrote: the point of typing the variable name over and over again? that's why Bill invented ctrl-c and ctrl-v -c CheeseWeasle

                        R T 2 Replies Last reply
                        0
                        • C Chris Meech

                          JoeJoeMa wrote: it also performs faster. faster than what?? :confused: :confused: An initialisor function? 'inline' Set methods? JoeJoeMa wrote: but the features you've complained about are advantages OIC. You don't have to think about what you are doing. Chris Meech "what makes CP different is the people and sense of community, things people will only discover if they join up and join in." Christian Graus Nov 14, 2002. "And when you need to hire a programmer to do mostly VB programming, it's not good enough to hire a VB programmer, because they will get completely stuck in tar every time the VB abstraction leaks." Joel on Software Nov 11, 2002.

                          Z Offline
                          Z Offline
                          Zachery
                          wrote on last edited by
                          #12

                          Chris Meech wrote: You don't have to think about what you are doing. Yes, someone sees what I'm talking about.:-D

                          ..........Zack.......... Developer Extraordinaire && Full Time Geek

                          "Never underestimate the power of stupid people in large groups." - George Carlin "I will stand on my side of the fence, reguardless of the circumstances or the consequence." - Monoxide "Hugbees!" GCS\P\SS d- s-:- a-- C++$ U--- P--- L- E- W++ N o K-? w+++ O++ !M-- V PS+ PE Y+ PGP t+ 5+ X+ R++ tv++ b++ DI++ D+++ G+>G++++ e* h- r++ y+

                          1 Reply Last reply
                          0
                          • C Chris Losinger

                            JoeJoeMa wrote: the point of typing the variable name over and over again? that's why Bill invented ctrl-c and ctrl-v -c CheeseWeasle

                            R Offline
                            R Offline
                            Ray Cassick
                            wrote on last edited by
                            #13

                            Do you how many bugs can be introduced using copy/paste?


                            Paul Watson wrote: "At the end of the day it is what you produce that counts, not how many doctorates you have on the wall." George Carlin wrote: "Don't sweat the petty things, and don't pet the sweaty things." Jörgen Sigvardsson wrote: If the physicists find a universal theory describing the laws of universe, I'm sure the asshole constant will be an integral part of that theory.


                            Z C C 3 Replies Last reply
                            0
                            • R Ray Cassick

                              Do you how many bugs can be introduced using copy/paste?


                              Paul Watson wrote: "At the end of the day it is what you produce that counts, not how many doctorates you have on the wall." George Carlin wrote: "Don't sweat the petty things, and don't pet the sweaty things." Jörgen Sigvardsson wrote: If the physicists find a universal theory describing the laws of universe, I'm sure the asshole constant will be an integral part of that theory.


                              Z Offline
                              Z Offline
                              Zachery
                              wrote on last edited by
                              #14

                              Just as many as coding by hand. You never copy/paste code that has errors, always debug before, CTRL SHIFT B

                              ..........Zack.......... Developer Extraordinaire && Full Time Geek

                              "Never underestimate the power of stupid people in large groups." - George Carlin "I will stand on my side of the fence, reguardless of the circumstances or the consequence." - Monoxide "Hugbees!" GCS\P\SS d- s-:- a-- C++$ U--- P--- L- E- W++ N o K-? w+++ O++ !M-- V PS+ PE Y+ PGP t+ 5+ X+ R++ tv++ b++ DI++ D+++ G+>G++++ e* h- r++ y+

                              1 Reply Last reply
                              0
                              • S Sijin

                                there's a Type called type That is there in C# too :) For field = 0 To ds.Table.Columns.Count - 1 You find this less readable than for(field=0;field<=ds.Table.Columns.Count-1;field++) With report .Title = "Report from Person Objects" .SubTitleLeft = Now Imagine you had to set 20 fields of an object, now isn't the "with" syntax going to be really neat then. I don't the syntatic things make VB a bad language, it's just he lack of structure and a stress on GUI programming which wrecks any proper OO design concepts that makes it a bad choice as a fully blown language, IMHO VB should only be used for front-ends and prototyping.


                                I always think that the idea of a compiler that compiles another compiler or itself is rather incestuous in a binary way. - Colin Davies My .Net Blog

                                Z Offline
                                Z Offline
                                Zachery
                                wrote on last edited by
                                #15

                                Sijin wrote: With report .Title = "Report from Person Objects" .SubTitleLeft = Now You find this less readable than for(field=0;field<=ds.Table.Columns.Count-1;field++) Yes, I like knowing exaclty what my code is doing, I don't want to have to assume anything about my code. Assuming makes for bad code.

                                ..........Zack.......... Developer Extraordinaire && Full Time Geek

                                "Never underestimate the power of stupid people in large groups." - George Carlin "I will stand on my side of the fence, reguardless of the circumstances or the consequence." - Monoxide "Hugbees!" GCS\P\SS d- s-:- a-- C++$ U--- P--- L- E- W++ N o K-? w+++ O++ !M-- V PS+ PE Y+ PGP t+ 5+ X+ R++ tv++ b++ DI++ D+++ G+>G++++ e* h- r++ y+

                                D 1 Reply Last reply
                                0
                                • T Turtle Hand

                                  the with statement is quite cool, wish c# had it. what's the point of typing the variable name over and over again? it's wrapped in a with block you no what the members belong to. it also performs faster. typically loops increment by 1, so what's the point of typing i++. i believe if you do want to increment by something other than 1 you can use the word step followed by the number. if i had a choice between vb and c#, i would choose c# because it doesn't require as much typing, i like braces and semicolons. but the features you've complained about are advantages. Josef Wainz Software Developer

                                  M Offline
                                  M Offline
                                  Mike Dimmick
                                  wrote on last edited by
                                  #16

                                  JoeJoeMa wrote: it also performs faster. No, it doesn't, and never has. It also never will. Both a With block and individual assignments compile to a direct field set stfld instruction, or a method call call or callvirt instruction, as appropriate, if it's a property. The IL compiler generates a MOV [_reg_], _value_ for field accesses, as long as the object can't be remotable (see Chris Brumme's blog entry yesterday[^]). It's slightly quicker to type, but not really a lot. With was valuable when you didn't have constructors in VB, but now you do, it's less common to set more than one field or property of an object or structure at the same time. If you really care, in C# you can of course declare an alias for your object, simply by declaring another variable.

                                  T 1 Reply Last reply
                                  0
                                  • R Ray Cassick

                                    Do you how many bugs can be introduced using copy/paste?


                                    Paul Watson wrote: "At the end of the day it is what you produce that counts, not how many doctorates you have on the wall." George Carlin wrote: "Don't sweat the petty things, and don't pet the sweaty things." Jörgen Sigvardsson wrote: If the physicists find a universal theory describing the laws of universe, I'm sure the asshole constant will be an integral part of that theory.


                                    C Offline
                                    C Offline
                                    Chris Meech
                                    wrote on last edited by
                                    #17

                                    Technically, you are not introducing a bug with copy/paste. You are replicating it. ;P Chris Meech "what makes CP different is the people and sense of community, things people will only discover if they join up and join in." Christian Graus Nov 14, 2002. "And when you need to hire a programmer to do mostly VB programming, it's not good enough to hire a VB programmer, because they will get completely stuck in tar every time the VB abstraction leaks." Joel on Software Nov 11, 2002.

                                    R 1 Reply Last reply
                                    0
                                    • Z Zachery

                                      Finally! I just finished translating over 1500 lines of VB code to C#. (It's for uber printing of any type of control, text, or form.) I had only worked a little with VB, just enough to know that I didn't like it, but after extensive translation of it over a day and a half, I not only know that I don't like it, I see that it fails as being a good lang in so many ways. Lack of structure and some of the functions and methods have cryptic names (there's a Type called type:mad:. That took me awhile to find an eqivalent). It's lack of semicolons (it seems like you can place one after some lines of code but not after others, and there's not pattern) and brackets the can be open with no closing or closing with no open. What pissed me off the most was their For and With statments! VB:

                                      For field = 0 To ds.Table.Columns.Count - 1

                                      Where's the friggin thrid ;?? And no (). It just reminds me of using the alphabet with 20 missing letters. And the With statments, just use the variable name each time:mad:! VB:

                                      With report
                                      .Title = "Report from Person Objects"
                                      .SubTitleLeft = Now

                                      I'm just glad I'm done with it (at least I hope so). Now it's off to Ohio for a 4 day WoodStock like concert called The Gathering. I think my boss wanted to make sure I earned my time off. I hope CP will be ok without me and my Domo-Kun of DOOM!.:-D

                                      ..........Zack.......... Developer Extraordinaire && Full Time Geek

                                      "Never underestimate the power of stupid people in large groups." - George Carlin "I will stand on my side of the fence, reguardless of the circumstances or the consequence." - Monoxide "Hugbees!" GCS\P\SS d- s-:- a-- C++$ U--- P--- L- E- W++ N o K-? w+++ O++ !M-- V PS+ PE Y+ PGP t+ 5+ X+ R++ tv++ b++ DI++ D+++ G+>G++++ e* h- r++ y+

                                      J Offline
                                      J Offline
                                      Jamie Nordmeyer
                                      wrote on last edited by
                                      #18

                                      I think it's hysterical how so many people are so biased toward one technology over another. It's quite literally a religion as to what language you "choose" to use. Like any comparable technology, C# and VB.NET both have their strengths and weaknesses. It's just a matter of learning the syntax of the language. You said yourself that you only knew a little VB. That was your problem. You didn't understand it. While I agree that VB6 and its predecessors were lacking, VB.NET IS a good language if you know how to use it. Want your 3rd semicolon as you asked about? For Field As Integer = 0 To ds.Table.Columns.Count - 1 **Step 2** The Step keyword is your 3rd semicolon. And the With statement? Other languages could use something like this. It's useful when you have to set like 30 properties. I noticed in another post that you said this means you don't have to think. So what? How much thought does it really take in the first place, even WITHOUT the With keyword? It's just extra typing. Things that ARE missing from VB.NET that I'd really love to see; overloadable operators, templates (they say that C# will support them for sure, but not necessarily VB), and removal of the AddHandler/RemoveHandler keywords. I'd rather just say Button1.Click += new EventHandler... as C# does. Point being, learn about something before you openly criticize it. I have no idea what The Gathering is, except that it's a concert, so I can't fairly critique it, can I? Kyosa Jamie Nordmeyer - Cho Dan Portland, Oregon, USA

                                      Z D 2 Replies Last reply
                                      0
                                      • J Jamie Nordmeyer

                                        I think it's hysterical how so many people are so biased toward one technology over another. It's quite literally a religion as to what language you "choose" to use. Like any comparable technology, C# and VB.NET both have their strengths and weaknesses. It's just a matter of learning the syntax of the language. You said yourself that you only knew a little VB. That was your problem. You didn't understand it. While I agree that VB6 and its predecessors were lacking, VB.NET IS a good language if you know how to use it. Want your 3rd semicolon as you asked about? For Field As Integer = 0 To ds.Table.Columns.Count - 1 **Step 2** The Step keyword is your 3rd semicolon. And the With statement? Other languages could use something like this. It's useful when you have to set like 30 properties. I noticed in another post that you said this means you don't have to think. So what? How much thought does it really take in the first place, even WITHOUT the With keyword? It's just extra typing. Things that ARE missing from VB.NET that I'd really love to see; overloadable operators, templates (they say that C# will support them for sure, but not necessarily VB), and removal of the AddHandler/RemoveHandler keywords. I'd rather just say Button1.Click += new EventHandler... as C# does. Point being, learn about something before you openly criticize it. I have no idea what The Gathering is, except that it's a concert, so I can't fairly critique it, can I? Kyosa Jamie Nordmeyer - Cho Dan Portland, Oregon, USA

                                        Z Offline
                                        Z Offline
                                        Zachery
                                        wrote on last edited by
                                        #19

                                        Jamie Nordmeyer wrote: Point being, learn about something before you openly criticize it Spending a day and a half, I have learnt a lot about it. Before, when I didn't know a lot about it, I didn't critisize it. If you were to go to the Gatering for a day, I would say that you can now duly critisize it.

                                        ..........Zack.......... Developer Extraordinaire && Full Time Geek

                                        "Never underestimate the power of stupid people in large groups." - George Carlin "I will stand on my side of the fence, reguardless of the circumstances or the consequence." - Monoxide "Hugbees!" GCS\P\SS d- s-:- a-- C++$ U--- P--- L- E- W++ N o K-? w+++ O++ !M-- V PS+ PE Y+ PGP t+ 5+ X+ R++ tv++ b++ DI++ D+++ G+>G++++ e* h- r++ y+

                                        J 1 Reply Last reply
                                        0
                                        • R Ray Cassick

                                          Do you how many bugs can be introduced using copy/paste?


                                          Paul Watson wrote: "At the end of the day it is what you produce that counts, not how many doctorates you have on the wall." George Carlin wrote: "Don't sweat the petty things, and don't pet the sweaty things." Jörgen Sigvardsson wrote: If the physicists find a universal theory describing the laws of universe, I'm sure the asshole constant will be an integral part of that theory.


                                          C Offline
                                          C Offline
                                          Chris Losinger
                                          wrote on last edited by
                                          #20

                                          Ray Cassick wrote: Do you how many bugs can be introduced using copy/paste? 4 -c CheeseWeasle

                                          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