I'm very interested in Elixir but I'm having trouble understanding the benefit of the 'upcase' example at the end of the article. Compared to a single function with a conversion table, a function per character seems like a tremendous amount of overhead. Is the purpose of implementing upcase this way to make it more easily parallelizeable in the map/reduce sense?
Elixir is for programmers
51–53 of 53 posts
Re: Elixir is for programmers
#52If you liked the nice simple assert, you can get an imitation in Python tests using py.test: http://pytest.org/latest/assert.html Source code: def test_function(): assert f() == 4 Output: def test_function(): > assert f() == 4 E assert 3 == 4 E + where 3 = f() Here's how it works: http://pytest.org/latest/assert.html#assert-details -- when importing the test module, all simple asserts are rewritten (which has some li…
Re: Elixir is for programmers
#53FWIW, Groovy also has those smart asserts. They're nice. Not a big enough deal that i'd start a feature list with them, but nice.
Groovy seems like such a... Forgotten language, sometimes. For what it's worth, I've always really liked it. And I hate Java with the fire of one thousand suns.
5. www.infoworld.com Groovy breaks into top 20 list of programming languages
8. www.eweek.com Groovy Programming Language Sees Major Boost in Popularity
22. cacm.acm.org Groovy Programming Language Sees Major Boost in Popularity
24. jaxenter.com Groovy makes debut entry into programming language top twenty
30. glaforge.appspot.com Interview about Groovy's popularity boost -- Guillaume Laforge's Blog
But Groovy's "surge in popularity" was probably timed to coincide with a due diligence investigation on Pivotal Inc, or someone there selling a consulting contract.
"After a long discussion with one of the Tiobe index readers, it turned out that the data that is produced by one of the Chinese sites that we track is interpreted incorrectly by our algorithms. So this was a bug," Janssen said. "After we had fixed this bug, Groovy lost much of its ratings." http://www.infoworld.com/t/application-development/c-pulls-a...