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. A backslash in C++

A backslash in C++

Scheduled Pinned Locked Moved The Weird and The Wonderful
c++help
41 Posts 17 Posters 1 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.
  • OriginalGriffO OriginalGriff

    I don't - I have "treat warnings as errors" set on my projects to prevent compilation succeeding! :laugh:

    Never underestimate the power of stupid things in large numbers --- Serious Sam

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

    Many programmers use "treat errors as warnings" flag.

    R 1 Reply Last reply
    0
    • S Sentenryu

      People here don't read error messages, so even if i set that they would just ignore

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

      That's the whole point: if you set "treat warnings as errors" then compilation fails until the warning is fixed. You can't run or test you app until you do.

      Never underestimate the power of stupid things in large numbers --- Serious Sam

      "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

      F 1 Reply Last reply
      0
      • P Pete OHanlon

        And what about those hard core devs who swear by (instead of at) vi? My point wasn't that Notepad++ supports or does not support colourisation. It's that you can't rely on colourisation to indicate problems.

        C Offline
        C Offline
        CPallini
        wrote on last edited by
        #32

        Hey man, hats off to vi: it provides syntax colouring as well. And you can rely on colourization. Well, unless you write something like

        for (n=0; n<100; ++n);
        {
        doSomething();
        }

        Veni, vidi, vici.

        1 Reply Last reply
        0
        • N Nagy Vilmos

          When you become practised in the art then you simply hold your hands above the keyboard in supplication and the code writes itself out of fear of reprisals. :cool:

          speramus in juniperus

          C Offline
          C Offline
          CPallini
          wrote on last edited by
          #33

          Yes, we do know PMs have a quite twisted perception of the software development process. ;P

          Veni, vidi, vici.

          1 Reply Last reply
          0
          • P Pete OHanlon

            Hey, I like vi. There are parts of it that I wish were available in Visual Studio. dd for instance. Or 10dd to delete 10 lines. Yes, you can do this using other means in an IDE, but they are all more cumbersome.

            B Offline
            B Offline
            Brisingr Aerowing
            wrote on last edited by
            #34

            VsVim[^] might be useful for you. It adds Vim commands to VS.

            Getting information off the Internet is like taking a drink from a fire hydrant. - Mitchell Kapor

            L 1 Reply Last reply
            0
            • OriginalGriffO OriginalGriff

              That's the whole point: if you set "treat warnings as errors" then compilation fails until the warning is fixed. You can't run or test you app until you do.

              Never underestimate the power of stupid things in large numbers --- Serious Sam

              F Offline
              F Offline
              Freak30
              wrote on last edited by
              #35

              My old boss once jokingly said that he was still waiting for the "treat errors as warnings" flag. :D

              The good thing about pessimism is, that you are always either right or pleasently surprised.

              1 Reply Last reply
              0
              • L Lost User

                Many programmers use "treat errors as warnings" flag.

                R Offline
                R Offline
                Rob Grainger
                wrote on last edited by
                #36

                I just make sure my code compiles without warnings. If I really cannot avoid a warning, I use a pragma to disable a specific warning, with an explanatory comment.

                "If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.

                1 Reply Last reply
                0
                • T Tsuda Kageyu

                  Oops! It was like this:

                  // Sometimes carry out the work \
                  if (flag)
                  {
                  SomeWork();
                  }

                  R Offline
                  R Offline
                  Rob Grainger
                  wrote on last edited by
                  #37

                  That's a lousy attempt at obfuscation. Here's a real professional at work: IOCCC[^]. (That is a full hardware emulation of a 1980's PC hardware (much more info in the other files in this folder[^]. Some top aspects: It is 4043 bytes long (half an 8086). "It manages to implement most of the hardware in a 1980’s era IBM-PC using a few hundred fewer bits than the total number of transistors used to implement the original 8086 CPU." (edited for spelling)

                  "If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.

                  L 1 Reply Last reply
                  0
                  • R Rob Grainger

                    That's a lousy attempt at obfuscation. Here's a real professional at work: IOCCC[^]. (That is a full hardware emulation of a 1980's PC hardware (much more info in the other files in this folder[^]. Some top aspects: It is 4043 bytes long (half an 8086). "It manages to implement most of the hardware in a 1980’s era IBM-PC using a few hundred fewer bits than the total number of transistors used to implement the original 8086 CPU." (edited for spelling)

                    "If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.

                    L Offline
                    L Offline
                    Lutoslaw
                    wrote on last edited by
                    #38

                    Whoa... [^].

                    Greetings - Jacek

                    1 Reply Last reply
                    0
                    • P Pete OHanlon

                      Hey, I like vi. There are parts of it that I wish were available in Visual Studio. dd for instance. Or 10dd to delete 10 lines. Yes, you can do this using other means in an IDE, but they are all more cumbersome.

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

                      I have a vi plugin for visual studio. It's called vsvim, and as far as I remember I installed it in the extension manager gui.

                      1 Reply Last reply
                      0
                      • B Brisingr Aerowing

                        VsVim[^] might be useful for you. It adds Vim commands to VS.

                        Getting information off the Internet is like taking a drink from a fire hydrant. - Mitchell Kapor

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

                        Teach me to comment before reading the whole thread

                        B 1 Reply Last reply
                        0
                        • L Lost User

                          Teach me to comment before reading the whole thread

                          B Offline
                          B Offline
                          Brisingr Aerowing
                          wrote on last edited by
                          #41

                          Heh. I am not all that used to Vi(m), but this extension seems to be quite powerful.

                          <voice type="Ebeneezer Scrooge"> Bah. dumb bugs </voice>

                          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