Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)J
Posts
33
Comments
37
Joined
2 yr. ago

  • Interesting to see your opinion on how commenting shouldn't be mandatory. I specifically go the extra mile to ensure my code is readable for everyone, by naming my variables and functions to be as self-explanatory as possible and breaking down long expressions to store chunks in variables. This is why I was feeling confused as to what more I could add to explain my code better, though I must admit there are still considerable complex portions in some of my projects that would appreciate similar simplification.

  • I believe you confused the 'how' of commenting the 'why' with 'why' of commenting the 'why', if that makes sense.

    I am already aware of and totally agree with the need to document your code in this fashion for the convenience of others and self. What I am troubled about is its implementation in real life. How does one write comment that explains the 'why' of the code? How would I know if I haven't accidentally written something that explains the 'what' instead or anything that is simply redundant? It seems like this portion is left out 'as an exercise for the reader'.

  • Asking as a newbie programmer: how do you suggest we write comments that explain the 'why' part of the code? I understand writing comments explaining the 'what' part makes them redundant, but I feel like writing it the former way isn't adding much help either. I mean, if I created code for a clock, is writing "It helps tell what time it is" better than writing "It is a clock" ?

    It would really help if someone could give a code snippet that clearly demonstrates how commenting the 'correct' way is clearly better than the way we are used to.

  • Thank you so much! I checked that he starred in the show 'Severance' which I just watched recently, which is why I could recognise his face.

  • Who's the guy in the second panel? I swear I've seen this guy somewhere recently and it's been seriously bugging me

  • BTW it's cake day for what was supposed to be a throwaway account

  • By the looks of the image, you opened this post on your laptop, opened the camera app of your phone, took a screenshot of the app and took ANOTHER screenshot of the app along with the preview of the previously taken screenshot and finally posted it.

    I guess it's your first day too

  • The Turkey Devil

    1. For Linux enthusiasts, how do you decide which distro you would like to try out next among the plethora of options that are available? The difference I perceive between majority of distros gets smaller the more I try to understand about them.
    2. What are the minimum issues I am likely to face using the most beginner friendly distro like Mint for programming and light gaming?
    3. How customizable is the GUI in Linux Mint specifically? What if I want a start menu like Windows 10 with the app list and the blocky app tiles? What about those custom widgets I see in hardcore Linux users' desktops?
    4. I heard there is no concept of file extensions in Linux. How am I supposed to work on my projects that I imported from my Windows machine that do contain extensions?

    Bonus: Who creates those distro icons in color coded ASCII in the system info command in the terminal?

  • A for effort

  • Tbh I've kind of forgetten what little French I managed to learn earlier, so this wouldn't work for me either

  • On a completely unrelated note, I had a first glance at the thumbnail of this article and I was convinced the photo was taken in real life until I noticed the 'cybernetic seam' on the subject's face. I almost couldn't recognise this as an in-game screenshot and I already consider myself adept in recognising such images.

  • I need more blog posts like these...

  • Science Memes @mander.xyz

    Benzene appreciation post

  • memes @lemmy.world

    If any job needs to be replaced by AI, it sure would be of the executives first

  • Man, it was miles better when I just knew him as the motion guy back in primary school

  • memes @lemmy.world

    Been here for a year, haven't regretted it ever

  • Science Memes @mander.xyz

    So would he call this a win or a loss?

  • memes @lemmy.world

    Seems like I wont be able to even own tbe content I create

  • Lemmy Shitpost @lemmy.world

    What does your booger feel like rn?

  • memes @lemmy.world

    Those guys back in 1700s probably had nothing left to lose

  • Science Memes @mander.xyz

    Somehow metal with zip zap moves rocks without touching and this isn't fiction?

  • I love when people make the effort to do this kind of stuff and I got the opportunity to have someone do it for my post.

    Thanks dude. You have made my day...

  • Been in this situation countless times. Everytime this happens I promise myself I will be grateful and enjoy the ability to breathe through both of my nostrils once it happens and yet I forget about it the next day

  • Lemmy Shitpost @lemmy.world

    What I thought some abbreviations/emoticons meant vs what they actually meant

  • Books @lemmy.ml

    Romance novels for a beginner with no "impure love drama"

  • Free and Open Source Software @beehaw.org

    What domain name to choose for an open source website where I could ask for personal donations?

  • Privacy @lemmy.ml

    Why do password managers charge for TOTP code generation?

  • Selfhosted @lemmy.world

    Where to find guide on self hosting for a complete beginner?