1
vote
Calculate cumulative daily rainfall
@Matteo, the code can be shortened by using arrays. As you can see, in your code there is repeatability and also variables ordered by numbers which can easily be indexes of an array. For example: <...
1
vote
Calculate cumulative daily rainfall
Welcome to Code Review. Here are a few improvements to the code:
Use const and arrow notation for your functions.
Stick to the DRY (Don't Repeat Yourself) ...
1
vote
Accepted
Generating JSON with Jinja2
Instead of having the .json output being served from a template file, make use of the json module function of ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
google-app-engine × 37python × 23
java × 9
performance × 5
python-2.x × 3
struts2 × 3
beginner × 2
unit-testing × 2
image × 2
google-apps-script × 2
facebook × 2
javascript × 1
array × 1
recursion × 1
datetime × 1
regex × 1
error-handling × 1
swift × 1
go × 1
api × 1
database × 1
search × 1
authentication × 1
ios × 1
form × 1