• 0 Posts
  • 24 Comments
Joined 2 years ago
cake
Cake day: February 19th, 2024

help-circle
  • Pretty much the entire OSM sphere is developed and populated by volunteers. And they you come along and say they should take their heads out of their ass. Yes, the burden is on the users, because the developers are users themselves. No, not everyone has programming skills, but even nontechnical people can still contribute to the dataset with bus station locations and bus routes.

    It’s completely okay to not use a piece of software, and if you have some feedback to give that might sway you, great! But don’t insult the developers because they have limited time and resources.







  • i and I are acceptable in small loops. But it depends a lot on the language used. If you’re in C or bash maybe it’s fine. But if you’re in a higher level language like C# you usually have built on functions for iterating over something.

    For example you have a list of movies you want to get the rating from, instead of doing

    for (i = 0; i < movies.length; i++)
        var movie = movies[i]
        ....
    

    Its often more readable to do

    movies.forEach { movie -> 
        var rating = movie.rating
        ....
    }
    

    Also if you work with tables it can be very helpful to name your iteration variables as row and column.

    It’s all about making it readable, understandable, and correct. There’s no point having comments if you forget to update them when you change the code. And you better make sure the AI comments on the 2000 lines of three letter variables is correct!








  • HereIAm@lemmy.worldtoScience Memes@mander.xyzUh oh lol
    link
    fedilink
    English
    arrow-up
    8
    ·
    3 months ago

    Yes, but everything red shifts “naturally” as well as the light travels because of the expansion of the universe. So something traveling towards us will still red shift, just slightly less so. To determine distance you have to use something called the cosmic distance ladder. It consists of known properties of stellar objects that we can measure to determine the distance of objects.


  • What are these “most basic, essential” tasks you’re struggling with? Outside of trying to get Discord to screen share nicely with Baulders gate 3 and the one time I accidentally overwrote the python 3 install and broken it, it has been pretty pain free. And I code with both .NET and with Android Studio, I do plenty of gaming, and some photo editing. All things beyond the most basic of tasks and I rarely run into issues.

    Have I broken a Linux install? Yep. But I’ve also bricked a handful of Windows systems poking around in the registry.