5,377 karma · joined Oct 20, 2023 (3y ago) · 2,450 submissions
comment 4mo ago · link · parent
If you write a blog post over a negative review accusing you of nagging, I would expect you to say “actually I’m not really nagging, I just have a line saying to please leave a rating in my app” if that’s the case. If you instead double down and make excuses and advocate to just ban the reviews because you don’t like user reviews anyways, it sounds like you’re actually wrong and the rating is correct.
And I’m not surprised that readers don’t proactively go out and look for your app to check themselves before criticizing you.
comment 4mo ago · link · parent
Sounds like a you problem, people like them and find them useful, so I doubt they’ll be going away.
> One important difference is that Google does not review restaurants before they open, whereas Apple claims to review every app before they are published to the App Store.
What does that have to do with anything? So if google went around and checked food safety of every restaurant before listing them, you would say that google ratings for restaurant are stupid because the people doing the rating aren’t professional food critics?
The App Store review is like the food safety check but the ratings are the ratings.
> Amazon, like Apple, has a major problem with scam and copycat products in their store.
Ok, does that imply fake ratings or what does that have to do with the discussion?
comment 4mo ago · link · parent
If someone says “hey, this guy has a nag screen” and your response is “but everybody does it!”, it’s not baseless to think you have a bag screen without checking your app. If you don’t, I would expect you to write “the reviewer here is wrong, I don’t have a nag screen”.
comment 4mo ago · link · parent
Yeah, like every public rating system. Google reviews on restaurants wouldn’t directly go into a Michelin guide either, and the same is true for Amazon ratings. Welcome to the real world.
comment 4mo ago · link · parent
Yeah, because they sit in the Albergue half of the day. You need to start looking for one around 4pm or it will be full because people tend to stop walking around that time. It’s also an activity that mainly retired people do.
You can easily do 40 km/day on the Camino routes with manageable elevation (the coastal ones).
You’re right about the equipment weight though, I can’t imagine what a Roman soldiers full pack must have weighed with the textiles of the time. On the Camino, you don’t really need to bring anything except some clothes.
I see the point with the camp but on the other hand after the third day you’re more limited by your feet, not the time, so you would still have enough time for that in my estimation.
comment 4mo ago · link · parent
comment 4mo ago · link · parent
The main shock of this one at 7.0 killed 277 people so sadly I think it’s pretty likely there will be some deaths.
comment 4mo ago · link · parent
from datetime import datetime
class Filter():
def __init__(self, name):
self.name = name
def __gt__(self, value):
return {
"field": self.name,
"operator": ">",
"value": value
}
class FieldMeta(type):
def __getattr__(cls, name):
return Filter(name)
class Field(metaclass=FieldMeta):
pass
print(Field.end > datetime(2024, 1, 1))
This gives: {'field': 'end', 'operator': '>', 'value': datetime.datetime(2024, 1, 1, 0, 0)}
You can make python return arbitrary values for comparisons by overriding __gt__ (and lt, eq) on the first operand (which we control here since it is a Field class), it doesn't have to be a bool.Edit:
You can even make a little adapter to use this with the current filter system if you really want to:
from datetime import datetime
class Filter():
def __init__(self, name):
self.name = name
def __gt__(self, value):
return {
"field": self.name,
"operator": "gt",
"value": value
}
def __lt__(self, value):
return {
"field": self.name,
"operator": "lt",
"value": value
}
def __eq__(self, value):
return {
"field": self.name,
"operator": "eq",
"value": value
}
class FieldMeta(type):
def __getattr__(cls, name):
return Filter(name)
class Field(metaclass=FieldMeta):
pass
def _(*args):
kwargs = {}
for arg in args:
k = arg["field"] + "__" + arg["operator"]
kwargs[k] = arg["value"]
return kwargs
def filter(**kwargs):
for k, v in kwargs.items():
print(f"{k} = {v}")
filter(**_(Field.end > datetime(2024, 1, 1)))
This printsend__gt = 2024-01-01 00:00:00
comment 4mo ago · link · parent
Instead of this:
self.filter(end__gt=self._midnight(today))
You could write a "Field" class that implements __getattr__ and __gt__ so you could do
self.filter(Field.end > self._midnight(today))
The "Field.end > self._midnight(today)" would evaluate to an object that would just store "my field name is end and my value needs to be larger than xyz".
filter() can then look into its argument list and construct the filter criteria from the passed Field objects instead of the key value pairs as it does now.