tagged [language-agnostic]

What's your favorite "programmer" cartoon?

What's your favorite "programmer" cartoon? Personally I like this one: ![](https://i.stack.imgur.com/ZNtvc.jpg) P.S. Do not hotlink the cartoon without the site's permission please.

31 May at 02:15

How to parse relative time?

How to parse relative time? This question is the other side of the question asking, "[How do I calculate relative time?](https://stackoverflow.com/questions/11/how-do-i-calculate-relative-time)". Give...

22 Apr at 16:0

Why is processing a sorted array slower than an unsorted array?

Why is processing a sorted array slower than an unsorted array? I have a list of 500000 randomly generated `Tuple` objects on which I am performing a simple "between" search: When I generate my random...

What does it mean to "program to an interface"?

What does it mean to "program to an interface"? I have seen this mentioned a few times and I am not clear on what it means. When and why would you do this? I know what interfaces do, but the fact I am...

22 Jan at 03:45

Getting parts of a URL (Regex)

Getting parts of a URL (Regex) Given the URL (single line): [http://test.example.com/dir/subdir/file.html](http://test.example.com/dir/subdir/file.html) How can I extract the following parts using reg...

13 Jan at 11:34

Array versus linked-list

Array versus linked-list Why would someone want to use a linked-list over an array? Coding a linked-list is, no doubt, a bit more work than using an array and one may wonder what would justify the add...

How many parameters are too many?

How many parameters are too many? Routines can have parameters, that's no news. You can define as many parameters as you may need, but too many of them will make your routine difficult to understand a...

15 Nov at 14:27

What does the word "literal" mean?

What does the word "literal" mean? What does the word "literal" mean when used in context such as literal strings and literal values? What is the difference between a literal value and a value?

How to explain callbacks in plain english? How are they different from calling one function from another function?

How to explain callbacks in plain english? How are they different from calling one function from another function? How to explain callbacks in plain English? How are they different from calling one fu...

The "backspace" escape character '\b': unexpected behavior?

The "backspace" escape character '\b': unexpected behavior? So I'm finally reading through [K&R](https://en.wikipedia.org/wiki/The_C_Programming_Language), and I learned something within the first few...

What is stability in sorting algorithms and why is it important?

What is stability in sorting algorithms and why is it important? I'm very curious, why stability is or is not important in sorting algorithms?

How would I get started writing my own firewall?

How would I get started writing my own firewall? There is previous little on the google on this subject other than people asking this very same question. How would I get started writing my own firewal...

10 Jul at 19:14

Why shouldn't I use "Hungarian Notation"?

Why shouldn't I use "Hungarian Notation"? I know what Hungarian refers to - giving information about a variable, parameter, or type as a prefix to its name. Everyone seems to be rabidly against it, ev...

Automatic generation of immutable class and matching builder class

Automatic generation of immutable class and matching builder class What tools/libraries exist that will take a struct and automatically generate an immutable wrapper and also a "builder" class for inc...

Of Ways to Count the Limitless Primes

Of Ways to Count the Limitless Primes Alright, so maybe I shouldn't have shrunk this question sooo much... I have seen the post on [the most efficient way to find the first 10000 primes](https://stack...

23 May at 12:33

Followup: "Sorting" colors by distinctiveness

Followup: "Sorting" colors by distinctiveness [Original Question](https://stackoverflow.com/questions/180/function-for-creating-color-wheels) If you are given N maximally distant colors (and some asso...

23 May at 12:26

Difference between Hashing a Password and Encrypting it

Difference between Hashing a Password and Encrypting it The current top-voted to [this question](https://stackoverflow.com/questions/325862/what-are-the-most-common-security-mistakes-programmers-make)...

Should I avoid do/while and favour while?

Should I avoid do/while and favour while? > [Test loops at the top or bottom? (while vs. do while)](https://stackoverflow.com/questions/224059/test-loops-at-the-top-or-bottom-while-vs-do-while) [Whi...

23 May at 10:33

Good Practice: Loop And If statement

Good Practice: Loop And If statement [https://codereview.stackexchange.com/questions/1747/good-practice-loop-and-if-statement](https://codereview.stackexchange.com/questions/1747/good-practice-loop-an...

13 Apr at 12:40

IOException: The process cannot access the file 'file path' because it is being used by another process

IOException: The process cannot access the file 'file path' because it is being used by another process I have some code and when it executes, it throws a `IOException`, saying that > The process can...

29 Mar at 01:23

Why are const parameters not allowed in C#?

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 ...

15 Jan at 12:35

What is the best regular expression to check if a string is a valid URL?

What is the best regular expression to check if a string is a valid URL? How can I check if a given string is a valid URL address? My knowledge of regular expressions is basic and doesn't allow me to ...

29 Dec at 17:3

What is the difference between concurrent programming and parallel programming?

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 t...

What is tail recursion?

What is tail recursion? Whilst starting to learn lisp, I've come across the term . What does it mean exactly?

Modelling an elevator using Object-Oriented Analysis and Design

Modelling an elevator using Object-Oriented Analysis and Design There are a set of questions that seem to be commonly-used in interviews and classes when it comes to object-oriented design and analysi...