1,567 karma · joined Nov 23, 2016 (10y ago) · 686 submissions
comment 3y ago · link · parent
You know Apple's base models have a history of being insufficient for your use-case and that upgrades are pricier than you'd like.
You see the cost of the base model and are upset when you find that you will need to spend more than that base cost to get the model you want.
Apple devices and upgrades are costly, without a doubt. But there is clearly a market for whom the price and capabilities of the base model is more than enough.
comment 3y ago · link · parent
Once you get away from those things get sparse. Several really common libraries have glaring omissions (or entirely missing) module docs, and others just barely cover the common web use case.
It’s not uncommon for me to have to open the source code to try and understand what some function actually does.
Elixir is still my language of choice and has a better docs ecosystem than most languages but the community demonstrates a bit of a blind spot also.
comment 3y ago · link · parent
iex> for n <- 1..4, do: n*n
[1, 4, 9, 16]
Or for your example: iex> l = 1..3 # equivalent to [1,2,3]
iex> Enum.reduce(l, fn item, acc -> acc + item end)
# or
iex> Enum.reduce(l, &(&1+&2)
# or the built in
iex> Enum.sum(l)
# all return:
6
https://elixir-lang.org/getting-started/comprehensions.html
https://hexdocs.pm/elixir/1.12/Enum.html#reduce/2
https://hexdocs.pm/elixir/1.12/Enum.html#sum/1None of which take away from your point though: it's definitely a different mental model than you use for Python/Go/Javascript.
comment 3y ago · link · parent
We could certainly debate the objective merits of Elixir vs other languages (which seems to be the primary discourse in this thread and elsewhere) but hearing subjective developer experiences is also critical.
It doesn't matter if Elixir is objectively better or not, if lots of devs who are exposed to it are having a hard time it's worth asking why.
In addition to developers not wanting to expend additional effort to learn a new language or paradigm, I believe there are gaps in the ecosystem especially around medium-advanced topics.
comment 3y ago · link · parent
Module design doesn't seem any harder than class design in JS or Python.
Do you mean the language is generally harder for non-developers? Or that Elixir is harder for JS/Python developers to pick up and write good code? Or something else?
Writing well designed Elixir code does seem to require a fairly different approach from most common OO languages, at least at a surface level. (Although IMO that's more because you can copy OO patterns you've seen before without thinking much about why they're good patterns than because good design in Elixir is much different from OO)
comment 3y ago · link · parent
We shouldn’t be leaving people behind but the idea is that we all benefit from an educated workforce.
There’s plenty of arguments to be made over the details but let’s not miss the big picture here.
comment 3y ago · link · parent
Can't remember if/how that routing was accomplished in the BEAM (Erlang/Elixir VM). It's definitely possible but you might have to implement it yourself.
comment 3y ago · link · parent
We've got big problems in our economy and income inequality is certainly one of them, but it's asinine to pretend that most individuals in society have not benefitted from technological progress.
comment 3y ago · link · parent
But there are absolutely numerous use cases where being able to display graphics on a screen (or even better interactively) is a massive benefit. Think of any sort of science that's better shown with animation than just a static image on a page for example.
comment 4y ago · link · parent
Example 1: Limit of 6 tickets per purchase. I buy 6 tickets, I invite 5 friends. I show ID at the door and it doesn't matter which 5 friends I bring with me.
Example 2: Same deal, but instead we're allowed 1 "flex" ticket in case someone backs out. Or some proportion allowed as flex.
Obviously this still allows scalping, but it seems less attractive for a scalper to have to attend with the people they're scalping to. Especially if you make 50% of the group show ID.
comment 4y ago · link · parent
Maybe I'm misunderstanding you, but isn't that the point of democracy? If enough people agree with your view then that's what gets implemented. The point of the parent is that you can't let people with the loudest voices and most free time abuse the system.
comment 4y ago · link · parent
I think the parent post is referring to the library example. At a certain point you don't get to keep the land around you from being used in any way other than it was exactly when you moved in.
Eminent domain is a different issue that should have a much higher barrier to use, and has likely been abused historically.
comment 4y ago · link · parent
The point isn't that the Earthquake Detection isn't impressive. Why do we have to deny Google any credit here? Is it just because they're a big tech company?
IMO it feels like another "I could build Dropbox in a weekend" comment.