(So, yeah, this is more of a rant against UI design and has nothing to do with the underlying “make 2 + 2 = 5” problem. 😅)=
(So, yeah, this is more of a rant against UI design and has nothing to do with the underlying “make 2 + 2 = 5” problem. 😅)=
(So, yeah, this is more of a rant against UI design and has nothing to do with the underlying “make 2 + 2 = 5” problem. 😅)=
(So, yeah, this is more of a rant against UI design and has nothing to do with the underlying “make 2 + 2 = 5” problem. 😅)=
some_object + some_other_obj
🤦♂️
some_object + some_other_obj
🤦♂️
some_object + some_other_obj
🤦♂️
some_object + some_other_obj
🤦♂️
+
and *
in C++ to allow for visually appealing multiplication of matrices and vectors and that kind of thing. Allows you to write M * v
. That’s handy and very readable.Other than that, no idea … Overloading operators can cause lots and lots of confusion. 🫤
+
and *
in C++ to allow for visually appealing multiplication of matrices and vectors and that kind of thing. Allows you to write M * v
. That’s handy and very readable.Other than that, no idea … Overloading operators can cause lots and lots of confusion. 🫤
+
and *
in C++ to allow for visually appealing multiplication of matrices and vectors and that kind of thing. Allows you to write M * v
. That’s handy and very readable.Other than that, no idea … Overloading operators can cause lots and lots of confusion. 🫤
+
and *
in C++ to allow for visually appealing multiplication of matrices and vectors and that kind of thing. Allows you to write M * v
. That’s handy and very readable.Other than that, no idea … Overloading operators can cause lots and lots of confusion. 🫤
time.Time
s and wanted to say a <= b
, but unfortunately, I have to write !b.Before(a)
. This is just awful. I hate it. I really do with great passion from the bottom of my heart. Very unreadable for my simple mind. In fact, I had to tripple check this reenacted code to find out I screwed up first. And now I even wrote it on paper to quadruple check:
a <= b
to !b.Before(a)
) is awful. To be fair, if there was an a.BeforeOrEqual(b)
, it’d be a bit better, right? Anyway, that’s still less readable than a <= b
, I think.So, hum, it does have its use cases. :)
(It’s always the same. If your goal is to write clean, readable code, then such features can be a blessing. Only problem is, “clean” and “readable” are very much subjective … Nah, I won’t start a discussion about that now. 😅)
a <= b
to !b.Before(a)
) is awful. To be fair, if there was an a.BeforeOrEqual(b)
, it’d be a bit better, right? Anyway, that’s still less readable than a <= b
, I think.So, hum, it does have its use cases. :)
(It’s always the same. If your goal is to write clean, readable code, then such features can be a blessing. Only problem is, “clean” and “readable” are very much subjective … Nah, I won’t start a discussion about that now. 😅)
a <= b
to !b.Before(a)
) is awful. To be fair, if there was an a.BeforeOrEqual(b)
, it’d be a bit better, right? Anyway, that’s still less readable than a <= b
, I think.So, hum, it does have its use cases. :)
(It’s always the same. If your goal is to write clean, readable code, then such features can be a blessing. Only problem is, “clean” and “readable” are very much subjective … Nah, I won’t start a discussion about that now. 😅)
a <= b
to !b.Before(a)
) is awful. To be fair, if there was an a.BeforeOrEqual(b)
, it’d be a bit better, right? Anyway, that’s still less readable than a <= b
, I think.So, hum, it does have its use cases. :)
(It’s always the same. If your goal is to write clean, readable code, then such features can be a blessing. Only problem is, “clean” and “readable” are very much subjective … Nah, I won’t start a discussion about that now. 😅)
BeforeOrEqual(…)
would be much better than this mess, but unfortunately, it does not exist. I'm with you, a real operator is the way to go. :-) Maybe I resort to simply use Unix timestamps for this check. :-? Wouldn't call this incredibly elegant either.