2,752 karma · joined May 21, 2013 (13y ago) · 1,177 submissions
comment 11y ago · link · parent
import itertools as it
a = 'dog'
b = 'food'
c = 'tasty'
letters = sorted(set(a+b+c))
for combo in it.permutations('0123456789', len(letters)):
mapping = dict(zip(letters, combo))
if len(c) > max(len(a), len(b)) and mapping[c[0]] is '0':
continue
f = lambda string: int(''.join(map(mapping.get, string)))
n1, n2, n3 = map(f, [a, b, c])
if n1 + n2 == n3:
print( mapping )
print( n1, n2, n3 )
break
seems haskell friendly given all the mappings, but not in the way that the blogpost did it. but also not with that big nested loop either.comment 11y ago · link · parent
comment 11y ago · link · parent
I also find it illuminating to compare to three other careers that I consider intellectually similar to engineering in that they are not "management", and yet they capture way more of their value in their corporate zenith (or did at some point in time when their reputations as careers were made).
- Lawyers: Lawyers aim to make partner. They become owners. None of this "engineers are afraid of risk" stuff.
- Doctors: Doctors control supply. I have met many socially odd doctors, without "negotiation skills" or "business acumen", but they don't worry about their salary precisely because this "union-like" aspect to their profession.
- Finance people: a.k.a "bankers". Most people have no better proxy for their "value" than what they agree on a job interview ("the value of your work is what people are willing to pay for it"). But "bankers" do know what their work is worth, outside of this exchange. And they know how much their peers are making, and are basically immune to the collective cluelessness that is "I don't need to know how much my peer and my boss make to be satisfied with my salary".
Engineers? No union. Meek personality and culture plus cluelessness about labor economics means they are ecstatic making 200k even if their company is making 1M+ for their work.
Some scattered thoughts here, but thank you for your post.
comment 11y ago · link · parent
No, I do not think so. There are vast, vast numbers of people who opt to teach and nurse instead of gunning for leadership, who opt to do salaried engineering instead of management, and I don't see why the latter in each case have a better claim on our "nature" as a species.
What do you mean by "interest in sex"? Human nature seems to also have an "interest in food", that in places like america is exacerbated into an obesity epidemic, but doesn't seem to say anything super meaningful about our relationship to eating. Isaac Newton died a virgin, I guess he wasn't human? Gay men have no interest in reproduction... is their humanity in question?
You should read stuff like UBC's "WEIRD" study, or how women were believed to have bigger sexual appetite than men at various places in time, before going off about observations "across all political systems and historical periods".
You seem to be obliquely pushing some notion that we are more dominant than cooperative, which is pretty ignorant in a thread about Foucault and Chomsky.
comment 11y ago · link · parent
What you call "the history of ethology" hopefully comprises the blunders that at different points in history "the scientific establishment" made regarding the "nature" of a) black men, b) women, c) gay people, d) irish people, e) jewish people, f)... you get the idea.
These observations of "animal behavior" are both extremely unsophisticated, always failing to control for critical variables, and very tied up to what the society of the day wants the conclusions to be.
Even today, ignorant people go around talking about how "human nature is selfish". I think Foucualt's contributions were pretty great re: this precise discussion we're having over here. Certainly more important than the vast majority of ethological work out there.
If you want to challenge me on this, just answer my question: What is human nature, and what do you claim to know about it in 2015?
comment 11y ago · link · parent
And at the very end you're trying to go back on admitting your daughter is proselytizing, by complimenting her cooking skills. I think you're quite confused about your principles.
comment 11y ago · link · parent
If you want to make the case that your daughter is a really nice proselytizer for healthy eating, and that vegetarians are really awful, we can just compare anecdata.
You went out of your way to quote second-hand sources for "filthy murderer" vegans, suggesting it hasn't been your experience. How many people who've called vegetarians pansies do you personally know?
comment 11y ago · link · parent
I've certainly seen way, way more people say "I'll eat two steaks for every sanctimonious vegetarian I engage with" than actual vegetarians, particularly after becoming an engineer.
comment 11y ago · link · parent
If you did just a bit of critical thinking about which genders dominate which professions and why, including historical trends, you'd arrive to either two conclusions.
1) One gender is naturally predisposed to being nurturing and subjugated and taken care of and caring, or 2) there have been cultural protectionist barriers set up to protect the most bountiful activities.
What did people say before women reached parity or near-parity in Law and Medicine? Were they biologically disinclined then too?
comment 11y ago · link · parent
comment 11y ago · link · parent
>> These images are backward projections of modern work patterns. And they are false. Before capitalism, most people did not work very long hours at all. The tempo of life was slow, even leisurely; the pace of work relaxed. Our ancestors may not have been rich, but they had an abundance of leisure. When capitalism raised their incomes, it also took away their time. Indeed, there is good reason to believe that working hours in the mid-nineteenth century constitute the most prodigious work effort in the entire history of humankind.
http://groups.csail.mit.edu/mac/users/rauch/worktime/hours_w...
comment 11y ago · link · parent
>> Adam Smith lived in the clouds
>> Family structures of one married couple and their children were present in Western Europe and New England in the 17th century, influenced by church and theocratic governments.[5] With the emergence of proto-industrialization and early capitalism, the nuclear family became a financially viable social unit.[6] The term nuclear family first appeared in the early twentieth century. [...] The concept that a narrowly defined nuclear family is central to stability in modern society has been promoted by familialists who are social conservatives in the United States, and has been challenged as historically and sociologically inadequate to describe the complexity of actual family relations.[8]
https://en.wikipedia.org/wiki/Nuclear_family
Is this some kind of joke?
comment 11y ago · link · parent
Every time someone mentions "who will provide for your children if you don't leave an inheritance behind?" I immediately have to ask, "what about all the children whose parents are not able to leave them an inheritance (ie: most of them)?"
It seems that it is you who have not really thought it out. Here's Adam Smith on the topic btw:
> "A power to dispose of estates for ever is manifestly absurd. The earth and the fulness of it belongs to every generation, and the preceding one can have no right to bind it up from posterity. Such extension of property is quite unnatural." Smith said: "There is no point more difficult to account for than the right we conceive men to have to dispose of their goods after death."
http://budiansky.blogspot.ca/2010/10/adam-smith-thomas-jeffe...
comment 11y ago · link · parent