Readit News logoReadit News
kingofheroes commented on Why Elixir? Common misconceptions   matthewsinclair.com/blog/... · Posted by u/ahamez
ngruhn · 8 months ago
The only thing putting me off is the lack of static typing. But I'm open to be convinced that this doesn't matter.
kingofheroes · 8 months ago
Pattern matching makes up for the lack of static typing for me. Combined with guard clauses it feels even stronger than static typing.
kingofheroes commented on Why Elixir? Common misconceptions   matthewsinclair.com/blog/... · Posted by u/ahamez
rendaw · 8 months ago
I tried it for a job interview, and it was awful - because of no static typing. I spent most of my time tracking down dumb type errors, compounded by various language footguns (I can't remember exactly, but I think for example making a typo on a field name in a for loop condition is treated as "condition false" and so the for loop just doesn't do anything, no error).

It seems like the Elixir/Erlang community is aware of this, as is Ruby, but it's a rather large hole they have to dig themselves out of and I didn't feel particularly safe using the tools today.

I've heard a lot of good things about the Erlang runtime and I did really like Elixir's pipe operator, so it was unfortunate.

kingofheroes · 8 months ago
Pattern matching makes up for the lack of static typing to me. It provides nearly all the same benefits especially when used with guard clauses.
kingofheroes commented on Why Elixir? Common misconceptions   matthewsinclair.com/blog/... · Posted by u/ahamez
kingofheroes · 8 months ago
I just started learning Elixir recently and I'm honestly loving it. Pattern matching is awesome and how it approaches concurrency and async work was so easy to wrap my head around. Pragmatic Studios has a great tutorial.
kingofheroes commented on My experience with Claude Code after two weeks of adventures   sankalp.bearblog.dev/my-c... · Posted by u/dejavucoder
hamandcheese · 8 months ago
For me the best part about AI is that when I'm feeling lazy, I can tell the AI to do it. Whether it gives me gold or gives me shit, it doesn't matter, because I have now started my work.
kingofheroes · 8 months ago
I've had great success using AI to translate my thoughts into actual words on a page (not just for software development, but also amateur writing). Bridging the vocabulary gap.
kingofheroes commented on Our sister died because of our mum's cancer conspiracy theories, say brothers   bbc.com/news/articles/cre... · Posted by u/muglug
iamthepieman · 9 months ago
My brother passed away from AML (acute myeloid leukemia) almost two years ago. His quality of life was dismal on treatment, he was constantly vomiting, mouth sores, unable to sleep but very tired, couldn't see his two young children and locked away in a hospital ward. His wife had to make a huge effort to see him consistently because she couldn't bring the kids and had to find babysitters. He made the decision to stop treatment because of that. His chances were low anyways and he pursued 'alternatives' because it was better than nothing. Even if the main benefit was to make him and his family feel like he wasn't completely giving up.
kingofheroes · 9 months ago
Your situation is different from the one in the article. In your brother's case, it was end stage and so forgoing treatment to improve QoL makes total sense. In the article the sister actually had a high chance of survival (so opposite of end stage) but still chose not to undergo treatment.
kingofheroes commented on Membrane: Media Framework for Elixir   membrane.stream/... · Posted by u/lawik
kingofheroes · 10 months ago
I recall doing a tutorial for Exilir, the Phoenix framework in particular, a few years back and I actually enjoyed using it. Anyone know any good up-to-date tutorials someone could use?
kingofheroes commented on Plain Vanilla Web   plainvanillaweb.com/index... · Posted by u/andrewrn
bradly · 10 months ago
I sell urns online and my website just has an email link. No shopping cart. A brick-and-mortor urn shop would never have a shopping cart, so why would a virtual one?

I've purchased specialized woodworking tools online that simply involved filling out a form. I later received the parts with an invoice to send payment. You can simply not pay if you choose not to.

There are so many way to do commerce both on and offline and if you squint and look closely you'll find interesting people doing interesting things all around you.

kingofheroes · 10 months ago
Two local businesses I frequent (one for baked goods and another for coffee beans) use mailing lists for membership and ordering. Only "drawback", if it even is one, is they rely on word-of-mouth because I had no idea they existed until I saw them mentioned in a thread on a local subreddit.
kingofheroes commented on Handwriting activates broader brain networks than typing   psypost.org/handwriting-a... · Posted by u/onnnon
kingofheroes · a year ago
I always found handwriting notes to be more effective at getting my brain to actually remember them compared to typing. When it comes to writing though I'll always pick the keyboard.
kingofheroes commented on A cryptocurrency scam that turned a small town against itself   nytimes.com/2025/02/19/ma... · Posted by u/lxm
JKCalhoun · a year ago
It's also a more poignant tale of a small, community where (thanks, Internet!) international grifters could nonetheless inject themselves.

Or, more cynically, this guy was destined to be scammed and the internet in short order put him to the test. One has to think though that if it were a local scammer we would not be talking tens of millions of dollars.

kingofheroes · a year ago
Its interesting to think about it this way. Like, this community's "financial opsec" was their isolation from the rest of the world. No one on the outside can attack them if no one can even point out the town on the map. The internet makes that approach impossible.
kingofheroes commented on Why can't we remember our lives as babies or toddlers?   theguardian.com/science/2... · Posted by u/bookofjoe
kingofheroes · a year ago
The earliest memory I have, that I actually consider a memory and not just a weird dream, is a sensation of feeling very warm and comfortable and then suddenly feeling very cold and upset and wanting to go back to the warm place. I'd like to say this was a memory from when I was born, but I honestly have no clue when this happened as I couldn't see anything. I think the reason this memory stuck with me was just the stark contrast between "this is nice" to "this sucks, put me back".

u/kingofheroes

KarmaCake day92June 22, 2022View Original