• 0 Posts
  • 6 Comments
Joined 1 year ago
cake
Cake day: May 31st, 2023

help-circle
  • I generally use a for each type loop or a map because I am usually applying some function across a collection, and in both cases I use the singular name from the collections plural.

    Cities.map(city -> …)

    For (val city in cities)

    If I actually need the index for some reason I still prefer loop structures that give me the index and the item together

    *note syntax pulled out of my head and not necessarily belonging to any specific language.

    For ( city, index in cities)

    cities.map((city, index) -> … )

    If I need to double loop a matrix array I would use rowIndex and ColIndex for the indexes.


  • macOS, and after having to use virtual desktops on windows for work, I appreciate macs spaces implementation so much more.

    I have windows 11 on my gaming computer and that’s fine with a third party clipboard manager, and powertoys.

    Windows 10 in the office even with powertoys and a third party clipboard manager still annoys me.

    The virtual desktop includes all monitors as one desktop. If you switch one screen to a different desktop it switches all of them. On my Mac I can switch per screen with a swipe.

    Also the virtual desktop overview is laggy so moving windows between virtual desktops is a pain. Furthermore in that overview you can only move windows between the same monitors virtual desktop, you can move across monitors for whatever reason.



  • Luvon@beehaw.orgtoVegan@lemmy.mlFavorite tofu marinades?
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    I’m partial to Thai peanut marinade From it doesn’t taste like chicken. She has a lot of marinades to try here

    Thai Peanut Marinade: 3 tablespoons peanut butter 1 ½ tablespoons soy sauce 1 ½ tablespoons lime juice 2 teaspoon agave ½ teaspoon garlic powder ½ teaspoon powdered ginger