6,970 karma · joined March 29, 2008
https://github.com/cabalamat/catwiki_p3
https://en.wikipedia.org/wiki/List_of_countries_by_GDP_(nomi...
I think immersive games will also be a big application. Games AI will also benefit from being more strategically intelligent and from being able to negotiate, in a human-like fashion, with human and other AI players. The latter will not only make games better, it will also improve the intelligence of AIs.
I've written programs to play chess and I doubt I could do this in 2 hours. If I did do it, it would be horrible buggy code.
class SearchEngine:
def __init__(self, k1: float = 1.5, b: float = 0.75):
self._index: dict[str, dict[str, int]] = defaultdict(lambda: defaultdict(int))
self._documents: dict[str, str] = {}
self.k1 = k1
self.b = b
I've no idea what `k1` or `b` are. Nor is there a single comment in the entire file. Are comments considered unfashionable these days?Looking at `_documents`, I'm guessing the keys are URLs and the values contents of those URLs, but i might be wrong.
The whole thing looks like it would've been a useful resource for people to learn how to build search engines with, that people could build on, had the writer been bothered to document it. But as it is I'm disappointed with the poor code.
They could offer a service that backs up your local Umbrel server to their central servers. This would provide reassurance that your data is backed up, and give them a revenue stream.
Surely they are using an output device, the screen?
Having to write complex specs for an outside organisation to implement is an anti-pattern, because:
- the more complex a spec the harder it is to write and understand
- there's potential for endless disagreements / lawsuits on what was actually promised and delivered
- the overhead of having a complex spec that must be understood by people in both orgs.
I'm sure this data would never fall into the wrong hands or be misused :-)
...and if jQuery and WordPress do the job, they are sound technical decisions.
What is not a sound technical decision is forever chasing the latest fashion in technology. Also known as the "oh look a shiny thing development paradigm".
It's almost as if some developers choose technologies based on "what'll look good on my CV"
what does a "block" mean in this context?
Agreed. New languages should use similar conventions to popular existing languages, for the sake of familiarity, unless there are obvious benefits to doing something else.
> Similarly, I understand the mimetic quality of '[str]' for 'array of str'
It's quite Haskell-like.
> but '{str, int}' doesn't have the same ring since key/value pairs are separated by ':'.
Indeed. `{str:int}` would be better.
So how is this done on cars? Dores each manufacturer have their own proprietary bus system (what i imagine), or is there a standard that everyone can use?
I suspect they don't care.
E.g. by a hostile foreign power.
The reason i ask is I've written (in Python) wiki software catwiki[1] that allows you to write wiki pages in Markdown. At some point I'd like to extend the program to generate a static site based on the contents of the wiki, and it would be nice to be able to automatically upload it to neocities.
It would be very easy for websites to weight upvotes so that one from someone who seldom uses them weighs more.
I can't say I've ever noticed that -- do you have particular creators/videos in mind?
That is the sort of nonsense up with which one should not put.