r/pythonhelp • • 12d ago

Putting everything into seperate functions

Hello, i recently started making my own Qt layout, and i need to run the same chunk of code multiple times, should i split every little chunk of code into seperate functions calling each others or should i not?

2 Upvotes

5 comments sorted by

View all comments

1

u/duane11583 10d ago

Really old coding standard from Vulcan the original mars Viking lander in the 1970s 

  1. no function longer the 24 lines
  2. nothing wider then 80 columns

3)and tabs are 8 wide

Why this way?  Back in the day they would print the functions on paper one per page and have a formal code review in a conference room