xameyz's Avatar

xameyz

@xameyz.bsky.social

dev working on medical softwares https://xamey.xyz

107 Followers  |  434 Following  |  57 Posts  |  Joined: 07.09.2023  |  2.37

Latest posts by xameyz.bsky.social on Bluesky

Preview
GitHub - xamey/rails-with-jwt: A Rails 8.0.2 starter app with Bearer JWT A Rails 8.0.2 starter app with Bearer JWT. Contribute to xamey/rails-with-jwt development by creating an account on GitHub.

Rails 8 introduced an authentication generator, which is cool, but it's only related to cookies-based sessions.

If you're building Rails apps and want to authenticate users with Bearer tokens (as a pure API for example), here's a ready-to-start-with project : github.com/xamey/rails-...

04.06.2025 15:40 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Xamey Senior Software Developer

New blog post, some thoughts on an ideal web app architecture.

xamey.xyz/post/?sha=b7...

31.05.2025 20:39 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

- and another stream that construct a logical relationship between ActiveRecords which have been created through events (ActiveRecord creation -> event -> N ActiveRecord creation/updates)* leads to one stream per ActiveRecord op, it's a way to link an event to an ActiveRecord :)

11.02.2025 08:10 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

No worries! I made a second blogpost explaining how I used streams to create a causality graph of my ActiveRecords, and by design they shouldn't be too long:
- causality and causation streams shouldn't contain more than 5 events per stream
- user stream which should be < 200 atm

11.02.2025 08:08 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

private discord with a "bluesky posts" channel for me πŸ˜…

09.02.2025 17:01 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Against performance fetishization Performance fetishization leads to burnout, dehumanization, and the emergence of what some call technofeudalism. A critical analysis of how performance metrics and AI systems are transforming modern w...

Did you happen to read this newest article I wrote? Thoughts?

jointfrontiers.com/against-perf...

08.02.2025 17:36 β€” πŸ‘ 2    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0

pretty cool, is it possible to see what HTML is like? :)

01.02.2025 11:40 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

A new blogpost related to the previous one, adding some debugging possibilities by linking events between them, subsequently linking ActiveRecords created through events handling together.

@lukaszreszke.bsky.social @andrzejkrzywda.bsky.social eager to hear ur feedback :)

xamey.xyz/post/?sha=58...

29.01.2025 09:24 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

do people not know anything anymore?

"china is gonna steal my info with deepseek R1"

uhhh, no

curl -fsSL ollama.com/install.sh | sh
ollama serve
ollama run deepseek-r1:671b

congratulations you now host deepseek r1 on your own

either rent a server or use you pc

28.01.2025 07:16 β€” πŸ‘ 28    πŸ” 5    πŸ’¬ 5    πŸ“Œ 1

Sorry, you're my rubber duck πŸ˜… but streams will help me on 90% of the cases because I'll have a common denominator (for instance, user) but I've dived into correlation and causation and instead of creating entries in additional tables, I'll link events between them. Next blogpost!

27.01.2025 16:47 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

But as my events have a relationship with my ActiveRecords, it should be redundant.

27.01.2025 16:39 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

And while I'm on it, I may link events with causality and correlation at the same time I link ActiveRecords. So I can have a full graph of ActiveRecords and Events relationship.

27.01.2025 16:37 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

And this is because a RailsEventStore's event will never create anotheR. But, as 95% of the ActiveRecords I instantiate are linked to an User, I could :
- publish the events to the stream "User$#{user_uuid}"
- debug the events that have been triggered for a specific user thanks to this stream

27.01.2025 16:09 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0
Post image

What I introduce in my additional tables is a link between those ActiveRecords, especially if there is a causation through RailsEventStore events, as seen if the graph below.
A causation between events isn't the most important information for me.

27.01.2025 16:09 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Problem is, I don't want my colleagues to bother with additional infos they should provide to the ActiveRecord creation, such as `Email.new(source_event: ...)`
But! I would like to know how that email has been triggered, which in fact is caused by an User creation

27.01.2025 16:09 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image

Finally watched it! Streams will help me but solely mixed with my additional tables.
Unfortunately, there's no direct link between events: I create an User instance, a handler reacts to UserCreated event, the handler may create an Email instance, and a handler reacts to EmailCreated to send an email

27.01.2025 16:09 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Will tag alt text bot in reply, apologies.

Will tag alt text bot in reply, apologies.

Beyond this bit being passed around, which is worth sharing for the main points, do click through and read the whole thing. It's worth it. harpers.org/archive/1941...

25.01.2025 05:49 β€” πŸ‘ 378    πŸ” 121    πŸ’¬ 16    πŸ“Œ 19

and what's the easiest migration, if possible?
ease the UI/UX of an app with good performances
or improve the performances of an easy-to-use app?
considering a large codebase

24.01.2025 09:40 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

there's no configuration for the LLM provider right? havn't found it in the docs. not really confident about sending my codebase too, while Cursor has a very clear privacy configuration

22.01.2025 15:31 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

thanks! I'll watch soon :)

18.01.2025 20:49 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Glad you liked it! I love your library and I've strongly advocated to use it in my team. Currently reading Domain-driven Rails :)

18.01.2025 15:02 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

But I'll take a better look at streams!

18.01.2025 14:59 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

I haven't tbh, for debugging, I manually created tables which link the model which automatically triggers the create/update event to the different models that have been created from handlers, so I can construct a graph of causation.
User <-> UserCreated <-> handler <-> created models

18.01.2025 14:58 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Great job, you're not far away from a complete events framework which seems promising. I'll inspire myself from your work to try to build an UI which relies on my API and I'll tag you once I post about it.

16.01.2025 16:55 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Thanks a lot. Yes, I'm using RailsEventStore. I would like to visualise a timeline of records ops, and those records may be created from handlers reacting to events, which are triggered after a record creation/update. I just published a blog post that you can find on my profile if you're curious

16.01.2025 12:29 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Interesting. Did you open sourced it? I'm curious to see your implementation. Anyway, I'll give a look at Phlex. I enhanced my model to have causation and/or correlation as well, and I tried to show it through a network graph but it was a pain to organize.

16.01.2025 08:41 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

hey, is it an UI you built? I'm looking for such way to visualize event correlation.

15.01.2025 23:20 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Xamey Senior Software Developer

just published a new blog post about Rails Event Store and how you can easily integrate it in a new or existing app

from ActiveRecord callbacks to a pub sub system!

xamey.xyz/post/?sha=2c...

@lukaszreszke.bsky.social @andrzejkrzywda.bsky.social

15.01.2025 14:04 β€” πŸ‘ 7    πŸ” 2    πŸ’¬ 2    πŸ“Œ 1
Video thumbnail

Here is the code for my universal version of react-scan:

github.com/NullVoxPo...

Copy it / install it in to any
- Svelte
- Angular
- Ember
- React
- Lit
- Preact
- Solid
- etc

App, and see what unneeded work might be being done!
(Or see all the hidden work you're managing and forgot about!)

04.12.2024 15:06 β€” πŸ‘ 53    πŸ” 11    πŸ’¬ 3    πŸ“Œ 0

It's becoming more and more difficult/annoying for me to code without Cursor and its features. Besides that app, I agree. Apps which fully rely on AI are unpredictable or are way too complex, and AI-powered features, once curiosity fades, are seen as useless

03.12.2024 19:23 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

@xameyz is following 20 prominent accounts