• 0 Posts
  • 134 Comments
Joined 1 year ago
cake
Cake day: July 3rd, 2023

help-circle

  • expr@programming.devtoProgrammer Humor@lemmy.mlI love Rust
    link
    fedilink
    arrow-up
    10
    arrow-down
    1
    ·
    7 days ago

    Don’t need the Ord instance for equality, just Eq is sufficient. Ord is for inequalities.

    The point of the post is that most mainstream languages don’t provide a way to automatically derive point-wise equality by value, even though it’s pervasively used everywhere. They instead need IDEs to generate the boilerplate rather than the compiler handling it.











  • I’ve been using vim as my daily driver for development for the last 8 years.

    There are a million things I could talk about regarding vim’s editing language, consistent interface, scriptability, performance (seriously, I’ve opened 1GB+ files and vim barely breaks a sweat), etc., but one thing I’ll highlight that most people don’t talk about is vim’s ability to interface with other tools. It’s what takes vim from a great editor into a full-fledged development environment. You can:

    • Read the stdout of any shell program into a vim buffer (:help read !)
    • Use the contents of a buffer as stdin to any shell program (:help write !)
    • Filter a portion of the buffer through any shell program, replacing the contents with that program’s stdout (:help !)
    • Parse the output of a program or the contents of a file into a set of entries for quick navigation (:help quickfix, :help make)
    • Insert the output of a shell program into the current buffer (:help <C-R>=, specifically when used with the :help system() function)
    • Control arbitrary jobs with vimscript and communicate back and forth with code

    And much more. I use all of these every day: the output of git commands give me filepaths I can jump to with gf; a range in vim selected with the v command gives me line numbers to pass to git log -L to see the history of a section of code; the current filepath of the vim buffer is pass to many different shell commands to do processing with that file; the symbol under the cursor is passed as an argument to the open command on macos to lookup external (company-specific) documentation in a Web browser. And many, many other things. Unix is my IDE, and vim is at the heart of it.




  • It’s definitely not great here at all, though I’d say it’s a bit different for professional software developers (who probably make up the bulk of contributors), since that kind of job tends to give you better benefits. In my experience, it’s typical to either have unlimited PTO (that you may or may not be able to take, admittedly, though I’ve never had an issue with that), or at least a couple weeks of vacation a year. I’ve never worked anywhere as a software engineer where I had to really even account for sick time at all. I just tell my team I’m sick and that’s about it.