• 0 Posts
  • 41 Comments
Joined 1 year ago
cake
Cake day: June 15th, 2023

help-circle

  • Imagine saying these operators out loud.

    > is “is greater than”

    So it makes sense to use >= as “is greater than or equal to”

    You’d think = would be “is equal to”, but it’s already used for “set equal to” (i.e., assignment).

    So what symbol do we use for “is equal to”? The symbol used in many programming languages is ==, so Python chose to follow that convention.

    It’s worth noting that there are other languages that use = as “is equal to”, and use something else for assignment (like := for example). It just comes down to the history of the language and what conventions the original authors decided to use.



  • Is there a KVM switch out there

    Not that I’ve found. I have a similar setup (Thunderbolt dock with two monitors and two laptops). I think the single dock solution is enough for most people, so there’s not much financial incentive for people to make a bigger KVM switch.

    2 workstations

    Depends entirely on your expected use case. Would having two different PCs active at once be helpful for you? I don’t imagine it would be cheaper, but depending on your machine specs and desired performance, it could end up being cheaper (than having a dock that supports 4 displays and ensuring all your PCs can handle that through one port).