• 6 Posts
  • 805 Comments
Joined 5 years ago
cake
Cake day: May 31st, 2020

help-circle
  • somewhat logical, but entirely in practice verb-noun command structure.

    That’s supposed to be “impractical”, not “in practice”, for others reading along.

    For example, the “proper” command to list a directory is: Get-ChildItem
    The “proper” command to fetch a webpage is: Invoke-WebRequest https://example.com/

    In these particular cases, they do have aliases defined, so you can use ls, dir and curl instead, but …yeah, that’s still generally what the command names are like.

    It’s partially more verbose than C#, which is one of the most verbose programming languages out there. I genuinely feel like this kind of defeats the point of having a scripting language in the first place, when it isn’t succinct.
    Like, you’re hardly going to use it interactively, because it is so verbose, so you won’t know the commands very well. Which means, if you go to write a script with Powershell, you’ll need to look up how to do everything just as much as with a full-fledged programming language. And I do typically prefer the better tooling of a full-fledged programming language…


  • somewhat logical, but entirely in practice verb-noun command structure.

    That’s supposed to be “impractical”, not “in practice”, for others reading along.

    For example, the “proper” command to list a directory is: Get-ChildItem
    The “proper” command to fetch a webpage is: Invoke-WebRequest https://example.com/

    In these particular cases, they do have aliases defined, so you can use ls, dir and curl instead, but …yeah, that’s still generally what the command names are like.

    It’s partially more verbose than C#, which is one of the most verbose programming languages out there. I genuinely feel like this kind of defeats the point of having a scripting language in the first place, when it isn’t succinct.
    Like, you’re hardly going to use it interactively, because it is so verbose, so you won’t know the commands very well. Which means, if you go to write a script with Powershell, you’ll need to look up how to do everything just as much as with a full-fledged programming language. And I do typically prefer the better tooling of a full-fledged programming language…


  • Ephera@lemmy.mltoLinux@lemmy.mlLinux security
    link
    fedilink
    English
    arrow-up
    37
    ·
    4 days ago

    I just want to say that you’re probably worrying too much about it. Of course, there is lots of things one can do to improve security (which the others here are listing dutifully) and it is foolish to just assume that one’s computer is entirely secure, because as a user, you will always have the ability to bypass that.

    But there’s a pretty firm consensus in the IT industry that Linux is more secure than Windows. And that the popular Linux distributions are more trustworthy organizations than Microsoft.

    So, it’s good to inform yourself, but if you survived on Windows, you at least should not worry about the Linux side of things. It’s more than fine.










  • The support mechanism that went with it — this notion of crates and barrels and things like that — was just incomprehensibly big and slow.

    Dude what? C’s build systems like cmake are notoriously unfriendly to users. Crates make building trivial compared to the ridiculous hoops needed for C.

    I wouldn’t be surprised, if the guy does not normally use a build system to begin with. Professors don’t tend to have the time to write software that would require a build system (both in terms of complexity and being used by end users).

    So, I’m guessing, all he wanted was rustc, but most Rust tutorials don’t bother explaining it, because cargo isn’t much harder to use.


  • I don’t have proper experience with it, I just built a small prototype with it back in 2021, to evaluate it for a project. But yeah, apparently these were my notes:

    Nim: Significant whitespace [derogatory], no interfaces/traits, imports throw random functions into scope like in Python (plays a big role with supposed object-orientation, as methods don’t get imported along with a type; they’re loosely attached and just imported along), somewhat ugly syntax

    Apparently, past-me wasn’t as big on the syntax. 😅

    But I can see why, because this is the code I wrote back then, apparently (I wanted to create a OS configuration framework à la Puppet, Ansible etc.):

    main.nim:

    import strformat
    import role, host
    
    let host2 = Role(
      description: "sdadsj",
      code: proc (host: Host) = echo "sakjd"
    )
    
    echo host2
    
    
    type Role2 = ref object of RootObj
      description: string
    method deploy(self: Role2) {.base.} = discard
    
    
    type KWriteConfig5 = ref object of Role2
      cheese: string
    method deploy(self: KWriteConfig5) = echo fmt"Deploying: {self.cheese}"
    
    
    let test = KWriteConfig5(
      description: "Deploy KWriteConfig5.",
      cheese: "cake"
    )
    
    test.deploy()
    
    
    let rolerole = Role2(
      description: "RoleRole",
    )
    
    rolerole.deploy()
    

    host.nim:

    type Host* = object
    

    role.nim:

    import host
    
    type Role* = ref object of RootObj
      description*: string
    method deploy(self: Role) {.base.} = discard
    

    Certainly some syntax elements in there where I have not even the faintest guess anymore what they would do…






  • There’s somewhat of a historical context, where there were forums at first, where people generally used pseudonyms. Then the broad wave of webpages originally dubbed “social media” happened, which wanted users to use their real names. In that context, Lemmy doesn’t feel like social media.

    But the strong distinction for platforms to either be pseudonymous or prefer real identies somewhat seized to exist, because it’s not anymore novel to use your real identity on the internet. For example, TikTok has a mixture of folks showing their face, as well as completely anonymous uploaders.

    Instead, the definition is becoming more about: Do you interact with other humans? Which is a definite yes for Lemmy.


  • There’s somewhat of a historical context, where there were forums at first, where people generally used pseudonyms. Then the broad wave of webpages originally dubbed “social media” happened, which wanted users to use their real names. In that context, Lemmy doesn’t feel like social media.

    But the strong distinction for platforms to either be pseudonymous or prefer real identies somewhat seized to exist, because it’s not anymore novel to use your real identity on the internet. For example, TikTok has a mixture of folks showing their face, as well as completely anonymous uploaders.

    Instead, the definition is becoming more about: Do you interact with other humans? Which is a definite yes for Lemmy.