• 1 Post
  • 15 Comments
Joined 1 year ago
cake
Cake day: January 16th, 2024

help-circle
  • What does smoking a cigarette here or there has to do with addiction?

    Where did I or the original post mention anything about occasional smokers? This post is offensive to those struggling from lifelong addiction to cigarettes, which is almost never a choice.

    Also wouldn’t it be the best advice against addiction find the will in oneself to stop doing it? If addicted smokers know what their cigarettes do for themselves and others, then they might want to try search for help, to get them off their addiction?

    Gee, that’s such great advice! Why didn’t the lifelong addict think of that one themselves? You just singlehandedly solved addiction.

    Noone chooses being addicted to cigarettes. It’s a mental health disorder just like being addicted to fentanyl or heroin, and a crippling one at that for some. Please educate yourself about what addiction is before defending posts like this. What you are doing is similar to shitting on people for “choosing” their sexuality or gender.


  • Derp@lemmy.mltoLemmy Shitpost@lemmy.worldThe solution to many problems
    link
    fedilink
    arrow-up
    10
    arrow-down
    29
    ·
    edit-2
    18 days ago

    What an insensitive and utterly vile post. If you understood anything about addiction, which I’ll remind you is a health disorder and not a personal choice, you would be ashamed of yourself. Some of us and our families are really struggling with huge impacts to physical and mental health, our entire lives, from addictions like this. Hope posting this made you feel better about yourself tho 👍




  • I just want to say thank you for writing such a detailed response. It’s been quite eye-opening for me, I wasn’t even aware that so many great resources and communities exist to explicitly counter this sentiment I’ve been feeling about negativity in news and other media.

    It’s very encouraging to see that I’m not the only one with this feeling, and even just the responses to this post are sending me on a whole journey of being more positive!








  • Test driven development. It’s a technique where you know what behaviour or result the code should produce, but you haven’t written any producing code yet. So you break down the problem into small steps which each produce a testable result or behaviour that brings you closer to what you need. And before writing any implementation for each of these small steps, you write a unit test which checks whether an implementation would execute this step correctly. Once you have each test set up, you can start writing the implementation, keeping it as simple as possible, and running the test until it passes for your implementation. This keeps going in a cycle.

    Once all your tests pass, provided you’ve written good and correct tests for every step, there are several benefits of this approach:

    • you can be quite confident that your code works as expected
    • making changes to existing code is much less scary, because you can change the thing you need to change, adjust or add tests accordingly, and rerun all the other tests to make sure everything else still works as expected
    • there is a big psychological benefit when you force yourself to define exactly what you expect the code to do before you actually write it
    • it can help others understand what the intent behind the code is by looking at its expected behaviour

    The downside is that it takes more time to write tests for everything. But for complex applications, it will save you a lot of time in the long run if the code will be changed very often in the future or is complicated, because many bugs will be caught by your test landscape.





  • The CLI is scriptable/automatable and unambiguous when sharing instructions with coworkers. Both of these things make it very useful to know the commands. I do agree that it helps in some situations to visualize what is going on with a GUI/TUI though (neogit for nvim or magit for emacs are great if anyone is wondering), it can make things clearer at a glance.