Better HN
topnewbestaskshowjobs
Log inSign up

CodeMage

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

Submissions

comment 15y ago · link · parent

I haven't run this, but the code seems to have an error. As far as I can tell "k.size" will return 19 and you need to subtract 20 from the ASCII code to get the real thing. Otherwise you would get gibberish.

EDIT: I actually went and ran the thing, just to make sure I wasn't crazy. You definitely need to change "(c - k.size)" to "(c - k.size - 1)".

comment 15y ago · link · parent

Although your sentiment is laudable, you seem to confuse goals and values. A goal is something to achieve, while values are what you teach your children to shape their struggle to achieve their goals.

Like I said in my comment, I don't mean to imply we shouldn't teach our kids to strive for great achievements. There's nothing to say they can't be happy striving to "better themselves and the rest of humanity"; nor is there anything to say that seeking happiness precludes bettering yourself and others.

Bear in mind that I'm talking about happiness, rather than gratification. I'm not proposing to teach our kids to be hedonists. Just because I'm not content or satisfied all the time, doesn't mean I'm not happy. To quote Frank Herbert's "Children of Dune":

"Tell me, Namri, are you content?"

"No." The words came out flat, spontaneous rejection.

"Then do you blaspheme?"

"Of course not!"

"But you aren't contented. You see, Gurney? Namri proves it to us. Every question, every problem doesn't have a single correct answer."

comment 15y ago · link · parent

I agree with you on a lot of points, especially the following two:

1. College doesn't guarantee success.

2. Not everyone should go to college.

But here's where we diverge: I believe we'll never get to the point where everyone will "succeed". We all want our kids to succeed, but our definition of success is usually based on things like "have a high-paying job", "be important", "be powerful" or "be famous". This is because we want our kids to be happy and we come up with cookie-cutter solutions for happiness: "have a high-paying job" supplants "not have to have headaches about money", "be important", "be powerful" and "be famous" supplant "be harder to oppress by society or more powerful people".

To me, that seems to be a more fundamental problem than the problem of education and one a lot harder to solve. Disclaimer: Please don't take this as a criticism; on the contrary, when you have two important problems and you can see the solution to the one that's easier, it's a lot better to try to solve it than to sit down and lament the fact that you can't solve the harder one.

That said, I believe that we should define "success" differently for our kids. I believe we should give them a different goal: happiness. Believe it or not, you don't have to achieve greatness to be happy. As long as you can enjoy your work, your family and your life in general, you can be happy, without Leaving Your Footprints In The Sands Of History.

That doesn't mean we shouldn't teach our kids to strive to achieve as much as they can. It just means that we should try to encourage them to look for their own path to happiness. It shouldn't matter if theirs doesn't happen to pass through fame, power, influence or riches, as long as it leads them to happiness.

comment 15y ago · link · parent

Michael, I liked most of your presentation and I agree with a lot of what you said there. But was it really necessary to post it twice to HN? Why don't we just stick with this one: http://news.ycombinator.com/item?id=2503064

comment 15y ago · link · parent

10. "Enforced association" is phoney. I'd rather just make my own friends at work or out of work. So what if it appears to be a clique? All that means is that we are humans acting naturally.

Couldn't have said it better myself. I've always detested these "team-building" initiatives that intrude into my own private social life. To every company that tells its employees that "we're all a big family": I have my own family, thank you very much.

At the best place I've ever worked, the whole product team would frequently have lunch together. We were happy to do so and we did it on our own, because we really liked each other, not because the company tried to "cultivate" this habit.

You know what that company did right? It made sure to hire top-notch people. When you're surrounded by people who are smart, capable and interesting, when you're surrounded by people whose achievements constantly challenge you to do better, when you're surrounded by people you respect and admire, then there's no need to worry about lunch.

comment 15y ago · link · parent

See also: http://news.ycombinator.com/item?id=2489937

comment 15y ago · link · parent

I don't own an iPhone or an Android (yet), so I was wondering: is there any way for the user to control permissions the app will have to access the hardware?

Say, for example, that I like an app because it does several cool things and only one not-so-cool thing that involves using the mic to "snoop" on me. Would I be able to download the app and then set up the permissions so it doesn't have access to the mic?

comment 15y ago · link · parent

A nice and friendly way to explain a concept that has a scary-sounding name. One little correction, though: your example for "alt" function says

  >>> iforwhileorfor = alt(matchstr('if'), matchstr('while'), matchstr('for'))
  >>> if_while_for('if')
  ('if', '')
  >>> if_while_for('while')
  ('while', '')
  >>> if_while_for('for')
  ('for', '')
  >>> if_while_for('foof')
  None
You need to either rename the variable to "if_while_for" or modify your function calls accordingly.

comment 15y ago · link · parent

I really hate to be this negative, but I confess that a post on "ingredients for a successful entrepreneur" would inspire a lot more confidence if it was by an author whose name I could readily recognize.

comment 15y ago · link · parent

I agree. As sad as it is to see ROG go, I find it even sadder that so many people upvoted krambs' comment. It's not about the point he tried to make -- not everyone has been on HN long enough to recognize some of the key contributors -- but the way he tried to make it.

comment 15y ago · link · parent

I don't find it inconsistent at all. The author explains that C++ has become sort of a niche language for him.

comment 15y ago · link · parent

Because it's easy to make good-looking things in Flash. Yes, I know that Flash is bad. But you asked the question and that's the answer.

comment 15y ago · link · parent

Given the number of times I've heard the Chilean government talk about establishing a Chilean "Silicon Valley", I think we can all safely assume that's more or less what they're trying to do.

As someone who has been living and working in Chile for more than 10 years now, I'm not at all surprised to see them throw money at the issue yet again, instead of working on changing the way things work. But I've already talked about that stuff before: http://news.ycombinator.com/item?id=2068429

comment 15y ago · link · parent

I had to start writing this reply from scratch several times, because I couldn't decide which issue to address first and yet do it in the politest possible way. I offer apologies in advance, just in case I don't manage to achieve that goal anyway.

First of all, you're oversimplifying my comment, just like you oversimplified the original issue in your post. I never claimed I was unable to understand simple concepts. But the ability to understand a simple concept is quite a long shot from the ability to apply it properly to achieve quality results.

Second, you neglected the better part of my comment where I talked about effort, results and time. Yes, I'm pretty sure I could do design; at least, as long as nobody (including myself) minds waiting for me to give it my best shot and produce results that are still not as good as those you could get from a good designer in less time. Maybe it doesn't take talent to design a log-in form, but talent sure helps do it faster and better. In the end, "faster" and "better" just isn't something you can toss out of the window.

Third, if you really think that you can reduce either design or coding to following simple rules, then I'm wondering why you're bothering writing about this at all. Just follow some simple rules to code an application that follows some simple rules to churn out both quality design and code.

Every now and then, I see someone write or hear someone talk about how they can do work in more than one discipline and, therefore, there's something wrong with people who specialize. Working in game development has given me tremendous respect for multi-disciplinary projects and the complexities involved. From that vantage, I can tell you that I don't mind when people are proud of their multifaceted nature; it's when they start dismissing specialization that it becomes a problem.

comment 15y ago · link · parent

32, "Both", Win XP and Linux

comment 15y ago · link · parent

I was tempted to say "Spoken like a true Chris", but then I realized that no true Chris would really say something like that. Here's what I think you didn't get from the OP's story: there's a hell of a lot of creativity in what Chris does. Steve and Chris work on different levels, that's all.

Yes, Steve's job is flashier, it makes spectators go "whoa" and "ooh" and "aah". But all the fine touches and important details that make the final solution so great are Chris's work. And if you think there's no creativity involved in finding those solutions, you've got another think coming...

comment 15y ago · link · parent

Well, that sure made me feel all fuzzy and warm inside. Whenever I had to design anything, it looked like utter crap in the worst case and like something "obviously designed by a programmer" at best. Not because I'm lazy, but because I just don't have talent for it. I tried. The best results I ever got was my Flash game, Particlz. That one often got criticized for "substandard graphics".

Now I'm thankful that I'm doing a job that doesn't require user interface design. But in the future, if I need to work on something that need a nicely designed user interface and there's a designer available, you bet I'll try to leave it to him. You know why? Because I'll spend 2 hours on something and get worse results than he'll get in 15 minutes.

Bottom line: I suck at design. I don't need to you to come and tell me I'm just being lazy.

comment 15y ago · link · parent

Maybe I'm being stupid, but I've got to ask: This is humor, right? Because it doesn't only sound like a bad joke, it offers no source either. So it's either a mediocre joke or a very crappy way to deliver some bad news.

comment 15y ago · link · parent

It's Dijkstra. I can understand complaining about not knowing the date of a post by Yegge, but did you really expect anything written by Dijkstra to be dated newer than 2002?

comment 15y ago · link · parent

Yep, reading Yegge is still as fun as it was back in 2008, when he wrote this post. Could you put the year in the title?

comment 15y ago · link · parent

Why write all that when you can get the shirt off with just "1", or any single digit ;)

comment 15y ago · link · parent

Heh. He forgot to mention the wonders of gopher, archie and IRC. Now I feel old... :P

comment 15y ago · link · parent

The whole post is based on the assumption that if you hire someone from your friend's company, you lose your friend. Maybe I'm just naive, but I think friendship that ends for such a reason is a lousy friendship.

I firmly believe that one should be able to separate business from friendship. For me, this part of the post highlights the flaw in author's reasoning:

Here’s an easy way to think about the dynamic. If your husband left you, would you want your best friend to date him?

comment 15y ago · link · parent

Eric's point is that Nokia's move does not do anything to address this and might even make it worse.

comment 15y ago · link · parent

It's interesting to see that Scoble puts ESR's post in the same sack as the rest of the "nuts", yet doesn't do much to refute it. It's almost as if he read only the title.

comment 15y ago · link · parent

I agree that BBC should have done something to preserve the content in some form, not necessarily as easily accessible and readable. Heck, they could've packed it up and put it out as a torrent which they would seed themselves and it would've been better than just dumping it.

I upvoted you because I agree about the content, so I can only speculate about downvotes. If I had to guess, I'd say it's probably because you either missed or ignored the point you replied to, which is that the reporting was, indeed, terrible.

comment 15y ago · link · parent

The only two paragraphs that actually match the headline:

If we had to guess, it's probably going to be orientated around media or news, because they are so social. When you watch a television show with your friend, it's such an engaging social activity.

We think that there's a next generation of startups that are developing social versions of these applications, where what Zynga is to gaming, they will be to media and news, and we're really excited about that.

comment 15y ago · link · parent

> I've witnessed a lot of anecdotal evidence that women don't do as well at compartmentalization as men. I didn't make much of it until I also read a book that points it out ("Viva La Diferencia" by Pilar Sordo) as one of the differences between typical male and typical female behavior.

Like I said, that's a _very_ popular opinion and it sells a lot of books.

I agree that it's popular. What I'm trying to find out is how much of it is just an opinion and how much is proven. There certainly seems to be a behavioral pattern out there.

It's also somewhat of a self-fulfilling prophecy.

What do you mean by "somewhat of a self-fulfilling prophecy"?

You ask me to prove my assertion that this is not based science, and of course I can mostly point to the fact that the supposed science the article is talking about was itself not cited anywhere. So I have to prove a negative, but the article gets a pass with disguising a blanket statement as science just because it resonates better with your world view?

No, not really. It seems I wasn't clear enough with my question. I wasn't asking you to prove your "assertion that this is not based science". When you said "That is a lie", I saw what seemed to be categorical denial of the claim that men and women have different capacity for compartmentalization and I was intrigued enough by your vehemence to ask you to point me to what made you so sure.

The article didn't "get a pass" because it never even entered into my side of discussion at all.

comment 15y ago · link · parent

Shouldn't that be "geometrical" instead of "geographical"?
1
363738
46