• 1 Post
  • 7 Comments
Joined 1 year ago
cake
Cake day: June 7th, 2023

help-circle


  • Several times, sometimes to find out when an incompatibility was introduced in an upstream dependency to find the maximum compatible version, but usually to find the commit that introduced a strange bug.

    The process is always the same… Write a unit test, start bisect, check test select next bisect step, repeat. If your last-known-good and first-known-bad are correct, it always worked for me.



  • I seldom use profilers because I seldom need to. It’s only usefull to run a profiler if your programm has a well defined perfomance issue (like “The request should have an average responsetime of X ms but has one of Y ms” or "90% of the requests should have a response after X ms but only Y% actually do).

    On the other hand I use a debugger all the time. I rarely start any programm I work on without a debugger attached. Even if I’m just running a smoke test, if this fails I want to be able to dig right into the issue without having to restart the programm in debug mode. The only situation, where i routinely run code without a debugger is the red-green-refactor cycle with running unit tests because I’ll need to re run these multiple times with a debugger anyway if there are unexpected reds…

    What enables me? Well there’s this prominent bug-shaped icon in my IDE right besides the “play button”, and there’s Dev-Tools in Chrome that comes with the debugger for JS…

    Running your code without a debugger is only usefull if you want to actually use it or if you’re so sure that there aren’t any issues that you might as well skip running the code altogether…



  • That’s an important question to ask. For me (and I want to make very clear that this is exclusively how I handle things for myself) there is a huge difference between things I use (or what I call passive association) and things I work on or contribute to (or what I call active association).

    While im ok-ish with using their software if they don’t really profit from my usage, I wont be actively helping them. Given the state of the world and western society, I can’t really escape using products that are unethical and as a software developer working for a company I can’t really decide who gets to use my paid work and since I very much like having a bed and a roof and food and even some comfort in that, I’d rather stick to my job, but I can make a choice on who I support with my free time.