Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
MaxMoney
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
MaxMoney
4y ago
I wouldn't recommend naming your function with a suffix that relates to a model. You are better off doing: def generate_payload(crust, sauce, cheese, toppings):
2.
▲
by
MaxMoney
4y ago
In the past I've used a timestamp key for the org. Create a key like f"org_{org.pk}" that has a timestamp. Then append that timestamp to the `get_users_for_org`. Now all you have to do is invalidate the org timestamp to gener
3.
▲
by
MaxMoney
5y ago
whats wrong with functools.partial? I don't see that anywhere in the arguments.. all you say is "I find functools.partial unintuitive".. why? its a simple wrapper.
4.
▲
by
MaxMoney
5y ago
I suppose it depends on what product you have
5.
▲
by
MaxMoney
5y ago
it probably does nested dicts
6.
▲
by
MaxMoney
5y ago
I've always thought that the closer the engineer is to the end user the better.
7.
▲
by
MaxMoney
5y ago
You can get away with a single hashed dict: from types import SimpleNamespace mydict = { "name": "moe", "age": 3, "test": {"name": "josh"} # wont work } dotted = Simple
8.
▲
by
MaxMoney
5y ago
i have sources. lots of old employee posts who quit also talking shit about the ceo
9.
▲
by
MaxMoney
5y ago
Lichess is so much better. It's free. chess.com thinks its facebook and it looks really childish (they probably copied things from chesskid). They have like a billion developers (why? its chess.. and already done). Lichess is like 1 gu
10.
▲
by
MaxMoney
5y ago
Lichess is much, much better. It's free. Chess.com is a bloated mess and it won't change.. they think they are facebook.