Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

I have the following question (code omitted):

I have tried to port a php difference engine to javascript as a practice exercise. It does not work, and returns undefinedundefinedundefined. I have checked through it more than once and I cannot see where I have gone wrong. The original code and my code is below:
code here........

Am I right in thinking that Stack Overflow is the best place, or is there another place for questions about this kind of thing?

I am new here (meta stack overflow).


I have a suspicion that I have done the foreach loops in correctly. Is there Any way to emulate a foreach php loop in javascript?

share|improve this question
up vote 9 down vote accepted

It's not a great fit on any SE site in its current form, as it looks like you're planning to just show a huge pile of code and ask why it doesn't work. You can try doing that, and maybe you find a kind soul willing to help you, but it's often not really well received - bear in mind that Stack Overflow has about 5600 new questions per day.

If you try to isolate in a bit more detail where exactly things go wrong where and asking about that specifically, it will work fine on Stack Overflow.

Either way, thanks for asking beforehand!

share|improve this answer
How should I adjust the question to make it more suitable if I don't know what is wrong? – user192255 Aug 9 '12 at 20:24
@starbeam did debugging not tell you where things go wrong? Can you post a link to a JSFiddle so we can take a look? – Pëkka Aug 9 '12 at 20:26
@starbeam that's a lot of code. Can you really not pinpoint a more detailed problem description than "it doesn't work"? In that form, it's likely to be closed IMO - but you're free to try and ask it anyway of course – Pëkka Aug 10 '12 at 8:50
@starbeamrainbowlabs: Stack Overflow is not a debugging service; you don't just post a blob of code and expect us to find the problem. You need to expend effort to localize the problem using available debugging tools. – Nicol Bolas Aug 10 '12 at 10:37
@starbeamrainbowlabs: Yes, because giving up is likely to solve the problem. Honestly, if debugging an application discourages you that much, you won't make a very good programmer; debugging a fair portion of what what most programmers do. – Nicol Bolas Aug 10 '12 at 11:19
To start, just run a debugger. If you have no utter idea what a debugger is and how it can be useful, then I'd start learning what a debugger is and how it can be useful. Then you can start using it to isolate your problem. Basically, a debugger allows you to execute code in realtime/controlled/step-by-step where you can explore all variables in the heap and the call stack and so on so that you can track what exactly all is (not) happening. – BalusC Aug 10 '12 at 11:58
@Chichiray Thanks for the tip! It seems simple but sometimes I miss that kind of thing. Thank you again! – user192255 Aug 10 '12 at 18:50

You must log in to answer this question.