9 ms·
When I was first starting out, a then senior engineer told me: "friends don't let other friends use kwargs". That always stuck with me.
by hqudsi 3y ago
When I was first starting out, a then senior engineer told me: "friends don't let other friends use kwargs".
That always stuck with me.
- icedchai 3y agoI once worked on a code base where we had *kwargs passed down 4 or 5 layers deep (not my idea.) It was a true joy.
- akasakahakada 3y agoThis is literally me. It is a math program that can evaluate equations and generate code. 6 layers of heterogeneous data structure which the math operation being act on 1st layer has its effect down to 6th layer. Temporarily using *kwargs to make it works but still thinking what is the proper way to do it right.
- crazydoggers 3y agoCan you organize the data structures into classes or dataclasses?
- akasakahakada 3y agoAlready doing this. The problem is there are 5 layers in between. Copy and paste the same docstring into all layers is doable but do not seem smart.
- c32c33429009ed6 3y agoOut of interest, what sort of company/industry do you work in where you're able to work on this kind of thing?