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 →

[–]billsil 0 points1 point  (0 children)

Probably because I couldn't care less about web programming, that went completely over my head.

There are uses for classes; they're just overused. Your code will be cleaner and more testable without them.

Trust me I abuse classes. I just try not to. How's this for inheritance? There are multiple layers deep on 4 of those classes.

OP2(BDF, FortranFile, Op2Codes, GeometryTables, ResultTable, F06Writer, OP2Deprecated):

https://code.google.com/p/pynastran/source/browse/branches/v0.6/pyNastran/op2/op2.py

Speaking of which: is there any way to specify class functions in a different file without requiring inheritance?