Alexandre
banner
matsa59.bsky.social
Alexandre
@matsa59.bsky.social
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 ^^
March 28, 2025 at 10:51 AM
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
March 28, 2025 at 12:03 AM
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é ...
March 26, 2025 at 2:53 PM
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
March 21, 2025 at 10:59 AM
Is our code will be send to gitbutler server?
March 20, 2025 at 10:10 PM
Take care of adding a max value on per_page=5000 looks like it doesn’t like when I put million :p
March 14, 2025 at 3:10 PM
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
March 14, 2025 at 2:47 PM
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...
Phoenix.LiveComponent — Phoenix LiveView v1.0.5
hexdocs.pm
March 14, 2025 at 1:59 PM
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
March 14, 2025 at 1:36 PM
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
March 7, 2025 at 1:00 PM
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
March 7, 2025 at 12:50 PM
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()
March 7, 2025 at 12:48 PM
T’utilises ex_machina pour tes test fixture? C’est le feu cette lib
March 7, 2025 at 12:46 PM
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 ;)
March 7, 2025 at 12:35 PM
You should create ok(assigns, opts \\ []) to support {:ok, assigns, temporary_assigns} 🙂
March 6, 2025 at 10:13 PM
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)
March 3, 2025 at 4:29 AM
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 !!
March 3, 2025 at 4:19 AM
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
February 28, 2025 at 7:25 PM