News for hackers. Stuff that matters.
Re:Joy of Elixir by jondubois on Monday July 31, 2017 @06:20PM (#14896384)
Why is there so much Elixir hype on HN at the moment?

HN shouldn't be used as a propaganda hype machine. I've seen all the language hype cycles,

Year 1:

PHP sucks! Node.js is awesome! Everyone must use Node.js!

Year 2:

Node.js sucks! Go is awesome! Everyone must use Go!

Year 3:

Go sucks! Rust is awesome! Everyone must use Rust!

Year 4:

Rust sucks! Elixir is awesome! Everyone must use Elixir!

... And of course you get the odd Haskell article every so often.

Communities are promoting their stuff too hard - They are setting up their users for disillusionment and disappointment.

Re:Joy of Elixir by obstacle1 on Monday July 31, 2017 @06:45PM (#14896536)
> They are setting up their users for disillusionment and disappointment.

There's nothing wrong with communities promoting themselves. If people don't know about your thing, they can't try it to make their own decisions about whether or not it is worth using.

And it isn't yours or a community leader's or a maintainer's job to protect users from disillusionment and disappointment. If someone actually has a hard fall from realizing that a programming language isn't as great as people said it might be, there are way bigger issues there than the programming language at play -- on the side of the disillusioned, not the language/community.

Re:Joy of Elixir by bhauer on Monday July 31, 2017 @06:43PM (#14896527)
I too feel there is a generational hype cycle at HN. However, I don't see much in the way of "language N sucks" as a precursor to "everyone should use language N1!" Maybe I am just blind to the negativity, but in general, what I see with each hype generation is only the positive side: "everyone should use language N1!"

I suspect with any given hype generation—with each trending language—we're going to see a lot of positive messaging as the fans up-vote articles pertaining to the new hotness. Meanwhile, those who disagree (or simply don't care) probably don't see much value in taking the time to evangelize their disagreement. I'm not upvoting Elixir content, but I'm certainly not going to downvote it either. Why should I care if other people enjoy a platform I don't care about? Good for them!

Also, perhaps as everyone is hyping language N1, those who are using N are simply too busy using N and making a living to keep layering on the hype.

Re:Joy of Elixir by jondubois on Tuesday August 01, 2017 @03:17AM (#14898504)
Adding more programming languages just fragments the job market further. That might mean fewer jobs available for other languages and allow software developers less movement between companies.

How many times have you seen a job advert and you think oh wow that looks interesting, I'd like to work there... Oh wait, they use X on the backend, I don't have any previous commercial experience with X so damn, I can't join the company. The more programming languages there are, the more often this will happen. The time for creating and promoting new programming languages is over, we have to move forward and work with the languages whose ecosystems have had 20 years to evolve - This is where the real value is.

I'm certain that using Elixir over Haskell, Go or even JavaScript/Node.js adds no extra value to any given project... It only restricts the pool of potential job candidates.

If you use any programming language for long enough, eventually, you will be very productive with it - The language itself doesn't really matter.

Its just a waste because there are already so many languages optimized for the server-side use cases which Elixir aims for and which are already doing a great job.

Re:Joy of Elixir by klibertp on Tuesday August 01, 2017 @08:53AM (#14900106)
> [...] allow software developers less movement between companies.

> How many times have you seen a job advert and you think oh wow that looks interesting, I'd like to work there... Oh wait, they use X on the backend, I don't have any previous commercial experience with X so damn, I can't join the company.

Wait, just who are you, then? An intern fresh out of high school? Or do your circumstances impair your ability to learn (I hope I'm not being insensitive)? Are you a programmer?

I ask because it never happened to me, and I never even heard of something like this from non-junior programmers. If the company I'd like to work at uses a language that I don't know (there's actually pretty decent chance if they use something mainstream) I believe in most cases it would be enough to tell them I'll learn the language in a week and after a month I'll be writing decent quality production code. There is no reason - except if I do bad in the interview, maybe? - to not believe me, as that's generally accepted as a standard timeframe for such things. In my case that's a lie, as I can get started with a language in a matter of hours and start writing production code after a few days - but I admit I'm unusual on this.

> I'm certain that using Elixir over Haskell, Go or even JavaScript/Node.js adds no extra value to any given project...

Programming languages are being created for a reason and "adding value" in some kinds of programming tasks is a prime concern when designing them. Different languages make different choices and in effect work better or worse in given circumstances.

Replacing Node with Elixir (any BEAM lang) would immediately give you a true SMP support without using spawned processes, for example, and could possibly shorten and simplify your code if you have many communicating, long-lived services in there. That's an added value, right? The saying "use the right tool for the job" fits here perfectly.

> If you use any programming language for long enough, eventually, you will be very productive with it - The language itself doesn't really matter.

Exactly - so why limit yourself to a single language? How long do you think you will be working? What will you do once you've mastered a language and realize that you have 20 more years to work with it? Wouldn't that make you bored after a while?

> Its just a waste because there are already so many languages optimized for the server-side

There is not a single language which offers the same mix of features as Elixir. It's perfectly possible to have a system which would benefit from the just right mix of features and then not having these features is a tremendous waste as well.

It's not like I don't understand where you're coming from: in my youth, when I was learning C++, I also was frightened by the complexity and believed that it will take years to master it. And it did take years, mostly because it's C++ and I was alone. However, the next language I learned - PHP if memory serves - took me just a couple of months to get good at. Then, when I passed the 20 "langs known" mark, I realized that learning languages is no longer a problem at all and instead made it into a hobby.

In other words, yes, you need some level of understanding of programming to be able to efficiently learn new languages. I think it is better to strive to reach this understanding instead of assuming new languages are bad.

Re:Joy of Elixir by jondubois on Tuesday August 01, 2017 @07:26PM (#14906456)
I've been programming for 14 years in about 10 different programming languages... It's a struggle for me to list them all (let alone learn them). I only really needed two of them; all the others were a waste of time because they're so similar to each other.

Learning new languages is not hard for me, I can pick up a new one in a single day and my code could fool someone into thinking that I've been doing it for a while (if you ignore development speed)... But unfortunately that's not true mastery, you can only truly master a language or framework after working with it full time for a couple of years.

It takes a long time to absorb all the intricacies of a language to produce really good software.

You could spend a few years studying French and think that you know it all by the end just because you can talk fluently, but in reality you couldn't even write a basic child's novel, let alone a top-seller, or a Pulitzer prize novel.

It depends on what kind of work you want to produce.

Re:Joy of Elixir by klibertp on Wednesday August 02, 2017 @04:01AM (#14908743)
> 10 different programming languages... It's a struggle for me to list them all (let alone learn them).

That's still very little. You can take a look at my site (in profile, the "Languages" page) where I listed PLs which I learned. There's 126 entries on that list (to save you a couple of clicks). I'm not boasting - just offering a different perspective.

> all the others were a waste of time because they're so similar to each other.

If they are so similar, then learning them should be very easy and quick, no?

> I can pick up a new one in a single day and my code could fool someone into thinking that I've been doing it for a while (if you ignore development speed)...

In a single day? So it's not that much effort, is it? Assuming, of course, you won't hit the language which is different enough and your intuitions and experience become useless.

> you can only truly master a language or framework after working with it full time for a couple of years.

You're wrong, in part.

It takes a lot of time to master your first language and a few others in the beginning. Later it can take quite a lot of time to learn your first language with a paradigm you're unfamiliar with.

But languages are similar to each other, can be classified into types and studied in bulk. With enough languages (and frameworks) learned you develop an intuition of what happens and how. With enough different languages known, you develop an intuitive feel for what's the best way of solving a problem in a given language. There's also a bit of theory to be learned, but once you have it down there's really nothing that can surprise you.

Personally, I've had the hardest time when learning J. There are exactly two other languages which are similar (APL and K) and they both are even harder to get into. So the reverse is also true: if you don't know enough about a certain kind of languages, you're going to have a hard time.

In the end, I think we disagree on what we consider mastery. I don't believe you have to remember all the finest details of implementation to say you've mastered the language - as long as you can easily drop down to the compiler or interpreter source, read it and understand without effort. It's all pretty easy then, believe me.

Re:Joy of Elixir by bsaul on Tuesday August 01, 2017 @05:38AM (#14899040)
don't understand why you got downvoted, it's a pretty legitimate concern.

You may however see the whole thing a bit differently :

- node popularized single loop event on the server side, which is great for fast low cpu request processing

- go evangelized simple design, coroutines , unique code formating, and has arguably one of the best stdlib. That's still true today and it's great

- Rust made people realize writing concurrent truelt safe code was possible. Huge advance.

- Elixir helped the community focus again on actor + message passing concurrency. It's fantastic.

All of those concepts are beneficial to learn, for you as a programmer, no matter which language you use.

If for example look at swift evolution, you'll see the current threading model (based on event loops, like node, because of iOS) discussed and compared to the actor model ( like erlang / elixir), but also that some web framework reimplemented go-style concurrency. You'll also see that they're talking about adding semantic for detecting memory sharing patterns (much like rust).

If you've followed all the discussions on those languages for the last two years you know exactly why those conversations are taking places. So all in all it's a good thing communities are advocating the strenghts of their language. It helps everyone improve.

Re:Joy of Elixir by pessimizer on Monday July 31, 2017 @07:22PM (#14896726)
https://news.ycombinator.com/item?id=1919897

Hacker News is interested in Erlang; it should be in the rules.

Also - just judging by the head of the linked list - PHP programmer?

Re:Joy of Elixir by acjohnson55 on Monday July 31, 2017 @06:35PM (#14896477)
Eh, just don't upvote it. Or upvote other PL stuff you do like.
Re:Joy of Elixir by dcu on Monday July 31, 2017 @07:36PM (#14896778)
Go is still great and stronger every day ;)
Re:Joy of Elixir by 43224gg252 on Monday July 31, 2017 @08:09PM (#14896939)
Yeah it's pretty obvious what's going on...