|
I second Ravi's suggestion, the app that displays the menu should decide how it wants to do it.
|
|
|
|
|
well even i was thinking the same but in future i wanted to extend the functionality to third party also. As you know my plane is to provide not only the menu but the action also. in case of plain xml it's become really easy for anyone to manipulate the data which i don't want. I guess I'll have to come up with some encrypted XML to avoid the data manipulation situation.
|
|
|
|
|
CS2011 wrote: encrypted XML
I had a need not long ago for storing FTP credentials for remote customers to use in our applications. The applications read these from an XML document that is available on our public web site. The credentials are encrypted, then converted to ascii (3 digits per char) to avoid problems with invalid characters. These are stored under unassuming tag names. Works great, and would prevent tampering.
"Go forth into the source" - Neal Morse
|
|
|
|
|
|
Thanks for links. I am following the MVVM only. My question is somewhat related to How my Model View will populate the Model from data which is receives from say a service.
|
|
|
|
|
I created jQuery TriggerTracker to help track down problems related to triggering and handling jQuery events.
It has turned into a project that has saved me and others on my team hundreds of hours in debugging. I recently made it available for everyone on github.
https://github.com/intervalia/triggerTracker
TriggerTracker is a tool for tracking jQuery events. It is a single JavaScript file that, when loaded, provides output to the browser's console related to jQuery event triggering and event handlers.
How to use triggerTracker:
Just load triggerTracker as soon as possible after loading jQuery.
<script src="jQuery-1.11.0.min.js"></script>
<script src="trigger-tracker.js"></script>
|
|
|
|
|
This is not the right place for this post: I'd suggest that a much better idea would be to write it up as an article: http://www.codeproject.com/script/Articles/Submit.aspx[^] - that way it is preserved for posterity, and you can get useful feedback on how it works, suggestions fort improvements, and so forth.
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
Suggest you post this in the javascript forum[^] or the Free Tools Forum[^]
If your actions inspire others to dream more, learn more, do more and become more, you are a leader.-John Q. Adams You must accept one of two basic premises: Either we are alone in the universe, or we are not alone in the universe. And either way, the implications are staggering.-Wernher von Braun Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.-Albert Einstein
|
|
|
|
|
Since when did asking a homework question in QA become so frowned upon?
I agree when someone has not shown any effort that it can be hard to help them and I personally don't want to write all the code for them; however, too often I see people jump to the conclusion that if it is homework they don't deserve help.
Whether it is homework, regular work, or hobby if someone asks a question they should all be treated the same. Help if you can.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
If it's homework, isn't the general idea for the student to do the work themselves, and take any problems to the teacher? Unless the class is called "How to get other people on the Internet to do your work for you", then the answer needs to be your own work.
I can see the argument for providing hints and general guidance if someone is genuinely struggling, but when was the last time you saw a homework question that wasn't "here's the assignment, it's due tomorrow, send me teh codezz, it's urgent"?
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Quote: If it's homework, isn't the general idea for the student to do the work themselves, and take any problems to the teacher? Sure. But don't students often work together, ask their parents, have tutors, etc? I see no problem with them asking us here as long as it isn't, "hey, do my work for me."
And by the same argument, aren't you supposed to do your own work at work (employment)? You are getting paid after all so why help someone getting paid and not help the one learning?
Quote: but when was the last time you saw a homework question that wasn't "here's the assignment, it's due tomorrow, send me teh codezz, it's urgent"? That definitely is a problem.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Richard Deeming wrote: when was the last time you saw a homework question that wasn't "here's the
assignment, it's due tomorrow, send me teh codezz, it's urgent"?
Post not directed to me, but I can answer that question.
Last week, someone posted a question asking for help and stating it was homework.
The responders didn't supply code, just advice; the OP was asked to post their code if the hints didn't resolve the issue.
The code was posted the next code and someone replied with a clearer direction - the logic was good, the issue was with the declarations.
I commended the OP for saying it was homework and being honest about that.
Tim
|
|
|
|
|
Which is a perfect example of how it should work. However, from your description, it doesn't sound like anyone jumped to the conclusion that the OP didn't deserve help because it was a homework question, which is what Ryan was complaining about.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I don't think it's about whether it's homework or something else... it's about putting in some effort then being able to ask rational questions afterward. I'm sure a REALLY high percentage of questions in Q&A are homework, and a lot of them get help, but it's easy to see whether they've actually put some effort into finding an answer first.
|
|
|
|
|
It shouldn't be about homework, but I often see people go to that response first.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
The problem with homework questions is where the line between help and solution lies. It can be very thin and that makes a big problem, as - IMHO - we should not provide solution. So we have to understand what the teacher told him and try to explain him the same thing with different perspective. However if he does not provide details we have a problem to help him...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
|
Quote: we should not provide solution. But why not? We provide solutions to people who got a job because they told someone they could code. Why the difference?
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Because the usual idea of homework is not to produce a solution per se but to learn how to produce a solution.
Give a man a fish and he will eat for a day. Teach a man to fish and he will be arrested for fishing without a license.
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
Quote: Because the usual idea of homework is not to produce a solution per se but to learn how to produce a solution. I'm not disagreeing but isn't that the same for employment? I don't see why anyone is drawing the line between the two except for prejudicial reasons.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Quote: isn't that the same for employment? Absolutely not. When you are employed, you are employed to produce solutions. if you learn a little as you do this then all well and good, but this isn't the main point.
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
At times, the teacher might not allow outside help, because that would provide an unfair advantage over other students. An assignment might even be a take-home test.
Although, I do expect that getting help is often allowed; and I think it fairest to give the questioner the benefit of the doubt. If they are dishonest and cheating, then there is a public record. I am more inclined to answer such questions if it appears the person is using their own name for that reason, but I can see answering some questions anyway, again, the presumption of innocence seems fairest.
However, I won't answer certain questions that seem to be a homework assignment because of the form of the question.
If a teacher gives an assignment, then I presume all the necessary information has already been provided to the student. They only need to read the book, or the notes, and/or pay attention in class, and then they should be able to "try" to create a solution, and then ask a question of the form, "I did this, but that part isn't doing what I expect. What did I do wrong?" It's not appropriate to ask, "How do I do <x>?," without showing any work when <x> is clearly the major part of the assignment, perhaps even all of it.
|
|
|
|
|
You give a lot of generic credit to teachers that I don't know you should. I had several really bad professors in university that the entire class would get together for hours after class to try and figure out what he really meant, which of course, made homework impossible to do. Bad professors tend to pick bad books, so the two together means that you have no resources other than potentially other professors. At my high school, there was a music teacher that was attempting to teach all of the calculus classes after she had slept her way to get the math department chairmanship. The only math class she had ever taught was a remedial math course, and it was obvious that her own understanding of the subject was questionable, and she did it despite the fact that there were multiple other teachers who had taught the course before. If my dad wasn't a math professor, I seriously doubt that I would have made it through the class.
Admittedly, I found computer science courses abysmally easy, and only made the course interesting by including far more advanced features in addition what was asked for. It didn't give me extra credit, but at least I was able to keep focused by working on an interesting problem. The only reason I know that anyone found it hard at all was from people coming to me for help.
|
|
|
|
|
RyanDev wrote: but isn't that the same for employment?
I don't want to do someone else's work for them. I don't care whether they're asking because they have a homework problem they're trying to solve or a work problem they're trying to solve. The problem I have with homework is that often the little problem they need help with is the entire thing, whereas for work the little problem is part of a much larger whole.
We can program with only 1's, but if all you've got are zeros, you've got nothing.
|
|
|
|
|
The difference is, that the one who has a job, probably has a base of knowledge, but missing experience. On the other hand the one who still in the learning phase will miss also the base if we provide him with a solution but no explanation...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
|
That's fair. In that case I would expect the response to be in line with that, not "we're not going to help with your homework."
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|