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

Honestly, at this point I can no longer tell whether you're misinterpreting or misrepresenting the conclusions. I'll make an honest attempt to argue, nevertheless.

"Static type checking" and "unit testing" are two concepts. There are numerous concrete implementations of these two concepts. The former is implemented in several languages, including C++ and Java and Haskell. The latter is implemented in several frameworks/tools, such as TestNG and PyUnit.

The article concludes that unit testing, as a technique for discovering and/or preventing defects, cannot wholly replace static type checking.

Apart from mentioning the concrete implementations of abstract techniques that the author used, the article does not conclude anything about the benefits of using specific languages, frameworks or tools.

What you have claimed so far is that:

1. there is a "hidden assumption is that all static and dynamic typing are created equal, i.e., since Haskell is statically typed and Haskell appears to have caught Python bugs that unit tests did not, therefore Java will catch bugs in a Ruby codebase, C++ will catch bugs in a JavaScript codebase, etc."

If anyone jumped to this conclusion, it was you. The only thing I can conclude from the article is that static typing checks such as those implemented in Haskell catch bugs that were not caught by unit testing logic such as that used in Python projects within the study. To conclude anything more I would need the data not present in the article, such as exactly what types of errors we caught or missed, etc.

2. the conclusion of the study "makes an unwarranted equivalence of all languages that have 'static type checking'"

It doesn't. The conclusion about the static type checking vs. unit testing might not be backed by enough solid data, but the conclusion makes no claims about languages, beyond specifying which languages were used in the study.

3. the claim that "this benefit applies to all languages with static typing" is "precisely what" the conclusion "says".

No occurrence of any phrase even remotely resembling the quote can be found in the article. Saying "this is precisely what it says" means "you'll find that phrase or one very similar to it in the text". Maybe you were trying to claim that "this is precisely what it means", but it's definitely what it "says".

All in all, the sweeping generalization about the concrete languages was introduced by you. My guess is that this is because you were, like me, frustrated by the vagueness of the article. I would have loved seeing more concrete data. Saying "X types of errors were found" is not as good as saying "the following types of errors were found" and that's just the start.

comment 14y ago · link · parent

> That is precisely what it says

This is a very strong claim and it's false. The article doesn't say that anywhere. You interpret it that way.

I would hazard a guess that presenting your own interpretation as fact is what brought on those downvotes you complain about below.

comment 14y ago · link · parent

It's precisely the other way around: ++x is a pre-increment and x++ is a post-increment.

comment 14y ago · link · parent

Any plans for providing Android app too?

comment 14y ago · link · parent

Flagged as a duplicate. Please stop sneaking duplicates past the filter through tricks such as replacing "http" with "https".

Previous submission: http://news.ycombinator.com/item?id=4106269

comment 14y ago · link · parent

These delusions come from experience with watching programmers flop around like fish out of water whenever some layer of abstraction they took for granted starts "leaking".

I honestly don't get this attitude in our industry. Nobody tells a general practitioner, "Nah, you don't really need to know what comprises a living cell. You most likely won't even need to drop down to that level."

Just because you don't need to do any low level work, doesn't mean you shouldn't learn anything about it.

comment 14y ago · link · parent

Yeah, and those shoes totally don't match that purse! What an outrage!

Seriously, if you're prepared to throw out the whole language based on what its syntax resembles, your decision-making process might need a bit of work.

comment 14y ago · link · parent

I don't know about others, but here's an extract from the article you linked that explains why I have blind spots:

Those who have switched to the SAE's approach swear by it, however, some drivers can't adjust to not using the outside mirrors to see directly behind the car and miss being able to see their own car in the side mirrors.

The reason I need to see a bit of my car in the side mirror is because I need to know not only what is behind me, but also where it is in relation to my car.

comment 14y ago · link · parent

From my personal experience, the two main challenges when it comes to making video games are:

1) It's a multidisciplinary effort. Unless you're someone with multiple talents, you need to put together a team to work on it. You might try to pull it off all by yourself using free resources you can find on the Internet, but it's next to impossible to make a truly great game that way.

2) The biggest amount of work will be spent on "polishing" things. Dotting the i's and crossing the t's, testing your levels and tweaking them, all that stuff is a lot of work. And videogame players are a lot less forgiving than other application users.

comment 14y ago · link · parent

If it's open source, then git/svn/cvs pull a copy of the repo and read the code. No need to interrogate the guy.

While I understand what you're saying here, I can't help but think of how many times my co-workers asked me something they could have easily looked up via Google. I can easily extrapolate that to a border guard, especially if there's an added benefit of harassing a guy you don't like.

comment 14y ago · link · parent

I wonder just how much I'm overreacting by feeling disgusted about the way that Asperger's, ADD and stuff like that are suddenly a thing of fashion. It seems to be a trendy thing for journalists to discuss and a sort of a fashion statement for geeks.

Maybe I'm wrong, but to me this is a rather simple matter: there are great people who happen to have Asperger's syndrome, ADD, dyslexia, autism or what have you, but unless someone proves some sort of link between their greatness and things they were diagnosed with, then that's just what it is -- people who happen to be both great and have one of the above.

comment 14y ago · link · parent

Maybe I'm just too cynical, but I see that as a form of passive aggressive manipulation. The way I read that kind of comment is "I know the mob will downvote me instead of discussing the topic; you don't want to be part of the mob, do you now?"

comment 14y ago · link · parent

I think that answer deserves partial credit ;)

I believe that the reason people need to know these things is not because they should be playing Russian roulette with them, but because they need to know what's going on when things go accidentally wrong.

comment 14y ago · link · parent

I own this one: http://www.amazon.com/The-Art-War-Sun-Tzu/dp/0385292163

I liked the interjected additional content it includes, but there are people who hate it, so YMMV.

comment 14y ago · link · parent

that linkedin profile shows a series of job, each of them lasting less than 1 year. That's a bit of a concern.

Can someone please explain why this is a concern? I've also had a series of jobs lasting usually less than 18 months. Whenever I witness people judging someone as a "job hopper", I wonder why they do it.

The only thing that comes to my mind is the idea of "loyalty", but just looking at dates won't give you any idea of why the I changed jobs as often as I did or whether I made sure before leaving that the rest of the company could pick up my work.

If anyone can share some deeper insight or a different point of view, I would be most interested in reading about it.

comment 14y ago · link · parent

Get real! ;)

I can just imagine promotional tweets gone wrong, e.g.:

"Get your tickets to Blind Guardian concert! Only 500 left!"

comment 14y ago · link · parent

Cleverness like this makes you feel warm and fuzzy inside right up to the point where someone decides to actually pass that second argument to your function.

comment 14y ago · link · parent

You missed the point. Your original comment was an oversimplification of how people interact, similar to the argument "If you're not doing anything bad, you have nothing to hide."

The way people interact with other people can not be reduced to a finite set of values, such as "friend or not friend" or "family member, lover, friend, acquaintance, co-worker". In other words, this is not a Facebook vs. G+ dilemma.

The problem here is the fact that Facebook has, yet again, limited the way we interact with other people by imposing their own structure and rules: if you don't want a person to know you're paying attention to them, don't pay attention to them.

Your proposed solution of "don't add them as a friend" is even more restricted. Maybe it's your way of interacting with people, but I don't see how it's justified to try to impose it on everyone else.

comment 14y ago · link · parent

For me it's the latter. I learned to code on a US keyboard, because that was the only layout we had in Yugoslavia back in the day. Then I came to live in Chile, where you can't even find a US keyboard, and had to get used to not caring about what's written on the keys.

comment 14y ago · link · parent

Hey, Jeff, here's another way you could look at this:

"I wish I'd thought of [this]... The need for people who can read and write has never been greater. This is a fabulous product at the right time" -- Tim O'Reilly, Founder and CEO, O'Reilly Media

"A young man asked me for advice for 'those who aren't people who can read and write'. I said he should try to become a person who can read and write" -- Fred Wilson, Partner, Union Square Ventures

comment 14y ago · link · parent

As long as we're having fun with the analogy: Whoever pelts me with mud is going to be lucky if I just flip them off.

comment 14y ago · link · parent

I was going to take your argument a lot more seriously, but then I came to this part:

fortunate enough to be endowed with a highly intelligent brain

That's just taking it too far. By that same logic they were fortunate that, about 2 billion years, certain bacteria and algae began to appear and thus we have life on Earth today.

If you think did anything alone in your entire life, you are sorely mistaken.

We're all standing on the shoulders of the giants. That doesn't mean we should spend our time looking down and exclaiming "Wow, these guys sure are tall!" We should be aware of where we are, grateful that we're there and make the best of it. And that means look forward and up, not down.

Everybody around you deserves respect because they are the co-authors of your life.

That's where you're wrong. It's true that everything in my life factors into my personality and my measure of success. That doesn't automatically mean that everything and everyone around me deserves my respect.

Like it or not, certain levels of respect have to be earned. Likewise, respect can be easily squandered.

comment 14y ago · link · parent

Articles like this keep reminding me of Billy Connolly's exclamation of "Fuck political correctness!" Sometimes you should be free to call a spade a spade.

Recently I have been seeing leaders in software communities regardless of being correct or not, basically blowing up on other software developers on the internet because of something _stupid_ they have done or said.

That's only because you've started paying attention recently and that is only because you, like so many people (myself included), get your dose of interesting news from places like Hacker News, instead of participating directly in, say, kernel development.

Let's face it, it has become trendy to criticize outstanding people with outstanding accomplishments for being rude. Yeah, okay, I get it: nobody likes being humiliated. Plus, everyone has been humiliated at some point in their life and isn't it just incredible how, after all that time, it still smarts to remember it?

It's easy to jump to conclusions and on the bandwagon, easy and righteous to join the mob with pitchforks and torches. It's a lot harder to put yourself in the shoes of "the rude dude" and wonder whether you have all the context you need in order to judge him or her.

REALLY?! Just because you were fortunate to work on something that is widely used and appreciated does that give you the right to openly belittle people's efforts and work.

The short answer? Yes. The long answer is a bit more complicated, but since you and so many others seem to like simplifying things, I thought I would offer the short answer first.

The long answer is that I've seen that kind of reaction firsthand from people who have built something incredibly complex from scratch, know it inside out and get the same well-intentioned but poorly thought-out suggestions all the freaking time. It doesn't stop there, unfortunately. Those kinds of things tend to get debated to death, because bikeshedding is so alluring. More often than not, the person who offered the suggestion in the first place will get offended when their suggestion gets tossed out summarily, without realizing that they're far from first to come up with that idea. And some of those who get offended will react badly and even abusively. So in the end, the guy who built the damn thing decides that maybe they don't have to take that shit anymore.

Yeah, I know, Mom and Dad taught me to be polite to everyone and never be rude and say "please" and "thank you" and two wrongs don't make a right and I shouldn't sink down to "their" level and all that. You know what? I can't imagine being as accomplished as Linus or Crockford and turning the other cheek all the time, not when there are people who will write stuff like "Just because you were fortunate to work on something that is widely used and appreciated". Nope, they were not fortunate. If you think that's luck, you should spend your time playing lottery.

And then there's the assumption that every time we see the kind of reaction Linus is famous for, it's because someone feels entitled to "belittle people's efforts and work". Never mind that it might be a situation in which no effort or actual work took place. Never mind that it might have been something truly dumb and a little research would have revealed it to be a staggeringly bad idea. Hell, never mind that it could have been a troll and that seeing a reply for which there is no original message should have indicated to you, as a reader, that there's a missing piece and that you simply don't have enough information.

No, let's all be self-righteous instead, because -- to paraphrase xkcd -- someone was rude on the Internet.

comment 14y ago · link · parent

My best experience so far has been with a combination of SmartGit and TortoiseGit. SmartGit doesn't have interactive rebase and doesn't allow you to specify refspec when pushing. I've had to use the former occasionally and I use the latter all the time, because we work with Gerrit.

Of course, you could throw TortoiseGit out of this whole story if you don't need that kind of stuff or if you're comfortable with using command line for certain details.

comment 14y ago · link · parent

Sorry, I didn't mean to imply I wanted precise information. Their guesstimate is going to be better than mine, which is why I would ask them for that info. I'm just not comfortable with pulling data out of my lower dorsal region. And I guess that's the part of how I think.

comment 14y ago · link · parent

Okay, have you been following closely Linus or Crockford? I know I haven't, which is why I always start from the position of "I don't have the full context."

My initial assumption is: Linus/Crockford/whoever-else-is-coming-across-as-a-cranky-old-person has seen whatever-he-is-berating or something very similar before, not just once but ridiculously often. That makes the reaction quite understandable and justified.

Plus, let's face it, we all want to be free to react like that when it's deserved ;)

comment 14y ago · link · parent

I've never been asked a to solve a Fermi problem in an interview, but I would most likely require that the interviewer give me the data I need. In the golf ball example, I would ask for diameter of the golf ball, dimensions of a bus, etc. Otherwise they're just asking me to prove that I have seen a golf ball up close, that I've been riding on double-decker buses and that I'm decent at measuring physical objects with my eyes.

comment 14y ago · link · parent

While I totally agree with you, this example goes beyond that. Whether it's in public or in private, calling someone a "retard" and asking them how they could do something "so fucking stupid" is inexcusably abusive and a reason to quit on the spot, at the very least.

comment 14y ago · link · parent

I wish we could find a way to make non-programmers understand this. Just because programming doesn't involve moving lots of heavy stuff and putting it together physically, doesn't mean that there are no rules about how software needs to be built.

People tend to focus on the happy fact that you actually can change your fundamental assumptions in software without loud, ugly demolition sounds, but they tend to stay blind to the fact that it still involves a lot of work.

It's partly our fault, too. We're the ones who have been promising that "this time it'll all work out with this fancy new methodology we've discovered". I've seen a lot of people assume that "agile" means "clients can change their mind as often as they want and we'll take it in stride" and that we'll do so at zero cost.

comment 14y ago · link · parent

Okay, I don't get it: why does everyone assume that having the same syntax for trees automatically means you have to put everything in the same tree?
1
303132
46