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. My weekend "First Post"

My weekend "First Post"

Scheduled Pinned Locked Moved The Lounge
csharpcomdiscussion
19 Posts 12 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.
  • K kdmote

    Brilliant! I did consider looking to see if anyone else had done this already (I figured it was probably inevitable), but I decided that would spoil the fun. Actually, our articles are the dual of each other. You did text to numbers (much more difficult, no doubt), and I did numbers to text. (And I used the American version of the number-words; apologies to y'all east of the pond!)

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

    I did mine back in 2013 ... Converting numbers to the word equivalent. [^] Mind you, some people do seem to have tried to use it to hand in their homework, judging by the comments... :laugh:

    Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

    "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

    K P P M 4 Replies Last reply
    0
    • OriginalGriffO OriginalGriff

      I did mine back in 2013 ... Converting numbers to the word equivalent. [^] Mind you, some people do seem to have tried to use it to hand in their homework, judging by the comments... :laugh:

      Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

      K Offline
      K Offline
      kdmote
      wrote on last edited by
      #7

      OG, I stand in amazement -- that's some brilliant work! The wonderful thing about your approach is that it would seem natural to extend it to decimals, too! :-D

      OriginalGriffO 1 Reply Last reply
      0
      • K kdmote

        OG, I stand in amazement -- that's some brilliant work! The wonderful thing about your approach is that it would seem natural to extend it to decimals, too! :-D

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

        I do like to help students to get the grade they deserve! :laugh:

        Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

        "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

        W S 2 Replies Last reply
        0
        • OriginalGriffO OriginalGriff

          I did mine back in 2013 ... Converting numbers to the word equivalent. [^] Mind you, some people do seem to have tried to use it to hand in their homework, judging by the comments... :laugh:

          Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #9

          Latecomer[^] ;P

          This space for rent

          OriginalGriffO 1 Reply Last reply
          0
          • P Pete OHanlon

            Latecomer[^] ;P

            This space for rent

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

            Curses! Foiled again! And I would have gotten away with it too, if it weren't for those meddling kids.

            Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

            "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

            J 1 Reply Last reply
            0
            • OriginalGriffO OriginalGriff

              I do like to help students to get the grade they deserve! :laugh:

              Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

              W Offline
              W Offline
              Wastedtalent
              wrote on last edited by
              #11

              I can't believe there's so many 1 votes. I can't see any obvious bugs and it seems to work :laugh:

              1 Reply Last reply
              0
              • K kdmote

                I finally got around to writing my first CP article! I wouldn't consider it anything terribly noteworthy, but writing an article is something I've wanted to do for quite some time so I worked on it over the weekend and finally completed it yesterday. If any of you veteran authors have any thoughts or suggestions about it, I would love to hear them. https://www.codeproject.com/Articles/1164635/Converting-Numbers-to-Text-in-Csharp The idea for a simple "number-spelling" toy just popped into my head on Saturday, so I thought I would take a stab at it. (You know you're a geek when the funnest thing you can think of doing on a lazy afternoon is to code a silly toy!)

                T Offline
                T Offline
                Tim Carmichael
                wrote on last edited by
                #12

                First, congrats on writing code and posting an article. Second, for the naysayers that are touting their articles... do they do the same when a question in posted in a forum that has been asked before? Refer the OP to the question and answers that had been asked previously? The thought made me smile.

                F P 2 Replies Last reply
                0
                • T Tim Carmichael

                  First, congrats on writing code and posting an article. Second, for the naysayers that are touting their articles... do they do the same when a question in posted in a forum that has been asked before? Refer the OP to the question and answers that had been asked previously? The thought made me smile.

                  F Offline
                  F Offline
                  F ES Sitecore
                  wrote on last edited by
                  #13

                  Tim Carmichael wrote:

                  do they do the same when a question in posted in a forum that has been asked before? Refer the OP to the question and answers that had been asked previously?

                  That's exactly what we do, yes :) Why should someone spend their time explaining how to call a service from ajax when if they did a simple google search they'd find the code from all the people who asked the exact same thing previously?

                  1 Reply Last reply
                  0
                  • T Tim Carmichael

                    First, congrats on writing code and posting an article. Second, for the naysayers that are touting their articles... do they do the same when a question in posted in a forum that has been asked before? Refer the OP to the question and answers that had been asked previously? The thought made me smile.

                    P Offline
                    P Offline
                    Pete OHanlon
                    wrote on last edited by
                    #14

                    Tim Carmichael wrote:

                    Second, for the naysayers that are touting their articles

                    Topped that. I touted someone else's article :)

                    This space for rent

                    1 Reply Last reply
                    0
                    • OriginalGriffO OriginalGriff

                      I do like to help students to get the grade they deserve! :laugh:

                      Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

                      S Offline
                      S Offline
                      Slacker007
                      wrote on last edited by
                      #15

                      You know, you really should start your own online university. :)

                      1 Reply Last reply
                      0
                      • OriginalGriffO OriginalGriff

                        I did mine back in 2013 ... Converting numbers to the word equivalent. [^] Mind you, some people do seem to have tried to use it to hand in their homework, judging by the comments... :laugh:

                        Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

                        P Offline
                        P Offline
                        PeejayAdams
                        wrote on last edited by
                        #16

                        That's awesome code, Griff! And it's the only version that includes the "and" where it ought to.

                        Slogans aren't solutions.

                        1 Reply Last reply
                        0
                        • OriginalGriffO OriginalGriff

                          Curses! Foiled again! And I would have gotten away with it too, if it weren't for those meddling kids.

                          Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

                          J Offline
                          J Offline
                          Jeremy Falcon
                          wrote on last edited by
                          #17

                          2002 bro, 2002... Convert Integers to Their Textual Description[^]

                          Jeremy Falcon

                          1 Reply Last reply
                          0
                          • K kdmote

                            I finally got around to writing my first CP article! I wouldn't consider it anything terribly noteworthy, but writing an article is something I've wanted to do for quite some time so I worked on it over the weekend and finally completed it yesterday. If any of you veteran authors have any thoughts or suggestions about it, I would love to hear them. https://www.codeproject.com/Articles/1164635/Converting-Numbers-to-Text-in-Csharp The idea for a simple "number-spelling" toy just popped into my head on Saturday, so I thought I would take a stab at it. (You know you're a geek when the funnest thing you can think of doing on a lazy afternoon is to code a silly toy!)

                            J Offline
                            J Offline
                            Jeremy Falcon
                            wrote on last edited by
                            #18

                            Cool article man. The only thing I'd add would be to give credit where its due if you based some ideas / work off of others. And to do a quick search to see if it exists already, and if so what makes your article different, being that the Internet is kinda popular now there are tons of articles online already. For example, check the bottom of one of my articles... A multithreaded, OpenGL-enabled application.[^] Anyway, good job man... sharing knowledge feels good and helps you learn even more.

                            Jeremy Falcon

                            1 Reply Last reply
                            0
                            • OriginalGriffO OriginalGriff

                              I did mine back in 2013 ... Converting numbers to the word equivalent. [^] Mind you, some people do seem to have tried to use it to hand in their homework, judging by the comments... :laugh:

                              Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

                              M Offline
                              M Offline
                              Mark_Wallace
                              wrote on last edited by
                              #19

                              I don't like the way you skipped over:

                              case 42;
                              return "The Answer";

                              The kiddies need to know the answer.

                              I wanna be a eunuchs developer! Pass me a bread knife!

                              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