[CentralOH] 2016-08-29 會議 Scribbles 落書/惡文?: Crista Lopes Exercises in Programming Style; refactoring tf-05.py; Andrew Kubera CERN unlimited energy Pb He Au smash plum Pudding; Refactoring Challenge; Full 1920x1080 with VGA; UNIX Philosophy; CARPE on 2016-09-20
jep200404 at columbus.rr.com
jep200404 at columbus.rr.com
Tue Aug 30 18:38:49 EDT 2016
Thanks to Pillar and Chris Baker for their hospitality.
There was plenty of food and drink.
Pillar is always looking for good folks.
###############################################################################
Jim Prior led a live refactoring session of code
from the Exercises in Programming Style stuff
that Chris Baker mentioned last month.
It was done in a Jupyter Notebook that you can review:
http://nbviewer.jupyter.org/github/cohpy/20160829-refactoring-exercise/blob/cohpy-20160829/05-pipeline/tf-05.py-cohpy-20160829-refactoring.ipynb
wp:Chemical Rubber Company
wp:CRC Handbook of Chemistry and Physics
wp: prefix means Wikipedia
To get good answers, consider following the advice in the links below.
http://catb.org/~esr/faqs/smart-questions.html
http://web.archive.org/web/20090627155454/www.greenend.org.uk/rjk/2000/06/14/quoting.html
Exercises in Programming Style
Christina Videira Lopes
@cristalopes
wp:Ninety-five Theses
wp:Copia: Foundations of the Abundant Style
wp:Desiderius Erasmus
wp:Exercises in Style
wp:Raymond Queneau
Metaphor
Surprises
Dream
Prognostication
Hesitation
Precision
Negativities
Asides
Anagrams
Logical analysis
Past Present
...
wp:zazou
wp:Stop Making Sense
wp:Swingjugend
wp:Edelweiss Pirates
wp:Instituto Superior Técnico
GOTO 2013 • Exercises in Style • Cristina Videira Lopes
https://www.youtube.com/watch?v=Gw4WJJoDl3U
Crista Lopes - Exercises in Programming Style - Curry On
https://www.youtube.com/watch?v=JlPMOszyjjo
wp:A Void
wp:Oulipo
style was something that emerged after constraint(s) were imposed
potential literature:
"the seeking of new structures and patterns
which may be used by writers in any way they enjoy."
E.g. "A Void" (La Disparition) by Georges Perec
constraints lead to creativity
wp:Stop words
Curry On Rome! 2016
http://www.curry-on.org/
Programming Styles
Ways of expressing tasks
How to divide task into parts and put them back together
Exist and recur at all scales
Frozen in Programming Languages
Saw huge amount of really bad code from 3 and 4 year advanced students
monads
category theory
☯
wp:Taijitu
wp:Monad (category theory)
wp:Monad (functional programming)
wp:Monad (philosophy)
The story:
Term Frequency
given a text file,
output a list of the 25
most frequently-occurring words,
ordered by decreasing frequency
exclude stop words and single letter words
Take Home
Many ways of solving problems
know them, assess them
what are you trying to optimize?
constraints are important for communication
make them explicit
don't be hostage of one way of doing things
How do you structure your thoughts?
how do you divide the problem?
How do you put it back together?
Spreadsheet Style
how would you count words with excel?
###############################################################################
Andrew Kubera presented on the work he did at CERN (home of www).
speed is limited
energy is _not_ lmiited
gamma aka Lorenz factor wp:Lorentz factor
https://github.com/akubera/pipi_analysis
gamma of 6500? for Pb208?
smash helium into gold two atoms thick
how about 400 atoms thick?
wp:Plum pudding model
wp:Geiger–Marsden experiment
###############################################################################
Challenge for this month is to refactor a little program.
https://github.com/cohpy/challenge-201608-refactor
###############################################################################
cheap selfie stick was not just one piece
the stick and part that holds smart phone were separate,
with standard camera threads to join them
made it easy to use gumby tripod to hold smartphone
Chris' VGA to HDMI adapter worked great
allowed presenters to be with everyone else
handled full 1920x1080 resolution
LCD display on left showed full 1920x1080
projector in middle showed full 1920x1080
It's contrast, brightness, gamma might be maladjusted.
LCD display on right cropped display
wp:Unified Thread Standard
wp:British Standard Whitworth
wp:Tripod_(photography)#Screw_thread
wp:Orson Scott Card
How Software Companies Die -by Orson Scott Card
https://www.netjeff.com/humor/item.cgi?file=DeveloperBees
Compare the above with Books Six and Seven of
"The Tao of Programming" by Geoffrey James.
wp:Unix philosophy
wp:Unix_philosophy#Mike_Gancarz:_The_UNIX_Philosophy
wp:Unix_philosophy#Eric_Raymond.E2.80.99s_17_Unix_Rules
wp:The Art of Unix Programming
###############################################################################
There will be a CARPE meeting on Tuesday September 20,
with a presentation on soldering.
Poll colug.net/carpe for details.
More information about the CentralOH
mailing list