Interests: News, Finance, Computer, Science, Tech, and Living

  • 0 Posts
  • 19 Comments
Joined 2 years ago
cake
Cake day: June 13th, 2023

help-circle




  • I think you just like the truth test. Frankly I have used Python for over 25 years and have been doing programming for almost 50 years in many different languages. If you think I am somehow a beginner, I would disagree. The truth test is just like so many other Python specific idioms that grow in number by the year. They are not at all obvious unless you are deep into Python. Moreover, the truth test and the len() test are not the same test. One might be able to use either in a specific case, but that is case specific and which is more readable is up to the developer and we may well disagree on that choice. The other consideration in Python, speed of writing code which is often why many of us use Python and that may lead to different choices too including based on habit.

    Lot of this reminds me of the Pascal vs. C debate of the 1980’s. Pascal was all about readability over compactness. C on the other hand, seemed to attract people that loved to write very compact code that was almost impossible to figure out on first glance. Me personally, I guess I’d choose C over Pascal but write the C in more of a Pascal authoring philosophy. Similarly, with Python, I often do not go for all of the Python idioms. Lot of that is just writing what I am thinking, and the rest is probably habit. If I am going to test 0 length then I’ll probably test zero length. I do not find it at all obvious that, oh, I want to test 0 length so the Python idiom for that is to truth test. I absolutely know that to be the case on certain types of objects, but it probably is not going to be my first choice.




  • I use primarily debs but if your using Ubuntu it will include Ubuntu supported snaps. This is all from the distro supplied repos generally.

    Installing random stuff not distro support contains a lot of addition risks such as potentially more bugs and malware.

    I think the only 3rd party program I have installed is an AppImage of Joplin. I found the snap buggy.

    I am not big fan of snaps or flatpacks as I had issues with both. One rarely needs them on Debian based distros anyway.




  • flatbield@beehaw.orgtoLinux@lemmy.mlSwitching to linux for newbies.
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    1 month ago

    Reguarding apps, you said typewriter, movies, music, games. Office suite look at LibreOffice. Movies and music if it is online just Firefox or any other browser you choose. Firefox is good at working with PDFs too. Any distro should come with a document viewer, photoviewer, video player, and music player. You can choose from tons of other or more advanced tools. Debian for example comes with over 60K packges and Ubuntu and Mint are similar. There are also 3rd party sources too. Flathub or Snapcraft for example if you want something not in the repos.

    If you go with a Debian based distro with a lot of apps in the repos, you probably my not need these other app souces, but some people like smaller distros, something special just not in the repos, or a newer or different version of app. For example I use Joplin which is a notes app that is not in the Debian repos.

    For apps finding an app name and starting links https://alternativeto.net/ is your friend. For distros, https://distrowatch.com/ is your friend. Strongly favor a distro in the top 10 on distro watch unless you have some special need.

    Edit: You will notice that the top 10 are all Debian, Arch, Fedora, or SUSE based in that general order of more to less popularity. Linux distros tend to be based on these base distributions. For example Mint is based on Debian and so is Ubuntu.


  • flatbield@beehaw.orgtoLinux@lemmy.mlSwitching to linux for newbies.
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    1 month ago

    I personally prefer Debian based distros just because of the number of apps in the software repo. Probably consider Ubuntu or Mint in your case. My wife and I have used Linux pretty exclusively for over 20 years. Ease of use is not that much of an issue once your setup. My wife and her dad are not technical and they have few issues.

    Installing, and fixing issues is more technical but it is for Windows too especially if you do not get it preinstalled. You presumably have some stratagy for Windows support. Linux same, have a stratgey for it.