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. How bad...

How bad...

Scheduled Pinned Locked Moved The Lounge
csharpvisual-studioquestion
54 Posts 33 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.
  • C chaiguy1337

    LOL Gravity doesn't bother me so much, so long as I have a comfy chair. :) I agree the semicolon on enter thing would not work out, I was thinking more along the lines of "press enter after each statement" or, when you think about it, a "newline after semicolon" would probably be about as good. Personally, I don't even care about hitting enter after a semicolon, the problem I have is that semicolons are required in the first place, but I don't want to start a flamewar about it. I just think there are better ways to end a statement. Like using a special character/keystroke in the odd circumstance to continue a line (like shift-Enter), rather than using a certain character always to end a statement. But then that's not what the OP was asking about, so no point starting up on that.

    “Time and space can be a bitch.” –Gushie, Quantum Leap {o,o}.oO( Looking for a great RSS reader? Try FeedBeast! ) |)””’)            Built with home-grown CodeProject components! -”-”-

    P Offline
    P Offline
    Paul Watson
    wrote on last edited by
    #40

    I code in Ruby, I am happy without semicolons. Though I do plenty of JavaScript too which is annoyingly silent on forgotten semicolons. Most of the time it doesn't matter but the odd time it does is the hardest bug to track down.

    regards, Paul Watson Ireland & South Africa

    Fernando A. Gomez F. wrote:

    At least he achieved immortality for a few years.

    1 Reply Last reply
    0
    • D DaveX86

      Write your code in Visual Basic, that way you don't have to worry about the unnecessary punctuation :)

      C Offline
      C Offline
      ciricivan
      wrote on last edited by
      #41

      David Lockwood wrote:

      Write your code in Visual Basic, that way you don't have to worry about the unnecessary punctuation [Smile]

      I had to switch to VB.NET after C# on my latest job. Please, somebody, kill me !!! , I have no strenght to do it myself :rolleyes:

      1 Reply Last reply
      0
      • P Paul Watson

        Of course, better coders don't write long lines of code that need to be wrapped :-D (Though if you are in the .NET world then I don't see how you can write three lines before having to wrap. All those namespaces and class structures.)

        regards, Paul Watson Ireland & South Africa

        Fernando A. Gomez F. wrote:

        At least he achieved immortality for a few years.

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

        Paul Watson wrote:

        (Though if you are in the .NET world then I don't see how you can write three lines before having to wrap. All those namespaces and class structures.)

        160 column screens FTW!

        You know, every time I tried to win a bar-bet about being able to count to 1000 using my fingers I always got punched out when I reached 4.... -- El Corazon

        1 Reply Last reply
        0
        • S SimonRigby

          Good point apart from the fact that the ; is not unnecesary in the same way that the _ isn't in VB :)

          The only thing unpredictable about me is just how predictable I'm going to be.

          K Offline
          K Offline
          kinar
          wrote on last edited by
          #43

          except that they server exactly opposite functions... The ; ends a command wheras the _ extends one

          S 1 Reply Last reply
          0
          • C chaiguy1337

            LOL Gravity doesn't bother me so much, so long as I have a comfy chair. :) I agree the semicolon on enter thing would not work out, I was thinking more along the lines of "press enter after each statement" or, when you think about it, a "newline after semicolon" would probably be about as good. Personally, I don't even care about hitting enter after a semicolon, the problem I have is that semicolons are required in the first place, but I don't want to start a flamewar about it. I just think there are better ways to end a statement. Like using a special character/keystroke in the odd circumstance to continue a line (like shift-Enter), rather than using a certain character always to end a statement. But then that's not what the OP was asking about, so no point starting up on that.

            “Time and space can be a bitch.” –Gushie, Quantum Leap {o,o}.oO( Looking for a great RSS reader? Try FeedBeast! ) |)””’)            Built with home-grown CodeProject components! -”-”-

            P Offline
            P Offline
            Pawel Krakowiak
            wrote on last edited by
            #44

            logan1337 wrote:

            a "newline after semicolon" would probably be about as good

            I wouldn't like that to happen in anonymous/inline functions. For example I like to put (short) code in one line when using delegates in C#, if there are about 3 statements I prefer them in the same line.

            C 1 Reply Last reply
            0
            • C chaiguy1337

              I'm sick of semicolons too;

              “Time and space can be a bitch.” –Gushie, Quantum Leap {o,o}.oO( Looking for a great RSS reader? Try FeedBeast! ) |)””’)            Built with home-grown CodeProject components! -”-”-

              P Offline
              P Offline
              Pawel Krakowiak
              wrote on last edited by
              #45

              logan1337 wrote:

              I'm sick of semicolons too;

              You've got a syntax error there - unclosed string literal. :D

              C 1 Reply Last reply
              0
              • K kinar

                except that they server exactly opposite functions... The ; ends a command wheras the _ extends one

                S Offline
                S Offline
                SimonRigby
                wrote on last edited by
                #46

                Yes I'm fully aware of that. My point was in reponse to the word unnecesary. The ; is not not unneccesary.

                The only thing unpredictable about me is just how predictable I'm going to be.

                A 1 Reply Last reply
                0
                • P Pawel Krakowiak

                  logan1337 wrote:

                  a "newline after semicolon" would probably be about as good

                  I wouldn't like that to happen in anonymous/inline functions. For example I like to put (short) code in one line when using delegates in C#, if there are about 3 statements I prefer them in the same line.

                  C Offline
                  C Offline
                  chaiguy1337
                  wrote on last edited by
                  #47

                  Yeah good point. I didn't think it was a very good idea.

                  “Time and space can be a bitch.” –Gushie, Quantum Leap {o,o}.oO( Looking for a great RSS reader? Try FeedBeast! ) |)””’)            Built with home-grown CodeProject components! -”-”-

                  1 Reply Last reply
                  0
                  • P Pawel Krakowiak

                    logan1337 wrote:

                    I'm sick of semicolons too;

                    You've got a syntax error there - unclosed string literal. :D

                    C Offline
                    C Offline
                    chaiguy1337
                    wrote on last edited by
                    #48

                    :laugh: Debug.Assert( this.IsSickOf( "semicolons" ) == true );

                    “Time and space can be a bitch.” –Gushie, Quantum Leap {o,o}.oO( Looking for a great RSS reader? Try FeedBeast! ) |)””’)            Built with home-grown CodeProject components! -”-”-

                    1 Reply Last reply
                    0
                    • A Ariel Kazeed

                      ... would it be for orthodox programmers' mental health if VS automatically added semicolons and bracers where needed while coding in C#? Would it surely destroy the 'essence' of programming? Because it'd make me quite happy :^)

                      Kazz


                      "Users are there to click on things, not think. Let the archs do the damn thinking."

                      J Offline
                      J Offline
                      James Lonero
                      wrote on last edited by
                      #49

                      Resharper 4.0 (from Jetbrains.com) is offering to add the ending parenthesis and braces for you on functions and many other C# constructs. But, I do think that it could get annoying at times, unless you always encode even single lines of code in braces (after ifs, fors, whiles, etc.).

                      1 Reply Last reply
                      0
                      • S SimonRigby

                        Yes I'm fully aware of that. My point was in reponse to the word unnecesary. The ; is not not unneccesary.

                        The only thing unpredictable about me is just how predictable I'm going to be.

                        A Offline
                        A Offline
                        Arterion
                        wrote on last edited by
                        #50

                        I think he was speaking in a more general sense. In that, if VB (or any language, in this case, any .NET language) can accept code without semicolons, than they are "unnecessary" from a more philosophical perspective. In that, you can indeed write your .NET application without using them.

                        S 1 Reply Last reply
                        0
                        • A Arterion

                          I think he was speaking in a more general sense. In that, if VB (or any language, in this case, any .NET language) can accept code without semicolons, than they are "unnecessary" from a more philosophical perspective. In that, you can indeed write your .NET application without using them.

                          S Offline
                          S Offline
                          SimonRigby
                          wrote on last edited by
                          #51

                          Errr .. right .. so in C# I can format my code any way I like and use the semicolon to actually mark the end of a 'line'. In VB I need to use the _ to acheive the same result. So taking to goal is to produce clear and concise, well layed out code, both languages have this facility just that one is implicit and one is explicit. I'm struggling to see the point, surely both are not unnecessary thats my point.

                          The only thing unpredictable about me is just how predictable I'm going to be.

                          A 1 Reply Last reply
                          0
                          • S SimonRigby

                            Errr .. right .. so in C# I can format my code any way I like and use the semicolon to actually mark the end of a 'line'. In VB I need to use the _ to acheive the same result. So taking to goal is to produce clear and concise, well layed out code, both languages have this facility just that one is implicit and one is explicit. I'm struggling to see the point, surely both are not unnecessary thats my point.

                            The only thing unpredictable about me is just how predictable I'm going to be.

                            A Offline
                            A Offline
                            Arterion
                            wrote on last edited by
                            #52

                            But you can write VB just fine without ever using the _. You can't write C# without using the ;. I prefer C style myself. I never liked having to use the _ symbol. I'm just trying to find a way to justify what the other poster was trying to say. lol

                            S 1 Reply Last reply
                            0
                            • A Arterion

                              But you can write VB just fine without ever using the _. You can't write C# without using the ;. I prefer C style myself. I never liked having to use the _ symbol. I'm just trying to find a way to justify what the other poster was trying to say. lol

                              S Offline
                              S Offline
                              SimonRigby
                              wrote on last edited by
                              #53

                              LOL You write VB programs that have those stupidly long lines with no formatting and I'm not employing you .. lol. Its cool mate I see you're point and I know what you're saying but I still say they are both neccesary :)

                              The only thing unpredictable about me is just how predictable I'm going to be.

                              1 Reply Last reply
                              0
                              • A Ariel Kazeed

                                ... would it be for orthodox programmers' mental health if VS automatically added semicolons and bracers where needed while coding in C#? Would it surely destroy the 'essence' of programming? Because it'd make me quite happy :^)

                                Kazz


                                "Users are there to click on things, not think. Let the archs do the damn thinking."

                                D Offline
                                D Offline
                                dmitri_sps
                                wrote on last edited by
                                #54

                                I'd prefer it instead automatically removed illegal semicolumns :-D - I always add one after a block and ... oops: it's underlined in C# (when... I am not even sure when)

                                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