Monday, October 23, 2017

semver = semantic versioning


http://semver.org/

good overview
https://www.sitepoint.com/semantic-versioning-why-you-should-using/

Thursday, September 7, 2017

.NET Core WebApi on Linux (uBuntu)


.NET Core WebApi on Linux (uBuntu)


https://docs.microsoft.com/en-us/aspnet/core/tutorials/web-api-vsc


$ dotnet run
https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-run?tabs=netcore2x

Setting Up a .NET Core Server With Entity Framework Core Using a PostgreSQL Database
https://medium.com/@mikezrimsek/setting-up-a-net-core-server-with-entity-framework-core-using-a-postgresql-database-242438f7d9c3

Handling requests with controllers in ASP.NET Core MVC
https://docs.microsoft.com/en-us/aspnet/core/mvc/controllers/actions

Web API POST - When to use Create, CreatedAtAction, CreatedAtRoute?
https://stackoverflow.com/questions/37839278/asp-net-core-rc2-web-api-post-when-to-use-create-createdataction-vs-created

Model binding JSON POSTs in ASP.NET Core
https://andrewlock.net/model-binding-json-posts-in-asp-net-core/

Switch Off camelCase JSON Binding
https://stackoverflow.com/questions/38202039/json-properties-now-lower-case-on-swap-from-asp-net-core-1-0-0-rc2-final-to-1-0
???

Asp.Net Core Action Results Explained
http://hamidmosalla.com/2017/03/29/asp-net-core-action-results-explained/





Friday, September 1, 2017

Functional Style Programming in Python 3

functional programming in python 3

Why isn't Python very good for functional programming?
stackoverflow.com
http://stackoverflow.com/questions/1017621/why-isnt-python-very-good-for-functional-programming
Learning Data Science Using Functional Python
Joel Grus
https://www.youtube.com/watch?v=ThS4juptJjQ
Functional Programming HOWTO
python foundation
https://docs.python.org/3/howto/functional.html
A practical introduction to functional programming
Mary Rose Cook
https://maryrosecook.com/blog/post/a-practical-introduction-to-functional-programming
Functional programming in Python the simplest way
Anderson Resend
https://www.vinta.com.br/blog/2015/functional-programming-python/
A practical introduction to Functional Programming for Python coders
Sachin Joglekar
https://codesachin.wordpress.com/2016/04/03/a-practical-introduction-to-functional-programming-for-python-coders/

Wednesday, August 23, 2017

recursion in python


limits on the maximum depth of recursion

RecursionError: maximum recursion depth exceeded

https://stackoverflow.com/questions/3323001/what-is-the-maximum-recursion-depth-in-python-and-how-to-increase-it


sys.setrecursionlimit(new_limit_value)

unexpected python scoping

global
nonlocal

https://www.python.org/dev/peps/pep-3104/

https://stackoverflow.com/questions/5218895/python-nested-functions-variable-scoping

nonlocal
https://docs.python.org/3/reference/simple_stmts.html#the-nonlocal-statement

https://stackoverflow.com/questions/5772935/why-doesnt-a-sub-function-inherit-scope-in-python

Sunday, August 20, 2017

io module - file and stream based io in python3

io module @ python 2.6 docs

>>>

New in version 2.6.

The io module provides the Python interfaces to stream handling. Under Python 2.x, this is proposed as an alternative to the built-in file object, but in Python 3.x it is the default interface to access files and streams.

Note

Since this module has been designed primarily for Python 3.x, you have to be aware that all uses of “bytes” in this document refer to the str type (of which bytes is an alias), and all uses of “text” refer to the unicode type. Furthermore, those two types are not interchangeable in the io APIs.

<<<