• 0 Posts
  • 15 Comments
Joined 2 years ago
cake
Cake day: June 13th, 2023

help-circle
  • Don’t design for having a nice codebase today, design for having a clean codebase after 3 months of Devs copy pasting one bit of code then tweaking it to do what they need or adding more fields to existing concepts.

    This generally means it’s best to have one pattern for a given thing, rather than having several patterns you pick based on context, the later runs into problems:

    • Someone copy/pasted pattern A for a pattern B context
    • Enough stuff changes in a pattern A implementation that it would now be better as a patter B thing.

    A second consideration for this is that if there are a group of classes/files/whatever that regularly needs to be copied they should live together. If there are different sections of the code that needs to be edited when creating a new resource, they should be kept in one place and kept small-ish.

    Most of this comes from accepting the way people tend to work and from the perspective that software is a living evolving process and only regarding a snapshot of it misses vital information.


  • I was going to say you have a static sense of what orientation you are in, e.g. you can tell standing up Vs lying on your front/back/side without relying on other senses and that feels different to the sensation of moving…

    But thinking about it I guess the orientation sense is just detecting acceleration due to gravity?




  • Djehngo@lemmy.worldtoLemmy Shitpost@lemmy.world5 tomatoes
    link
    fedilink
    arrow-up
    60
    arrow-down
    1
    ·
    1 month ago

    The only metric to imperial conversion I remember is kilometers to miles since it’s pretty close to the golden ratio.

    Even if you don’t remember that the golden ratio is 1.6 and a bit, you can approximate it by using successive terms of the Fibonacci sequence.

    1, 1, 2, 3, 5, 8, 13 …

    So 8 miles is about 13km (actually 12.87)




  • Do you get joy from simple things like eating a nice meal or taking a hot shower on a cold day?

    Can you anticipate joy, if you are planning to meet up with friends or watch a movie or read a book; does thinking about the activity lift your mood even a little?

    When you think back to happy memories do you feel happy, do you remember what the sensation of happiness felt like?

    Not a professional and none of this is diagnostic one way or another, but it’s probably worth checking if you have exhausted or outgrown a hobby which just means you need to find more things you enjoy even if it’s just to add variety to your week. Or if your ability to feel joy itself is failing, in which case you probably need to a professional


  • As much as I dislike the fact that the “flagship” instance for lemmy is an echo chamber that bans for political wrong think, I still think Lemmy on average is a positive and it isn’t funded by ads or vcs so it should be proof against the most common avenues for enshittification.

    So I set up a recurring donation despite being someone that would 100% get banned by the people I’m donating to if I were to comment on their instance.

    Same way I can’t stand people using one negative within a larger political platform as an excuse to parrot anti-electoralism I feel like I shouldn’t use one unfortunate facet of the fediverse as an excuse not to donate towards its continued development.

    Support “better” rather than waiting for “perfect”