450 karma · joined Apr 27, 2019 (7y ago) · 154 submissions
comment 3y ago · link · parent
struct Horse {...}
enum Quadruped {
Horse(Horse),
...
};
possibly alongside a Horse or Horse-like trait (perhaps `HorseImpl`, in which case you'd see `impl HorseImpl for Horse` which, at best, parses...strangely to human beings. "The implementation of the HorseImpl(ementation) for Horses" -- what??). Then, to what `Horse` do you refer when you say the word without a ton of heavy formality?comment 3y ago · link · parent
[1]: Or other languages, but I only know English. Please let me know if other languages have such a word.
comment 3y ago · link · parent
1. You're integrating the polynomial that best approximates the function over the interval. This is why quadrature is exact for polynomials up to some order: the best approximating polynomial is the polynomial itself.
2. Polynomials are good approximations when the function is smooth. Most useful functions are.
3. Because of the smoothness, the behavior in the middle of the interval is largely affected by the behavior at the edges, so you need more densely sample the edges. Think of it like wiggling a string. You're only allowed to wiggle the end, but that very specifically defines the behavior in the middle.
4. There are lots of polynomial sets - Legendre, Chebyshev, Hermite, etc. They're each useful because they're orthogonal to a special weight function, and Legendre polynomials are kind of the default set because they have the simplest weight function: 1.
comment 3y ago · link · parent
comment 3y ago · link · parent
5 | let scores = inputs().iter().map(|(a, b)| {
| ^^^^^^^^ creates a temporary which is freed while still in use
is easier to make accessibility tools for than In file included from /usr/include/c++/4.6/algorithm:63:0,
from error_code.cpp:2:
/usr/include/c++/4.6/bits/stl_algo.h: In function ‘_RandomAccessIterator std::__find(_RandomAccessIterator, _RandomAccessIterator, const _Tp&,...comment 3y ago · link · parent
"How long is a day? 1 day."
"I slept for .37 days."
This nicely unifies things with the tao manifesto[1] people since 1 day = 1 turn = 1 tau = 2 * pi radians and reinforces the periodic nature of these things.
comment 3y ago · link · parent
comment 3y ago · link · parent
I think this is a pretty great statement of the converse of Conway's Law[1].
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
Respectfully disagree. A matrix has basically nothing to do with "living on the surface of a cuboid". It's like saying FOIL is the "why" of binomial multiplication -- the "why" is the distributive and associative properties of the things involved, FOIL is just a useful mnemonic that falls out.
comment 3y ago · link · parent
Colorized Math Equations[2] has the same problem where people see it and go "Colors! English language! This must be so much more easy to grasp than math! I feel enlightened for having seen this!" But feeling enlightened is very different from being enlightened and it just doesn't hold up. I've found people retain very little understanding if they aren't already familiar with the concept.
[1]: https://byorgey.wordpress.com/2009/01/12/abstraction-intuiti...
[2]: https://betterexplained.com/articles/colorized-math-equation...
EDIT: The "three-dimensional operation" perspective no doubt comes from writing matrices as rectangles, but this is far from the only representation of them. If the vector v = [a, b, c] is shorthand for v = a x_hat + b y_hat + c z_hat (explicitly a sum of basis vectors), then we can write a matrix with a similar set of basis vectors: m = [[a, b, c], [d, e, f], ...] = a x_hat x_hat + b x_hat y_hat + c x_hat z_hat + ... . There's nothing "rectangular" about this any more than a polynomial (as a sum of monomials) is "rectangular". The details then shake out of how (x_hat y_hat) multiplies with (y_hat z_hat). The rectangle is just a mnemonic.
DOUBLE EDIT: In the above sense, multiplying two matrices is more like a convolution -- the x_hat x_hat term of the first matrix multiplies every term of the second, we just know most of those terms will be zero (the product with any term that doesn't start with an x_hat (e.g. y_hat z_hat).
comment 3y ago · link · parent
[1]: https://en.wikipedia.org/wiki/Gaussian_units
[2]: A consequence of this is that electromagnetic equations formulated in terms of Gaussian units have goofy things like sqrt(grams) as "base" units. That was the tricky part to handle.
comment 3y ago · link · parent
If it's intrinsic, then yes, the probability that it is awesome should not be zero if you've never heard of it. It's awesomeness exists independently of any measurement. But, by definition, you can't know it's awesomeness until you measure it, so awesomeness quotients only matter after they've been measured. And a measured value value must be expressible/observable outside the system (i.e. extrinsic).
comment 3y ago · link · parent
Emphasis mine. Are you implying the OP shouldn't raise these ideas? Have you ever had a complaint about a user interface in your car? You are, after all, free to build your own and design it how you like. They saw something they thought could be improved, provided a rational explanation of why they think a change should at least be considered, and did so in a manner that's very respectful of both the software and the people who developed it. So this comment feels more than a little...reductive to me. Moreover, I don't read their commentary as suggesting the software shouldn't be free, merely that its price tag shouldn't be the loudest and most prominent selling point. It's a well-known psychological phenomenon that people want things they think are valuable, so putting a $5 sign on the furniture you're trying to give away makes it more likely to go.
comment 3y ago · link · parent
1. You don't understand a concept 2. You go to your professor's office hours with a question and ask them to explain. 3. They draw some squiggles on the board and walk you through the issue 4. You say "Aha! I get it! Thank you for explaining!" 5. Two steps out the door you've completely lost the idea and need help again.
You haven't internalized the idea, you're still just attached to someone else's idea. To understand something fully, you have to really take it in and play with it; find the holes and the limitations of the model.
comment 3y ago · link · parent
I have never, ever, regretted coming to the table with eye candy like this. Were some of those investigations the most "profitable" thing to be working on at the time? Probably not, but a good, clean visualization buys you so much cred with both your audience and yourself.
comment 3y ago · link · parent
This has been my principal design consideration for a while now. Not "the code should be short!" or "the code should be elegant!" but "it should be easy to change" because your requirements are always going to change. It just so happens that the latter usually means things like single responsibility and loose coupling that bring about the former as a matter of course.
comment 3y ago · link · parent
1) If lengths are absolutely fixed, why are they fixed at that scale? Why *didn't* things end up doubled (assuming an external absolute to measure against).
2) If they're *not* absolutely fixed, the "fundamental length" appears pretty fixed to us as humans because things kind of look the same day-to-day. Is there a variation we just don't perceive? Is the fixedness we see just us imposing part of our perception on the world?
It's sort of like this illustration of gauge fixing[1] -- just like "how do you know the cylinder is twisted?", you can ask "how do you know your fundamental lengths?"[1]: https://en.wikipedia.org/wiki/Gauge_fixing#An_illustration
comment 3y ago · link · parent
* The same mathy physics people also do fun things like define Gaussian units where charge is proportional to fractional powers of length and mass.
comment 3y ago · link · parent
This conclusion does not at all follow from the premise. The myth that more competition means you get a better result absolutely does not hold and needs to die. There's a fundamental equilibrium shift when you spend more resources competing than you do on progressing.
comment 3y ago · link · parent
A friend friend of mine with very similar thoughts as me (and, it sounds like, you) recently put it very well. The "workplace proximity associate" kind of friends, while kind of destined to remain shallow and not as deep a connection as any of us might want, are not unimportant. They ground us in a way and help us keep a connection to the world, but maybe not so much individuals.
comment 3y ago · link · parent
[1]: https://byorgey.wordpress.com/2009/01/12/abstraction-intuiti...
comment 3y ago · link · parent
comment 3y ago · link · parent
Gosh, if only there were some sort of local Amazon warehouse that I could travel to to procure the items I require when I require them. They'd probably have a lot of items stored! In fact, some of these stores of items might even cater to one or two types of items only, perhaps necessitating multiple stores at different locations!
* This was a real conversation from a human being.
comment 3y ago · link · parent
In an sms world:
Problem: I need to contact a new acquaintance.
Solution: Exchange phone numbers because everyone has them. Text. Or call.
In a post-sms world:
Problem: I need to contact a new acquaintance.
Solution? Talk about messaging apps. Find the intersection of the ones you both use. Rank by favorite if it's not an empty set, then decide on the relative merits of choosing one in the middle of both your lists, otherwise attempt evangelism. Following evangelism, regress to "Yeah, admittedly the UI has some quirks -- here's how you do <thing you want to do>."
Unfortunately, tech bro progress-at-all-costs featurejerking very often leaves a very large number of people out of the party. The elderly. The impoverished. etc. Despite the corporate mantra of all features all the time, we can actually elect to take old things and make them better instead of inventing the new hot thing all the time.