715 karma · joined March 5, 2022
> That's just "don't create a non-static method if you don't use 'this'" in other languages with classes.
I don't think that's what's meant. It means to write `func (Receiver) Method()` rather than `func (r Receiver) Method()` when you don't use `r`. Sometimes you need this to implement an interface like `error` or `Stringer` and you just don't need instance data.
(I'm no Go apologist but I think "receiver" is a great term. It's clear, it's applies to other languages and paradigms, and it doesn't really have an alternative that I'm aware of.)
(Some people call it "maximal extractable value" now, to keep the initialism and help it make more sense.)
Plus, generally if you have SQL injection, you have multiple tries. You're not going to be locked out after one shot. And there's only so many combinations of `SELECT {id,userid,user_id,uid} FROM {user,users,login,logins,customer,customer}` before you find something useful.
It depends on how you parse the phrase "fast inverse square root".
will always be my favorite part of this. It makes me laugh like a babbling brook.
I agree that either of these approaches pays dividends. I feel great about it.
git add file
git reset -p file(Also, there are forms of gluten intolerance that are neither a wheat allergy nor celiac.)
> Try to show another way, but you stayin' in the dope game
> Now tell me, what's a mother to do?
> Bein' real don't appeal to the brother in you
> You gotta operate the easy way
> "I made a G today" But you made it in a sleazy way
> Sellin' crack to the kids.
> "I gotta get paid," well hey—
> but that's the way it is.
(Tupac - Changes)
(Also, IMHO, your comment history is perfectly readable without being distracting.)
https://black.readthedocs.io/en/stable/usage_and_configurati...
Other formatters have similar functionality; e.g.:
- /* prettier-ignore */: https://prettier.io/docs/en/ignore.html#javascript
- #[rustfmt::skip]: https://github.com/rust-lang/rustfmt?tab=readme-ov-file#tips
Unfortunately, though, this reasoning is just wrong. If Mary is 30, Kristin is 20, and Donya is 40, then Mary is older than Kristin and Kristin is younger than Donya, but Mary is not older than Donya.
myVars = {
first: 123,
second: 234,
afterward: 345,
also: 456,
} //~~~~~~~~ <- alignment
// or:
def my_long_function(arg1, arg2,
more_args,
and_some_more)
//~~~~~~~~~~~~~~~~~~ <- alignment
This is, e.g., what Go uses for struct fields, and what some Python style guides use for hanging function definitions. Regardless of tabs/spaces preference, both of these are independently bad because they churn diffs unnecessarily: if you change `afterward` to `afterward2` then you need to change all the nearby lines, and likewise if you change `my_long_function` to `my_longer_function`. Some formatters, like Black, Prettier, and (mostly) Rustfmt, avoid this pattern entirely, and they are better for it.* You can do this and still use spaces if you prefer, too.