Alexandre's Avatar

Alexandre

@matsa59

24
Followers
25
Following
47
Posts
12.11.2023
Joined
Posts Following

Latest posts by Alexandre @matsa59

I tried in the past on symfony stack, I tried again on phoenix project 1 year ago. Same configuration system, same vision, same problems.

At first we think it’s worth it. And then you want juste 1 special action. And the tool is not made for this action. Then begin the nightmare ^^

28.03.2025 10:51 👍 1 🔁 0 💬 0 📌 0

Do it by yourself, it’s not that long and instead of fighting the backoffice system, you’ll simply do LV stuff and do w.e you want easily. At the end you’ll spend the same amount of time. But one will be fun whereas the other will fighting the BO

28.03.2025 00:03 👍 3 🔁 0 💬 1 📌 0

Je commence à faire un peu de zig (lang) un peu dur à prendre en main mais très prometteur !!

27.03.2025 02:39 👍 0 🔁 0 💬 0 📌 0

Et on parle meme pas de leur doc qui sont INEXISTANTE. Les gars veulent qu'on utilise leur sdk qui est en passant tres mal codé ...

26.03.2025 14:53 👍 0 🔁 0 💬 0 📌 0

Utiliser FCM pour envoyer des push notifs ca simplifie beaucoup de chose. Par contre Google c'est des billes sur les API rest ... ils sont nullllllls mais nulllls

Si ca marche : 200, si ca marche pas? bah 200 avec results[].errors

Sérieux?? Et on les considère comme au top de la tech?

26.03.2025 14:52 👍 0 🔁 0 💬 1 📌 0

La dinguerie, gitbutler c’est les meilleurs

21.03.2025 11:00 👍 0 🔁 0 💬 1 📌 0

Once the review is done do we have any way to delete the data? Have an auto prune system could be nice too. So unlisted link could be a really nice option even for private codes.

And btw gj

21.03.2025 10:59 👍 0 🔁 0 💬 1 📌 0

Serieux expo .. votre api est NULLE !!!!
genre les dudes arrivent a retourner du json strigifié où ils ajoutent un point a la fin du string histoire que tu puisse pas le decodé ...

Ce niveau d'incompetence fait peur a voir

20.03.2025 22:18 👍 0 🔁 0 💬 0 📌 0

Is our code will be send to gitbutler server?

20.03.2025 22:10 👍 0 🔁 0 💬 1 📌 0

Take care of adding a max value on per_page=5000 looks like it doesn’t like when I put million :p

14.03.2025 15:10 👍 1 🔁 0 💬 2 📌 0

Yeah the doc isn’t really clear it’s like they say the opposite on 2 different chapters x)

From the picture you share, I tend to agree with your guess about sharing the same memory but we can’t be sure x)

And I’m too lazy to check the code source lmao

14.03.2025 14:47 👍 0 🔁 0 💬 0 📌 0
Phoenix.LiveComponent — Phoenix LiveView v1.0.5

There is no pointer in elixir every data you passed are copied. That’s why you need to pass the minimum required assigns to your LC.

hexdocs.pm/phoenix_live...

14.03.2025 13:59 👍 2 🔁 0 💬 1 📌 0

Yes it does except if you use « temporary_assigns » but this mean the assign is not keep in the memory. No way to find it back from the process POV

14.03.2025 13:36 👍 1 🔁 0 💬 1 📌 0

I found difficult to create an api wrapper for sveltekit because of the fetch that is override. Then I tried Nuxt and their useFetch. It gives me the idea of creating the wrapper like « useMyService(fetch).myEndpoint() » and everything become clear and easy to use

12.03.2025 12:39 👍 0 🔁 0 💬 0 📌 0

I wonder if it’s a good idea to use Process.put/2 to save the user’s id and it’s organization’s id. Then use Bodyguard to protect resources for a saas product 🤔

#elixir #elixirlang #phoenix

12.03.2025 11:37 👍 3 🔁 0 💬 0 📌 0
Post image

Y’a aucun problème!
Hésite pas si tu en veux d’autre ;) mais déjà joue avec un avec plug.

Tu vas voir qu’on peut faire des trucs plutôt sympa ^^

Celui qu’on utilise le plus c’est un custom qu’on utilise (cf image). Il nous permet de vérifier que les params attendus sont bien en uuid

07.03.2025 13:00 👍 1 🔁 0 💬 0 📌 0

Donc pour avoir ton user tu pourrais faire un plug :fetch_user

Dans ta fonction fetch_user/2 tu récupère le user et tu le met dans les assigns. Si le user existe pas, retourne 401 ou w.e depuis le plug.

Voilà un bon moyen factoriser le code

07.03.2025 12:50 👍 1 🔁 0 💬 0 📌 0

Je vais te donner un tip de folie : en haut de ton controller fait plug :my_function

Cette fonction sera appeler avant chaque action de ton controller. Tu peux faire des filtrage comme « plug :my_function when action … »

Dans ta fonction tu peux faire un if user=… else conn … |> halt()

07.03.2025 12:48 👍 2 🔁 0 💬 2 📌 0

T’utilises ex_machina pour tes test fixture? C’est le feu cette lib

07.03.2025 12:46 👍 0 🔁 0 💬 1 📌 0

We use protocol to define our api response. Our api are sooo easy to write and test.

But they’re also really straight forward for our consumers.

Protocols are life in #elixir :p

07.03.2025 12:40 👍 0 🔁 0 💬 0 📌 0

We use apidog on our team. It a mixed between postman and a tool to generate api doc. The best part is : it validate the schema on every call you made using it.

You should give a try it’s really nice ;)

07.03.2025 12:35 👍 1 🔁 0 💬 1 📌 0

You should create ok(assigns, opts \\ []) to support {:ok, assigns, temporary_assigns} 🙂

06.03.2025 22:12 👍 1 🔁 0 💬 0 📌 0

Ah pas dans l’éditeur ou dans le jeu. C’est sur la doc officiel ils disent de restart le server toutes les heures car ils mettent souvent à jour.

Le truc qui va vraiment peter le game c’est maybe on pourra faire des game standalone (ils sont sur les parties légales)

03.03.2025 04:29 👍 0 🔁 0 💬 0 📌 0

En vrai j’ai tester du coup s&box c’est vraiment nice!! Par contre pas assez stable pour le moment pour sortir qqch. hâte que ça sorte !!

03.03.2025 04:19 👍 2 🔁 0 💬 1 📌 0

Trop sad qu'on puisse pas coder en lua :/ le meilleur coté de gmod c'etait de coder en lua, c'etait trop le fun

28.02.2025 19:25 👍 0 🔁 0 💬 1 📌 0

J'aime juste parce qu'il recherche "corgis". clairement les meilleurs chiens au monde

28.02.2025 19:12 👍 0 🔁 0 💬 0 📌 0

I’m surprised openid is not more used

24.02.2025 18:39 👍 0 🔁 0 💬 0 📌 0

Sérieux la c’est trop : le couple Elon Musk et Trump au sommet de la connerie humaine.

18.02.2025 13:58 👍 0 🔁 0 💬 0 📌 0

Sûrement j’avoue que j’en ai jamais fait donc je trust ce que j’ai entendu (sûrement à tord)

17.01.2025 14:20 👍 0 🔁 0 💬 0 📌 0
Preview
3.13.6 breaks petal dropdown menus · alpinejs alpine · Discussion #4075 I don't have many details, but I can confirm 3.13.6 breaks these dropdown menus https://petal.build/components/dropdowns https://github.com/petalframework/petal_components/blob/main/lib/petal_compo...

Pour faire marcher alpinejs avec phœnix petit workaround des familles

17.01.2025 12:50 👍 1 🔁 0 💬 0 📌 0