Every single day convinces me more and more that IDisposable interface is one of the most disastrous things in C#. So easy to screw up in so many ways...
@khalidabuhakmeh@atruskie I recently started working on a legacy code that injects disposable dependencies through servicecollection/provider into bussiness objects. Bussiness object was not designed to be instantiated repeatedly and unit tests are crashing randomly due to dependencies being disposed at unexpected occassions.
The xUnit using IDisposable for TearDown is confusing and sometimes people forget to inherit Disposable for the Fixture object and only implement Dispose method.
Not to mention all that mess that comes from inheritance. I wonder whether it is possible to enforce Dispose method only being implemented for sealed objects.
@khalidabuhakmeh@jakub_neruda yeah the "using var" is my default when (mostly) I remember. But even though it's neater a missing "using" for a "var" statement kinda blends in. You can't tell at first glance it's missing unless you know the type is disposable...
Was suggested #Obsidian by multiple friends yesterday as a note taking app. Currently I use #Typora, but I'm interested to see what this has goin' for it.
What better person to demo #Mojo than @jh. 🔥I know he had great hopes for Swift as a better AI language, as did I, but then Google sadly discontinued the "Swift for TensorFlow" project. Now Mojo looks like what we've been waiting for.
One area I find a lot of software engineers and even software companies lack is a good periodic communication to users. I see a lot who simply point at a commit log, a stack of closed bugs, or release notes and call it a day. Some just don't provide any insight at all.
Something simple like a curated, reliably monthly newsletter can go a long way in informing users of key updates, building a stronger community, and even just letting users know that the lights are still on.
Hello, #Fediverse! I am Ivan Rodriguez. I am a college student in #Amarillo, #Texas. I am learning to become a full-stack #webdeveloper, and although I have not used all of them, I know the basics of many of the mainstream #programming languages (see the color-coded doughnut chart below).
Besides programming, I am an ameture #journalist (when I have the time and energy to do so), and I like learning more about the world.
@AccordionGuy very nice. I can’t remember if I told you this or not, but your blogs came up in a lot of the searches I was doing when I was learning how to implement time zones properly. They were really helpful!