Gamma

  • 13 Posts
  • 159 Comments
Joined 1 year ago
cake
Cake day: June 10th, 2023

help-circle





  • GammatoLinux@lemmy.mlThe Open Source Computer Science Degree
    link
    fedilink
    English
    arrow-up
    7
    ·
    edit-2
    3 months ago

    Taking courses which involve subjects that you will likely never encounter in the workforce is a thing in every discipline. Most engineers don’t need to manually solve differential equations in their day jobs, they just need to know that they exist and will often require numerical solutions.

    Getting your hands dirty with the content provides a better understanding when dealing with higher level concepts.




  • GammatoProgrammer HumorWhich one???
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    1
    ·
    edit-2
    4 months ago

    Yeah, I’d write this as a single update script with options to update vimplugins or update pkg or update all.

    I see that you want it to be a function so you can get the chdir as a side effect, but mixing that with updating doesn’t make sense to me.


  • GammatoProgrammer HumorWhich one???
    link
    fedilink
    English
    arrow-up
    14
    arrow-down
    1
    ·
    4 months ago

    When in doubt, ~/.zshrc. It’s the right choice 99% of the time. Otherwise, there’s a chance you fuck up scripts you’ve installed which assume no shell options have been changed in non-interactive contexts.


  • GammatoProgrammer HumorWhich one???
    link
    fedilink
    English
    arrow-up
    2
    ·
    4 months ago

    What kind of functions do you write which you share between your scripts? Generally if I’m wanting to reuse a non-trivial function, I extend the functionality of the first script instead.