HNHacker News
TopNewBestAskShowJobs

MaxMoney

25 karma · joined December 15, 2021

submissionscomments
MaxMoney··on DRY is an over-rated programming principle?
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):

MaxMoney··on Cache made consistent: Meta’s cache invalidation solution
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 generate a rolling key (requires more memory).
MaxMoney··on More intuitive partial function application in Python
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.
MaxMoney··on Self-Organizing Teams
I suppose it depends on what product you have
MaxMoney··on Box – Python dictionary with dot notation
it probably does nested dicts
MaxMoney··on Self-Organizing Teams
I've always thought that the closer the engineer is to the end user the better.
MaxMoney··on Box – Python dictionary with dot notation
You can get away with a single hashed dict:

from types import SimpleNamespace

mydict = { "name": "moe", "age": 3, "test": {"name": "josh"} # wont work }

dotted = SimpleNamespace(*mydict)

print(dotted.name, dotted.age) # moe 3

MaxMoney··on Chess.com vs. Lichess
i have sources. lots of old employee posts who quit also talking shit about the ceo
MaxMoney··on Chess.com vs. Lichess
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 guy (who I think used to work for chesscom until the ceo was a dick or something)
MaxMoney··on Chess.com vs. Lichess
Lichess is much, much better. It's free. Chess.com is a bloated mess and it won't change.. they think they are facebook.