Code Review
See original GitHub issueGreat job so far! Here’s the things I stumbled upon:
Documentation
- Be consistent: timestep vs timestamp
- I don’t think we need to explain the layout of the option files; an example is sufficient.
- I think it is tremendously helpful to see example responses of the API calls early on.
Configuration
- Why split
path
andregex
? Just havepath_regex
. - Not sure about the
yes
/no
syntax for boolean settings. How does e.g. Apache or Nginx handle that?
CLI
- Config path could be a positional argument
- Please wrap the config path in
os.expanduser
for us poor windows souls - 💡: Accept rasters from the command line to quickly serve up anything:
terracotta *.tif
(then open a leaflet map in the browser, with the data already added as a layer, for the ultimate wow effect 😄)
API
- I don’t think the API queries should include
terracotta
. You would either run this as a Flask app on its own port, or configure the proxy in your webserver. - Using a non-timestep API endpoint for a timestepped dataset causes an uncaught exception (500 server error; should give “Bad Request” or so)
I’ll have a look at the actual code and do some profiling later. I’ll update this issue with my findings.
Issue Analytics
- State:
- Created 6 years ago
- Comments:18
Top Results From Across the Web
What Is Code Review? - SmartBear
Code Review, also known as Peer Code Review, is the act of consciously and systematically convening with one's fellow programmers to check each...
Read more >Code review - Wikipedia
Code review is a software quality assurance activity in which one or several people check a program mainly by viewing and reading parts...
Read more >What is a Code Review & How It Can Save Time | Atlassian
Code review helps developers learn the code base, as well as help them learn new technologies and techniques that grow their skill sets....
Read more >Code Review Developer Guide | eng-practices - Google
A code review is a process where someone other than the author(s) of a piece of code examines that code. At Google, we...
Read more >12 Best Code Review Tools for Developers (2022 Edition)
Code review is a part of the software development process which involves testing the source code to identify bugs at an early stage....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For future reference: the correct way to create COG
We will still have to be careful not to put any mutable types into the dict, but I guess that would be the same for frozendict.