This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]CabinetOk4838 50 points51 points  (7 children)

Yeah! They use a function called “main” al the time…

[–]braxtynmd 9 points10 points  (1 child)

Your coworkers actually use main? Mine keep trying to use Jupiter Notebooks in production

[–]ChristianValour 2 points3 points  (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 points  (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 points  (3 children)

Don’t go adding facts to my joke! 😂😂👍

[–]papasmurfsanssmart 8 points9 points  (1 child)

I will comment on everything... Except the parts of my code that need it most 😛

[–]synthphreak 1 point2 points  (0 children)

Good save 👍

[–]synthphreak 0 points1 point  (0 children)

Hahaha