• 2 Posts
  • 237 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
    ·
    18 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.


  • Faresh@lemmy.mltoRetroGaming@lemmy.worldHow hard could it be?
    link
    fedilink
    English
    arrow-up
    5
    ·
    edit-2
    22 days ago

    you’re not usually directly accessing/working on the hardware

    I mean, you are. Sure, there’s a layer of abstraction when doing tasks that require the intervention of the kernel, but you are still dealing with cpu registers and stuff like that. Merely by writing in assembly you are making your software less portable because you are writing for a specific ISA that only a certain family of processors can read, and talking with the kernel through an API or ABI that is specific to the kernel (standards like Posix mitigate the latter part somewhat, but some systems (windows) aren’t Posix compilant).



  • Btw, what is a non-local RSS reader? I have come across multiple that RSS readers that advertise being “self-hosted” and I’m confused about that since in my mind RSS readers are simply clients that periodically query different servers for an .rss file, so I’m confused about where there is anything to host besides the host of the .rss feed.