Derp

joined 2 years ago
[–] [email protected] 3 points 1 week ago

With symbol names it's trivial to notice and refactor. Comments, not so much.

[–] [email protected] 7 points 1 month ago (1 children)

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.

[–] [email protected] 12 points 1 month ago* (last edited 1 month ago) (7 children)

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 👍

[–] [email protected] 5 points 2 months ago (1 children)

Not the original commenter, but no need to apologise my friend. Nice work. Learning tip from me: give PEP 8 a read and save it for reference somewhere. It's the standard for how to format Python code, and future you will thank you for internalising it early on in your Python journey

 

Looking through my media feeds, including Lemmy, YouTube, News Outlets (Reuters, Financial Times) as well as news related to my profession, I would estimate that 85% of what I see is doom and gloom, i.e. reports about something that's going wrong in the world or might go wrong in the future.

I try to limit what I follow to educational and unopininated sources (as far as that's possible anyways) and some satire or a meme here and there. I don't like suggestion algorithms and don't use social media, because I don't want to be trapped in a self-reinforcing bubble. On YouTube for example, I use third party apps which show me only videos from channels I explicitly follow.

Still, it's mostly depressing information: how bad the job market and economy is, geopolitical threats, AI risks, symptoms of late stage capitalism. I am aware, thanks. But I didn't ask to hear these things over and over and over again, and it's negatively affecting my outlook on life. I've given up on reading the news entirely because I just get triggered by the enshittification of society, politics, the environment and daily life where I live. At this point I'd rather not hear about it anymore.

What I want to ask is whether you are having the same experience? Am I doing something fundamentally wrong? I don't want to be blind to what's happening in my/the world, but I want to have a positive and optimistic outlook on the future. How can I make that happen? How can I get away from an engagement economy constantly bombarding me with bad news without giving up on learning about the things that I am interested in?

[–] [email protected] 2 points 6 months ago

Here come the downvotes, which most seem to use based on whether they agree with something or not, rather than for signalling the quality of a comment. It fosters echo chambering rather than healthy discussion. I for one think that this is an excellent question and discussion.

[–] [email protected] 23 points 7 months ago

This reads like fake news. No publication date, no sources listed, very vague and self-contradictory on the details. How is no other news outlet corroborating this?

I'd take this one with a huge grain of salt.

[–] [email protected] 12 points 7 months ago* (last edited 7 months ago) (1 children)

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.

[–] [email protected] 1 points 7 months ago* (last edited 7 months ago)

Yes. And by improving and changing the system, it by definition stops being anarchism and becomes something else. Which is what I was saying.

[–] [email protected] 9 points 7 months ago (3 children)

I mean, anarchism was the initial state, so it has been tried. It seems that it is not very resilient against being replaced by other systems, so it can't really be the best system in the real world.

[–] [email protected] 0 points 8 months ago

This is the way.

[–] [email protected] 5 points 8 months ago (1 children)

Maybe you've been sold a bit of a lie.

Linux is not like Windows. Linux will never be like Windows. It is first and foremost a general operating system, not necessarily a Desktop operating system.

IMO, that means you will never truly be able to completely avoid using the terminal here or there.

Telling people that it's easy to switch from Windows to Linux is just not true. Linux just works differently and going in with the expectation that things will work the same way only serves to disappoint those brave enough to attempt the switch.

If you try again, go in with the mindset that you've never used a computer before, and without needing to depend on Linux for your day to day computer work. See it as a tinkering side project, and maybe it will stoke your curiosity enough that you'll want to use it day to day.

[–] [email protected] 4 points 9 months ago (1 children)

can't we all just enjoy the frog without associating it with any politics

 

Had some fun just tinkering in Blender. Didn't turn out too bad, using this as my wallpaper at the moment. Happy to rerender with different colors if anyone's interested :)

view more: next ›