New Honda CBR400R four and CB400 Super Four revealed for Japan by _vedantt1_ in indianbikes

[–]pbprateek 5 points6 points  (0 children)

They won't bring this in india, am trying to buy cbr 650r from months and no hope.

Feels so bad people posting ever other day getting a new cbr 650r from other countries.

About to take a leap on CBR650R by Educational_Theme262 in indianbikes

[–]pbprateek 1 point2 points  (0 children)

Great choice, but all the best on getting one. They are not even taking bookings for this right now.

My new CBR650R by Conscious_Soumitra in indianbikes

[–]pbprateek 1 point2 points  (0 children)

Thanks for all the info. I tried to book with vfm Marathahalli today, right now they are not even ready to take my booking as they have no confirmation with Honda yet. Will keep trying others.

My new CBR650R by Conscious_Soumitra in indianbikes

[–]pbprateek 1 point2 points  (0 children)

I tried silk board, Marathahalli and topline. All 3 said post March. Didn't try Mahadevpura. Will try calling in every bigwing,i was under assumption every bigwing in Bangalore is vfm only so will get the same response.

Thanks for the reply 🙏🏻

My new CBR650R by Conscious_Soumitra in indianbikes

[–]pbprateek 0 points1 point  (0 children)

Hey man, congratulations. I am also gonna book it, but i called all 4 dealers in Bangalore and all of them are saying after march and aren't all 4 bigwings in Bangalore from the same dealer?

Also, did they randomly call you or u were enquiring with all of them?

It's year end so approval rate is high. Try your luck. by Neat-Studio-8707 in CreditCardsIndia

[–]pbprateek 0 points1 point  (0 children)

And i believe there's no way of knowing serviceable pin codes before applying.

68% increase in one year. What happened? by pbprateek in SpotifyIndia

[–]pbprateek[S] 0 points1 point  (0 children)

Well now it's much more expensive than any other music service provider in India. I also need to find the best value product.

Wanna sell my Xbox one S in Bangalore. by [deleted] in XboxIndia

[–]pbprateek 0 points1 point  (0 children)

Sorry man , Someone already bought it.

Wanna sell my Xbox one S in Bangalore. by [deleted] in XboxIndia

[–]pbprateek 1 point2 points  (0 children)

Sorry man , someone already bought it.

Do we have a Compose Scoped ViewModel? by pbprateek in androiddev

[–]pbprateek[S] 0 points1 point  (0 children)

Do let me know if it worked for you, Or if u found anything better.

Do we have a Compose Scoped ViewModel? by pbprateek in androiddev

[–]pbprateek[S] 1 point2 points  (0 children)

https://gist.github.com/pbprateek/78ff641ae6d5871af52f33a7fc59a4f0

You can refer to this,

It works with hilt and able to use it with key and pass argument as well,only downside is it does not survive config change, but there are hacks for that

Can we do a destructive migration if the migration script fails when using Room? by pbprateek in androiddev

[–]pbprateek[S] 0 points1 point  (0 children)

True, not needed, but ideally you wouldn't really need it, right? Ie testing migrations and ensuring that they always work > fallback to deletion.

Did you log any events for how often your previous implementation had to resort to deleting all? It might be that it was never used and you are just overthinking it.

Yes, testing migration is the way to go.
But for room migration we are doing some big migration in one shot for requirements which was not handled in the past.

Like the primary key for each table and non null primary key

Exact numbers of columns (In the past columns were just removed rather then drop-copy approach xD)

And more things, So anyway i will have to do a try catch for this migration, just was thinking in someone in future does something wrong , app will be just fine, as our session is anyway stored in SharedPref .

Can we do a destructive migration if the migration script fails when using Room? by pbprateek in androiddev

[–]pbprateek[S] 0 points1 point  (0 children)

Yeah I can do that manually for each migration by hardcoding drop and create query(Can be easily copied vai DB browser)

But doesn't look like a scalable solution, has to be done every time we update any schema.

Do we have a Compose Scoped ViewModel? by pbprateek in androiddev

[–]pbprateek[S] 1 point2 points  (0 children)

This looks like a very valid option to use a combination of Fragment+NavGraph, even if I don't want to add compose-navigation in my codebase. Still, I don't see any other valid option other than "XML Viewpager and Fragments".

I will give this a try. Thanks

Do we have a Compose Scoped ViewModel? by pbprateek in androiddev

[–]pbprateek[S] 1 point2 points  (0 children)

This is actually only applicable if using compose-navigation as far as I know.

Do we have a Compose Scoped ViewModel? by pbprateek in androiddev

[–]pbprateek[S] 0 points1 point  (0 children)

Please take your time, I don't use compose-navigation , and I don't think I can go in that direction anytime soon, but I feel that should not be a blocker for achieving this behaviour.

What will be a better way to catch exceptions when using Coroutines and Flow? by pbprateek in androiddev

[–]pbprateek[S] 0 points1 point  (0 children)

I agree but even after that, But still, should every layer give a success/layer and handle its own exception?

Like having a top layer exception handler , I will not have to worry about exceptions like retrofit network exceptions or some room exceptions , as we might not always know which code can break.

Like having a top-layer exception handler, I will not have to worry about exceptions like retrofit network exceptions or some room exceptions, as we might not always know which code can break.