1,502 Answered Questions for the topic computer programming
06/09/19
Is the role of the sysadmin dying with the advent and increasing popularity of cloud computing?
06/08/19
What is a database transaction?
Can someone provide a straightforward explanation of a transaction as applied to computing?
06/06/19
Is window really global in Javascript?
Take this piece of Javascript in a browser: <script> console.log(window.someThing); var x = 12; function foo() { window.otherThing = x; } </script>Inside...
more
06/04/19
Way to go from recursion to iteration?
I've used recursion quite a lot on my many years of programming to solve simple problems, but I'm fully aware that sometimes you need iteration due to memory/speed problems.So, sometime in the very...
more
06/01/19
Is floating point math broken?
Consider the following code:<!-- language: lang-js --> 0.1 + 0.2 == 0.3 -> false<!-- language: lang-js --> 0.1 + 0.2 -> 0.30000000000000004 Why do these...
more
06/01/19
What is tail recursion?
While learning lisp, I've come across the term *tail-recursive*. What does it mean exactly?
Computer Programming Web Design
05/29/19
What is the difference in web development and web designing?
CSS metaphysics: WHY is page vertical alignment so difficult?
Relative to the page, horizontal alignment in CSS is easy - a `margin:0 auto` gets you by much of the time, and a `text-align:center` for some other cases.My question to the gurus is not how to...
more
05/28/19
Why are C++ inline functions in the header?
<sub>NB This is not a question about how to use inline functions or how they work, more why they are done the way they are.</sub>The declaration of a class member function does not need...
more
What is the point of interfaces in PHP?
Interfaces allow you to create code which defines the methods of classes that implement it. You cannot however add any code to those methods. Abstract classes allow you to do the same thing, along...
more
Computer Programming Web Design
05/26/19
What are the responsibilities of a web developer?
How to determine whether a language is LL(1) LR(0) SLR(1)?
Is there a simple way to determine whether a grammar is LL(1), LR(0), SLR(1)... just from looking on the grammar without doing any complex analysis? For instance: To decide whether a BNF Grammar is...
more
05/25/19
Why is number of bits always a power of two?
We have 8-bit, 16-bit, 32-bit and 64-bit hardware architectures and operating systems. But not, say, 42-bit or 69-bit ones.Why? Is it something fundamental that makes 2^n bits a better choice, or...
more
05/24/19
What's "P=NP?", and why is it such a famous question?
The question of whether P=NP is perhaps the most famous in all of Computer Science. What does it mean? And why is it so interesting?
Comparing two Calendar objects?
I want to compare two Calendar objects to see if they both contain the same date. I don't care about any value below days.I've implemented this and I can't think about any case where it should...
more
Still looking for help? Get the right answer, fast.
Ask a question for free
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Find an Online Tutor Now
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.