[CentralOH] 2015-10-14 lunch Scribbles 落書/惡文?: apprenticeships, switch, api, presentation, pycharm license
jep200404 at columbus.rr.com
jep200404 at columbus.rr.com
Wed Oct 14 20:43:39 CEST 2015
Next Python lunch is
2015-10-21 11:30
Aladdin's Eatery
1423(B?) Grandview Ave
http://www.aladdinseatery.com
six folks ate well today
Kuy Teav
Hu Tieu Nom Vang
wp:aloha shirt
awh
C# .net
9 month apprenticeship
1 year contract to whomever they farm you out to
cardinal has something close to pint room on 161?
scientific computing for computational physics
pandas class at scipy
asked how to do a switch statement in Python.
switch (i) {
int j;
case 1234:
printf("hello %d\n", i);
case 5678:
printf("world\n");
default:
for (j=0;j<i;j++)
printf("Doh!\n");
}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Use a dictionary.
#!/usr/bin/env python3
def here_handler(i):
print("hello", i)
def there_handler(i):
print("world")
def default_handler(i):
for _ in range(i):
print("Doh!")
handlers = {
1234: here_handler,
5678: there_handler,
}
try:
handler = handlers[i]
except KeyError:
handler = default_handler
handler(i)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
then to abuse things:
handlers = {
1234: lambda i: print("hello", i),
5678: lambda i: print("world"),
}
try:
handler = handlers[i]
except KeyError:
handler = lambda i:[print("Doh!") for _ in range(i)]
handler(i)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
What is an API?
It is how some software wants to be talked to by other software.
more shorter presentations
Refactoring demos
involving novices and experienced folks
wants to see how to collaborate with git
have two teams
show what both teams do
establish portfolio on github
publish projects
newbies do work for non-profits
keroku for some free hosting
pyCharm: free for students, and use on open source projects
other candidates
Halwani Cuisine
La Tavola?
DK Diner
Johnies?
More information about the CentralOH
mailing list