[CentralOH] 2017-06-22 道場 Scribbles 落書/惡文? refactoring; code valid in three languages; spaces v tabs; numberphile computerphile; thinking; hackerrank; i, j, k
jep200404 at columbus.rr.com
jep200404 at columbus.rr.com
Fri Jun 23 08:38:48 EDT 2017
wp:Code refactoring
By continuously improving the design of code, we make it easier and easier
to work with. This is in sharp contrast to what typically happens: little
refactoring and a great deal of attention paid to expediently adding new
features. If you get into the hygienic habit of refactoring continuously,
you'll find that it is easier to extend and maintain code.
— Joshua Kerievsky, Refactoring to Patterns
https://en.wikipedia.org/wiki/Simple_syrup#Simple_syrup
Another reason to use Python!
Software dev bombshell: Programmers who use spaces earn MORE than those who use tabs
Well, of course – anyone using tabs should be paid zero
https://www.theregister.co.uk/2017/06/16/spaces_vs_tabs/
PEP8 versus Linux kernel versus Go
PEP8 prefers spaces over tabs for indentation
https://www.python.org/dev/peps/pep-0008/
Linux prefers tabs over spaces for indentation
https://www.kernel.org/doc/html/latest/process/coding-style.html#indentation
tab mandate?
https://github.com/golang/go/issues/7101
makefiles require tabs in some places
The following program is valid in fortran77, C, and shell.
http://www.ioccc.org/1986/applin/applin.c
Write a program that is valid in Python
and at least two of fortran77, C, or shell.
Resources for getting started with Python and machine learning
https://opensource.com/article/17/6/resources-getting-started-python-and-machine-learning
numberphile and computerphile on youtube
wp:Thinking, Fast and Slow
Slow
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
wp:HackerRank
hackerrank.com
fibonacci
factorial
instant
https://pypi.python.org/pypi/instant/
http://fenics.readthedocs.io/projects/instant/en/latest/
Instant is a Python module that allows for instant inlining of C and C++ code
in Python. It is a small Python module built on top of SWIG and Distutils.
Using i, j, and k as index variables is derived from hundreds of year of math.
I learned that from Brandon.
Which presentation of his talks about that?
wp:Summation
More information about the CentralOH
mailing list