Reputation
3,221
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
12 17
Newest
 Nice Answer
Impact
~153k people reached

2d
comment What was the first language that allowed a class to contain a member of it's own type
Yep, that's why I said "more limited example" (if your only type is "thing", any reference is naturally recursive). Simula had something looking very much like the modern notion of classes and inheritance, so if you're interested in computer language in general, it's probably worth looking into from multiple points of view.
2d
comment What was the first language that allowed a class to contain a member of it's own type
It ("pointer to object of same type") was definitely present in Simula 67 (released in 1968) and probably available in Simula I (released in 1962). A slightly more limited example would be lists in Lisp (released 1958).
Feb
10
answered Why aren't there more multi natural language programming languages?
Feb
8
answered Connecting directly to another computer knowing only the MAC address?
Feb
5
revised Word game algorithm
Added small space optimisation.
Feb
5
comment Word game algorithm
More space-efficient, for sure (you're trading an M-character string for a single character and a small-ish integer)
Feb
5
answered Word game algorithm
Feb
5
comment Is it possible to move a pointer from one item to another on the stack?
Or possibly p--, depending on the direction of the stack. It is, however, relying on undefined behaviour, so...
Jan
14
comment Is it effective to review code in language I don't know?
@BЈовић Nope, it's not the worst you can find, but it is pretty close to "the smallest thing found that is still worthwhile".
Jan
14
comment Is it effective to review code in language I don't know?
@BЈовић And if the only comment is of the form "wouldn't variable flugh be better named bloops, as you have typed it as a bloop and it's an array?" ?
Dec
31
comment Does it make sense to use the term “Space Leak” with regard to Java?
I tend to use one of "unintentional liveness" (there's one or more references to an object, keeping it live, even though it is no longer needed) or "GC bug" (if the object is no longer reachable, but still cannot be collected).
Dec
13
reviewed Reject What is the history of why bytes are eight bits?
Nov
27
answered Should I use TDD and BDD if my project is changing fast?
Nov
18
answered Is measuring the binary size of a c++ program a good indication of code complexity? Or something else?
Nov
11
awarded  Nice Answer
Nov
10
answered Two structs with the same members but different naming, is it a good idea?
Oct
28
comment Does extending a ruby class violate the LSP?
I suspect Cat and Mammal are better examples than Room and House. Sub-classes should, in general, follow an "is-a" relation (so, neither a "has-a" or "exists-in").
Oct
27
answered Does extending a ruby class violate the LSP?
Oct
27
answered Is it a good practice to run unit tests in version control hooks?
Oct
16
comment How does google calculate travel distance/time
@HugoDelsing Have a couple of tens of thousands of "route-finder nodes", able to speak a common RPC protocol. Send "navigate from A to B" to a couple of hundred (with different biasing), have them compute routes and send best-so-far route (and cost) back to the controlling node. Periodically update them with cost of cheapest route found so far. Allow, say, 0.5 - 1 s from "start of tracking" to "you're done now". Pick the cheapest route found. Don't underestimate what you can do when you can throw insane amounts of CPU, disk and RAM at problems.