• 1 Post
  • 72 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
    ·
    27 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.






  • 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
    2 months 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.









  • Faresh@lemmy.mltoProgrammer Humor@lemmy.mlOf course
    link
    fedilink
    English
    arrow-up
    13
    ·
    edit-2
    6 months ago

    Is there any situation where you’d want to remember the opcodes? Disassemblers should give you user-friendly assembly code, without any need to look at the raw numbers. Maybe it’s useful to remember which instructions are pseudo instructions (so you know stuff like jz (jump if zero) being the same as je (jump if equal) making it easier to understand the disassembly), but I don’t think you need to remember the opcode numbers for that.

    Edit: Maybe with malware analysis where the malware in question may be obfuscated in interesting ways to make the job of binary analysis harder?





  • Something I’ve been for a while now is why this gender disparity is so strong in this specific area of engineering compared to all other engineering areas. People seem to claim it’s because of the “geek” stereotype, but that seems more like a symptom than a cause and I fail to see how it enforces this disparity, considering there’s nothing preventing a woman from being a geek too.