1,486 Answered Questions for the topic computer programming

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/19/19

What is the difference between concurrent programming and parallel programming?

What is the difference between concurrent programming and parallel programing? I asked google but didn't find anything that helped me to understand that difference. Could you give me an example for... more
Computer Programming Web Design

03/19/19

How do I automatically send emails to my Wix site visitors?

Computer Programming

03/19/19

What is composition as it relates to object oriented design?

What is Compositon? I understand inheritance from the point of Person : Mammal : Animal, but I can't really see the definition of Compostion anywhere.. Can somebody fill me in?
Computer Programming

03/19/19

Print two-dimensional array in spiral order?

How do I print a 5x5 two-dimensional array in spiral order? Is there any formula so that I can print an array of any size in spiral order?
Computer Programming

03/18/19

What is an invariant?

The word seems to get used in a number of contexts. The best I can figure is that they mean a variable that can't change. Isn't that what constants/finals are for?
Computer Programming

03/18/19

Is it ever advantageous to use 'goto' in a language that supports loops and functions? If so, why?

I've long been under the impression that `goto` should never be used if possible. While perusing libavcodec (which is written in C) the other day, I noticed multiple uses of it. Is it ever... more
Computer Programming

03/18/19

When, if ever, is loop unrolling still useful?

I've been trying to optimize some extremely performance-critical code (a quick sort algorithm that's being called millions and millions of times inside a monte carlo simulation) by loop unrolling.... more
Computer Programming

03/18/19

How to always round up to the next integer?

I am trying to find total pages in building a pager on a website (so i want the result to be an integer. I get a list of records and i want to split into 10 per page (the page count)when i do... more
Computer Programming

03/18/19

Convert light frequency to RGB?

Does anyone know of any formula for converting a light frequency to an RGB value?
Computer Programming Web Design

03/18/19

Can I change my background on each page on my wix website?

Computer Programming Visual Basic Syntax

03/18/19

What is a syntax error in Visual Basic?

Computer Programming

03/18/19

What is the difference between Type and Class?

What makes a type different from class and vice versa?(In the general language-agnostic sense)
Computer Programming

03/15/19

Why should recursion be preferred over iteration?

Iteration is more performant than recursion, right? Then why do some people opine that recursion is better (more elegant, in their words) than iteration? I really don't see why some languages like... more
Computer Programming

03/15/19

Getting started with Version Control?

I need to implement version control, even for just the developing I do at home. I have read about how great Subversion is for the past couple years and was about to dedicate myself to learning... more
Computer Programming

03/15/19

What is the difference between signed and unsigned variables?

I have seen these mentioned in the context of C and C++, but what is the difference between signed and unsigned variables?
Computer Programming

03/15/19

Can hash tables really be O(1)?

It seems to be common knowledge that hash tables can achieve O(1), but that has never made sense to me. Can someone please explain it?
Computer Programming

03/15/19

Whose responsibility is it to check data validity?

I am confused as to whether it is the *caller* or the *callee's* responsibility to check for data legality.Should the *callee* check whether passed-in arguments meet some other requirements so that... more
Computer Programming Web Design Syntax

03/14/19

What is a parse error WordPress?

Computer Programming Math Logarithm Mathematics

03/14/19

Solving computer program running times

I have a question and im not sure how to tackle it.... algorithms have running times proportional to the following functions of the input size, denoted NLog to the base 2 of (N)In one minute of... more
Computer Programming

03/13/19

How to convert floats to human-readable fractions?

Let's say we have 0.33, we need to output "1/3". If we have "0.4", we need to output "2/5".The idea is to make it human-readable to make the user understand "x parts out of y" as a better way of... more
Computer Programming

03/13/19

Recursion or Iteration?

Is there a performance hit if we use loop instead of recursion or vice versa in algorithms where both can serve the same purpose? Eg : Check if given string is palindrome.I have seen many... more
Computer Programming Java Web Design Computer Science

03/12/19

What is front end and back end web development?

Computer Programming

03/12/19

How does modulus division work?

I don't really understand how modulus division works.I was calculating `27 % 16` and wound up with `11` and I don't understand why. I can't seem to find an explanation in layman's terms online. Can... 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.