Skip to content

Instantly share code, notes, and snippets.

@RubenSandwich
Last active January 17, 2017 21:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RubenSandwich/ff4838b388ec7096a47a0496cfa43f33 to your computer and use it in GitHub Desktop.
Save RubenSandwich/ff4838b388ec7096a47a0496cfa43f33 to your computer and use it in GitHub Desktop.
Code & Supply Eve exercise problems
# Exercise Problems
Try to solve this problems by yourself or as a group.
If you need help ask your neighbor.
If you still need help raise your hand and Alec or I will come over to help.
Good Luck!
I'm throwing a party and this is my address book:
```eve
commit @party
[#person name:"Ruben"]
[#person name:"Jim"]
[#person #vegetarian name:"John"]
[#person name:"Terry"]
```
### Help I broke something!
No worries just use this link:
[Reset](https://goo.gl/dNniCN)
Don't actually just reload the page because Eve saves things aggressively and sometimes it gets it wrong and reloading will just load back up that bad save data.
## 1. Bigger party, no Jim
Add more people to the @party database but make sure Jim is not invited to the party and list out the people in the party.
```eve disabled
search @party
x = "No one"
bind @browser
[#div text:x]
```
Hint: How did we exclude Ruben in the tutorial?
## 2. No vegetarians
Everyone is who is **NOT** a vegetarian is invited and list out the people in the party.
```eve disabled
search @party
x = "No one"
bind @browser
[#div text:x]
```
Hint: Think about what tags actually are.
## 3. Combine Parties
Make your own party with the database `@yourParty` and invite people from the party and yourParty databases. But still don't invite Jim and **ONLY** invite vegetarians and list out the people in the party.
```eve disabled
commit @yourParty
```
```eve disabled
search
x = "No one"
bind @browser
[#div text:x]
```
Hint: Are you looking in the right databases?
## Final Thoughts
Thanks so much for attending this talk.
If you could take a little bit of time to fill out a quick survey about Eve that I will share with the community in order to help improve Eve.
[Survey](https://goo.gl/forms/5q48rzTe5UlQKTT22)
I hope it's given you the confidence to continue to learn Eve on your own.
The next place to go is to look at other examples of [Eve](http://play.witheve.com) and start playing around.
If you have any Eve questions in the future feel free to ask the [community](https://groups.google.com/forum/#!forum/eve-talk).
Also join Alec and I in the [Code & Supply Eve Slack channel](http://www.codeandsupply.co/chat)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment