HNHacker News
TopNewBestAskShowJobs

Liberonostrud

-11 karma · joined November 5, 2022

submissionscomments
Liberonostrud··on PyPI Was Subpoenaed
How can you pronounce this word?
Liberonostrud··on Emerging Rust GUI libraries in a WASM world
What's wrong with TypeScript? Last time I checked all WASM stuff was slower and much heavier than TS/JS.
Liberonostrud··on Emerging Rust GUI libraries in a WASM world
I am betting on Vlang instead. Rust is too complicated for an average person - like me. It's basically the Haskell of system programming. V is basically Go made right.
Liberonostrud··on Parrots learn to make video calls to chat with other parrots: study
The website is terrible.
Liberonostrud··on Block loses 20% of value as Hindenburg Research alleges fraud
I haven't used Bitcoin since 2014. In ten years I never missed it once. Unlike my phone, or Hackernews website. But, I am not a criminal or scammer, so not the target group I guess. Bitcoin is like Victor Wondermega RG-M1.
Liberonostrud··on Hetzner launches three new dedicated servers
Just switching from Ruby to Crystal - basically the same syntax - will save you at least 3-4 times the money if not 10x in some cases. Not talking about a good Nginx/OpenResty loadbalancing and utilizing Varnish, Redis etc.
Liberonostrud··on Docker is deleting Open Source organisations - what you need to know
What is the alternaive?
Liberonostrud··on Launch HN: Pynecone (YC W23) – Web Apps in Pure Python
SSR is included? Do you have some project that is completely build with this stack. Some real life project?
Liberonostrud··on Phoenix 1.7.0
> not a deal breaker for me.

The last two words "for me" is what I am talking about. The average web developer doesn't invent new libraries. He uses them.

Liberonostrud··on Phoenix 1.7.0
Well, let me put it this way Phoenix LiveView is still in beta and constantly changing. That's a no-no for any average programmer. Yes, use it if you feel like you can do it but I have heard too many "I can't find any solution to this and that" stories from the land of Phoenix. PHP/JS/PYTHON/RUBY is a safe bet for any average programmer. Are you above average or at least you have a will of a tiger to push through the problems you encounter, sure go with Phoenix. By the way, that's the rewording of the first sentence of my original post.

Elixir reminds me of a poor-man's Haskell. Sure it's intellectually satisfying and elegant and "mathematical/logical", but the reality is that most people are not willing to spend months or years trying to force make their brain work in a different way, when a language like PHP or Python just clicks with how an average person think.

Liberonostrud··on Phoenix 1.7.0
https://github.com/laravel/laravel/pull/6010
Liberonostrud··on Phoenix 1.7.0
This is another problem of Phoenix. There are some big projects running on it, like cars.com but the code is not public and also they have a team of people who are good programmers and can bug-fix or pay people who can help bug-fix things for them. Watch the presentation of their switch to Phoenix and the gotchas they have encountered - for example how at first they didn't take into account the impact on Phoenix when users of sites like cars.com have opened 10 or 20 tabs (that have to be updated via websockets) instead of just 1 or 2 when they are comparing their dream car and how they thought that switching to Phoenix was a bad idea. Of course, they are smart ()or have money to pay smart programmers) and they solved this problem and now are happy with Phoenix ;). But as I said in previous posts, unlike with PHP that is very forgiving for sloppy code, Elixir does need higher skill level and the barrier to master it much, much higher than PHP.
Liberonostrud··on Phoenix 1.7.0
Live and dead views and apis ... all of it can be served from one Phoenix app at the same time... and?

Anyway, what does taking out LiveView change with the harder server deployment or lack of ready-made solutions or big entry barrier problem?

It makes things even less attractive because most of flagship Phoenix/Elixir projects, e.g. LiveBook uses LiveView.

Liberonostrud··on Phoenix 1.7.0
I guess he is talking about macros and perhaps the syntax which I also didn't like and is one of the reasons why I consider PHP better (even though the naming and parameters inconsistency could be better). Check for yourself:

``` iex> length([1, 2, 3]) == length [1, 2, 3] true ```

or (taken from the Elixir docs):

---

Take the following code:

``` if variable? do Call.this() else Call.that() end ```

Now let’s remove the conveniences one by one:

do-end blocks are equivalent to keywords:

`if variable?, do: Call.this(), else: Call.that()` Keyword lists as last argument do not require square brackets, but let’s add them:

`if variable?, [do: Call.this(), else: Call.that()]` Keyword lists are the same as lists of two-element tuples:

`if variable?, [{:do, Call.this()}, {:else, Call.that()}]` Finally, parentheses are optional, but let’s add them:

`if(variable?, [{:do, Call.this()}, {:else, Call.that()}])` That’s it! Those four rules outline the optional syntax available in Elixir. Those rules apply everywhere consistently, regardless of the construct you are invoking. Whenever you have any questions, this quick walk-through has you covered.

---

I don't like this possiblity to use so many syntaxes good, especially if you deal with mulitple parameters in functions. Elixir doesn't have C-like semicolons or braces like in Lisp so multiple parameters are hard to parse sometimes.

The creator of Elixir himself answered that one of the things he thinks he could do better at the beginning was to make the syntax more strict and he mentions the optional () e.g. IO.puts "Hello" vs IO.puts("Hello").

Liberonostrud··on Phoenix 1.7.0
If you are an Elixir (or perhaps Clojure) expert, the following doesn't apply. But every other person jumping ship from, for example PHP or JavaScript should think twice.

I think Phoenix is overhyped a lot. The barrier to entry is gigantic. The lack of up-to-date resources doesn't help. It's definitely not as polished as Laravel for example.

And while there is Pragmatic Studio with their wonderful introduction video, there is nothing like Laracasts where there are new tutorials added all the time. Frankly, it's on another level.

Deploying Phoenix is a nightmare when compared to Laravel.

In Phx you have to reinvent a lot of things and often, of course, choosing the wrong path.

Sure try the chat demo apps Phx is famous for but beyond that it's a pain in the ass unless you are very good Elixir programmer and can bug fix and reinvent-the-wheel things out.

Also, Phoenix is bad in environments with bad wi-fi. Think halls, kitchens, factories. So, I wouldn't do a Phx app for some warehouse2customers type of operation a because there are some very interesting out of connection problems, the necessity to constantly ping/"hearbeat" home to the server.

For me it is a pass. The experience with 1.6 and 1.7 rc was bad.

P.S. One extremely important thing, PHP is made for sloppy web programmers (like me). It will forgive and brute-force-work like hell when needed. Elixir is less forgiving and you can shoot yourself in the foot much easier. That's why I prefer PHP - it's much easier to put up some website that works well even on a cheap hardware and then you can PHP-optimize and tinker if you want.

P.S.S. The speed thing is overhyped as well. PHP vs Elixir for web stuff is not as big difference. In Laravel - if you use PHP 8.2 and cache your views, routes, etc. the DB stuff is still the 80% of all of your problems, not the PHP or Laravel.

Liberonostrud··on SICP: the end of an era (2021) [video]
People should learn assembly first. Lisp is not how computers really work. You will learn some terrible habits that will kill your RAM by sticking to Lisp functional principles instead of procedural principles.
Liberonostrud··on I use C when I believe in memory safety
Why is it posted here? He is using some custom made tools to find his bugs. No, thank you. Will stay with Rust.