r/programming • • Mar 20 '14

Facebook introduces Hack: a new programming language for HHVM

https://code.facebook.com/posts/264544830379293/hack-a-new-programming-language-for-hhvm/
802 Upvotes

526 comments sorted by

View all comments

163

u/x-skeww Mar 20 '14

"There are two hard things in computer science: cache invalidation, naming things, and off-by-one errors."

"Hack" is a terrible name. It's about as bad as it gets, really. Just imagine searching for anything. Just take your last 10 programming related search queries and replace the language with "hack".

That name is completely ridiculous.

43

u/hrefchef Mar 21 '14

You obviously don't program in rust. You either get rust removal tips, or people talking about the new Rust game that came out.

7

u/Aatch Mar 21 '14

Or the type of fungus. That's less common of a result though.

65

u/[deleted] Mar 20 '14

Yeah. I thought 'Go' was a bad name until I saw this one. So far, however, nothing beats this for clusterfuckery in naming.

12

u/quindarka Mar 21 '14

I always use "golang" when I search for Go related stuff.

It helps, a little.

2

u/UnreachablePaul Mar 21 '14

Just a little

5

u/MrPopinjay Mar 21 '14

That's amazing.

→ More replies (1)

9

u/I_Write_Good Mar 21 '14

I thought processing was pretty rough!

19

u/AsletPT Mar 20 '14

You'd have to type hacklang not just hack...

3

u/snowe2010 Mar 20 '14

also terrible because it's already the name of a language used in "Elements of Computing Systems"

0

u/[deleted] Mar 20 '14

[deleted]

33

u/x-skeww Mar 20 '14

As I already said elsewhere:

It's way worse than "go", because "hack" is a programming related term.

50

u/DevestatingAttack Mar 20 '14

New language names: "Variable", "Array", "Instantiate" and "library"

34

u/x-skeww Mar 20 '14

"THE" and "AND" are also still available.

23

u/sf3e Mar 21 '14

-"programming" is a good name (note the minus and the quotation marks :)

→ More replies (1)

10

u/Die-Nacht Mar 21 '14

How about "OOP"? Google searches will be awesome.

2

u/[deleted] Mar 20 '14

And can you imagine if somebody came up with single letter names like, say, C. Or names with punctuation, like C++ or C#. Nobody will ever find them!

14

u/x-skeww Mar 20 '14

You couldn't search for "C#" or "C++" in the past. Search engines had to add exceptions for that.

But you can't do that kind of thing with "hack", because it's ambiguous and not "just" something you can't search for. It's not just a common word, it's a word which is already used in this kind of context.

It's kinda like "array" or "variable" (taken from /u/DevestatingAttack's example).

3

u/[deleted] Mar 21 '14

I was being mildly sarcastic. I'm sure, if it's popular, search results involving the language will rise up the rankings. Note too that search results tend toward the technical. Search for the words "ruby" and "python" and the first pages of results are about the languages, not the gem and snake respectively. The first pages of image results, however, are about the physical objects. Search for "go" and the board game is 1st, programming language second, and, for me in the UK, "Go Outdoors" the camping and outdoor retailer is third. There is no definition of the English word.

→ More replies (2)
→ More replies (2)

1

u/kazagistar Mar 24 '14

Golang is a workaround name. Hacklang is longer to type. Thus its worse.

2

u/[deleted] Mar 27 '14

C++ and C# are also horrible for searches. I remember hearing about the D language. I literally laughed and said "who names a language after a letter... Oh C."

→ More replies (1)

2

u/[deleted] Mar 21 '14

They should have called it HPH, for Highly Polished sHitpile. But I'm just a hater.

1

u/neoform3 Mar 22 '14

Is "c" any better?

Type "c string" into google and you'll get underwear.

3

u/x-skeww Mar 22 '14

C appeared in 1972. It's the successor of B. They surely hadn't search engines in mind.

Anyhow, yes, it's still better than "hack". "C" + programming related term will generally yield useful results.

"C string" leads to underwear, because that's a type of thong.

You don't get that kind of ambiguity with other search terms though. E.g. C array will work just fine.

1

u/zefcfd Mar 24 '14

Let's not forget googling "chef recipes"

→ More replies (5)