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. JOTD [modified]

JOTD [modified]

Scheduled Pinned Locked Moved The Lounge
csharpcomannouncementcareer
34 Posts 16 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.
  • M Mechanical

    In one of my previous jobs, one day I was assigned an old project, dozens of C files. I typed furiously all day. All I did was move

    if (...){

    to

    if (...)
    {

    NULL

    T Offline
    T Offline
    Tomz_KV
    wrote on last edited by
    #20

    Why did you do that? looks better?

    TOMZ_KV

    M 1 Reply Last reply
    0
    • A Arun Jacob

      Ctrl+K, D not there :laugh:

      Arun Jacob My Technical Blog : Code.NET

      M Offline
      M Offline
      Mechanical
      wrote on last edited by
      #21

      Arun Jacob wrote:

      Ctrl+K, D not there

      I started out when .NET didn't exist. It was VC6.

      NULL

      1 Reply Last reply
      0
      • T Tomz_KV

        Why did you do that? looks better?

        TOMZ_KV

        M Offline
        M Offline
        Mechanical
        wrote on last edited by
        #22

        Tomz_KV wrote:

        Why did you do that?

        if (...)
        {

        It is the way God intended it to be! The alternative was to sit and do nothing about the evil formatting.

        NULL

        T 1 Reply Last reply
        0
        • M Mechanical

          Tomz_KV wrote:

          Why did you do that?

          if (...)
          {

          It is the way God intended it to be! The alternative was to sit and do nothing about the evil formatting.

          NULL

          T Offline
          T Offline
          Tomz_KV
          wrote on last edited by
          #23

          Some IDE leaves the "{" on the same line of "if" by default. I do not remember which one. Current visual studio certainly does not do that.

          TOMZ_KV

          OriginalGriffO 1 Reply Last reply
          0
          • D Dalek Dave

            To slow the typists down. Back when typewriters were manual, fast typists would jam the keys.

            ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave

            OriginalGriffO Offline
            OriginalGriffO Offline
            OriginalGriff
            wrote on last edited by
            #24

            Back when I designed VDT's, I had to do a special keyboard layout : A-J, K-S, T-Z. The Coal Board - if the keys were qwerty then the union wanted clerical pay for using them...

            Did you know: That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.

            "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
            "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

            1 Reply Last reply
            0
            • T Tomz_KV

              Interesting enough that people like the "wrong keyboard" but do not want a new design.

              TOMZ_KV

              P Offline
              P Offline
              Peter Mulholland
              wrote on last edited by
              #25

              The Dvorak[^] keyboard has a layout designed to be faster and easier to use. I've heard of a few people using them but haven't tried one myself.

              Pete

              T 1 Reply Last reply
              0
              • T Tomz_KV

                Some IDE leaves the "{" on the same line of "if" by default. I do not remember which one. Current visual studio certainly does not do that.

                TOMZ_KV

                OriginalGriffO Offline
                OriginalGriffO Offline
                OriginalGriff
                wrote on last edited by
                #26

                It does if you have it set to: Tools...Options...Text editor...C#...Formatting...Newlines

                Did you know: That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.

                "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                T 1 Reply Last reply
                0
                • OriginalGriffO OriginalGriff

                  It does if you have it set to: Tools...Options...Text editor...C#...Formatting...Newlines

                  Did you know: That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.

                  T Offline
                  T Offline
                  Tomz_KV
                  wrote on last edited by
                  #27

                  good to know.

                  TOMZ_KV

                  1 Reply Last reply
                  0
                  • P Peter Mulholland

                    The Dvorak[^] keyboard has a layout designed to be faster and easier to use. I've heard of a few people using them but haven't tried one myself.

                    Pete

                    T Offline
                    T Offline
                    Tomz_KV
                    wrote on last edited by
                    #28

                    It might be hard to do due to the mismatch between the physical keyboard and Dvorak system.

                    TOMZ_KV

                    P D 2 Replies Last reply
                    0
                    • T Tomz_KV

                      It might be hard to do due to the mismatch between the physical keyboard and Dvorak system.

                      TOMZ_KV

                      P Offline
                      P Offline
                      Peter Mulholland
                      wrote on last edited by
                      #29

                      Well, there is a layout designed for programmers with braces and operators on the number keys (numbers require a shift). Yes, you would need to buy a physical keyboard with the Dvorak layout, but after reading the page I think i'll look into getting one (a large portion of that last line was right handed and required several hurdles.) And apparently most operating systems today support the Dvorak layout. And I don't use the ctrl-X/C/V for cut copy and paste, I've always found using the ctrl-insert, shift-insert, and shift-delete more intuitive.

                      Pete

                      1 Reply Last reply
                      0
                      • T Tomz_KV

                        It might be hard to do due to the mismatch between the physical keyboard and Dvorak system.

                        TOMZ_KV

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

                        That just means you really have to learn to touch type. :cool:

                        3x12=36 2x12=24 1x12=12 0x12=18

                        M 1 Reply Last reply
                        0
                        • L Lost User

                          A man who worked as a chef got fired for stealing kitchen utensils. He took too many whisks.

                          L Offline
                          L Offline
                          LittleYellowBird
                          wrote on last edited by
                          #31

                          I suppose he took one whisk and then it just balooned! :)

                          Ali

                          L 1 Reply Last reply
                          0
                          • L LittleYellowBird

                            I suppose he took one whisk and then it just balooned! :)

                            Ali

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

                            It was blown out of all proportion.

                            1 Reply Last reply
                            0
                            • L Lost User

                              Repost (and a kicking)

                              B Offline
                              B Offline
                              Brady Kelly
                              wrote on last edited by
                              #33

                              pompeyboy3 wrote:

                              Repost

                              And here I thought it was unprecedentedly bad. :confused:

                              1 Reply Last reply
                              0
                              • D Dan Neely

                                That just means you really have to learn to touch type. :cool:

                                3x12=36 2x12=24 1x12=12 0x12=18

                                M Offline
                                M Offline
                                Member 4194593
                                wrote on last edited by
                                #34

                                My boss told me that if I learned to touch type, I'd be a real terror.

                                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