• 0 Posts
  • 22 Comments
Joined 1 year ago
cake
Cake day: July 11th, 2023

help-circle



  • i still don’t understand. is it easier in python or JS to make getters and setters? with python my experience has been the opposite, with the decorator based solution in mind.
    or if the problem is that they exist, as an option to be used, why is that a problem? they can be implemented in any other language, and it can be useful.

    then yeah, you should check for nulls. just like for None’s in python, or if you have the correct type at all, because if it’s entirely different but ends up having a function or variable with the same name then who knows what happens.
    then in javascript besides null, you also have undefined and NaN!


  • i still don’t understand. is it easier in python or JS to make getters and setters? with python my experience has been the opposite, with the decorator based solution in mind.
    or if the problem is that they exist, as an option to be used, why is that a problem? they can be implemented in any other language, and it can be useful.

    then yeah, you should check for nulls. just like for None’s in python, or if you have the correct type at all, because if it’s entirely different but ends up having a function or variable with the same name then who knows what happens.
    then in javascript besides null, you also have undefined and NaN!








  • About the other points.

    I see your point, personally I prefer WebUsb, WebBluetooth and such to be completely missing, so it’s much less likely that a bug allows access to these to a site.

    Bluring camera background seems to me very specific to webcams, and even if chromium based browsers will do it for you, I think you are better off with running OBS and it’s virtual webcam functionality, as it has been made for that purpose (video processing), and it can do much more if you want (including cropping, ways to improve video quality, or even do greenboxing). Introducing background bluring to the browser would mean more requests to add this or that effect (even if it should actually be the task of the web app), and I think it’s hard to maintain even a single such effect (that does not blur everything, but only certain parts of the image) if your devs don’t have extensive experience in video processing. This would be a feature that if introduced, either would break once and stay that way for quite some time, or would take significant development resources to find the problem and keep it working.


  • For me Firefox haven’t crashed once in a year or more, even though I’m a heavy user: using it every day for multiple hours as a “tab hoarder”, with quite a few addons.

    I also rarely restart it, as I don’t turn off my computer completely, so the Firefox process is usually as old as the time of last system reboot.

    I think you may have ran into a rare bug, that has got persisted in your browser profile.
    You may create a new browser profile (e.g. on the about:profiles page) and set your things up there, and most likely it’ll be stable.
    I think there’s also a “refresh Firefox” button somewhere where average people would look for it, but I don’t know where it is. But be aware that this will delete everything in Firefox, where’s if you create a new profile, the new profile will start with a clean slate and you can switch back and forth between the old one if you find out you need something from there (e.g. old passwords that you haven’t transferred, a specific about:config setting if you use those, addon settings, …), or even have them open at the same time.




  • I haven’t yet looked into the lemmy client, but they don’t necessarily have to call any function in that library for it to be active.

    On one hand, there are the class variables in Java. When a class variable (a static one) has a value assigned at the place where the variable is declared, and the assignment is the result of a function call, afaik that will run when the class is loaded, which is basically every time the app is run. Same with static blocks.

    On the other hand, on Android an app can have components that are automatically run in certain conditions, and which can be added by any programming library you have added to your project.
    One such type of component is the BroadcastReceiver. These are mostly run on certain events broadcasted inside the app or through the whole system, but now I don’t find whether any of those that Boost reddit uses are started by systemwide broadcasts. The other is the ContentProvider. These are started every time the app’s process starts, but otherwise unconditionally. It’s common for ad and tracking code to misuse this kind of components for being active as much as possible. Looking at the Boost reddit app, along others it has the following:

    • com.applovin.sdk.AppLovinInitProvider
    • com.google.android.gms.ads.MobileAdsInitProvider
    • com.google.firebase.provider.FirebaseInitProvider (I think if you disable this one, the app won’t even work anymore, like with most other apps. Not like if disabling components would worth much, as this is not a privacy feature but a technical one, and the apps themselves can manage this)