534 karma · joined Mar 2, 2014 (12y ago) · 299 submissions
comment 12y ago · link · parent
This sounds, if anything, less realistic than the OP's proposal.
It's also completely vacuous... which ones are obvious? The process of finding a sufficiently acceptable set is called politics.
comment 12y ago · link · parent
McCarthy is not ancient history, and Marxism is still viewed mostly met suspiciousness and ridicule in the us.
No one in the US and in their right mind would claim to be Marxist in order to fit in our due to social pressure. If anything, the exact opposite.
comment 12y ago · link · parent
Do you really mean this? It seems completely unrealistic, and is just the flip side of the parent's comment.
I don't know of a single political system in the entire world which allows residents to opt out of its legal system, and nor should they.
Maybe you mean something rather specific by political system and I just don't understand what you're saying?
comment 12y ago · link · parent
There's an important distinction between essential side-effects and inessential side-effects.
Some data you have to store in a database is an essential side effect.
Modifying iterator or flag (e.g. bool isOpen) etc. is a non-essential side effect.
Transactional semantics are probably part of the story for the former, but the author was talking about the latter.
comment 12y ago · link · parent
http://stackoverflow.com/questions/2672791/is-functional-gui...
It's also worth noting that frameworks such as Java's Swing are somehow functional in their architectural style, if not in their implementation.
comment 12y ago · link · parent
Your argument seems to be that since the employer is giving him time to find a new job, the employee should work beyond the scope of his contract.
I don't think this holds up. First of all, I doubt this is 100% altruism. Destroying morale in a start-up can destroy the company. But even if it is completely altruistic, altruism on the part of the employer doesn't need to be reciprocated. (edit: added the two paragraph above before parent's reply, I think?)
After all, "Employment is a transaction of money for work, not a marriage".
(fwiw, you shouldn't have been downvoted.)
comment 12y ago · link · parent
For instance, if you register for .wed and take longer than 2 years to get married, both your fiance AND your registrar will be angry with you.
comment 12y ago · link · parent
I found this via the Chromium source code (search term gtld). Specifically,
https://code.google.com/p/chromium/codesearch#chromium/src/n...
253.
Mozilla Public Suffix List(publicsuffix.org ↗)
1 points · by nmrm · 12y ago · discuss
comment 12y ago · link · parent
That's fair. Although Haskell is a bit of an odd man out in that list, both in terms of its nature and in terms of its typical use case.
> That being said, depending on what sort of functional programming you're doing, a strong background in category theory or meta-programming can enabling (or not).
This is where the analogy between the two books breaks down. When you're using a functional programming language as a proof assistant, category theory can be helpful. But this is far less common than meta-programming.
edit: 2nd paragraph.
comment 12y ago · link · parent
You can teach about "different sorts of mappings" in just about any setting. In fact, that's kind of the whole reason Category Theory exists. So why teach the general result when all you care about is its application to functional programming?
comment 12y ago · link · parent
"Different sorts of mappings" is NOT synonymous with "category theory". Not even close. Heck, Euclid knew about "different sorts of mappings".
Most everything in Gamma et al is arguably useful for everyday programming in Java. Maybe 5-10 pages of MacLane is useful for everyday programming in functional languages.
Unless by "Category Theory" you mean "5-10 pages of MacLane", Category Theory -- on the whole -- is a horrendously inefficient way of teaching about "different sorts of mappings useful in functional programming."
Unless you want to use functional programming as an environment for doing pure mathematics, there's no reason to actually study actual Category Theory.
comment 12y ago · link · parent
In general, the whole "oh yeah CS people should know some category theory and abstract algebra" is pretty hilarious.
First, it's a bit like saying "oh yeah CS people need to know the undegraduate basics and also the generalization that most mathematicians don't encounter until a couple years into grad school."
Second, most people who say this really mean "a conceptual grasp on different types of morphisms is useful". But that's like saying you need calculus in order to drive a car; or, in the case of categories, it's like saying you need two semesters of real analysis in order to drive a car.
Why not just say "knowing about different sorts of mappings is pretty useful in functional programming"? Knowing how this generalizes to more abstract mathematical objects is totally unnecessary.
comment 12y ago · link · parent
I object to this simplified classification of mankind into poor and rich. Of course there is a category of people which strive only for profit. But are not... people in the West for whom profit is not an end, who own a certain amount of wealth, who want to invest and obtain a profit from this investment, but who do not regard this as the main object?...
During the past few years I have been much engaged in and have thought of the need for conducting propaganda in favour of Socialism and cosmopolitanism among wide circles of engineers, airmen, military technical people, etc. It is useless to approach these circles with two-track class-war propaganda. These people understand the condition of the world. They understand that it is a bloody muddle, but they regard your simple class-war antagonism as nonsense.
comment 12y ago · link · parent
Is there a way to put money into a Zidisha account without paying processing fees? What's the cheapest way to put money into a Zidisha account?
On the lender's end, I think about microfinance more as a "renewable donation" than as an "investment". So, it would be nice if 100% of the donation went to the operation of the charitable organization or the charitable act itself.
edit: less ambiguous question.
comment 12y ago · link · parent
The Unix book states its value in the title (if you don't have a general notion of what processes are or why they are important, you're probably not in the target market), and establishes an ethos of trust (by making specific and concrete statements about its contents) while addressing the most common logical hang-up of would-be buyers ("is this yet another book a crappy introduction to the topic? Will it teach me anything I don't know?")
The Unix book, contrary to the author's opinion, is an excellent sales pitch. But it's aimed at a technical audience, not the average consumer or a salesman.
comment 12y ago · link · parent
"This difference in how syntax is understood actually presents a barrier to programming for modestly trained mathematicians, who would otherwise be expected to excel."
> And are you implying that the author's original solution is more indicative of real programming?
Well, neither is... but yes, overriding == or .equals is somewhat common.
> when accessing the value of "b" for the first check, b is mutated such that the next check will return a different value.
The difference is that you could easily imagine a sane example where x == y != x === y, whereas it's hard to imagine a situation where I would want to override get (or ==) with a method that mutates the requested variable.
> The == vs. === issue is the part that's actually irrelevant, it served as a red herring.
For the claim re: syntax and compatibility with mathematician's expectation, it's exactly the other way around.
FWIW I feel the quoted claim re: syntax claim is interesting, whereas the contents of the article (summarily, "you can override == or .get and cause crazy stuff to happen") is unsurprising and kind of silly to most programmers even moderately experienced with OOP in dynamic languages (for the reasons given in this post and others -- everyone knows about it, it shouldn't take 11 days to figure it out, and in practice no one does purposefully obscure stuff like mutating values when == or .get is called).
edit: grammar
comment 12y ago · link · parent
In other words, it would never even occur to a mathematician to make your mistake...
More to the point, a mathematician wouldn't assume that some arbitrary predicate that you are allowed to define at will behaves the same way as a system-defined equivalence operator.
Edit: Added last paragraph and readability changes. Also, ~ is another symbol for equality, this time equality over binary relations.
comment 12y ago · link · parent
if "get" returns different values when called multiple times within a single expression, one of two things must be true: * Someone's overriding "get" with a mutation to the variable. In all but the very rarest of circumstances, that someone should be publicly shamed. It's a nice hack for the purpose of the article, but not real code. * there's some very fine-grained concurrency. This case is irrelevant to the OP's claim because concurrency of this sort is very likely a fundamental characteristic of the system at hand, and never an artifact of the language.
comment 12y ago · link · parent
That's my point. The == sign meaning many things is unsurprising (and key to this "hack"), whereas explicitly using two different symbols for equivalence in the same expression is a huge, glaring signpost to pay attention.
comment 12y ago · link · parent
Although this is true in general that syntax can be a barrier to entry, the article provides a particularly poor example. If anything, the article demonstrates how mathematical training is good preparation for many pitfalls of programming.
Mathematicians are used to working with various equivalence relations, even in the same context. So if a modestly trained mathematician saw == and ===, she would immediately ask "what is the difference between these two ER's?".
And then when she finds out the essential difference is that you can override ==, it would be clear that all bets are off.
I can't imagine any mathematician taking more than a few minutes and a google search -- let alone 11 days -- to figure out this loophole.
comment 12y ago · link · parent
Definitely.
If you allow more longer-running examples, this is exactly the situation of calculus. The Calc I-III that many use regularly is the application; Real Analysis is the theory. Ditto for any "applied" sort of math you can think of (stats, crypto, machine learning, etc. -- all basically just use theorems which are the "abstract interfaces" to pure mathematics.)
> we never fully mastered teaching how to come up with abstractions and new models
And we never will, as long as the human race continues progressing :-)