[Mono-list] Questions about coding style

Philippe Grohrock philippe.grohrock at gmail.com
Fri Aug 17 21:49:36 UTC 2012

Yes I am currently working alone, but I still think that learning about some
coding style isn't too bad after all, so I have two questions and I thought
I'd ask them both in the general section.

1. Is it bad/good style to have a public class that implements global
variables? My program readys a DB connection right at the start which is
queried by multiple different GTK windows.

2. Should classes containing windows in GTK be made static when they're only
supposed to be open once? None of my windows is supposed to be opened
multiple times, so I thought I'd just make them all static, but is that good
or bad style or are there better solutions to prevent this from happening?

View this message in context: http://mono.1490590.n4.nabble.com/Questions-about-coding-style-tp4656301.html
Sent from the Mono - General mailing list archive at Nabble.com.

More information about the Mono-list mailing list