Is the ‘application code’ supposed to go in the Class or somewhere else?

I am trying to teach myself programming, but I have always been very confused by the object oriented approach.

Recently, I have been reading about SOLID development principles.

When I create Classes, using Python, it seems I add the application logic there. However, this appears to defy the single responsibility principle, and injection principles.

For a simple example of my problem, let’s assume that my ultimate goal is to change the TV to channel 10, turn the connected (but separate) surround sound system to max, and then turn the TV off.

I would do something like this:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>from SpeakerSystem import DolbyDigital
Class Tv(object):
def __init__(self):
self.speakers = DolbyDigital()
self.volume = 10
self.channel = 1
self.power = 'Off'
def turnOn(self):
self.power = 'On'
def turnOff(self):
self.power = 'Off'
def channelUp(self):
self.channel += 1
def channelDown(self):
self.channel -= 1
def volumeUp(self):
self.speakers.volumeUp()
def volumeDown(self):
self.speakers.volumeDown()
def setChannel(self, station):
self.channel = station
def process(self):
self.channel = 10
while self.volume != self.max_volume:
self.volumeUp()
self.turnOff()
</code>
<code>from SpeakerSystem import DolbyDigital Class Tv(object): def __init__(self): self.speakers = DolbyDigital() self.volume = 10 self.channel = 1 self.power = 'Off' def turnOn(self): self.power = 'On' def turnOff(self): self.power = 'Off' def channelUp(self): self.channel += 1 def channelDown(self): self.channel -= 1 def volumeUp(self): self.speakers.volumeUp() def volumeDown(self): self.speakers.volumeDown() def setChannel(self, station): self.channel = station def process(self): self.channel = 10 while self.volume != self.max_volume: self.volumeUp() self.turnOff() </code>
from SpeakerSystem import DolbyDigital

Class Tv(object):

def __init__(self):
    self.speakers = DolbyDigital()
    self.volume = 10
    self.channel = 1
    self.power = 'Off'

def turnOn(self):
    self.power = 'On'

def turnOff(self):
    self.power = 'Off'

def channelUp(self):
    self.channel += 1

def channelDown(self):
    self.channel -= 1

def volumeUp(self):
    self.speakers.volumeUp()

def volumeDown(self):
    self.speakers.volumeDown()

def setChannel(self, station):
    self.channel = station

def process(self):
    self.channel = 10
    while self.volume != self.max_volume:
        self.volumeUp()
    self.turnOff()

Ignore for a minute that this is a contrived example!

Then, to solve my problem i will simply instantiate Tv, and run process().

The problem is that I always create many methods like process() here; I essentially bake in my application code in with the class.

I think this is wrong? The vast majority of methods in my class actually go about solving my problem directly; they clearly will not be useful to anyone, or even myself, outside of my specific problem domain.

In the example, process is not useful to anyone (only useful for my niche problem). Imagine 10 more methods like that, which are totally useless.

Also, I have read that baking in self.speakers = DolbyDigital() is also bad design, because now Tv depends on it. And this gets messy when unit-testing; having to constantly mock out other objects. Many books suggest that objects should not even be responsible for initializing other objects….

The more I read about OOP and OODesign, it seems the class itself should be general, it should provide only the basic methods (it shouldn’t actually do the whole job), and that the application code should somehow be separate. Is this true? If so, where should the application code go?

I thought about creating a plain old main() file, however it seems that if I did that, the programming paradigm then shifts to procedural. And the whole point of learning OOP is to stick with OOP!?

I am truly utterly confused about it. Again, sorry for the seemingly dumb question, but I have no formal training, so just trying to improve with your help!

I have read several object oriented books, including those by Gamma et. al, Uncle Bob, and several other seminal books. It seems my question is so stupid/novice that they do not actually cover it.

0

You process method is indeed in a wrong place.

What is the context where you will switch to channel 10? Why channel 10, and not channel 9?

  • Maybe the user asked specifically the channel 10. In this case, 10 should be the input, not a value within the class.

  • Maybe this is the default channel, the one which will be shown every time the TV is turned on. In this case, this should be either a constant or, often, a configuration entry.

    By making it a constant, you can be sure that later, when requirements change and the default channel becomes the channel 9, you have to make the change in one location only.

    By moving it to configuration, you acquire the benefit of letting the system administrator change the value later, without having to modify and redeploy the application.

As for the self.speakers = DolbyDigital() part, you should let the caller the ability to set the speakers. This is useful in two cases:

  • When the caller doesn’t want to use DolbyDigital, but wants to use something else.

  • When you are testing your class. You can then set the speakers to SpeakersMock or SpeakersStub in order to focus your testing on the class itself and isolate those tests to avoid side effects.

This doesn’t prevent you from having a default value for speakers field. The benefit of having one is when you initialize Tv in different places in your code. Instead of having to think every time about the initialization of speakers, you just let the class apply the default value.

The lack of such default values can sometimes lead to constructors requesting a dozen of parameters. Not inherently bad, but still difficult to use.

2

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa

Is the ‘application code’ supposed to go in the Class or somewhere else?

I am trying to teach myself programming, but I have always been very confused by the object oriented approach.

Recently, I have been reading about SOLID development principles.

When I create Classes, using Python, it seems I add the application logic there. However, this appears to defy the single responsibility principle, and injection principles.

For a simple example of my problem, let’s assume that my ultimate goal is to change the TV to channel 10, turn the connected (but separate) surround sound system to max, and then turn the TV off.

I would do something like this:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>from SpeakerSystem import DolbyDigital
Class Tv(object):
def __init__(self):
self.speakers = DolbyDigital()
self.volume = 10
self.channel = 1
self.power = 'Off'
def turnOn(self):
self.power = 'On'
def turnOff(self):
self.power = 'Off'
def channelUp(self):
self.channel += 1
def channelDown(self):
self.channel -= 1
def volumeUp(self):
self.speakers.volumeUp()
def volumeDown(self):
self.speakers.volumeDown()
def setChannel(self, station):
self.channel = station
def process(self):
self.channel = 10
while self.volume != self.max_volume:
self.volumeUp()
self.turnOff()
</code>
<code>from SpeakerSystem import DolbyDigital Class Tv(object): def __init__(self): self.speakers = DolbyDigital() self.volume = 10 self.channel = 1 self.power = 'Off' def turnOn(self): self.power = 'On' def turnOff(self): self.power = 'Off' def channelUp(self): self.channel += 1 def channelDown(self): self.channel -= 1 def volumeUp(self): self.speakers.volumeUp() def volumeDown(self): self.speakers.volumeDown() def setChannel(self, station): self.channel = station def process(self): self.channel = 10 while self.volume != self.max_volume: self.volumeUp() self.turnOff() </code>
from SpeakerSystem import DolbyDigital

Class Tv(object):

def __init__(self):
    self.speakers = DolbyDigital()
    self.volume = 10
    self.channel = 1
    self.power = 'Off'

def turnOn(self):
    self.power = 'On'

def turnOff(self):
    self.power = 'Off'

def channelUp(self):
    self.channel += 1

def channelDown(self):
    self.channel -= 1

def volumeUp(self):
    self.speakers.volumeUp()

def volumeDown(self):
    self.speakers.volumeDown()

def setChannel(self, station):
    self.channel = station

def process(self):
    self.channel = 10
    while self.volume != self.max_volume:
        self.volumeUp()
    self.turnOff()

Ignore for a minute that this is a contrived example!

Then, to solve my problem i will simply instantiate Tv, and run process().

The problem is that I always create many methods like process() here; I essentially bake in my application code in with the class.

I think this is wrong? The vast majority of methods in my class actually go about solving my problem directly; they clearly will not be useful to anyone, or even myself, outside of my specific problem domain.

In the example, process is not useful to anyone (only useful for my niche problem). Imagine 10 more methods like that, which are totally useless.

Also, I have read that baking in self.speakers = DolbyDigital() is also bad design, because now Tv depends on it. And this gets messy when unit-testing; having to constantly mock out other objects. Many books suggest that objects should not even be responsible for initializing other objects….

The more I read about OOP and OODesign, it seems the class itself should be general, it should provide only the basic methods (it shouldn’t actually do the whole job), and that the application code should somehow be separate. Is this true? If so, where should the application code go?

I thought about creating a plain old main() file, however it seems that if I did that, the programming paradigm then shifts to procedural. And the whole point of learning OOP is to stick with OOP!?

I am truly utterly confused about it. Again, sorry for the seemingly dumb question, but I have no formal training, so just trying to improve with your help!

I have read several object oriented books, including those by Gamma et. al, Uncle Bob, and several other seminal books. It seems my question is so stupid/novice that they do not actually cover it.

0

You process method is indeed in a wrong place.

What is the context where you will switch to channel 10? Why channel 10, and not channel 9?

  • Maybe the user asked specifically the channel 10. In this case, 10 should be the input, not a value within the class.

  • Maybe this is the default channel, the one which will be shown every time the TV is turned on. In this case, this should be either a constant or, often, a configuration entry.

    By making it a constant, you can be sure that later, when requirements change and the default channel becomes the channel 9, you have to make the change in one location only.

    By moving it to configuration, you acquire the benefit of letting the system administrator change the value later, without having to modify and redeploy the application.

As for the self.speakers = DolbyDigital() part, you should let the caller the ability to set the speakers. This is useful in two cases:

  • When the caller doesn’t want to use DolbyDigital, but wants to use something else.

  • When you are testing your class. You can then set the speakers to SpeakersMock or SpeakersStub in order to focus your testing on the class itself and isolate those tests to avoid side effects.

This doesn’t prevent you from having a default value for speakers field. The benefit of having one is when you initialize Tv in different places in your code. Instead of having to think every time about the initialization of speakers, you just let the class apply the default value.

The lack of such default values can sometimes lead to constructors requesting a dozen of parameters. Not inherently bad, but still difficult to use.

2

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa

Is the ‘application code’ supposed to go in the Class or somewhere else?

I am trying to teach myself programming, but I have always been very confused by the object oriented approach.

Recently, I have been reading about SOLID development principles.

When I create Classes, using Python, it seems I add the application logic there. However, this appears to defy the single responsibility principle, and injection principles.

For a simple example of my problem, let’s assume that my ultimate goal is to change the TV to channel 10, turn the connected (but separate) surround sound system to max, and then turn the TV off.

I would do something like this:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>from SpeakerSystem import DolbyDigital
Class Tv(object):
def __init__(self):
self.speakers = DolbyDigital()
self.volume = 10
self.channel = 1
self.power = 'Off'
def turnOn(self):
self.power = 'On'
def turnOff(self):
self.power = 'Off'
def channelUp(self):
self.channel += 1
def channelDown(self):
self.channel -= 1
def volumeUp(self):
self.speakers.volumeUp()
def volumeDown(self):
self.speakers.volumeDown()
def setChannel(self, station):
self.channel = station
def process(self):
self.channel = 10
while self.volume != self.max_volume:
self.volumeUp()
self.turnOff()
</code>
<code>from SpeakerSystem import DolbyDigital Class Tv(object): def __init__(self): self.speakers = DolbyDigital() self.volume = 10 self.channel = 1 self.power = 'Off' def turnOn(self): self.power = 'On' def turnOff(self): self.power = 'Off' def channelUp(self): self.channel += 1 def channelDown(self): self.channel -= 1 def volumeUp(self): self.speakers.volumeUp() def volumeDown(self): self.speakers.volumeDown() def setChannel(self, station): self.channel = station def process(self): self.channel = 10 while self.volume != self.max_volume: self.volumeUp() self.turnOff() </code>
from SpeakerSystem import DolbyDigital

Class Tv(object):

def __init__(self):
    self.speakers = DolbyDigital()
    self.volume = 10
    self.channel = 1
    self.power = 'Off'

def turnOn(self):
    self.power = 'On'

def turnOff(self):
    self.power = 'Off'

def channelUp(self):
    self.channel += 1

def channelDown(self):
    self.channel -= 1

def volumeUp(self):
    self.speakers.volumeUp()

def volumeDown(self):
    self.speakers.volumeDown()

def setChannel(self, station):
    self.channel = station

def process(self):
    self.channel = 10
    while self.volume != self.max_volume:
        self.volumeUp()
    self.turnOff()

Ignore for a minute that this is a contrived example!

Then, to solve my problem i will simply instantiate Tv, and run process().

The problem is that I always create many methods like process() here; I essentially bake in my application code in with the class.

I think this is wrong? The vast majority of methods in my class actually go about solving my problem directly; they clearly will not be useful to anyone, or even myself, outside of my specific problem domain.

In the example, process is not useful to anyone (only useful for my niche problem). Imagine 10 more methods like that, which are totally useless.

Also, I have read that baking in self.speakers = DolbyDigital() is also bad design, because now Tv depends on it. And this gets messy when unit-testing; having to constantly mock out other objects. Many books suggest that objects should not even be responsible for initializing other objects….

The more I read about OOP and OODesign, it seems the class itself should be general, it should provide only the basic methods (it shouldn’t actually do the whole job), and that the application code should somehow be separate. Is this true? If so, where should the application code go?

I thought about creating a plain old main() file, however it seems that if I did that, the programming paradigm then shifts to procedural. And the whole point of learning OOP is to stick with OOP!?

I am truly utterly confused about it. Again, sorry for the seemingly dumb question, but I have no formal training, so just trying to improve with your help!

I have read several object oriented books, including those by Gamma et. al, Uncle Bob, and several other seminal books. It seems my question is so stupid/novice that they do not actually cover it.

0

You process method is indeed in a wrong place.

What is the context where you will switch to channel 10? Why channel 10, and not channel 9?

  • Maybe the user asked specifically the channel 10. In this case, 10 should be the input, not a value within the class.

  • Maybe this is the default channel, the one which will be shown every time the TV is turned on. In this case, this should be either a constant or, often, a configuration entry.

    By making it a constant, you can be sure that later, when requirements change and the default channel becomes the channel 9, you have to make the change in one location only.

    By moving it to configuration, you acquire the benefit of letting the system administrator change the value later, without having to modify and redeploy the application.

As for the self.speakers = DolbyDigital() part, you should let the caller the ability to set the speakers. This is useful in two cases:

  • When the caller doesn’t want to use DolbyDigital, but wants to use something else.

  • When you are testing your class. You can then set the speakers to SpeakersMock or SpeakersStub in order to focus your testing on the class itself and isolate those tests to avoid side effects.

This doesn’t prevent you from having a default value for speakers field. The benefit of having one is when you initialize Tv in different places in your code. Instead of having to think every time about the initialization of speakers, you just let the class apply the default value.

The lack of such default values can sometimes lead to constructors requesting a dozen of parameters. Not inherently bad, but still difficult to use.

2

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật