• 1 Post
  • 31 Comments
Joined 2 years ago
cake
Cake day: June 12th, 2023

help-circle



  • Later on, I learned that an excess of comments is actually not considered a good practice.

    Pointless or uninformative comments are not good, regardless of the quantity.

    Useful and informative comments are always good, regardless of the quantity.

    I learned that comments might be a code smell indicating that the code is not very clear.

    When I’m looking at someone else’s code, I want to see extensive, descriptive comments.

    Good code should be so clear, that it doesn’t need comments.

    That hits me like something a teacher tells you in a coding class that turns out to be nonsense when you get to the real world.

    I’m not sure how others do it.

    As I’m coding, the comments form part of my plan. I write the comments before the code. As I discover I’ve made incorrect assumptions or poor decisions, I correct the comments with the new plan, then correct the code to match the updated comments.

    As a final step in coding, when I feel it is complete, I’ll review comments to determine what should remain to help future me if I ever have to dig into it again.

    Variable names should be reasonably memorable and make contextual sense, but that’s it. That’s what they exist for. Don’t overload the purpose of anything I’m the code.





  • Asked a user to log into a computer at work. She would have been around 25 or so about 6-7 years ago.

    I was stunned watching her turn on caps lock each time she had to type a character in uppercase. I didn’t understand it at all until my mom pointed out she probably always used a phone or a tablet and never learned what the shift key was for.

    Still blows my mind because by that point in that user’s education she had probably written hundreds if not thousands of papers to get where she was. I can’t imagine her doing that without using the shift key.


  • none of them have ever built a computer. They seem to think it’ll be really hard.

    Depends on what you’re starting with. If you mean assembling a case, power supply, motherboard, processor, RAM, storage, video adapters, etc., the only difficult part of that is deciding you can do it.

    If you’re talking about assembling components on a breadboard, that’s going to be more challenging.

    I’ve done both. The breadboard computer was for an electronics class in college. It was both more fun and more pain.





  • I’m not sure if your focus is on the printing or the designs. Personally, I’m really only interested in the designs. I’m not one of the people that enjoys tinkering with a flakey device trying to coax a result out of it. The printer is only a means to an end for me.

    So, I’ve got some things I printed using my FDM printers, but generally what I’m most pleased with was printed through an online service.

    So, here’s a ring I made a few years ago (printed via shapeways):







  • My dad, whenever someone would bang their head, or stub their toe, or hit their thumb with a hammer, would say, “doesn’t it feel good when you stop?”

    That’s kind of how I feel about programming. It’s like repeatedly hitting yourself in the head with a hammer because it feels so good when you stop. I’m so addicted to the feeling of solving the problem, that I keep seeking out problems to torture myself with.



  • NABDad@lemmy.worldtoParenting@lemmy.worldWatching glue dry
    link
    fedilink
    English
    arrow-up
    4
    ·
    9 months ago

    I just planted two trays of grass seeds for our guinea pigs.

    While waiting for them to sprout over the last few days, I have been quite literally watching the grass grow.

    When I saw the sprouts appeared this morning, it was much more exciting than I had been led to believe.