4 ms·
So, this is not an algorithm: 1. Parse HTTP Headers into map of header -> value 2. Check to see if "Cookie" exists in map 3. If it does, and it's valu
by apgwoz 16y ago
So, this is not an algorithm:
1. Parse HTTP Headers into map of header -> value
2. Check to see if "Cookie" exists in map
3. If it does, and it's value is X load record X
from database table N
4. Otherwise, insert a new record in table N and
create a "Set-Cookie" header in the response
Is this a sexy algorithm? Not at all, but is it still an algorithm? Yes. An algorithm is just a set of things that make up a process.
- hcho 16y agoIt is an algorithm, you could have patented it if it wasn't prior art. The more trivial your algorithm, the more the chances it's prior art.