1,513 Answered Questions for the topic computer programming

Computer Programming

04/04/19

What is a Lambda?

Could someone provide a good description of what a Lambda is? I have yet to find a good definition and explanation of what they are in the first place.
Computer Programming Web Design

04/04/19

How do I upload media to my wix website?

Computer Programming

04/03/19

What Makes a Good Unit Test?

I'm sure most of you are writing lots of automated tests and that you also have run into some common pitfalls when unit testing. My question is do you follow any rules of conduct for writing tests... more
Computer Programming

04/03/19

Conventions for exceptions or error codes?

Yesterday I was having a heated debate with a coworker on what would be the preferred error reporting method. Mainly we were discussing the usage of exceptions or error codes for reporting errors... more
Computer Programming

04/02/19

Why are const parameters not allowed in C#?

It looks strange especially for C++ developers. In C++ we used to mark a parameter as `const` in order to be sure that its state will not be changed in the method. But why can't we mark as method... more
Computer Programming

04/01/19

Why is Math.pow(0, 0) === 1?

Javascript says that: Math.pow(0, 0) === 1 // true and C++ says the same thing: pow(0, 0) == 1 // true Why does `Math.pow(0, 0)` throw no errors?
Computer Programming

03/31/19

Why do new programmers seem to shy away from libraries?

I've noticed questions from new programmers that can be solved using libraries. People sometimes shy away from using libraries. Is it the learning curve?
Computer Programming

03/30/19

Using an ORM or plain SQL?

For some of the apps I've developed (then proceeded to forget about), I've been writing plain SQL, primarily for MySQL. Though I have used ORMs in python like... more
Computer Programming

03/30/19

How do I distinguish between 'binary' and 'text' files?

How do you tell if a file is 'text' or 'binary'? And to restrict is further, how do you tell on a Linux like file-system? I am not aware of any filesystem meta-data that indicates the 'type' of a... more
Computer Programming

03/27/19

What is a good hash function?

I saw a lot of hash function and applications in my data structures courses in college, but I mostly got that it's pretty hard to make a good hash function. I get that is a somewhat good function... more
Computer Programming

03/27/19

Is a GUID unique 100% of the time?

Is a GUID unique 100% of the time?Will it stay unique over multiple threads?
Computer Programming

03/27/19

What's the difference between passing by reference vs. passing by value?

What is the difference between 1. a parameter passed by reference2. a parameter passed by value?Could you give me some examples, please?
Computer Programming

03/27/19

What are the benefits and drawbacks of OOP?

As far as I can tell, in spite of the countless millions or billions spent on OOP education, languages, and tools, OOP has not improved developer productivity or software reliability, nor has it... more
Computer Programming Web Design

03/27/19

When should I use anchors and how do I add them to my wix page?

Computer Programming

03/27/19

Function for creating color wheels?

This is something I've pseudo-solved many times and have never quite found a solution for.The problem is to come up with a way to generate `N` colors, that are as distinguishable as possible where... more
Computer Programming

03/27/19

How to check if the given string is palindrome?

How to check if the given string is a palindrome? Looking for solutions in any language.
Computer Programming

03/26/19

What is "Orthogonality"?

What does "orthogonality" mean when talking about programming languages? What are some examples of Orthogonality?
Computer Programming

03/26/19

Write an Algorithm in Pseudocode

Write an algorithm that, given a sequence of characters, allows you to find the number of words that begin with letter "A"
Computer Programming

03/26/19

Difference between red-black trees and AVL trees?

Can someone please explain what the main differences between these two data structures are? I've been trying to find a source online that highlights the differences/similarities, but I haven't... more
Computer Programming

03/26/19

Why is NaN not equal to NaN?

The relevant IEEE standard defines a numeric constant NaN (not a number) and prescribes that NaN should compare as not equal to itself. Why is that? All the languages I'm familiar with implement... more
Computer Programming

03/26/19

What is an ORM and where can I learn more about it?

Someone suggested I use an ORM for a project that I'm designing, but I'm having trouble finding information on what it is or how it works. Can anyone give me a brief explanation or a link as to... more
Computer Programming

03/26/19

Observer Design Pattern vs "Listeners"?

It seems to me that the Observer design pattern as described in GOF is really the same thing as Listeners found in various toolkits. Is there a difference between the concepts, or are Listeners and... more
Computer Programming

03/26/19

Private vs Protected - Visibility Good-Practice Concern?

I've been searching and I know the theoretic difference. - **public** - Any class/function may access the method/property. - **protected** - Only this class and any subclasses may access the... more
Computer Programming

03/25/19

How much abstraction is too much?

In an object-oriented program, how much abstraction is too much? How much is just right? When is it too much? At what point do the empty layers and extra "might need" abstractions become overkill?... more
Computer Programming

03/19/19

Signed versus Unsigned Integers?

Am I correct to say the difference between a signed and unsigned integer is:1. Unsigned can hold a larger positive value, and no negative value.2. Unsigned uses the leading bit as a part of the... 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.