|
No song quote this time, although the temptation is great
Congrats !
|
|
|
|
|
Congrats Sander! I had the same...
|
|
|
|
|
glennPattonWork wrote: Congrats Sander! I had the same...
Well I at least remember you are a connection as well as a few others, but didn't know Sander was there. I'm sure there are others I have forgotten about.
Michael Martin
Australia
"I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible."
- Mr.Prakash One Fine Saturday. 24/04/2004
|
|
|
|
|
I am worried, you remember me? I try to be as invisible as possible... (check cloaking hardware!)
|
|
|
|
|
public static KeyValuePair<int, string>[] SearchKeywords(string query, int minPage,int maxPage)
{
var args = new JsonObject();
args.Add("query", query);
return Tmdb.FromJsonArray<int,string>(
Tmdb.CollapsePagedJson(
Tmdb.FetchPagedJson("/search/keyword", args,minPage, maxPage)), "id","name");
}
So this is a very complex query that takes several http requests potentially to satisfy.
I'm really happy that it went from a page of code down to this.
the paging here is backed by my RpcInvoke which sends and receives Json to the remote endpoint as easily as you can do using javascript/JSONP
for (var i = minPage; 1001 > i; ++i)
{
var args2 = new JsonObject();
JsonObject.MergeReplace(args, args2);
if (isPageSpecified)
args2.Add("page", i);
var d = Tmdb.RpcInvoke(path, args2) as IDictionary<string, object>;
if(null!=d)
{
object o;
if (minPage == i)
{
...
So now i've got a way to break this out without requiring a page of code per function call.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
reported as inappropriate for Lounge. there are several forums where such technical content is appropriate.
imho, by using the appropriate forums, you ensure valuable technical discussions have a chance at persisting in a way that adds value to CP in the long run ... instead of getting submerged in all of the other content on the Lounge.
«Where is the Life we have lost in living? Where is the wisdom we have lost in knowledge? Where is the knowledge we have lost in information?» T. S. Elliot
|
|
|
|
|
sorry
*hides*
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
|
For future reference. You may keep posting as you feel fit.
See answer from Chris below
|
|
|
|
|
You are getting overly silly!
Read "Posting rules for The Lounge" at the top, second paragraph reads: "Technical discussions are welcome...".
It's not a question, she's informing us on her progress, I find it a lot more interesting than the common inane drivel we usually see here!
And for that you're reporting it!
Get a life please.
|
|
|
|
|
@chrismaunder
I suppose, given the ad hominem tone of your response, there's little chance my saying this will make a difference, but, I'll go ahead:
My interest is seeing valuable technical content, like HCW's post, be preserved so other people can find it, and study/use it.
"Technical discussion are welcome:" I make a distinction between a discussion, and a post of specific code where the narrow scope of the content is suitable for the other forums here.
HCW's post is not an invitation to discussion of refactoring, or JSON, etc.
I'd like to see the C# language forum become what it was intended to be, and, once was, a place for lively discussion of code issues, analysis of techniques, etc. Unfortunately, it has become a kind of second C# QA.
«Where is the Life we have lost in living? Where is the wisdom we have lost in knowledge? Where is the knowledge we have lost in information?» T. S. Elliot
|
|
|
|
|
Yes, reporting on petty reasons like that, when someone have not done anything wrong, does tick me off. That certainly can't be the purpose of the report button.
The purpose of the reporting button is to remove a message when several people think it doesn't belong in a forum.
Just for reference, Chris himself has posted quite a few coding contests in the Lounge, so I strongly doubt that he minds code being discussed here.
So, I suggest that when people offend your opinions on how the forums should be used, just tell them so instead.
And if you want the usage of the forums changed I suggest you post that in sugs'n'bugs.
I will also add a proper link for @chris-maunder so that he can correct me if I'm wrong.
|
|
|
|
|
I agree, Jörgen.
This thread wasn't started as a request to help, or as a discussion on a specific aspect of programming C#.
It can be a fine line, but this is more "thought this was interesting" rather than "let's get down and dirty with some language specifics."
cheers
Chris Maunder
|
|
|
|
|
@chris-maunder
Chris, if the "inappropriate" choice in reporting a Lounge post has no intrinsic meaning, or value, why not remove it ?
I regard it as "tragic" when excellent technical information, and code, is submerged in the spate of Lounge messages: if properly curated, that content could enrich CP.
"mai phen rai," as we say in Thai ("no problem"): the solution for me is easy: I'll just stop caring.
cheers, Bill the Cantankerous
«One day it will have to be officially admitted that what we have christened reality is an even greater illusion than the world of dreams.» Salvador Dali
modified 4-Sep-19 18:55pm.
|
|
|
|
|
I hear you, Bill, but where do you feel the line should be drawn? At any insertion of a code snippet? At any mention of an algorithm?
Many of us live and breathe coding and to talk about our lives is to talk about our code. The "let's talk about the best way to solve a knotty challenge using C#8 features" definitely lives in the C# discussion forum. "Let me show you something cool I did (that happens to be in C#, but could just as well be in TypeScript)" doesn't necessarily live in the C# forum. Or the TypeScript forum. It's a personal thing probably not relevant to anyone else (at least if there's very little other context provided, which is often the case).
Be cantankerous, but don't stop caring.
cheers
Chris Maunder
|
|
|
|
|
@chris-maunder
Hi Chris,
s
I'd say the fewer lines drawn: the better.
But, there are cases where extreme behavior is so obviously at odds with the long-term value of the site, that, imho, a mechanism needs to exist for dealing with that ... a non-punitive mechanism. Isn't having an "inappropriate" report option suggestive of a need for reshaping, or forwarding, some content ?
I regard the Lounge as a great place to relax, have fun, marvel at the diversity and creativity of my peers and mentors, post my own weirdness, and, often, learn.
I also liken the Lounge to a restaurant where the cooks, waiters, and the customers, frequently throw valuable food away I'm a veteran dumpster diver, so, that's fine for me: but, is it really fine that lots of other people who could benefit will miss out ?
cheers, Bill
p.s. I couldn't stop caring if I wanted to: the curse of empathy.
«One day it will have to be officially admitted that what we have christened reality is an even greater illusion than the world of dreams.» Salvador Dali
|
|
|
|
|
@chris-maunder
Jorgen, I can't stop you from perceiving forum moderation in terms of "crime and punishment," but, you ignore the "inappropriate" choice when reporting a Lounge message, and the fact I advised the OP ... something I did not have to do ... of the reasons I thought the post was inappropriate for the Lounge, but was quite appropriate for other forums.
I find it pathetic that someone acting to improve CP is abused by knee-jerk reactions like yours.
«One day it will have to be officially admitted that what we have christened reality is an even greater illusion than the world of dreams.» Salvador Dali
|
|
|
|
|
Well, the moderation system of the site works using Reports.
Enough reports and the message or user gets removed. It shouldn't be used lightly.
BillWoodruff wrote: I find it pathetic that someone acting to improve CP is abused by knee-jerk reactions like yours.
So I'm the one being abusive now?
I think there is no point in continuing any discussion.
|
|
|
|
|
"get a life please" "petty" "reporting on petty reasons like that, when someone have not done anything wrong"
"the moderation system of the site works using Reports.
Enough reports and the message or user gets removed. It shouldn't be used lightly." Frightening that someone who is a "site protector" cannot distinguish their own knee-jerk emotional reaction from content that is, in fact, an attempt at site protection ! Equally disturbing is "site protector's" inability to conceive of moderation as pro-social, as well as protective
Jörgen Andersson wrote: I think there is no point in continuing any discussion. Well, of course, it's too painful for you to examine your own behavior and become aware of whatever issues drive you to act abusively.
QED
«One day it will have to be officially admitted that what we have christened reality is an even greater illusion than the world of dreams.» Salvador Dali
|
|
|
|
|
|
So, you're on the gravy train now?
|
|
|
|
|
just making ends meat.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
You're going to get roasted for such a bad pun
cheers
Chris Maunder
|
|
|
|
|
it's all gone to pot anyway. i'll stew on it.
thyme to own up to my bad culinary puns.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
I hope it's the common pot you are roasting, and not the endangered spotted pot or the almost extinct mountain pot. Where did you get it anyway?
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|
|