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

help-circle




  • Her is my take to try to help you.

    If it’s your own code, you can add docstrings comments to your functions, so you don’t have to re-read the function body everytime. Also, name functions to be understandable more easily when possible.

    If not your code, write on a piece of paper (not on computer) the in and out of a function, maybe like so:

     [1,2,3] -> (sum function) -> 6
    

    Then, you can even connect the functions together and see the whole algorithm:

    [1,2,3] -> (sum) -> (multiplyBy2) -> (...) -> final_result
    

    When projects get more complex, paper will not cut it, then some note taking app of some sort will help. (logseq could help, but some mind mapping or sequence diagram programs would help as well)

    Also, I don’t know what language your are working with, but learning LISP (maybe clojure) could help.
    Why? Because you have to connect your functions together, and it forces you to do so.
    At first, it might be harder compared to what you’re used to, but it’ll give you better fundations to keep learing.





  • simonced@lemmy.onetoProgrammer Humor@lemmy.mlPHP is dead?
    link
    fedilink
    English
    arrow-up
    13
    arrow-down
    4
    ·
    8 months ago

    Serious Answer: PHP in itself is not that bad, despite some discussable decisions in function naming and arguments order to name a few. The biggest problem, is that it has a settings file describing how it works (php.ini) and that sh*t will bite you in the rear when you move apps from server to server, where all the libs are different etc… PHP never works out of the box when moving something on a new server, that is the worst part of the language.









  • simonced@lemmy.onetoLinux@lemmy.mlInterested in learning more
    link
    fedilink
    English
    arrow-up
    2
    ·
    10 months ago

    What I like with Linux:

    • no restart behing my back to force install updates when I have pending work
    • no bloat
    • customizable (win11 forcing to having windows of same app groupped grinds my gears!)

    Though, it’s not perfect (I guess I have slight hardware issues on my end), I feel way more relaxed (really) when using Linux than Windows.




  • A lot of input in the comments, I’ll just add mine in the mix.
    I guess wanting to change the OS for someone can be good if:

    • the current Windows version is EOL and/or has security issues/concerns,
    • the hardware is too old to upgrade,
    • the current user is fed up with crashes, popups, slowliness etc…

    Now, I would go for Mint anyday instead of Ubuntu, because the default matte desktop feels more confortable when coming from windows.

    As for Scrivener, I don’t even know what it is, but Wine is quite good recently, so if you’re tech/linux savy, you could try to make it work.