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. Well it made me laugh anyway

Well it made me laugh anyway

Scheduled Pinned Locked Moved The Weird and The Wonderful
question
5 Posts 4 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 Offline
    M Offline
    musefan
    wrote on last edited by
    #1

    Maybe it's just because its a Friday afternoon but I had to laugh at the following code I just found for removing the first 7 chars of a string....

    s = s.Replace(s.Substring(0,7), "");

    ... See the funny side? or is it just me?

    Life goes very fast. Tomorrow, today is already yesterday.

    C J L 3 Replies Last reply
    0
    • M musefan

      Maybe it's just because its a Friday afternoon but I had to laugh at the following code I just found for removing the first 7 chars of a string....

      s = s.Replace(s.Substring(0,7), "");

      ... See the funny side? or is it just me?

      Life goes very fast. Tomorrow, today is already yesterday.

      C Offline
      C Offline
      Chris Meech
      wrote on last edited by
      #2

      :wtf: :wtf: :wtf: Now that's a hoop jumper, if I ever saw one. Let's call that, Basketball programming. :laugh: Whatever happened to the good ol' days when you could just do

      ptr += 7;

      :)

      Chris Meech I am Canadian. [heard in a local bar] In theory there is no difference between theory and practice. In practice there is. [Yogi Berra]

      1 Reply Last reply
      0
      • M musefan

        Maybe it's just because its a Friday afternoon but I had to laugh at the following code I just found for removing the first 7 chars of a string....

        s = s.Replace(s.Substring(0,7), "");

        ... See the funny side? or is it just me?

        Life goes very fast. Tomorrow, today is already yesterday.

        J Offline
        J Offline
        Jeroen De Dauw
        wrote on last edited by
        #3

        That's a particular funny way of doing it wrong yes :D

        Jeroen De Dauw
        Blog ; Wiki

        1 Reply Last reply
        0
        • M musefan

          Maybe it's just because its a Friday afternoon but I had to laugh at the following code I just found for removing the first 7 chars of a string....

          s = s.Replace(s.Substring(0,7), "");

          ... See the funny side? or is it just me?

          Life goes very fast. Tomorrow, today is already yesterday.

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

          s = "badcoder you creazy badcode?"
          s = s.Replace(s.Substring(0,7), "");
          // s == "r you creazy?"

          (it's 1 am here)

          Greetings - Jacek

          M 1 Reply Last reply
          0
          • L Lutoslaw

            s = "badcoder you creazy badcode?"
            s = s.Replace(s.Substring(0,7), "");
            // s == "r you creazy?"

            (it's 1 am here)

            Greetings - Jacek

            M Offline
            M Offline
            musefan
            wrote on last edited by
            #5

            dont you mean...

            // s == "r you creazy ?"

            ;)

            Life goes very fast. Tomorrow, today is already yesterday.

            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