News for hackers. Stuff that matters.
Re:Should you split that file? by earthboundkid on Friday December 01, 2023 @05:39PM (#38493538)
That makes the file backwards because main calls foo which calls bar, so it should be main, foo, bar; not bar, foo, main when you read it.
Re:Should you split that file? by zogrodea on Saturday December 02, 2023 @12:20AM (#38496138)
That order makes sense as well and it has the advantage that you will often see how the leaf functions fit into the overall picture if you see how other functions depend on them. I just prefer some linear order over the alternatives.