Timeline for Advice on plugin structure
Current License: CC BY-SA 3.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 11, 2013 at 18:44 | comment | added | fuxia♦ | A property list object should stay simple … I’ll see if I can publish my version later. I bet most of your helper functions are not needed in most classes. If they are, they belong to their own class(es). | |
Feb 11, 2013 at 18:34 | comment | added | Jamie | Thanks @toscho, really useful - although it leads me to more questions... - why should I limit the number of helper function? I thought the idea was to minimise code replication? Or am I misunderstanding? - I tried reading the link you included regarding property list objects. I think I get the gist (although a lot went over my head!) - effectively am I passing an object with all of my 'core' variables in it? Why wouldn't I also pass my helper functions in this object? | |
Feb 11, 2013 at 13:14 | history | answered | fuxia♦ | CC BY-SA 3.0 |