-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Have a consistent getter/setter pattern #55
Comments
I think it should be
Should probably be:
|
err_t power_set _dut_ldo |
After discussing with frazz and a few 🍻later, we think that power_dut_enabled_get makes the most sense. |
I don't agree, it signs like Yoda speak, "power duty enabled get, hihihi" https://youtu.be/5I671B4MCC0 |
@EnJens we need your input 🤙 |
I think it should end in set/get as it's the "functionality" of the function rather than what it works on |
So we should have
? That all sounds so wrong :/ |
https://github.com/mossmann/hackrf/blob/master/firmware/common/max2837.h They have some inconsistency there as well.. max2837_set_frequency vs max2837_reg_read/max2837_reg_write. Seems people mix these things up all the time. |
I think this is the highest prio issue right now ;) |
I messed up here a bit, sometimes i use something_set, other times it's set_something.
What should we use? something_set feels a bit more api-ish than set_something, right? @arturo182
The text was updated successfully, but these errors were encountered: