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

help-circle

  • Faresh@lemmy.mltoProgrammer Humor@programming.devof=/dev/sda
    link
    fedilink
    English
    arrow-up
    7
    ·
    edit-2
    2 days 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.













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



  • When using git and are working on a feature, and suddenly want to work on something else, you can use git stash so git remembers your changes and is able to restore them when you are done. There is also git add -p this allows you to stage only certain lines of a file, this allows you to keep commits to a single feature if you already did another change that you didn’t commit (this is kind of error prone, since you have to make sure that the commit includes exactly the things that you want it to include, so this solution should be avoided). But the easiest way is when you get the feeling that you have completed a certain task towards your goal and that you can move on to another task, to commit. But if you fail you can also change the history in git, so if you haven’t pushed yet, you can move the commits around or, if you really need to, edit past commits and break them into multiple.



  • I never got the pipe analogy. Since liquid water can’t be compressed, wouldn’t the amperes be directly proportional to the volts and to the size of the pipe, assuming there are no air bubbles? Also, supposedly resistance only reduces current, but when I think of hair in a pipe, the pressure after the obstruction would also be lower (because pressure is directly proportional to the amount of water that flows)