• 0 Posts
  • 1.12K Comments
Joined 3 years ago
cake
Cake day: June 10th, 2023

help-circle


  • What this means is that the White House still overestimates how much the military is in their pocket

    When their enemy is civilians, they only need a few willing soldiers. China ordered several army units to use deadly force against protesters in Tiananmen Square. Several generals denied the order. Whole squads threw their wepons into the river and deserted. The Square was still covered in the blood of thousands. A few loyal soliders in tanks is all that’s needed. The generals and soldiers who denied the order were court maritaled.







  • I think it mostly comes down to baby duck syndrome. People don’t like using a package manager for programs on their desktop but are fine using an app store on their phone (which might literally be running linux). People simply expect a desktop computer to work a specific way and when things are in different spots and called different things they get upset. I think it’s changing as more companies bake Linux into their product.

    Steam Decks running Linux changes people’s impression of it. If a mainstream company sold desktop computers that came with Linux preinstalled I’m sure its use would skyrocket. It’s not that it’s impossible for the average user to understand, It’s that it’s not the default option.












  • They’re both “linters”. They analyze your code without executing it, known as “static analysis”, and highlight logical and stylistic errors.

    Pylint will give you warnings if you try to feed a variable that holds an integer into a function that works on strings or if you deviate from python’s suggested style guide. Python doesn’t check data types until you actually run your code, so errors with data types won’t be caught until your program crashes. Using pylint allows you to get warnings before actually executing your code. Note that Python allows for type hinting which allows you to tell linters what data types variables and functions are allowed to be. Python itself ignores type hints when executing code.

    Black automatically formats your code to adhere to Python’s suggested style guide. Unlike something like Pylint, it cannot be configured to ignore certain style rules. All projects using Black will have the same style. Python gives a lot of leeway in how you can format valid code, but it’s difficult for programmers to read code in dozens of different styles. Most languages have come up with their own style guide. For example, your first line does not match the suggested style. All imports should be on their own line. If you don’t want to remeber all the rules yourself, you can use Black to format your code in a way everyone is agreeable with.