Top "Language-agnostic" questions

Use this tag for PROGRAMMING QUESTIONS that are independent of any particular programming language.

Ukkonen's suffix tree algorithm in plain English

I feel a bit thick at this point. I've spent days trying to fully wrap my head around suffix tree …

string algorithm data-structures language-agnostic suffix-tree
What is tail call optimization?

Very simply, what is tail-call optimization? More specifically, what are some small code snippets where it could be applied, and …

algorithm recursion language-agnostic tail-recursion tail-call-optimization
Interface vs Base class

When should I use an interface and when should I use a base class? Should it always be an interface …

oop interface language-agnostic base-class static-typing
What is a good Hash Function?

What is a good Hash function? I saw a lot of hash function and applications in my data structures courses …

algorithm language-agnostic hash
What are sessions? How do they work?

I am just beginning to start learning web application development, using python. I am coming across the terms 'cookies' and …

language-agnostic session
Getting the closest string match

I need a way to compare multiple strings to a test string and return the string that closely resembles it: …

algorithm language-agnostic string-comparison levenshtein-distance
What does 'foo' really mean?

I hope this qualifies as a programming question, as in any programming tutorial, you eventually come across 'foo' in the …

language-agnostic coding-style
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 …

c# language-agnostic rounding
When to throw an exception?

I have exceptions created for every condition that my application does not expect. UserNameNotValidException, PasswordNotCorrectException etc. However I was told …

exception language-agnostic
Calculating a 2D Vector's Cross Product

From wikipedia: the cross product is a binary operation on two vectors in a three-dimensional Euclidean space that results in …

language-agnostic math vector 2d