News for hackers. Stuff that matters.
Re:Grafana Loki – Like Prometheus, but for logs by netingle on Wednesday December 12, 2018 @12:51PM (#18666016)
There are only two hard problems in computer science: cache invalidation and naming things.
Re:Grafana Loki – Like Prometheus, but for logs by cjslep on Wednesday December 12, 2018 @12:54PM (#18666039)
> There are only two hard problems in computer science: cache invalidation, naming things, and off by one errors.

That's how I learned the phrase.

Re:Grafana Loki – Like Prometheus, but for logs by netingle on Wednesday December 12, 2018 @01:06PM (#18666160)
And Loki has all three ;-)
Re:Grafana Loki – Like Prometheus, but for logs by frozenice on Wednesday December 12, 2018 @02:27PM (#18666933)
> There are only two hard problems in computer science: cache invalidation and naming things.

There are only two hard problems in computer science: cache invalidation, naming things and off-by-one errors.

Re:Grafana Loki – Like Prometheus, but for logs by PavlovsCat on Wednesday December 12, 2018 @02:59PM (#18667239)
Alternate between vowels and consonants, look for the resulting string in various search engines, the first one that gets no results is the new name.

Keep track of all items (like "main page", "search results for $blah") that component items (like "body of post 234", "avatar of user 3540") are used in, and when a component item changes, invalidate its cache and that of all items it was used in.

Re:Grafana Loki – Like Prometheus, but for logs by kbenson on Wednesday December 12, 2018 @04:03PM (#18667742)
> Alternate between vowels and consonants, look for the resulting string in various search engines, the first one that gets no results is the new name.

I'm pretty sure the quote was originally talking about function, variable and data structure naming, in which Google may or may not be help. Really, I've always found naming problems in that are more to do with correctly predicting the future, since the most egregious problems I encounter are when something that used to be named at least passably has changed over time to be very confusingly, if not outright misleadingly, named.

Re:Grafana Loki – Like Prometheus, but for logs by PavlovsCat on Wednesday December 12, 2018 @04:21PM (#18667871)
If you don't know what to name a variable, name it something like _whatisthisreplacemelater_ so if you ever come up with a good name, you can easily replace it. What could go wrong, right? Just an easy fix for later today..