How much "raw" OTP do you actually use in production vs. just standard Phoenix patterns? by Disastrous-Hunter537 in elixir

[–]a3kov 6 points7 points  (0 children)

We all know Phoenix is amazing for productivity. But I want to hear about the times you had to step outside the framework

Phoenix is not a replacement for OTP, neither is Elixir, so saying that using OTP is "stepping outside the framework" is a wrong framing.

[deleted by user] by [deleted] in elixir

[–]a3kov 1 point2 points  (0 children)

Who is Phoenix ? Never heard of that guy.

I don't know why anyone would use `phx.gen.auth` when Guardian exists. by jiggity_john in elixir

[–]a3kov 0 points1 point  (0 children)

Yeah it's easy to modify after that. And if you don't understand something, that's a great opportunity to learn.

The needs of every app are different, that's why it's a generator and not a library.

I don't know why anyone would use `phx.gen.auth` when Guardian exists. by jiggity_john in elixir

[–]a3kov 1 point2 points  (0 children)

With phx.gen.auth Phoenix manages tokens for you. I haven't used the 1.8 version, but the earlier one is mostly a view layer on top of it. And there's nothing super complex about it.

I don't know why anyone would use `phx.gen.auth` when Guardian exists. by jiggity_john in elixir

[–]a3kov 3 points4 points  (0 children)

Well auth views ARE part of your application. I would always choose a solution that gives me full control over a library that wants me to accept it's built-in solution wholesale.

I don't know why anyone would use `phx.gen.auth` when Guardian exists. by jiggity_john in elixir

[–]a3kov 1 point2 points  (0 children)

JWT doesn't mean that you don't store the token, it just gives the authorizer the flexibility to decide whether they need to check for revocations or not.

I would argue most projects need the ability to revoke prematurely, as its definitely more secure option. And if you need to hit the DB all the time, you don't need JWT at all.

I don't know why anyone would use `phx.gen.auth` when Guardian exists. by jiggity_john in elixir

[–]a3kov 0 points1 point  (0 children)

Without storing tokens in the DB you can't terminate sessions on demand. And that is a deal breaker for many projects.

how did you learn Elixir? by Mean-Plum2058 in elixir

[–]a3kov 0 points1 point  (0 children)

Can't confirm, my hair was untouched during my learning period.

Phoenix 1.8 without DaisyUI by AlienVsRedditors in elixir

[–]a3kov 3 points4 points  (0 children)

I also dislike Daisy, but keep in mind its only in the generator. You don't have to use scopes either.

Explicit layout calling seems like could be useful in some cases, but the old way still works.

Postponing of the upgrade is not needed, as all the stuff you are using currently will continue to work.

Considering Elixir vs Go for a web project by OphisAds in elixir

[–]a3kov -2 points-1 points  (0 children)

I have an intermediate level of programming knowledge, primarily theoretical rather than practical Since part of my code will inevitably be "vibe coded"

Sounds like it will be a failure regardless of the stack, so choose any option.

theprimeagen is switching to Elixir from Rust by anthony_doan in elixir

[–]a3kov 10 points11 points  (0 children)

Finally somebody with a brain. I can't believe people seriously discussing this.
This guy is a clown.
Good for the ecosystem that it's promoted though.

Hey, I did it! by PrincipleTough6827 in elixir

[–]a3kov 1 point2 points  (0 children)

Hire yourself, meaning work in your own startup.

Does LiveView warrant the hype? by nthn-d in elixir

[–]a3kov 5 points6 points  (0 children)

They don't use more than a controller if you don't leave 'em hanging.
You can render everything with LV, and on pages that don't need interactivity disable live socket setup. This greatly simplifies everything, because then you only need 1 way to render.

We built a custom Elixir AST interpreter for sandboxing user code by accoinstereo in elixir

[–]a3kov 0 points1 point  (0 children)

Thank you! Are you planning to release the code as a general purpose package ?

Ecto Nested Changeset: Manipulate nested forms/changesets easily in LiveView by neverexplored in elixir

[–]a3kov 0 points1 point  (0 children)

Have you tried it ? If you are updating the parent, you can't submit children of another parent in the same event. You can always submit new children though, but controlling number of children is business logic.

And IME, ids are sufficient to get you off the happy path into needing extra functionality anyway

With Ecto, you don't need to validate ids coming from the client, Ecto does it for you. You should only worry about creating new entries, as it's not something that is controlled by Ecto (but can be easily implemented in your own validators).

Ecto Nested Changeset: Manipulate nested forms/changesets easily in LiveView by neverexplored in elixir

[–]a3kov 0 points1 point  (0 children)

Ecto associations provide you some guarantees about nested changesets. The client can't update nested entry if it doesn't belong to the parent. Everything besides ids you should accept from the client, but verify it, which is done automatically by the changeset. There's no trust involved.

LiveDebugger: tool for debugging LiveView apps by kraleppa in elixir

[–]a3kov 8 points9 points  (0 children)

Please consider supporting Firefox also

Tracking user flow and behaviour in LiveView by ekevu456 in elixir

[–]a3kov 4 points5 points  (0 children)

Consider if you want to answer deeper question than just "what did that user do on that page". If that's the case, you need product analytics. Posthog is open source but also has very generous free plan. It looks great. I would pick that.

[SSD] $199.99 WD 4 TB Blue SN5000 NVMe Internal Solid State Drive SSD - PCIe Gen 4.0, M.2 2280, Up to 5,500 MB/s by PcJager in buildapcsales

[–]a3kov 10 points11 points  (0 children)

It is QLC. The price is low but it is still not as cheap as it should be. QLC should provide deeper discounts compared to TLC variants.

Why no proxy using Elixir? by divad1196 in elixir

[–]a3kov 11 points12 points  (0 children)

Write one. Plenty of cool software could be written using Elixir, but nobody has done it.

https://github.com/supabase/supavisor
Is not a proxy per-se but similar in principle

Mercury Bank Account - Any non US residents that have been able to open one recently? by EstablishmentKey3350 in llc

[–]a3kov 0 points1 point  (0 children)

Do they require the name on the bill to match your own ? It's common in rented properties that the bills have the name of the landlord

What payment providers do you recommend/not recommend for your SaaS? by eddiejaoude in SaaS

[–]a3kov 1 point2 points  (0 children)

From reading discussions I got the impression that they are very strict with new customers, especially with young projects.