Better HN
topnewbestaskshowjobs
Log inSign up

CodeMage

6,801 karma · joined Feb 26, 2009 (17y ago) · 1,367 submissions

Submissions

comment 14y ago · link · parent

I believe you're missing his point: he said unify the syntax, not mix the data with the presentation.

comment 14y ago · link · parent

Thanks for this! I'm still reading the dissertation and haven't gotten to the end yet, but so far it seems to me like what it would be like to "program in ANTLR", so to speak; except that OMeta looks easier to understand and use.

comment 14y ago · link · parent

Sensationalist headline alert: They forgot to finish the sentence with "if you leave Wi-Fi turned on".

comment 14y ago · link · parent

just write the Mozilla and Chrome extensions to expose a C implementation of PGP/GPG to Javascript?

Would that really help? The same hypothetical malicious server admin could simply alter the JS to not call the code from the extension and the average user would be none the wiser. What am I missing?

comment 14y ago · link · parent

Here's an explanation I would offer to a 12-year old to explain Apple's decision, but please bear in mind that it doesn't mean I agree with it:

There are many people in the world who use technology, but are offended by even the slightest sexual material. They might not have reasons for it that you and I would agree with, but that's beside the point. The point is that they can get very loud and insistent and they might go on TV saying that "Apple distributes smut" and whatnot. Apple wants to avoid that kind of hassle. There are different ways to do that, but the easiest for Apple is to simply reject any content they think might cause them this kind of trouble.

comment 14y ago · link · parent

While I agree with your ideas about the "syntax weight", I think that you're wrong about Java.

Java definitely has no syntax for closures, because it has no semantics for function types. It has interfaces and anonymous classes, which you can use to accomplish the same requirement, but the semantics of interfaces are not 100% the same as that of function types. A small example: there's only one function type for a function that takes one int and returns one int, whereas there are infinitely many interfaces you can define to represent that function type and none of them are necessarily interchangeable among themselves.

I think this distinction is important and that this is what the author is talking about when he says "there had better be a way to write a closure somehow!" In Java, there isn't.

comment 14y ago · link · parent

That's one thing that has been bugging me since the first time I've heard of GPL. If I use a library or framework that's licensed under GPL, without modifying said library/framework in any way, do I still have to (as TFA puts it) "extend the copyleft nature" of GPL to my code? It would be great if someone could finally lay this question to rest.

comment 14y ago · link · parent

I imagine that the GP's point was that publishing here doesn't reach the same audience Rolling Stone does. If so, I agree.

939.

Why Your Employees Are Leaving(forbes.com ↗)

2 points · by CodeMage · 14y ago · discuss

comment 14y ago · link · parent

As for Facebook and Google, the worst thing they're going to do with your personal information is target advertisements at you.

Sure, I bet that is what everyone is complaining about. It certainly can't be about the possibility of your private information ending up in hands that could do you harm with it, right? I mean, who in their right mind would be afraid of how a bank or an employer or a court or a government agency might use some innocuous bit of information they thought was private? After all, if you have nothing to hide, you have nothing to be afraid of...

comment 14y ago · link · parent

Here's the existing HN discussion for the original post: http://news.ycombinator.com/item?id=3816050

comment 14y ago · link · parent

Maybe I'm just too cynical, but I believe they are smart enough to realize that and they just don't care. Lawmaking in modern society is inextricably tied to politics and this seems yet another politically motivated piece of legislation.

comment 14y ago · link · parent

Precisely. The correct answer to such questions, whenever they don't include additional context/restrictions, is "Anything at all."

comment 14y ago · link · parent

That's heavy on mathematical lingo and I confess I didn't understand it. Can you recommend an online resource that would explain what you just wrote in a newbie-friendly manner?

comment 14y ago · link · parent

To me, the problem seems to be that he writes the way he would talk. This would probably be a great talk, but it's indigestible writing.

comment 14y ago · link · parent

If we could end the war on drugs at the expense of loss of net neutrality and ten thousand years of existing copyright laws persisting I would find this to be favorable a million times over.

Fight hyperbole with hyperbole?

Ending the war on drugs is about saving lives. Saving lives is laudable, but you have to wonder in what kind of world you want them to live. Is it one where scientific progress, artistic expression and free speech are stifled?

comment 14y ago · link · parent

our body hasn't genetically adapted to yet

And it won't, because natural selection isn't working anymore. I'm not saying that it's good or bad, though, just pointing it out.

comment 14y ago · link · parent

On the contrary, I highly recommend reading JackC's explanation on "theft" vs. "copyright infringement" in terms of "alienable rights": http://news.ycombinator.com/item?id=3696526

I sincerely doubt that nothing would change in a discussion after an explanation like that one. Maybe if the discussion was already restricted to lawyers, nothing would change.

comment 14y ago · link · parent

I'm genuinely curious: is this because Haskell is generally hard to learn[] or because of some inherent property of Haskell that makes type classes unnecessary when you have first class functions?

[

] This statement is based purely on my own experience. I find the Haskell documentation a bit unfriendly with its "academic" style. The content is great, but the form makes it a bit hard to assimilate. Monads were especially painful.

comment 14y ago · link · parent

Maybe I'm too cynical, but I don't think you can seriously plan releases so far in future. What you can do is delude yourself (which happens all the time at big bureaucracies) or make it look like you're planning seriously in order to appear responsible and visionary.

comment 14y ago · link · parent

Literally useless? Would you like to elaborate on how specifying a contract that has to be implemented is suddenly useless because you have function types?

comment 14y ago · link · parent

Classes are already objects. I don't know whether Java 8 will finally introduce function as a data type, but if it does, I'm pretty sure they won't do it the way Ruby blocks work (i.e. block is not an object).

comment 14y ago · link · parent

Better yet, has there been any good hacker movies, ever?

My personal favorite is "Sneakers": http://www.imdb.com/title/tt0105435/

comment 14y ago · link · parent

Funny thing is, both this guy and the author of the TFA touch the same problem in passing: regardless of the process, there are too many incompetent people plaguing our industry. Instead of addressing the problem, managers usually exacerbate it by trying to "fix it" with a "correct process".

No process in the universe is going to turn the Infinite Monkey Theorem [1] into solid reality.

[1] http://en.wikipedia.org/wiki/Infinite_monkeys

comment 14y ago · link · parent

Upvoted you despite the slightly obfuscated phrasing, because it's essentially true. This turned into a bikeshedding discussion on bikeshedding the moment lucisferre misrepresented his own definition of bikeshedding as the canonical definition.

comment 14y ago · link · parent

Comments are a poor substitute for collaboration.

Of course they are, seeing as how they're only one form of collaboration. I wouldn't think that writing a comment to draw people's attention to some non-obvious aspect of code would count as anything but a form of collaboration.

As far as I'm told, 20% projects always had to be approved by your manager. So I suspect that they are not quite as open as you are thinking.

Which is why I did say, in continuation, that the 20% has been subverted at Google. From what I've heard, it hasn't always been that way.

comment 14y ago · link · parent

It is possible (likely!) that some of that code was written because of some weird Python behavior or to handle an edge case from a buggy external API or some odd behavior from another internal system.

If that code is in there without at least a comment mentioning that, then you have bigger problems than handling people's egos. This kind of thing is precisely what comments are for.

I do advocate "if you want a change, write some code and make the change." But a wikipedia-style edit war between programmers' egos is also not productive.

False dichotomy.

In the context of a business, "creativity" can and should mean "creative ideas that have the potential make more money." It is unfair to ask someone to pay you a salary for unbridled side-project creativity; that is what your disposable income is for!

Tell that to people who came up with 15% "innovation time" at 3M and 20% at Google. Of course, Google's 20% got subverted as far as I've heard, but that's a completely different topic.

The point is that creativity should be exercised at the right time, in the right place and in a right degree.

I'd suggest, then, that this list is relevant for anyone trying to make money, because that always entails working with some other person (fellow programmer, business partner, customer) and that can only happen when you have a harmonious relationship with - and are willing to bend a little - for these people.

This has nothing to do with making money. It has to do with your project being successful or not. It has to do with people on your team being reasonable most of the time and having a good manager (or something equivalent) the rest of the time.

Having said all that, "Don't rewrite code without consultation" should be a no-brainer. Not necessarily for Jeff's reason, but because if it's someone else's code, chances are that there might be something you don't understand about it; on the other hand, if it's your code, there might be someone using it and your rewrite could break it for them. Checking this stuff is usually a good idea.

comment 14y ago · link · parent

And none of those problems are, well, are particularly hard or complex, at least not enough in my mind to justify ego as you've portrayed it.

I wish I had a dime for every time someone underestimated the difficulty of solving or optimizing a real-world problem. I might have agreed with you if you claimed that executing a solution is not as complicated as coming up with one.

There's a line between having an ego and being a jerk. I don't think that line is so thin that we have to resort to suppressing ego.

comment 14y ago · link · parent

...when we learn how to start selling software to women. Having female engineers will probably help with that.

No, no, a thousand times no. The gaming industry used to think like that. Ernest Adams explained the fallacy of that thinking most eloquently in his article "Games for Girls? Eeeeewww!" [1]

You don't want to "sell software to women". You want to sell software to your target userbase. You want to sell software to people whose problem that software solves. Unless your software is solving a specific problem that only women have, then you're not "selling software to women".

[1] http://www.designersnotebook.com/Columns/004_Games_for_Girls...

comment 14y ago · link · parent

The latter. I'm sorry for being sensitive about it -- maybe it's an overreaction -- but over the years, it really wears down the patience to see the name of the place I grew in dragged through the mud repeatedly.

You might say it's our own damn fault, you might say my parents' generation and mine are to blame, I won't argue about that.

You may criticize the communism, the backwater mentality, the ingrained sense of entitlement and lots of other things about (ex-)Yugoslavia. A lot of that stuff is the reason why I left.

But please, keep it civil, for the sake of us poor schmucks that loved growing up in that place and then left it, disappointed.

1
313233
46