Things I hate about a language

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vinci
    New Member
    • Aug 2006
    • 62

    #46
    i hate languages that i really dont know about...

    but am proud of knowing VB, C#, Java,, but just basic

    Comment

    • JKing
      Recognized Expert Top Contributor
      • Jun 2007
      • 1206

      #47
      Originally posted by TRScheel
      In c#. I could use a longer example, but I think that shows it just fine. Also, how everything is seperated with indentation instead of something like... brackets.
      Not sure what you mean by things not being seperated by brackets. Blocks of code are all grouped by { } in C#
      Example:
      Code:
      if true
      {
      }
      else
      {
      }
      Though you can also do the following without errors and I'm assuming this is what you're refering to.
      Code:
      if true
            //code here using no brackets and just indent
      I always use the brackets though as I find it's easier to read.

      Comment

      • TRScheel
        Recognized Expert Contributor
        • Apr 2007
        • 638

        #48
        Originally posted by JKing
        Not sure what you mean by things not being seperated by brackets. Blocks of code are all grouped by { } in C#
        Example:
        Code:
        if true
        {
        }
        else
        {
        }
        Though you can also do the following without errors and I'm assuming this is what you're refering to.
        Code:
        if true
              //code here using no brackets and just indent
        I always use the brackets though as I find it's easier to read.

        Sorry, I meant that for VB. NET. I get annoyed with indentation, and prefer the {}

        I get ahead of myself typing sometimes... its gonna catch up to me sometime

        EDIT:

        Going back to my post, I realized what you were originally pointing out.

        vb .Net:
        How annoyed I get when I have to write

        [code=vbnet]
        dim test as integer
        [/code]

        After getting used to just writing

        [code=cpp]
        int test;
        [/code]

        In c#. I could use a longer example, but I think that shows it just fine. Also, how everything is seperated with indentation instead of something like... brackets.

        That is all together... ramblings about VB .NET.

        Comment

        • JKing
          Recognized Expert Top Contributor
          • Jun 2007
          • 1206

          #49
          Oh, misunderstandin g on my part. I totally agree with you about the lack of brackets in VB as well as the declaration of variables. My personal annoyance in VB is declaring for loops. I prefer the method of:
          Code:
          for(int i = 0; i < 5; i++)
          compared to:
          Code:
           
          Dim i As Integer
          For i = 0 to 5
          Another thing is the lack of the ++, +=, --, -= operators

          I'm probably just biased though because I learned C# before VB. I still try to put C# code in my VB code once in a while and just laugh when the error appears.

          Comment

          • TRScheel
            Recognized Expert Contributor
            • Apr 2007
            • 638

            #50
            Originally posted by JKing
            Oh, misunderstandin g on my part. I totally agree with you about the lack of brackets in VB as well as the declaration of variables. My personal annoyance in VB is declaring for loops. I prefer the method of:
            Code:
            for(int i = 0; i < 5; i++)
            compared to:
            Code:
             
            Dim i As Integer
            For i = 0 to 5
            Another thing is the lack of the ++, +=, --, -= operators

            I'm probably just biased though because I learned C# before VB. I still try to put C# code in my VB code once in a while and just laugh when the error appears.

            You can do

            [code=vbnet]
            For Dim i as Integer = 0 to 10 step 1
            [/code]


            Edit:

            I know what you mean about the C# into VB code... I always end up with a chunk of code having at least one semicolon at the end of a line somewhere.

            Comment

            • devikacs
              New Member
              • Jun 2007
              • 96

              #51
              java

              1. no properties

              2. i would have like something like this to be allowed.
              int a;
              Boolean b;
              a= if(b)

              instead of having to write
              if(b)
              a=1;
              else
              a=0;

              everytime

              Comment

              • pbmods
                Recognized Expert Expert
                • Apr 2007
                • 5821

                #52
                Heya, devikacs.

                Does this work?
                [code=java]
                a = !!b;
                [/code]

                Comment

                • Mague
                  New Member
                  • May 2007
                  • 137

                  #53
                  Vb.net its so hard to find source code that you need. Alot of function dont work on it.

                  Comment

                  Working...