• 1 Post
  • 80 Comments
Joined 2 years ago
cake
Cake day: June 11th, 2023

help-circle




  • This is so relevant to an issue I’m having. It turns out a spelling mistake caused all my API calls not to quote the services needed. So basically thousands of dollars thrown away because I fucked up.

    But… why is their API not raising when I send unknown data? Sounds very susceptible to hacking. And of course when I press the issue I get ignored. I hate this industry (shipping).






  • I loathe JavaScript heavy websites, especially when used for forms. Don’t break autofill and copy/paste. And don’t complain about the format just because I pasted! Seriously, why is pasting text in the correct format triggering some JavaScript framework? It all seriously gets to me.

    With that said, I really like Hotwire. HTML over the wire is bliss. Stimulus is perfect for sprinkling non-invasive JavaScript throughout an application.



  • …but it can be nice to dabble.

    I’m a Ruby developer but recently needed to solve a problem from within a non-Ruby Kubernetes container.

    If I stuck with what I know I would’ve had to include the entire Ruby runtime into a totally unrelated application’s image.

    Knowing exactly how to solve the problem in Ruby but not wanting to add hundreds of Ruby scripts everywhere, I found Crystal was the perfect fit for my needs.

    I was able to write a slim sidecar container. The Dockerfile compiles it into a static binary, trashes the entire toolchain (FROM build) and the resulting image is just a few megabytes.


  • I’d kill for an IDE on macOS that uses the native UI. I guess my hot take when it comes to GUI applications is: respect the platform you’re running on. Your core codebase should be separate from the UI in a way that the application looks like it was written by Apple on macOS, Microsoft on Windows, Google on Android, etc.

    I could go on forever about this but some examples:

    • VS Code, Microsoft Word, Excel, etc all lose their minds and crash when moving a file while it’s open on macOS, a limitation that doesn’t exist in UNIX-based file systems. Did they port some FAT/NTFS driver somehow? You also can’t Command + Click the title of the document to pull it up in Finder.
    • Firefox, while I love it to death looks like a clunky Windows application
    • Oh yeah, Google Chrome looks way off too
    • GIMP looks like GTK because it is GTK on macOS, Windows
    • Electron apps that are just wrappers around websites


  • Hmm, I’m conflicted on this. For some context, I’m a self-taught developer programming for 10 years but programming professionally just under five years. Believe it or not I didn’t really learn to write tests until about a year ago.

    I feel I’ve been killing it at work with small, simple unit tests but I do test just about any new method I write. A lot of that has to do with type checking and a lot of the methods would have huge consequences if they were off.

    I actually love that they’re so brittle because it quickly catches problems that need fixing. But lately I’ve abstracted away some things that are easier to test at the class level.







  • I work all day with Kubernetes, remote servers, web applications and stuff like that. We’re usually trying to conserve resources for the actual apps we run — it wouldn’t make any sense to install an entire GUI / desktop OS on these things.

    At home I manage my router, server, NAS almost exclusively from the terminal. There’s just no reason to use a GUI. GUI kind of sucks, you have to move your hand away from the keyboard to point and click, it’s far more constrained and for the most part it only serves as a wrapper to more advanced functionality.