• 0 Posts
  • 36 Comments
Joined 1 year ago
cake
Cake day: July 4th, 2023

help-circle







  • eeleech@lemm.eetoProgrammer HumorVery clever...
    link
    fedilink
    arrow-up
    14
    arrow-down
    2
    ·
    8 months ago

    Having the commands listed at the bottom by default is one thing i personally dislike about nano, because they take up space while being useless to someone knowing the commands (or at least knowing how to open the help in, which is what you can do in vim to achieve the cheat sheet). The alternative that vim uses, is to show the commands when starting the editor without opening a file.






  • eeleech@lemm.eetoProgramming@programming.dev*Permanently Deleted*
    link
    fedilink
    arrow-up
    6
    arrow-down
    1
    ·
    edit-2
    9 months ago

    I don’t really have a single favorite a language, if I am able to choose freely it depends on the task.

    • C++ for natively compiled programs and C interoperability, I like the types from the STL and templates.
    • Clojure is IMO great for data-oriented programs, I really like the immutability and it being a lisp. The java interop and the ability to compile to JavaScript with clojurescript can also be useful.
    • Julia for smaller (mostly numerical) programs that should be fast at runtime. The type system is great in being optional, but strong and significantly improving performance when types annotations are used.
    • Fennel (or Lua) is definitely my favorite Language for embedding into larger programs and scripting. Fennel has the advantage of being a lisp and cleanly compiling to lua.
    • brainf*ck is great as a simple language to have fun and enjoy programming



  • eeleech@lemm.eetoLinuxbcachefs is now in linux-next!
    link
    fedilink
    arrow-up
    8
    arrow-down
    1
    ·
    9 months ago

    RAID 5/6 is somewhat broken, and some people might consider the lack of built in encryption or support for a cache disk as problems. For some reason it seems popular to blame it for data loss.

    That being said, it is my favorite file system and I never had problems with data loss, but I use ECC RAM on my desktop as is strongly recommended if you use btrfs or zfs (another potential downside).




  • I genuinely don’t know if scratch is the right choice or a simple text based language would be better, especially for the older kids. Just from my personal experience, I started programming in BASIC at 12 and don’t think I would have had as much fun and continued programming if i had used scratch instead.


  • You don’t even need to look at the extension to identify most file formats, as there are unique magic numbers stored at the beginning of most (binary) formats. Only when a single binary format is reused to appear as two different formats to the user, e.g. zip and cbz are extensions relevant. This is how the file command and most (?) Linux file explorers identify files, and why file extensions are traditionally largely irrelevant on Linux/Unix.

    This means your idea of suggesting software based on the file type is even more practicable than you described.