Alessandro's Avatar

Alessandro

@variabilealeatoria.bsky.social

I just rant about React

10 Followers  |  24 Following  |  76 Posts  |  Joined: 16.12.2023  |  1.6043

Latest posts by variabilealeatoria.bsky.social on Bluesky

I love how the general idea of "complex query" is a fucking JOIN

30.08.2025 06:58 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Using Projections with Declared Queries in spring-data-jdbc Β· Issue #2127 Β· spring-projects/spring-data-relational Summary Interface-based projections with nested objects work perfectly with derived query methods but fail when using custom @Query annotations. The error indicates Spring Data JPA cannot instantia...

Another day another banger

github.com/spring-proje...

28.08.2025 19:47 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Moving business logic from services to domain objects looks like a pretty good idea to avoid having anemic models, until you realize there is no way for them to enforce business logic on delete operations πŸ™ƒ

07.08.2025 06:13 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I hate that every single example on Domain Driven Design aggregates is always Order + Order items.
EVERY SINGLE ONE.
It shouldn't be that hard to make different examples for a design pattern πŸ€”

01.08.2025 16:40 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I don't like Query by Example or JPA Criteria API with Specifications because they force JPA-specific classes into my repository method parameters. Aren't repository interfaces supposed to abstract away implementation details so you can swap them later?

25.07.2025 16:51 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

There is literally zero value added by using spring-data-jdbc.
You cannot achieve the most basic things with it (e.g. querying with some optional search parameters and pagination)

24.07.2025 08:23 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I think there is no reason to prefer react query global onError handler to an axios interceptor

17.07.2025 04:56 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Expo Documentation Build one JavaScript/TypeScript project that runs natively on all your users' devices.

I'm not a fan of video tutorials. Are all the topics of these videos already covered with the same granularity on expo docs.expo.dev?

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

Tried downloading an older version of Google Translate from 2024. With that the translation works correctly.
Looks like it's a regression from Google side.

13.04.2025 16:48 β€” πŸ‘ 7    πŸ” 1    πŸ’¬ 1    πŸ“Œ 0

can confirm

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

Using navigation.setOptions({ headerRight }) just to update parts of the header feels counterintuitive. It breaks the declarative component model React encourages. I'd rather just render <Header /> in my JSX and control everything with props/state like normal β€” it’s clearer and easier to maintain.

13.04.2025 11:58 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I'm slowly arriving at the conclusion that navigation libraries should just focus on routing and nothing else.

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

non hai idea di quante volte l'ho notato in ufficio.
Da brividi.

12.04.2025 07:50 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0

meow

10.04.2025 19:21 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Coming from React Native, it's strange to see routes being unmounted and losing their state when navigating.
Being able to go back to a screen with it's state as you left it previously without having to do any fancy state management is fantastic.
Stack navigation is so cool!

06.04.2025 16:44 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

context: views with opacity set to 0 do not receive click events on iOS but does on Android.

04.04.2025 08:30 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

I'm not sure on how I feel about this πŸ€”

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

Migrating to react native New Architecture was not as smooth as I wished

03.04.2025 05:51 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image Post image Post image

well that escalated quickly! πŸ˜‚

26.03.2025 07:01 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I'm finding too many issues in common libraries lately

25.03.2025 16:57 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
How I Manage Signing Configs with Expo Prebuild I love the idea behind Continuous Native Generation (CNG) and Expo Prebuild. The ability to avoid managing native projects and focus solely…

By the way I wrote a post on the topic:
medium.com/@alessandro....

20.03.2025 20:40 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I understand that expo has its business with EAS but man, having to write my own plugin to set signing config when running expo prebuild feels bad 🫣

20.03.2025 18:10 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image Post image

is expo trying to kill single page applications?

16.03.2025 21:13 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
The Bumpy Road to Implementing a Map in My Expo Universal App | Alessandro In this blog post, I’ll walk you through the journey of displaying a map with markers in my Expo Router app. Was it a smooth, trouble-free experience? Unfortunately, no. I’ll share the challenges I f...

My very first attempt at blogging! 😳
Just some thoughts on how painful it was to use a reactjs library in a basic expo router web version of an app.

whtwnd.com/variabileale...

15.03.2025 13:16 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Is there any active codebase on github using expo-router? πŸ‘€

14.03.2025 16:23 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Right now I wrote a proxy in express but I need to remember to start it separately. I'd like a better integrated solution as vite has.

12.03.2025 18:10 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Since @expo/webpack-config is deprecated and no longer receiving feature updates, what is the recommended way to set up a proxy for API requests in an Expo Web project?
Started from mobile, where CORS is not an issue. Now, when running on web, all my API requests fail due to CORS restrictions.

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

Thinking more about it I'm not so sure anymore. I think there should be an easy way to understand that you tried to navigate to a protected route in order to go back to it after authentication πŸ€”

10.03.2025 17:49 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

KeyboardAvoidingView is basically just trial and error until it works not as you wanted but near that at least.

10.03.2025 10:26 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I don't think I'll use Expo Router in my next project. RN7 static configs look promising and the ability to pass a screen a callback to determine whether the screen should be rendered or not makes auth sooo much easier with a single navigator πŸ‘€

09.03.2025 18:32 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

@variabilealeatoria is following 20 prominent accounts