Skip Navigation
Comenting code
  • This is why [...] better

    Sorry, what's the subject of that?

    I was just referring to my original question i.e. how I should write comments in my code to explain its working if I have already done so in the code itself

  • Comenting code
  • 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.

  • Comenting code
  • 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'.

  • Comenting code
  • 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.

  • Need help introducing friends to Minecraft for the first time

    I want to introduce some of my friends to Minecraft. They have never heard of it before and I am having trouble explaining them from the beginning since the scope of the game is very vast.

    I want to give them a preview of the game before they start playing themselves, so I would prefer a video explaining the same. I tried to search for it on YouTube but I could personally find no video that could explain the premise and potential of the game from scratch. I tried to explain them via playing the game on my device too but that was of no meaningful help either since I have no personal worlds or builds to show.

    Could someone please help me recommend some useful resource for this matter? I am sure they will come to love it once they get to properly understand it.

    7
    What is your favorite Assassin's Creed game?
  • I got my gaming rig recently and played all the releases up to Rogue only this year. I assure you my specs are modest enough and it's just the game that is poorly optimised. Even Watchdogs 2 ran better than this.

  • What is your favorite Assassin's Creed game?
  • Unity was the game I was most hyped for, especially because of its graphics and bigger maps. I even went to speedrun through the last three games to catch with the lore and begin playing it as soon as possible.

    Alas, my PC couldn't meet up with the heightened hardware requirements and I had to give up after barely finishing the tutorial with the awful frame rates even with the settings set to minimal.

  • What interesting things can I do with my home WiFi network?

    I recently learned about LocalSend and was intrigued by how it functioned by only using the WiFi network of the devices. I did not know my LAN had these capabilities.

    Now that I've learned about it, I am excited to know if there is anything else I can do with it. Perhaps there could be a way to send prank notifications to all the connected devices, create a private chat room, or have custom LAN parties.

    I genuinely do not know anything about how WiFi or LAN in general works in this matter. Is it possible for me to build my own applications that make use of these features? If so, I would love to get a direction on what resources or guides I should be looking for. If not, I would still be happy to use similar pre-built applications.

    43
    Make this thread look like it's your first day on the internet
  • 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

  • Make this thread look like it's your first day on the internet

    cross-posted from: https://lemm.ee/post/41811290

    > I think the use of this meme format already counts as one

    142
    Make this thread look like it's your first day on the internet

    I think the use of this meme format already counts as an example

    322
    Pirated copy of Photoshop getting shut down on its own?

    I haven't used Photoshop in my Windows machine for a while. I only used it to do occasional stuff to my photos that simple photo editors cannot do.

    When I opened the app, I was greeted with a banner and a dialogue box stating "this Adobe app is non-genuine and will be disabled soon". (Both were written in Japanese though the original app's language is set to English. I think it has something to do with my VPN.) I couldn't figure what the buttons said but one seems to redirect me to an Adobe subscription page and the other simply closes the app.

    I don't have experience pirating stuff like this. I got help from another friend long ago in downloading the whole suite of Adobe products from what I think is a Russian source. I am pretty sure they told me to set up firewall restrictions for the app as well, and I haven't touched the installer or anything similar since then. I don't know if there is something I can do about this or if I should download an 'updated version' of the app from some other source.

    11
    Noob Question Thread: Ask Any Questions About Linux!
    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?

  • I was there to witness the apocalypse...

    cross-posted from: https://lemm.ee/post/41350739

    7
    I created a blog for my app. Roast my blog.
  • I actually meant the home page of your blog site, but modifying each blog in a similar fashion could also be great if possible, although that may also depend on the type of audience you are expecting that would read them.

    A few of these articles genuinely interest me. I may consider reading them whenever I get time later.

  • I created a blog for my app. Roast my blog.
  • I'm not much expert at reading blogs either lol. I think my suggestion as a novice reader would be to include a short piece of intro text at the beginning of the page to describe what topics the blog talks about (maybe sum it in about 1-2 sentences). That way I would instantly get to know if it is something I am interested to read or not.

    But then again, I am a novice so I don't know any better 😔

  • How do you realistically build your own OS with Arch Linux?

    cross-posted from: https://lemm.ee/post/40063668

    > As a Linux newbie, all I know about Arch Linux is that it is a DIY distro where you assemble the entirely of the OS by scratch. Somehow it feels like it is too easy than it needs to be, even if it is primarily meant for experienced users. I imagine it to be less like building your PC from parts bought from the market and more like building each and every component of the PC by scratch along with building the PC, which I assume to be much harder for the average consumer. > It seems absurd how it is possible for a single person to incorporate the innumerable components required for functionality in a personal system that does not crash 100% of the time due to countless incompatibility errors that come with doing something like this. > > I would like someone to elaborate on how it feels to 'build' a system software by yourself with Arch and how it is reasonable to actually do so in a simple language. I do have some experience in programming, mainly in webdev, so it's not like I need a baby-like explanation in how this works but it would be nice to get to know about this from someone who could understand where this confusion/curiosity is coming from.

    11
    How do you realistically build your own OS with Arch Linux?

    As a Linux newbie, all I know about Arch Linux is that it is a DIY distro where you assemble the entirely of the OS by scratch. Somehow it feels like it is too easy than it needs to be, even if it is primarily meant for experienced users. I imagine it to be less like building your PC from parts bought from the market and more like building each and every component of the PC by scratch along with building the PC, which I assume to be much harder for the average consumer. It seems absurd how it is possible for a single person to incorporate the innumerable components required for functionality in a personal system that does not crash 100% of the time due to countless incompatibility errors that come with doing something like this.

    I would like someone to elaborate on how it feels to 'build' a system software by yourself with Arch and how it is reasonable to actually do so in a simple language. I do have some experience in programming, mainly in webdev, so it's not like I need a baby-like explanation in how this works but it would be nice to get to know about this from someone who could understand where this confusion/curiosity is coming from.

    8
    How do I know if tinnitus is some sort of a placebo effect?

    What if I am just imagining the high pitch sound in my mind whenever I hear about or think of tinnitus just like how someone tells you to imagine a whale and you form a mental image of a whale? I don't pay attention to the noise while I'm busy doing stuff but once I think about it, it is as hard to stop noticing it similar to being told to breathe manually, and it gets very annoying after some time. Is it what tinnitus really is?

    8
    Featured
    Suggestions for Canvas and future events!
  • Not suggesting any big things here... All I propose is to have the options for toggling the canvas overlays (empty canvas, heat, template) directly within the canvas editing screen instead of putting it in the sidebar, kinda like Google Maps. I think the sidebar version would be preferred in mobiles, so you could make this desktop only.

    Alternatively, you could allow the user to place pixels on the canvas even while the sidebar is opened, like the way it was for the first 48 hours of the event. Also ensure the right side of the color palette is not hidden by the sidebar.

  • What video games would you rather watch someone else play than play it yourself?

    For me, it is any city/building construction game like City Skylines, Two Point Hospital, Planet Zoo etc.

    94
    How long would it take to create a Pyramid today?

    Just a shower thought. Seeing how these structures took decades to build in their times, and that too entirely with manual labour, I was wondering how long these architectural marvels would take to be built in this post modern era with the help of our technological advancements.

    Imagine the world has dedicated its focus and the entirety of its resources on building just one Pyramid as quickly as possible out of the same materials and in the same location as the original ones. The medium of construction has no constraints but the end result must be indistinguishable, structure and composition wise.

    I would love to hear how the process would take place in addition.

    40
    How does generative AI create convincing lighting in images?

    I believe lighting plays a very important part in making a scene realistic when it comes to creating one artificially, like in 3D modelling. That is why I also think the lighting of these AI generated images is the prime source of what impresses people about these images since no matter how unrealistic or distorted the subject is, the lighting makes it look like a natural part of the background. This is clearly different from photos like from poorly Photoshopped ones where the subject feels deliberately inserted into the scene from a cutout.

    I am interested to understand how LLMs understand the context of the lighting when creating images. Do they make use of samples which happen to have the exact same lighting positions or do they add the lighting as an overlay instead? Also, why is it that lighting doesn't look convincing in some cases like having multiple subjects together etc.?

    6
    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/)JO
    jonathanvmv8f @lemm.ee
    Posts 43
    Comments 46