• 1 Post
  • 63 Comments
Joined 1 year ago
cake
Cake day: July 4th, 2023

help-circle


  • The surgeons handle this regularly, it’s routine for them. You get to relax and let them manage everything.

    I went through lung surgery a few years ago and coped by deciding that I could trust the surgeons (and other medical professionals) completely. They know what they are doing, and they have procedures in place to make sure everything goes well.

    Learning to consciously relax and trust everyone around you is a something that takes constant effort, but in my opinion, it’s worth it.

    My surgery went well, no complications, and my recovery was exactly on schedule.





  • Most engines are less than 30% efficient at producing movement. The majority of the energy is lost as heat.

    Thermodynamics tells us that pretty much all energy ends up as heat. In a closed system, any device that uses energy is 100% efficient at making heat. A 1000W computer will make exactly as much heat as a 1000W heater.

    A 100% efficient engine can only exist if the desired output is heat, thus making it a pretty useless engine. Also, in a closed system, the exhaust cannot leave.





  • I find making a simple text based calculator is a good way to test your skills while learning.

    Start by adding 2 numbers together and outputting the result.
    Then upgrade the calculator by getting the numbers from user input.
    Now you get to decide the next upgrade. Does the user want to add 3 numbers? Perhaps they want to subtract instead. Maybe the user wants to start a new calculation immediately after finishing. What about error handling? What should the program do if the user enters something that isn’t a number?

    Each step provides new challenges and new learning opportunities.

    Make sure to test frequently. The more code you write between tests, the harder it becomes to track down bugs.


  • More difficult advice:

    Get enough sleep. Programming is something that takes a lot of focus. If you are tired, you won’t learn as quickly, and you’ll make basic mistakes that are hard to track down and fix.
    Every time I’ve done programming while tired, I’ve started the next day by reverting everything I just changed and doing it properly.

    Don’t start the day with social media. Social media is an instant reward system. When you start the day on your phone, you condition your brain to crave instant rewards. Programming can take quite a while to get the reward feeling, and it’s not as strong as social media rewards.

    Let yourself get bored. It hurts. No-one likes being bored. But boredom is often the precursor to creativity. With all the distractions of the internet, boredom can be hard to come by, but it is also the strongest motivator. When you are bored and have no other options, you’ll find that there are many mundane tasks you’d rather be doing.

    Don’t worry if you can’t manage any of these. I’ve been trying for years and haven’t managed any of them consistently.


  • Body doubling: Have someone sit with you to keep you on task. They don’t need to understand the task, just recognise when you get distracted.

    Inspiration: Watch a video of someone doing a similar task. Not a tutorial, but someone having fun and showing off how they code.

    Jump in: Open a development environment and start writing something. If you’re still learning, copy a small example and see if you can make it do something else.

    Accountability: Tell someone what you are planning to do, and report back to them. Don’t set high goals, just aim for progress.

    No distractions: Give your phone to someone else, or put it in an inconvenient place. Mindlessly scrolling is too easy if the phone is within reach.

    Not all of these will work for you, but perhaps some of them will.


  • Windows kept doing things I didn’t want it to.

    The last straw was when I had a 24 hours render running, and Windows decided to update and reboot 1 hour before it was done. I was using the computer at the time, RAM, CPU, and GPU were all at max, the mouse was being moved, I clicked “later” every time the update pop-up appeared, and it still rebooted.

    Linux does what I tell it to, and doesn’t do what I tell it not to do. I didn’t think that was a big ask until Windows.