Alexandre's Avatar

Alexandre

@matsa59.bsky.social

24 Followers  |  25 Following  |  47 Posts  |  Joined: 12.11.2023  |  1.9564

Latest posts by matsa59.bsky.social on Bluesky


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

@matsa59 is following 19 prominent accounts