HN user

JediLuke

23 karma
Posts0
Comments13
View on HN
No posts found.

I’m just gonna say this - Elixir flat out does not need strong typing. People who think it does, need to learn how to use structs, guards & change sets properly. 99.9% of the time we are interested in “Accounts” or “widgets”, if it’s important enough to be in your domain model you can spend 2 minutes creating a struct for it, boom no need of types. I realize some very smart people work on Gleam and such, and I don’t really want to claim I know more than them, but seriously I think if you find yourself reaching for types in Elixir you just don’t grok that it’s a high-level language and types will only get in the way! Stop thinking like a C/python/JS programmer, start thinking like a prolog/lisp programmer!! We want to get away from worrying about ints vs floats and deal with high-level constructs that match our domain model, NOT regress into strict typing.

I’m a millennial so this is largely speculation, but I think in the 60s-90s music was all about finding your tribe (as in, social group). That trait still exists and is bigger than ever, but it’s moved to social networking. MySpace was a very important link in the chain in this respect, because it bridged the gap between using your taste in music to finding other like-minded strangers online.

IPv6 and phones (many people never allow their phone to get so flat it dies, and if it does it’s soon recharged) ought to mean that every person in the world can host their own website effortlessly. The tech industry (telco & Google/Apple) make this basically impossible, so we (the tech industry) are the ones to blame IMHO.

The ‘Scenic’ GUI library written in Elixir handles all these problems very elegantly, and Elixir is completely functional (no traditional OO, classes or objects)* and immutable.

*of course Elixir/erlang is actually OO done right (actor model) but that’s another story

At least stocks/companies have a balance sheet with real assets. Even if the whole company shut down (and wasn’t bankrupt) investors would still get at least some of their money back after liquidation.

Right now congress is debating how to spend 1 trillion in infrastructure, and I feel that most of it will go to pointlessly laying more concrete across the continent. I would like to see some kind of secure citizen-network, separate from the internet, restricted in functionality to just basic services, a business directory, and a message board that requires a crypto cert to identify yourself so you can make a post/comment. Solve the misinformation problem, the cybersecurity problem, train a generation in tech, kickstart the local supply chain AND stimulate economy all at once!