|
|
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
|
|
|
|
|
|
I second that. Duck or run as fast as you can.
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.
|
|
|
|
|
I see this as a good technical discussion, not a specific programming question. I think it is very appropriate for the Lounge.
There are two kinds of people in the world: those who can extrapolate from incomplete data.
There are only 10 types of people in the world, those who understand binary and those who don't.
modified 10-Jan-17 10:29am.
|
|
|
|
|
That's not the problem. If you had seen what terrible things can come from that idea, then you would also run as fast as you can. Always someone comes along and tries to invent that yet another time.
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.
|
|
|
|
|
Goose!
There are two kinds of people in the world: those who can extrapolate from incomplete data.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Oof! Keep your hands to yourself young man!
veni bibi saltavi
|
|
|
|
|
You should read... At least the red...
And should move it to the right forum or QA...
And you should do it quickly...
Winter is coming...
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
1. First you should learn to read,
2. when you can do that please read the very first message in this forum.
3. Next, programming lessons, just the names you chose tell me you aren't there either
(- and no, this is also not a programming lesson forum.)
Quack quack. Too bloody late.
Sin tack ear lol
Pressing the any key may be continuate
|
|
|
|
|
Are you saying you want a generic way to handle any structure? You can look into dynamic but I'm not sure it will help you.
Also, in my opinion, don't start property names with s, i, etc. Usually the name of the variable makes it clear what it is. Caption should be a string. MaxLength is clearly an int, etc. For me, it's easier to read without that first letter.
There are two kinds of people in the world: those who can extrapolate from incomplete data.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
I grew up with this: Hungarian notation - Wikipedia[^] ... Still using ... Mostly ...
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
Kornfeld Eliyahu Peter wrote: I grew up with this: Hungarian notation - Wikipedia[^] Me too. But then I started using descriptive names.
There are two kinds of people in the world: those who can extrapolate from incomplete data.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
RyanDev wrote: using descriptive names.
|
|
|
|
|
I would make all the data types string, and then create a parser to try and sort things out. If you know the exact data types for the exact fields you are scraping, then use those. Always use a TryParse for your non-string valued fields.
In the future, you may want to post your questions in the Question and Answer section, or the programming forum section.
-- Good luck.
|
|
|
|
|
Yes, everything starts as strings.
It uses far more sophisticated parsing than just TryParse... including Regex
Put it this way, A bit ago I needed to write fault tolerant code for a WAN. I did it, but later I found something a lot like what I did, just a bit better. That is what I am looking for with this. I have good code, but I bet someone has already done this and has a few good ideas I don't. That is why I thought it OK to ask for key words or concepts here. My apologies.
|
|
|
|
|
Well, I have to admit, I did not fully understand your request in your original post.
Let me ask you: is your solution working, and working - acceptably? If so, why second guess yourself? This type of stuff is like ETL work. Everyone has a way of doing the work, and everyone's way is the correct way, more or less. It is not exact science.
|
|
|
|