My weekend "First Post"
-
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!)
-
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!)
I posted an article doing the same thing two years ago. [Converting Text Numbers to Numeric Values](https://www.codeproject.com/Articles/875581/Converting-Text-Numbers-to-Numeric-Values)
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013 -
I posted an article doing the same thing two years ago. [Converting Text Numbers to Numeric Values](https://www.codeproject.com/Articles/875581/Converting-Text-Numbers-to-Numeric-Values)
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013Brilliant! 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!)
-
I posted an article doing the same thing two years ago. [Converting Text Numbers to Numeric Values](https://www.codeproject.com/Articles/875581/Converting-Text-Numbers-to-Numeric-Values)
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013As if anyone of the youngsters would know how to do the opposite without calling ToString().
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a fucking golf cart.
"I don't know, extraterrestrial?" "You mean like from space?" "No, from Canada." If software development were a circus, we would all be the clowns. -
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!)
Congrats, it should be as much for yourself as anyone else. :)
-
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!)
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 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...
-
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
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 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...
-
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 do like to help students to get the grade they deserve! :laugh:
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
I can't believe there's so many 1 votes. I can't see any obvious bugs and it seems to work :laugh:
-
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!)
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.
-
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.
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?
-
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.
Tim Carmichael wrote:
Second, for the naysayers that are touting their articles
Topped that. I touted someone else's article :)
This space for rent
-
I do like to help students to get the grade they deserve! :laugh:
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
You know, you really should start your own online university. :)
-
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...
That's awesome code, Griff! And it's the only version that includes the "and" where it ought to.
Slogans aren't solutions.
-
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...
2002 bro, 2002... Convert Integers to Their Textual Description[^]
Jeremy Falcon
-
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!)
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
-
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 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!