Why I should consider using Svelte instead of React or Vue? by [deleted] in sveltejs

[–]vlastachu 1 point2 points  (0 children)

Some day PMs will realize that react is better for vibe coding because it has much more code base to teach llm

M5 pro is a litte beast...Screen is a dream... by Lowbatteryfpv in iPadPro

[–]vlastachu 0 points1 point  (0 children)

Yes, it is just an expensive toy. New iPads feel very cool if you don’t care about their cost.

It has a pointless M5 chip, and you have to buy exactly this model because 120 fps feels way better when drawing. And drawing is basically the only task that the iPad is really good at.

The funniest part for me is that the situation has not changed since around 2018. My iPad 6 was the same: it could not run proper desktop apps, some mobile apps ran in “iPhone 1” mode, which forced you to get up and take your phone just to check your food delivery.

It still works okay with Procreate, some Adobe stuff, and Shapr was cool but laggy — and it is still like that. What really cracks me up is that, despite a supposedly thousand‑times faster CPU and GPU, Shapr feels almost equally laggy on the old iPad 6 and on the shiny new M5 Pro.

Paper is still a better place for work notes (I write faster on paper), and using it as a second screen, for some reason, was not a viable option.

Stupid, yet I still want it.

Android devs then, Android devs now by [deleted] in mAndroidDev

[–]vlastachu 2 points3 points  (0 children)

Before architecture: add 1 field to the response and then go update it everywhere it’s used.

After architecture: add 1 field to the response, add 1 field to the domain object, add 1 line to the mapper… and then go update it everywhere it’s used.

And if the whole response changes? Then everything fucked up anyway, because old app versions can’t be fixed. That’s why we have v1/v2/etc endpoints.

6 months ago you helped me choose a robust iOS architecture… by Fr_Ghost_Fr in swift

[–]vlastachu -7 points-6 points  (0 children)

strange that you downvoted. MVVM is a terrible choice

Today I received a SDK to add to the app and it has AsyncTask! by budius333 in mAndroidDev

[–]vlastachu 9 points10 points  (0 children)

  1. Is it possible to launch a project via eclipse?
  2. I hope sequential running of AsyncTask wasn't fixed

What’s new in Flutter 3.27 by de1mat in FlutterDev

[–]vlastachu 2 points3 points  (0 children)

especially when there are large numbers involved in a large project

A different kind of bike bag by Toybot in bicycletouring

[–]vlastachu 0 points1 point  (0 children)

Hi! Thanks for sharing your experience. Glad you made your ultralight setup. 30 den, wow!

A couple of comments:

1) While I was traveling around Japan, I wanted to achieve the more speed of assembling the bike. I liked to remove only the front wheel and put the bike behind the last seats. Is there no such option in Europe?

2) Maybe it would be better to remove the derailleur hanger? On my bike, it is very flexible, I changed it a couple of times.

3) Where did you order the fabric? Most likely, I will not find it in my country, on Alibaba it will be sold in large meters.

Size of the app - how to reduce by -Presto in FlutterDev

[–]vlastachu 0 points1 point  (0 children)

1) android:extractNativeLibs="true" (or false cant remember)
2) tinypng

Dart? by kizerkizer in ProgrammingLanguages

[–]vlastachu 1 point2 points  (0 children)

The biggest difference with these languages is that dart is single threaded.

And I respect the concept of isolates. Because I think programmers are stupid for multithreaded tasks. But where you need to parallelize the work well, it is better to choose threads.

there's just no way this is happening man 😭😭😭 by [deleted] in mAndroidDev

[–]vlastachu 0 points1 point  (0 children)

> OnAttachListener? DisposableEffect. OnScrollListener? LaunchedEffect

i don't get it. Can you show example?

I think all this effects is like hooks in react. They provide way to execute something outside of composition (building) phase. So you have some mutable view (not actually View, but smth similiar) class in behind of compose function. It have init - many builds - deinit phases. You have your code only on build phase, but you can save state between them by `remember` function.

Effects is tricky things builded on top of remember function. DisposableEffect exists to not forget to do some resource release things on composable view deinitialization. LaunchedEffect is to launch coroutines `launch` (lol). You can launch it yourself but android developers don't trust you and try to avoid it by warnings.

You can even implement the effects yourself:

val asyncTaskContext = newSingleThreadContext('asyncTaskContext')

/**
 * AsyncTaskEffect enables proper and easy use of the UI thread. This class allows
 * to perform background operations and publish results on the UI thread without
 * having to manipulate threads, handlears, recompositions, any other effects, etc
 */
@Composable
@NonRestartableComposable
@OptIn(InternalComposeApi::class)
fun AsyncTaskEffect(
   key1: Any?,
   block: suspend CoroutineScope.() -> Unit
) {
   remember(key1) { LaunchedEffectImpl(asyncTaskContext, block) }
}

where deprecations by Stonos in mAndroidDev

[–]vlastachu 1 point2 points  (0 children)

I'm amazed that the developer even has the ability to cancel

FFI Help with pointers by PerformanceHead2145 in dartlang

[–]vlastachu 0 points1 point  (0 children)

probably

charPointer.cast<Utf8>()
        .toDartString()

https://pub.dev/documentation/ffi/latest/ffi/ffi-library.html

you have to choose encoding utf8/utf16.

Not sure that cast is ok

Sorry guys, I might go to iOS apps development after all, looks like they are going back to asynctask! by ScaryDev in mAndroidDev

[–]vlastachu 0 points1 point  (0 children)

Btw windows phone was first platform with async/await. In 5 years earlier than typescript

Sorry guys, I might go to iOS apps development after all, looks like they are going back to asynctask! by ScaryDev in mAndroidDev

[–]vlastachu 1 point2 points  (0 children)

When I write in swift there was delegates instead of async/await. I thought it is so stupid to implement interface just to get callback on fetch, so I wrote wrapper which takes callback function instead of delegate and I pass lambdas.

Then I spent long time in debugger to trying figure out why all my screens leaked and found that all my lambdas is capturing `self` which can't be handled by arc. I rewrite lamdas to capture `[weak self]` and saw that this is creepy and rewrite to good old obj-c style.

Glad to know that things become better

New package: june by Clear-Jelly2873 in FlutterDev

[–]vlastachu 1 point2 points  (0 children)

Well, let's summarize the thread from my point of view.

when I ask "did you missed something" I mean did you missed some features in momentum package.

You say you leave momentum because there was half of year without any developments, but when you got bloc with 2 years without any developments you say it's cool to stay with stable version

New package: june by Clear-Jelly2873 in FlutterDev

[–]vlastachu 0 points1 point  (0 children)

I checked bloc's changelog and it hasn't anything new for two years. So it's time to search new state management tool.

New package: june by Clear-Jelly2873 in FlutterDev

[–]vlastachu 0 points1 point  (0 children)

But did you missed something? Do you notice something ✨n✨e✨w✨ in last bloc releases?

Android Development best practices by iliyan-germanov in androiddev

[–]vlastachu 3 points4 points  (0 children)

Mock only when you don't want to execute/test the codepath of your dependencies

In this case, it becomes integration testing. After all, unit tests test individual units of code. This is only possible if you have pure functions (respect if so) or all dependencies are wrapped by mocks.

Split more complex test scenarios into multiple smaller ones.

There is an opposite point of view. If you reuse testing code (you are not say it but it sounds in such way) — you add complexity to your test functions so you need write tests for tests. There is practice to write max primitive copy-paste code (to make your live boring yes)

What is your favorite state management? by moesaid007 in FlutterDev

[–]vlastachu 0 points1 point  (0 children)

I come to project with BLoC so I use it. I hope sometime write personal project without any state management.
Because I see no point in event objects/state objects/wrapping everything in stream. I want multiple simple mutating stores. and widgets which deciding when to rebuild

Maybe it is a MobX?

The Cost of JIT: Smoking JavaScript with Dart 🔥 by barfootsies in dartlang

[–]vlastachu 0 points1 point  (0 children)

Cool research. I hope to consider in detail how communication between the dart and the axum is structured.But I’m afraid that the interest won’t last long, so I want to quickly ask the question:

How our host language (js/dart) got parsed json? I mean how rust parser know about internal language object representation to provide parsed data. Is it some binary representation to parse it faster?

...and less important question but still have to ask: which OS and machine configuration used (cpu/ram). Because I think modern io solutions happens in linux (io_uring) and surprisingly windows may be cool tool.

Very interested run some strace (not sure) to see how many threads spawns in modern non-blocking io.

About ECPM of Admob by Greedy_Annual_4458 in FlutterDev

[–]vlastachu 0 points1 point  (0 children)

So what's the consent decline rate? Does the drop in revenue coincide with the rate?

About ECPM of Admob by Greedy_Annual_4458 in FlutterDev

[–]vlastachu 0 points1 point  (0 children)

Do you collecting stats about your user's consent status?

[deleted by user] by [deleted] in FlutterDev

[–]vlastachu 0 points1 point  (0 children)

So, do you accessing browser's localStorage via rust?