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. Other Discussions
  3. The Weird and The Wonderful
  4. Early candidate for most useless comment of 2016 (with optional useless variable name award)

Early candidate for most useless comment of 2016 (with optional useless variable name award)

Scheduled Pinned Locked Moved The Weird and The Wonderful
8 Posts 6 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.
  • F Offline
    F Offline
    Fueled By Decaff
    wrote on last edited by
    #1

    serialPort1.BaudRate = 9600; // 9600;

    L R P A I 6 Replies Last reply
    0
    • F Fueled By Decaff

      serialPort1.BaudRate = 9600; // 9600;

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

      Sorry, you are wrong you do not get the point! The comment is for color blind. :laugh: And the variable Name Points to nothing other than COM1 :doh:

      1 Reply Last reply
      0
      • F Fueled By Decaff

        serialPort1.BaudRate = 9600; // 9600;

        R Offline
        R Offline
        RugbyLeague
        wrote on last edited by
        #3

        Seems rather terse, surely

        serialPort1.BaudRate = 9600; // set Serial Port 1 Baud Rate to 9600

        would be more helpful

        L 1 Reply Last reply
        0
        • R RugbyLeague

          Seems rather terse, surely

          serialPort1.BaudRate = 9600; // set Serial Port 1 Baud Rate to 9600

          would be more helpful

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

          aha or it is british humour, which of course I like, but usually do not understand it :-D

          1 Reply Last reply
          0
          • F Fueled By Decaff

            serialPort1.BaudRate = 9600; // 9600;

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

            No; you must remember that the BaudRate property expects SI units, so the comment provides the translation to imperial units.

            1 Reply Last reply
            0
            • F Fueled By Decaff

              serialPort1.BaudRate = 9600; // 9600;

              A Offline
              A Offline
              Amarnath S
              wrote on last edited by
              #6

              No. Its not a comment. Rather, it is commented code. This is inferred from the ; at the end. The programmer just forgot to remove that piece of commented code. :-)

              1 Reply Last reply
              0
              • F Fueled By Decaff

                serialPort1.BaudRate = 9600; // 9600;

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

                I think it means: "If you're going to muck with this setting, this (9600) was the last good one; in case I forget or die..."

                1 Reply Last reply
                0
                • F Fueled By Decaff

                  serialPort1.BaudRate = 9600; // 9600;

                  I Offline
                  I Offline
                  imagiro
                  wrote on last edited by
                  #8

                  He/she forgot to mention that this is about setting the baudrate.

                  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