• 2 Posts
  • 190 Comments
Joined 3 years ago
cake
Cake day: March 25th, 2022

help-circle

  • Faresh@lemmy.mltoProgramming@programming.devSelf-documenting Code
    link
    fedilink
    English
    arrow-up
    7
    arrow-down
    1
    ·
    10 days ago

    Comments are super useful but soooo overused

    I think overusing comments is a non-issue. I’d rather have over-commented code that doesn’t need it, over undocumented code without comments that needs them. If this over-commenting causes some comments to be out of date, those instances should hopefully be obvious from the code itself or the other comments and easily fixed.






  • https://www.gnu.org/philosophy/free-sw.html#four-freedoms

    What is Free Software? - GNU project

    The four essential freedoms

    A program is free software if the program’s users have the four essential freedoms: [1]

    • The freedom to run the program as you wish, for any purpose (freedom 0).
    • The freedom to study how the program works, and change it so it does your computing as you wish (freedom 1). Access to the source code is a precondition for this.
    • The freedom to redistribute copies so you can help others (freedom 2).
    • The freedom to distribute copies of your modified versions to others (freedom 3). By doing this you can give the whole community a chance to benefit from your changes. Access to the source code is a precondition for this.

    I don’t know however if it is illegal to use the source code without having bought the game first, so I don’t know if toothbrush is correct with their point.

    Something that I find could prevent it from being called free or open-source software is the fact that you are not allowed to make derivative works for comercial use.

    You may not alter or redistribute this software in any manner that is primarily intended for or directed toward commercial advantage or private monetary compensation. This includes, but is not limited to, selling altered or unaltered versions of this software, or including advertisements of any kind in altered or unaltered versions of this software.

    https://github.com/flibitijibibo/RogueLegacy1/blob/main/LICENSE.md

    “Free software” does not mean “noncommercial.” On the contrary, a free program must be available for commercial use, commercial development, and commercial distribution. This policy is of fundamental importance—without this, free software could not achieve its aims.

    https://www.gnu.org/philosophy/free-sw.html#selling


  • I recognize you and your profile picture from some quite popular Luanti mods. :D I have a question regarding making content for Luanti:

    I’ve been interested in maybe some day making a game for Luanti, but I don’t really like Lua (I for example imagine that undefined variables evaluating to nil rather than directly throwing an error, identifiers by default being public, and absence of static checking of possibility of null dereference before runtime to be things that can cause quite some annoying bugs). Is there some popular X to Lua transpiler that you’ve heard people using? Something like what Typescript is to JS or Kotlin/Clojure/Scala to Java (not exactly the same thing since they all compile directly to jvm bytecode rather than java, but you get the point).

    I hope I’m not insulting you by asking such a question.









  • I installed NoScript just a few days ago, because I’m forced to use a really weak computer that struggles to even browse the modern web. I feel like NoScript improved it a lot, and while quite a few websites broke (including lemmy) (but most will still display the content), I just set the ones that I need working to trusted, but the performance is still good (I should note I’m also using it in conjunction with an automatic tab discarter).

    I however also don’t directly use Google. Both SearX and Yandex don’t need javascript, so I’m unaffected by these news, despite being a bit mad about it as a reflection of the direction the web is going as a whole.



  • Faresh@lemmy.mltoProgrammer Humor@programming.devof=/dev/sda
    link
    fedilink
    English
    arrow-up
    7
    ·
    edit-2
    1 month ago

    echo and alias are both shell commands. If the shell is running (which it obviously still is), those commands should still work, as it does not involve reading data from disk, but from memory.

    Edit: I just noticed the picture said cd was not found, which is also a shell built-in. So, I don’t know.