• 3 Posts
  • 94 Comments
Joined 1 year ago
cake
Cake day: June 7th, 2023

help-circle














  • First off, cause you are programming under windows, a lot of things will be harder for you. As seen on your problems with Python.
    Most Linux installs have it right from the get-go and everything else is as simple. So giving directions for developers on other platforms might be much easier than what you had to go through. (Maybe use WSL?)

    Let’s get to your real question: How does one organize dependencies in a way easy for new contributors?
    Since you will use Python, I will use that as example.

    Most languages have a way to automagically import dependencies. Python has the requirements.txt file. Installing dependencies is then really easy. It is also a widely known way to do that, has lots of explanation online etc. so seasoned pythoneers will know what to do and younglings will get to know a good standard right away.

    Bonus tip: If you don’t have a GUI library yet, maybe also search for game engines. They provide all the necessary tools as well, oftentimes have good GUI add-ins and are (mostly) for all mayor platforms.


  • Now what most people don’t know is that websites can insert arbitrary text when you copy stuff of them. A malicious site will abuse that.

    It works like that:

    You follow a tutorial online or search for a code snippet. You copy some code/said snippet and paste it into a terminal or the browser command line. This copied text is altered by the site to be a one line command to install malware or grab passwords or cookies. All of that is followed by a line break and maybe your real command to lower suspicion.

    Some of the terminal or browser shells interpret a line break in the copied text as enter which then executes the command.

    To prevent that, get a shell, that doesn’t just execute what you paste (fish shell) or a terminal program, that warns you about line breaks (Moba xterm).
    And please check text from unknown sites before pasting it into a program that may execute it right away. (Just paste it into a text editor or look at your clipboard manager like Win+V in windows)