▲ 344 ▼ I'm Not a Programmer, but Here’s Why Linux Is My Daily Driver (www.howtogeek.com) submitted 2 years ago by petsoi@discuss.tchncs.de to c/linux@lemmy.ml 117 comments fedilink hide all child comments
[–] FlickeringScreens@lemmy.world 20 points 2 years ago (1 child) The most "programming" I can do is make a basic scratch project and print("Hello World!") in python, but linux is great permalink fedilink source hideshow 2 child comments replies: [–] Entropywins@lemmy.world 4 points 2 years ago (1 child) How do you do that in python... permalink fedilink source parent hideshow 2 child comments replies: [–] tuhriel@discuss.tchncs.de 10 points 2 years ago (2 children) print("Hello World") Save the file as script.py And then execute it with python3 script.py permalink fedilink source parent hideshow 4 child comments replies: [–] EuroNutellaMan@lemmy.world 6 points 2 years ago (1 child) Impressive, you look like a very skilled programmer, management has told me you are now tasked with building a hyper-realistic virtual simulation of a Large Hadron Collider including detailed simulations of the lives of the actual workers and their families, you have a week or you're fired by the firing squad, no you're not allowed to ask why we need it or who we are or why we chose you and it is especially forbidden to ask for more time (and no you can't ask why that is either). See you in a week, have a nice day :). permalink fedilink source parent hideshow 2 child comments replies: [–] JackbyDev@programming.dev 2 points 2 years ago I am ready to integrate with Open AI's API develop an LLM. permalink fedilink source parent [–] JasonDJ@lemmy.zip 1 point 2 years ago* (last edited 2 years ago) (1 child) This is bad practice. More accurately it should look something like this: # Load sys library for exiting with status code import sys def sayHelloWorld(outPhrase: str="Hello World"): # Main function, print a phrase and return NoneType print(outPhrase) return None if __name__=="__main__": # Provide output and exit cleanly when run from shell sayHelloWorld() sys.exit(0) else: # Exit with rc!=0 when not run from shell sys.exit(1) permalink fedilink source parent hideshow 2 child comments replies: [–] calcopiritus@lemmy.world 1 point 2 years ago Fellow pythonistas, how can I make this code more pythonic? permalink fedilink source parent
[–] Entropywins@lemmy.world 4 points 2 years ago (1 child) How do you do that in python... permalink fedilink source parent hideshow 2 child comments replies: [–] tuhriel@discuss.tchncs.de 10 points 2 years ago (2 children) print("Hello World") Save the file as script.py And then execute it with python3 script.py permalink fedilink source parent hideshow 4 child comments replies: [–] EuroNutellaMan@lemmy.world 6 points 2 years ago (1 child) Impressive, you look like a very skilled programmer, management has told me you are now tasked with building a hyper-realistic virtual simulation of a Large Hadron Collider including detailed simulations of the lives of the actual workers and their families, you have a week or you're fired by the firing squad, no you're not allowed to ask why we need it or who we are or why we chose you and it is especially forbidden to ask for more time (and no you can't ask why that is either). See you in a week, have a nice day :). permalink fedilink source parent hideshow 2 child comments replies: [–] JackbyDev@programming.dev 2 points 2 years ago I am ready to integrate with Open AI's API develop an LLM. permalink fedilink source parent [–] JasonDJ@lemmy.zip 1 point 2 years ago* (last edited 2 years ago) (1 child) This is bad practice. More accurately it should look something like this: # Load sys library for exiting with status code import sys def sayHelloWorld(outPhrase: str="Hello World"): # Main function, print a phrase and return NoneType print(outPhrase) return None if __name__=="__main__": # Provide output and exit cleanly when run from shell sayHelloWorld() sys.exit(0) else: # Exit with rc!=0 when not run from shell sys.exit(1) permalink fedilink source parent hideshow 2 child comments replies: [–] calcopiritus@lemmy.world 1 point 2 years ago Fellow pythonistas, how can I make this code more pythonic? permalink fedilink source parent
[–] tuhriel@discuss.tchncs.de 10 points 2 years ago (2 children) print("Hello World") Save the file as script.py And then execute it with python3 script.py permalink fedilink source parent hideshow 4 child comments replies: [–] EuroNutellaMan@lemmy.world 6 points 2 years ago (1 child) Impressive, you look like a very skilled programmer, management has told me you are now tasked with building a hyper-realistic virtual simulation of a Large Hadron Collider including detailed simulations of the lives of the actual workers and their families, you have a week or you're fired by the firing squad, no you're not allowed to ask why we need it or who we are or why we chose you and it is especially forbidden to ask for more time (and no you can't ask why that is either). See you in a week, have a nice day :). permalink fedilink source parent hideshow 2 child comments replies: [–] JackbyDev@programming.dev 2 points 2 years ago I am ready to integrate with Open AI's API develop an LLM. permalink fedilink source parent [–] JasonDJ@lemmy.zip 1 point 2 years ago* (last edited 2 years ago) (1 child) This is bad practice. More accurately it should look something like this: # Load sys library for exiting with status code import sys def sayHelloWorld(outPhrase: str="Hello World"): # Main function, print a phrase and return NoneType print(outPhrase) return None if __name__=="__main__": # Provide output and exit cleanly when run from shell sayHelloWorld() sys.exit(0) else: # Exit with rc!=0 when not run from shell sys.exit(1) permalink fedilink source parent hideshow 2 child comments replies: [–] calcopiritus@lemmy.world 1 point 2 years ago Fellow pythonistas, how can I make this code more pythonic? permalink fedilink source parent
[–] EuroNutellaMan@lemmy.world 6 points 2 years ago (1 child) Impressive, you look like a very skilled programmer, management has told me you are now tasked with building a hyper-realistic virtual simulation of a Large Hadron Collider including detailed simulations of the lives of the actual workers and their families, you have a week or you're fired by the firing squad, no you're not allowed to ask why we need it or who we are or why we chose you and it is especially forbidden to ask for more time (and no you can't ask why that is either). See you in a week, have a nice day :). permalink fedilink source parent hideshow 2 child comments replies: [–] JackbyDev@programming.dev 2 points 2 years ago I am ready to integrate with Open AI's API develop an LLM. permalink fedilink source parent
[–] JackbyDev@programming.dev 2 points 2 years ago I am ready to integrate with Open AI's API develop an LLM. permalink fedilink source parent
[–] JasonDJ@lemmy.zip 1 point 2 years ago* (last edited 2 years ago) (1 child) This is bad practice. More accurately it should look something like this: # Load sys library for exiting with status code import sys def sayHelloWorld(outPhrase: str="Hello World"): # Main function, print a phrase and return NoneType print(outPhrase) return None if __name__=="__main__": # Provide output and exit cleanly when run from shell sayHelloWorld() sys.exit(0) else: # Exit with rc!=0 when not run from shell sys.exit(1) permalink fedilink source parent hideshow 2 child comments replies: [–] calcopiritus@lemmy.world 1 point 2 years ago Fellow pythonistas, how can I make this code more pythonic? permalink fedilink source parent
[–] calcopiritus@lemmy.world 1 point 2 years ago Fellow pythonistas, how can I make this code more pythonic? permalink fedilink source parent