Ask a question

Hi My Name Is Dean And I Am Asking For Help With Programming

How do you judge a JavaScript programmer by only 5 questions?

First, get a pen and paper.I have an HTML table with five cells in it. Each cell has a button and a field. You do not have control over the HTML or naming conventions used for IDs, etc. Write an event handler that can be applied to each button which will call a function and write the result of that function to the field that is in the cell of the button that was clicked. Do not iterate over the cells of the table.Explain to me how OOP works in JavaScript. This is going to involve a conversation about prototype inheritance, closures, and lexical scoping.Give me an example of something that you would use a closure for - explain the closure you’ve written.Describe how you would develop a single-page application without using a framework (this one is more of a discussion and covers performance and the memory leaks Dean mentioned).JavaScript is a functional programming language. Give me an example of how you can use higher order functions in JavaScript to iterate over and apply a function to every element in an array. Do not use a for or while loop.I need to be able to store a DOM element so that it may, based on the results of a LATER event be moved from one container element to another. For example, I need to create a button which removes an LI from an OL or UL. The element needs to be stored during the current session so that - based on the result of ANOTHER event, I can then either attach it to the second container, move it back to the first container, or discard it. (I’m interested in their knowledge of scoping in the session.. if they recommend a global, I’ll say ok, if we don’t want to use a global variable what other options do we have? This is not an over difficult question, but it allows you to see how they think when the obvious answer isn’t the best choice).I don’t expect them to get all of these perfect (particularly #5) off of the top of their head. I want to know that they understand the concepts at a level where they can use them. My questions are all focused client side. If the interview is for a server-side position, I’d use different questions for 1, 4, and 6. If it’s for a full-stack position using server-side JS, I’d want 10 questions, not 5 - you can’t cover both topics adequately in 5 questions (I’d really want 10 each, either way, but you specified 5, so :) ).

Did the actors in "The Commitments" really sing/play the songs?

If so, are any of them still pursuing musical careers?

Great movie btw if you haven't seen it. Though if you are sensitive be warned, every other word is feck or shite, and there is a lot of fighting.

I copied code from the internet for a computer science assignment and it was noticed. How do I get out of losing marks?

There is no certain way to get out of the consequences of cheating. Still, if you handle it right, you can minimize the consequences. Handle it badly, and you may find that bad marks are the least of your worries. Here's are some suggestions, and remember, this is serious business but it isn't the end of the world. You can get through this. Follow your teacher's instructions. If you have to meet with them in person, be on time. If you don't know what the next step is, ask. Don't be surprised if your teacher has someone else there as a witness, or if there is paperwork you have to sign.Be absolutely honest. Pretending it was an accident of some sort is not a good idea. Neither is blaming anybody else. Be mature and professional. Simply state what you did, and that you realize it was wrong and feel badly about it (hopefully you do feel at least somewhat badly about this, or I'm wasting my time trying to help you.) Don't go on and on with lengthy explanations, and definitely don't try any tricks. Conclude by saying that you will accept the consequences.Accept the consequences. Don't try to bargain for a lighter penalty. If things are worse than you feared, you have to accept that. Appealing to a higher authority will probably just make things worse.Never cheat again. Even if you get off lightly this time, that doesn't mean you will get off lightly next time. Learn the right lesson.