Scroll to see replies
•
When your app gets popular, you can change your deck storage mechanism from that local JSON file to a distributed document database and all you need to change in your app is your implementation of [pre]DeckLoader[/pre]. Because the deck loader is a constructor parameter to the deck provider, the deck provider doesn't even have to know anything about how to instantiate a [pre]DeckLoader[/pre].
•
You can unit test the logic of your deck provider without your tests relying on having a working database connection by mocking or stubbing out the [pre]DeckLoader[/pre] implementation.
•
You no longer have your decks loaded as static methods, meaning that if you decide to roll this out as a web app and each user has their own set of decks, you can give them each an instance of your deck provider instantiated with their user IDs concurrently and safely (static members are shared across threads, no good when each concurrent user needs a different instance).
•
The separation of different concerns (storage and business logic) is well-defined and strictly enforced so your code will remain maintainable.
•
...
•
I use, normally, MySQLi. Slightly safer (imo) than general MySQL.
•
I have each site on a different server, hosted at different locations.
•
I use both Incapsula and Cloudflare. Incapsula for those who want to pay more, and Cloudflare can withstand attacks of over 300Gbps
•
I use, normally, MySQLi. Slightly safer (imo) than general MySQL.
•
I have each site on a different server, hosted at different locations.
•
I use both Incapsula and Cloudflare. Incapsula for those who want to pay more, and Cloudflare can withstand attacks of over 300Gbps
•
Can we have some links to any your clients sites so i can see how well the sites are designed ?
•
How much is maintenance for a website per month for like the hosting and time investment if a site goes down?
•
How did you get clients at such a young age, asking friends and family etc?
•
Can we have some links to any your clients sites so i can see how well the sites are designed ?
•
How much is maintenance for a website per month for like the hosting and time investment if a site goes down?
•
How did you get clients at such a young age, asking friends and family etc?
Last reply 1 month ago
Free website hosting providers with no strings attached?Posted 3 months ago
iDEA silver citizen badge three. Milkshake shack coding problem.Last reply 4 months ago
How do you practice programming java for beginners?Last reply 8 months ago
hows the employment market for tech work in the UK?Last reply 1 month ago
Free website hosting providers with no strings attached?Posted 3 months ago
iDEA silver citizen badge three. Milkshake shack coding problem.Last reply 4 months ago
How do you practice programming java for beginners?Last reply 8 months ago
hows the employment market for tech work in the UK?