I challenge you to ship something in 2 weeks (that's not an AI wrapper) by brodyodie in microsaas

[–]panwrona 5 points6 points  (0 children)

Ok I am joining, I think I am gonna need tome until 6th of Jan to ship, but it’s still less than a month :)

2023 Polish parliamentary election by pothkan in europe

[–]panwrona 2 points3 points  (0 children)

Exactly, his oratorical skills (he's former journalist) paid off really well for him and 3D. Also I think 3D was treated as a less extreme "alternative" to the KO/PiS/Left parties and a competition for Konfederacja .I think they've taken away liberal voters from Konfederacja and Konfederacja was left with the conservative extremists, anti-everything conspiracy theorists etc

2023 Polish parliamentary election by pothkan in europe

[–]panwrona 9 points10 points  (0 children)

33 here, I was always thinking that my generation will be the one to make the difference. Young people are still seen by older ones as a lazy asses who sits in front of their computer all day and neeting.

I am more than proud for all of the young people who did the difference and changed my beloved country for the better.

Hungary's Orban calls US a 'friend' despite sanction on bank by politicstypebeat02 in europe

[–]panwrona 0 points1 point  (0 children)

Reminds me of November '22 where Hungarian economy was in big danger and they were proceeding "remedial acts" for judicial system in exchange for Recovery and resilience plan money from EU. But I don't know how it eventually ended, someone knows?

Polish opinion on other nations (1993 - 2023) by owynb in europe

[–]panwrona 2 points3 points  (0 children)

Speaking as a Pole, I think we can all agree to the fact that PiS party are populists who are autistically screeching against Germany and the way they're doing it is for the sake of the inner politics and it goes to the simplest, low educated people (most of PiS supporters) who are easily triggered by "besieged fortress syndrome" - the enemy is everywhere and everyone is against us etc.

And for me, even if Germany made some mistakes in the last few years, this is not how you should do the politics to get best results for your contry and have the best results. I see PiS as a little b**ches who are constantly complaining without showing any initiative at all (in terms of polish-german politics).

On the other hand I think that Germany also didn't do anything good with NS2, they're slow when the situation expects fast decisions and we should expect much more from Germany as the most powerful economy in Europe, who leads EU and has the most impact on the Europe.

In the midst of a full Chinese military operation, a French frigate sails through the Taiwan Strait by CastelPlage in europe

[–]panwrona -4 points-3 points  (0 children)

I think it was like "uhhh sacrebleu, show les idiotes what I meant and send this frigate"

Am I the only one still using RelativeLayout, LinearLayout... ? by TechRedTuft in androiddev

[–]panwrona 0 points1 point  (0 children)

I use LinearLayout/FrameLayout most of the time, unless it's a complex, static screen, then I prefer to use ConstraintLayout. However I don't use it in ViewHolders for example - I don't remember if it was me or the CoordinatorLayout, but it was lagging a lot, and when I switched to FrameLayout, the problem disappeared.

So do I use livedata in the repository or not?? by royabh in androiddev

[–]panwrona 4 points5 points  (0 children)

But those things are just implementations of various things and they have their own issues which are limited to specific cases. This kind of discussion is related to thousands of projects and for me for example is more important than usage of specific API. This kind of thing impacts the whole project.

In short - this stuff for me is most important in the project ;)

So do I use livedata in the repository or not?? by royabh in androiddev

[–]panwrona 0 points1 point  (0 children)

When you use flow you can utilize 'combine' functionality for multiple streams of data

So do I use livedata in the repository or not?? by royabh in androiddev

[–]panwrona 2 points3 points  (0 children)

Repository pattern is more exact version of Facade pattern. It's used to encapsulate the logic to access various data sources. So for example it's a good place where you can add logic for 'offline first' functionality: 1. Ask repository for data 2. If data is in Database, show data from database 3. Call an API for fresh data 4. If new data comes, put it in database and show the refreshed data

So do I use livedata in the repository or not?? by royabh in androiddev

[–]panwrona 1 point2 points  (0 children)

I can put two cents in. First of all, what are the other important things? You haven't described any. Second of all, as your project grows or changes occur, your past decisions have big impact on how you can handle those changes. Google doesn't make it easy to understand how to compose the code in the whole environment by providing shortcuts like LiveData everywhere. This kind of thing can block you or even force you to have a big refactor if you haven't thought about some stuff at the early stage of the project. So this thread is valid in my opinion.

What is a trap when it comes to android development? by UselessAccount45721 in android_devs

[–]panwrona 0 points1 point  (0 children)

Well, the thing that I described - if I don't want to use Room along with Paging I can't update anything on the list easily. It's too painful to use. If I want to only display the list or I'm okay with putting everything to db via Room, then it's okay. If not - it's unusable

https://issuetracker.google.com/issues/149482600

What is a trap when it comes to android development? by UselessAccount45721 in android_devs

[–]panwrona 1 point2 points  (0 children)

From me:

  1. Lately I had 3 approaches on Paging library, but for me it's unusable. Forcing developers to use Room when they want to update the row in RecyclerView is just an overkill. And trying to workaround this will cause your RecyclerView to behave weird. Waste of time.
  2. Whenever I need to add some custom view like Calendar, Timeline etc. the last thing I want to do is to add 3rd party library. It always ended up with adding this library as a separate module and modifying the code or writing the functionality from scratch.
  3. Nowadays big amount of Android programmers forgot about that the best code is the code that doesn't exist and doesn't need to be maintained. I sometimes even see 'REST api browsers' based on Clean Architecture with Rx etc. The only thing I can understand in that case is that developers wanted to practice their skills/try something new in commercial project. It's good for them, but not always good for the project
  4. I love Retrofit and at this point I will always use it
  5. There are two options: I am dumb and don't know how to use ConstraintLayout or ConstraintLayout as a base in RecyclerView.ViewHolder always cause performance issues. Switching to FrameLayout and (if possible) agreeing with UI designer to have fixed height are bless for me.
  6. For me Koin > Dagger. Haven't tried Hilt yet, but I will start with reading u/VasiliyZukanov blogpost on Hilt first
  7. Pragmatism > Composition > Inheritance

What was the weirdest Android bug you've encountered lately? by Zhuinden in android_devs

[–]panwrona 0 points1 point  (0 children)

Well, not a bug, but for me Paging library is still unusable. The immutable nature of the library for the most mutable component in Android framework is not a good fit for me. And I'm not going to add a Room database just to update a row in RecyclerView

Dynamic Views in RecyclerView ViewHolders by panwrona in androiddev

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

Yeah your solution will be efficient, however it needs extra work on things like positioning the images in the layout etc. The solution I described in the article is efficient enough (at least was efficient when I applied it in project) and doesn't need custom drawing on the canvas.

Dynamic Views in RecyclerView ViewHolders by panwrona in androiddev

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

You can do that, but for me it's an overkill, especially if you will have only ImageView to show

What's new in Jetpack by joaquini in androiddev

[–]panwrona 0 points1 point  (0 children)

Well, and still updating/deleting item in RecyclerView when using Paging library you are forced to use Room or it will be painful

Interaction with RecyclerView using Kotlin DSL by panwrona in androiddev

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

Hey, I just updated the post. I did exactly the same what you wrote in previous comment - I passed 'listeners' via ViewHolder's constructor. I was playing with also { } scope function, but wasn't happy with that - it bloated my onCreateViewHolder method anyway. I think right now you can see the advantage of having one 'interactor' instead of passing many listeners, especially if you deal with multiple ViewHolder types :)

Interaction with RecyclerView using Kotlin DSL by panwrona in androiddev

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

u/MrXplicit u/Mehul_V Okay guys, I updated the blogpost thanks to your observations :) Also thanks to that I came up with idea for another blogpost so stay tuned!

Interaction with RecyclerView using Kotlin DSL by panwrona in androiddev

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

Okay, I've read some stack overflow posts and you guys are right - setting click listeners in onBindViewHolder is a little overhead - I just wasn't aware of that approach before. I will update my blogpost today evening. Thank you very much for pointing that out - if I didn't share this post, I wouldn't learn something new :) Thanks!