• 0 Posts
  • 32 Comments
Joined 1 year ago
cake
Cake day: August 23rd, 2023

help-circle



  • I’m around the same age as you, and I taught myself front end development. Don’t let anyone say you can’t learn. If you want to make websites, I suggest HTML => CSS => JavaScript => React.js. I recommend learning on Scrimba.com. They have a screen cast system where an actual instructor tells you what to do in plain English with the corresponding code on screen. If you want to see how a change would affect the code, you can pause the cast and run the code yourself.

    And if you want to learn back end, a back end programmer suggested learning PHP. Still in high demand in the job market.










  • Might I suggest Walkaway by Cory Doctorow, my favorite book. The structure is like a Kim Stanley Robinson novel where there’s a group of characters but the real character is the birth of a post scarcity society, namely the one in Down and Out in the Magic Kingdom.

    I loved it because it answered the problem I had with anarchism: what happens when a psychopath decides to take your shit? The answer is–in a post scarcity society–you walk away. You can always make new shit, better shit, grander shit.

    I don’t want to get into spoilers, but there was one thing that always was bugging me about this premise. Like, what if X situation happens? Wouldn’t you know it, X situation happens. He interrogates the premise to its logical conclusion.

    I would kill to see this novel made into a decent TV series.






  • IvanOverdrive@lemm.eetoScience Memes@mander.xyztemperature
    link
    fedilink
    English
    arrow-up
    37
    ·
    8 months ago

    Converting from Fahrenheit to Celsius is quite easy. All you need to do is:

    import math
    import random
    import time
    
    def obtain_temperature_scale():
        temperature_scales = ["Fahrenheit", "Celsius", "Kelvin", "Rankine", "Réaumur", "Newton", "Delisle", "Rømer"]
        return random.choice(temperature_scales)
    
    def create_cryptic_prompts():
        cryptic_prompts = [
            "Unveil the hidden truth within the scorching embers.",
            "Decode the whispers of the arctic winds.",
            "Unravel the enigma of thermal equilibrium.",
            "Unlock the secrets of the thermometric realm."
        ]
        return random.choice(cryptic_prompts)
    
    def await_user_input(prompt):
        print(prompt)
        return float(input("Enter the temperature value: "))
    
    def dramatic_pause():
        print("Calculating...")
        time.sleep(random.uniform(1.5, 3.5))
    
    def convert_to_celsius(fahrenheit):
        return (fahrenheit - 32) * (5/9)
    
    def main():
        temperature_scale = obtain_temperature_scale()
        if temperature_scale == "Fahrenheit":
            cryptic_prompt = create_cryptic_prompts()
            fahrenheit_temp = await_user_input(cryptic_prompt)
            dramatic_pause()
            celsius_temp = convert_to_celsius(fahrenheit_temp)
            print(f"The temperature in Celsius is: {celsius_temp:.2f}°C")
        else:
            print("This program only accepts Fahrenheit temperatures.")
    
    if __name__ == "__main__":
        main()