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. Formwhat?

Formwhat?

Scheduled Pinned Locked Moved The Weird and The Wonderful
question
10 Posts 7 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.
  • B Offline
    B Offline
    Brady Kelly
    wrote on last edited by
    #1

    Not technically a real horror, but I just did something that looks darn scary:

    return string.Format(string.Format("{{0:{0}}}", exportField.FormatString), exportField.Value);

    :~

    Semicolons: The number one seller of ostomy bags world wide. - dan neely

    R L B R 4 Replies Last reply
    0
    • B Brady Kelly

      Not technically a real horror, but I just did something that looks darn scary:

      return string.Format(string.Format("{{0:{0}}}", exportField.FormatString), exportField.Value);

      :~

      Semicolons: The number one seller of ostomy bags world wide. - dan neely

      R Offline
      R Offline
      Ri Qen Sin
      wrote on last edited by
      #2

      Is it code obfuscation?

      So the creationist says: Everything must have a designer. God designed everything. I say: Why is God the only exception? Why not make the "designs" (like man) exceptions and make God a creation of man?

      J 1 Reply Last reply
      0
      • B Brady Kelly

        Not technically a real horror, but I just did something that looks darn scary:

        return string.Format(string.Format("{{0:{0}}}", exportField.FormatString), exportField.Value);

        :~

        Semicolons: The number one seller of ostomy bags world wide. - dan neely

        L Offline
        L Offline
        leppie
        wrote on last edited by
        #3

        Not really :)

        xacc.ide - now with TabsToSpaces support
        IronScheme - 1.0 alpha 4 out now (27 May 2008)

        1 Reply Last reply
        0
        • R Ri Qen Sin

          Is it code obfuscation?

          So the creationist says: Everything must have a designer. God designed everything. I say: Why is God the only exception? Why not make the "designs" (like man) exceptions and make God a creation of man?

          J Offline
          J Offline
          Jeff Dickey
          wrote on last edited by
          #4

          by name? Probably not. by value? Obviously.... it violates the Thirty Second Rule (a single line of code shouldn't take that long to parse in your head) Wirth would be proud. :)

          Jeff Dickey Seven Sigma Software and Services Phone/SMS: +65 8333 4403 Yahoo! IM: jeff_dickey MSN IM:    jeff_dickey at hotmail.com ICQ IM:    8053918 Skype:     jeff_dickey

          G C 2 Replies Last reply
          0
          • B Brady Kelly

            Not technically a real horror, but I just did something that looks darn scary:

            return string.Format(string.Format("{{0:{0}}}", exportField.FormatString), exportField.Value);

            :~

            Semicolons: The number one seller of ostomy bags world wide. - dan neely

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

            Did I hear someone say "Quine"? :~

            Semicolons: The number one seller of ostomy bags world wide. - dan neely

            1 Reply Last reply
            0
            • B Brady Kelly

              Not technically a real horror, but I just did something that looks darn scary:

              return string.Format(string.Format("{{0:{0}}}", exportField.FormatString), exportField.Value);

              :~

              Semicolons: The number one seller of ostomy bags world wide. - dan neely

              R Offline
              R Offline
              realJSOP
              wrote on last edited by
              #6

              Why didn't you do it this way:

              return string.Format(exportField.FormatString, exportField.Value);

              "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
              -----
              "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

              B 1 Reply Last reply
              0
              • R realJSOP

                Why didn't you do it this way:

                return string.Format(exportField.FormatString, exportField.Value);

                "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                -----
                "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

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

                The format string for the export column doesn't contain the indexer for the composite format, i.e., I need "{0:0000.0000}" as a composite format, but the format string for the column doesn't care that it is format item with index 0, and is just "0000.0000".

                Semicolons: The number one seller of ostomy bags world wide. - dan neely

                1 Reply Last reply
                0
                • J Jeff Dickey

                  by name? Probably not. by value? Obviously.... it violates the Thirty Second Rule (a single line of code shouldn't take that long to parse in your head) Wirth would be proud. :)

                  Jeff Dickey Seven Sigma Software and Services Phone/SMS: +65 8333 4403 Yahoo! IM: jeff_dickey MSN IM:    jeff_dickey at hotmail.com ICQ IM:    8053918 Skype:     jeff_dickey

                  G Offline
                  G Offline
                  Graham Bradshaw
                  wrote on last edited by
                  #8

                  Jeff Dickey wrote:

                  it violates Thirty Second Rule

                  So what are rules 1 to 31? :-D

                  J 1 Reply Last reply
                  0
                  • G Graham Bradshaw

                    Jeff Dickey wrote:

                    it violates Thirty Second Rule

                    So what are rules 1 to 31? :-D

                    J Offline
                    J Offline
                    Jeff Dickey
                    wrote on last edited by
                    #9

                    mmmmppphhhh.... must.....not....give in....to....obviously.....brainless.....insipid.....TROLLS!

                    Jeff Dickey Seven Sigma Software and Services Phone/SMS: +65 8333 4403 Yahoo! IM: jeff_dickey MSN IM:    jeff_dickey at hotmail.com ICQ IM:    8053918 Skype:     jeff_dickey

                    1 Reply Last reply
                    0
                    • J Jeff Dickey

                      by name? Probably not. by value? Obviously.... it violates the Thirty Second Rule (a single line of code shouldn't take that long to parse in your head) Wirth would be proud. :)

                      Jeff Dickey Seven Sigma Software and Services Phone/SMS: +65 8333 4403 Yahoo! IM: jeff_dickey MSN IM:    jeff_dickey at hotmail.com ICQ IM:    8053918 Skype:     jeff_dickey

                      C Offline
                      C Offline
                      chmod2222
                      wrote on last edited by
                      #10

                      Jeff Dickey wrote:

                      it violates the Thirty Second Rule (a single line of code shouldn't take that long to parse in your head)

                      Ummmm List tablica = dc.vArtiklCjeniks.Where(sg => sg.StrankaID == s.StrankaID || (sg.StrankaID == null && dc.vArtiklCjeniks.Where(sg1 => sg1.ArtiklID == sg.ArtiklID && sg1.StrankaID == s.StrankaID).Count() == 0)).ToList(); How about that? :D Does this qualify as coding horror? :)

                      -- www.domagoj.net

                      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