HackerTrans
TopNewTrendsCommentsPastAskShowJobs

HerrBertling

no profile record

Submissions

Ask HN: Why isn't Phoenix/Elixir more mainstream?

91 points·by HerrBertling·il y a 3 ans·127 comments

comments

HerrBertling
·il y a 2 ans·discuss
41. Get up at 6:15-6:30. Take 15-20 minutes to wake up, brush teeth, toilet, drink some water. Put on workout clothes, do either 45 minute run outside (no matter the weather) or 20 minute kettlebell workout. Meditate for 10 minutes if time permits. Take a cold shower. Wake up wife + daughter if they aren’t awake yet. Prepare daughter for kindergarten, eat something in between. Start work after getting her to the kindergarten.

I just know I‘ll have a better day if I can slot in workout, meditation and cold shower.
HerrBertling
·il y a 2 ans·discuss
Looks great. Tiny UX nitpick: The light/dark mode switch can be simplified. I am in one of those states already so this is basically a toggle. No need to show two options in a modal.
HerrBertling
·il y a 3 ans·discuss
I like datalist quite a bit for „poor man‘s autocomplete“ - you can dynamically fill it via JS and will get the suggestions shown in the completion fields above the keyboard on mobile and… well, something (?) on desktop. Not as nice as an autocomplete, but with way less issues re accessibility etc.

Edit: Forgot two things:

- You can disable the `fieldset` attribute to disable all inputs within. So properly nest your forms and you‘ll have a simpler way of controlling forms.

- Buttons can have a `value` attribute which works great to differentiate between various action paths for e.g. list items (delete, edit,…)
HerrBertling
·il y a 3 ans·discuss
Last thing I built is using SST for some lightweight recurring TypeScript lambda functions + DynamoDB for data storage. Plus a very simple one-page Remix + TailwindCSS frontend because deployment of that through SST is a breeze as well. It is the stuff I know and can easily handle.

For anything new, I'd try Phoenix to see what I can achieve with Elixir and a non-React/Vue frontend.
HerrBertling
·il y a 3 ans·discuss
I’ve definitely seen that talk - Katelynn, right? :D
HerrBertling
·il y a 3 ans·discuss
Thanks for the great reply, really appreciate it. I found the basic setup to be quite straightforward – using zsh which seems like a lucky choice now :D

I'm currently working on a backoffice software. You can do that with literally any language/framework. But as you mentioned, adding near-instant sync for different users would simply be a breeze compared to any backend with a React-ish frontend from what I saw so far. And I can totally see affordances for such a type of software going into this direction.
HerrBertling
·il y a 3 ans·discuss
Oh wow. I did not expect this question to gather THAT much feedback, but I absolutely did not expect you showing up in the comments. Thanks for your work – it brought me to appreciate the functional programming viewpoint even with a first few steps into the language. It is a way different viewpoint compared to what I see in my daily work and will surely influence how I code in the future :)
HerrBertling
·il y a 3 ans·discuss
Since I’m coming from the FE side - that’s exactly what is bothering me. I feel like Remix is a good step into the right direction, baking a backend-ish part of the stack into the FE. And crossing the networking gap in an elegant way. I see the same in Phoenix. Well, I guess I’ll fiddle with it for a bit and see if I can even handle the stack at all.
HerrBertling
·il y a 3 ans·discuss
Really appreciate your focus on economic reasons. That indeed makes a lot of sense.

I guess the gamble to use Elixir/Phoenix only pays off in certain circumstances and if your business grows in such a way that you can simply afford to hire more expensive devs in later stages of the journey.
HerrBertling
·il y a 3 ans·discuss
Very healthy way of arguing about the world. Have a nice weekend!
HerrBertling
·il y a 3 ans·discuss
That is correct, see https://www.tagesschau.de/wirtschaft/unternehmen/tesla-gruen... where it is mentioned in the third paragraph.
HerrBertling
·il y a 3 ans·discuss
The tagesschau.de article cites a paywalled article by the privately owned magazine "Stern" as source of all of this. Just saying.

Edit: Also, the main source of the reporting is the actual Amt (state office) that keeps track of workspace safety. Not that much wiggle room for truth/lies if you ask me…
HerrBertling
·il y a 3 ans·discuss
There is a lower bound, see my comment. Three days out or more (or death, that is…) needs to be reported, anything below does not.
HerrBertling
·il y a 3 ans·discuss
Loose translation from the article on tagesschau.de for clarification:

> In Germany, work accidents need to be reported if the person injured died in the process or cannot work for more than three days.

(https://www.tagesschau.de/wirtschaft/unternehmen/tesla-gruen...)

So nope, not band-aid accidents. Actual people being injured in such a way that they need at least three days off.
HerrBertling
·il y a 3 ans·discuss
It's small things and reassuring myself, most of the time. Sometimes I let it scaffold basic tests for React components ("assume a working Jest testing setup, use @testing-library/react" does quite some work there). Sometimes I have some logical conditions where it takes me a minute more than expected to make sure I get the logic. I'll have ChatGPT explain what that code does, just to make sure I'm not running into some stupid errors my caffeine-lacking brain produced.