|
He could not resist to spring into action.
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 f***ing 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.
|
|
|
|
|
Ah, I remember it well, I had to spring into action to make a big honkin' omelette, with bacon of course.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
And is it now the winter of his dis-content?
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack.
--Winston Churchill
|
|
|
|
|
What kind of crack was that? That yoke's a mere shell of your former glory.
To avoid the impression I'm pecking on you, my rant will be layed to roost.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
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
".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
|
|
|
|
|
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...
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!
|
|
|
|
|
I do like to help students to get the grade they deserve!
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
|
|
|
|
|
You know, you really should start your own online university.
|
|
|
|
|
|
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...
|
|
|
|
|
|
That's awesome code, Griff!
And it's the only version that includes the "and" where it ought to.
Slogans aren't solutions.
|
|
|
|
|
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!
|
|
|
|
|
As 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 f***ing 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.
|
|
|
|
|
Congrats, it should be as much for yourself as anyone else.
|
|
|
|
|
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?
|
|
|
|
|
Tim Carmichael wrote: Second, for the naysayers that are touting their articles Topped that. I touted someone else's article
This space for rent
|
|
|
|
|
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
|
|
|
|
|
Somebody has done this before....
I have a long list of members in a class called c_Client. Data for the class will come from database, HTML scraping and PDF scraping. It's a mess. I really don't know the extent of the mess.
So I made a c_Field class. c_Client contains a List<c_field>. c_Field has members ~ like
sNameInDatabase, // for select or insert statements
sDataFromDatabase, // some of the data will start out in the database, like the key
sDataFromScrape, // data from parse of screen scrape
sCaption // for parsing screen scraping ~ like "First Name:"
DataType, // int, string, Date
iMaxLength, // of strings
sError // You guess
Now I'm sure somebody has done stuff like this before... but I have no idea where to start looking or even search words. Any thoughts? T'anks, Mike
|
|
|
|
|