I’m not UlrikHD

  • 1 Post
  • 127 Comments
Joined 2 years ago
cake
Cake day: September 19th, 2023

help-circle

  • Assume you’re saving X amount of money each month for your retirement.

    Your options for storing that money is either:

    1. In cash which will “lessen” in value as time goes by due to inflation
    2. In a savings account with middling interest rate
    3. Or you could invest in the stock market which will typically offer better return.

    Assuming you go for option 3, would you choose to invest in a company with zero growth meaning your retirement fund won’t grow, or would you choose a company that is constantly growing?

    Nobody would choose to invest in a company with zero growth or which doesn’t return money back in the form of dividends.

    You’re objectively better off investing in companies that grow since those are the companies that will grow your investment.


















  • For example, how could it know whether cat $foo should be cat "$foo", or whether the script actually relies on word splitting? It’s possible that $foo intentionally contains multiple paths.

    Last time I used ShellCheck (yesterday funnily enough) I had written ports+=($(get_elixir_ports)) to split the input since get_elixir_ports returns a string of space separated ports. It worked exactly as intended, but ShellCheck still recommended to make the splitting explicit rather than implicit.

    The ShellCheck docs recommended

    IFS=" " read -r -a elixir_ports <<< "(get_elixir_ports)"
    ports+=("${elixir_ports[@]}")