My first smart contract: good idea or bad logic?

Upon hearing about the Ethereum craze, I became more interested in the technology rather than the currency. In short, I have been trying to teach myself Solidity and so far that has been going pretty well. I have created my first (although stupidly simple) test-net smart contract called Wallet Faucet. Basically, it is a sort of decentralized faucet that runs on the blockchain, users can either donate or take a set amount of ether out. This is so they don't have to mine it and can start writing contracts without mining (or just get some quick test ether!). My question is, is this a good use of a smart contract? Or am I just not understanding the uses/technology properly? Thank you!

Comments

A Smart Contract could allow anyone to deposit Ether, and then allow people to withdraw a small amount of that Ether, but only if they (their address) haven't done so already during the past, say, hour.

This is a great idea for learning how to write a smart contract yourself. If you want someone to look it over once you're mostly done, feel free to ask me, or post it here!

A Smart Contract could allow anyone to deposit Ether, and then allow people to withdraw a small amount of that Ether, but only if they (their address) haven't done so already during the past, say, hour.

This is a great idea for learning how to write a smart contract yourself. If you want someone to look it over once you're mostly done, feel free to ask me, or post it here!

Thank you! I have the contract able to allow users to donate to the faucet, and for someone to withdraw one ether, but I am not sure how to set a timer. Would I have to set the contract to run at a later block for that address? Thank you so much!