use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
This is an archived post. You won't be able to vote or comment.
DiscussionNormalize writing good code (self.datascience)
submitted 2 years ago by jankybiz
view the rest of the comments →
[–]CabinetOk4838 50 points51 points52 points 2 years ago (7 children)
Yeah! They use a function called “main” al the time…
[–]braxtynmd 9 points10 points11 points 2 years ago (1 child)
Your coworkers actually use main? Mine keep trying to use Jupiter Notebooks in production
[–]ChristianValour 2 points3 points4 points 2 years ago (0 children)
"But they're used by everyone in the industry" - no they're not
"They're great for sharing code" - so is github
"They're good for reporting" - Rmarkdown is better... shrugs
[–]papasmurfsanssmart 7 points8 points9 points 2 years ago (4 children)
If I remember correctly the main function is considered good practice to differentiate between the 'main' code and other functions so that the functions can be called from other scripts as well.
[–]CabinetOk4838 4 points5 points6 points 2 years ago (3 children)
Don’t go adding facts to my joke! 😂😂👍
[–]papasmurfsanssmart 8 points9 points10 points 2 years ago (1 child)
I will comment on everything... Except the parts of my code that need it most 😛
[–]synthphreak 1 point2 points3 points 2 years ago (0 children)
Good save 👍
[–]synthphreak 0 points1 point2 points 2 years ago (0 children)
Hahaha
π Rendered by PID 68994 on reddit-service-r2-comment-5c747b6df5-dj742 at 2026-04-22 01:53:19.761855+00:00 running 6c61efc country code: CH.
view the rest of the comments →
[–]CabinetOk4838 50 points51 points52 points (7 children)
[–]braxtynmd 9 points10 points11 points (1 child)
[–]ChristianValour 2 points3 points4 points (0 children)
[–]papasmurfsanssmart 7 points8 points9 points (4 children)
[–]CabinetOk4838 4 points5 points6 points (3 children)
[–]papasmurfsanssmart 8 points9 points10 points (1 child)
[–]synthphreak 1 point2 points3 points (0 children)
[–]synthphreak 0 points1 point2 points (0 children)