abhn / Mporter

Mentor Reporter - A flask based multiuser app for automated email reporting to your mentors
https://mporter.co
MIT License
3 stars 1 forks source link

Random resource dumps #19

Open darth-dodo opened 6 years ago

darth-dodo commented 6 years ago

https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world

darth-dodo commented 6 years ago

https://geemus.gitbooks.io/http-api-design/content/en/

darth-dodo commented 6 years ago

https://blog.apisyouwonthate.com/

abhn commented 6 years ago

Links from PR

http://stackoverflow.com/questions/29332056/global-error-handler-for-any-exception

http://opensource.com/article/17/3/python-flask-exceptions

http://rock-it.pl/custom-exception-handler-in-django

http://medium.com/@mwhitt.w/restful-error-messages-with-django-537047892dff

Another way would be all

if using Class based views, it should inherit from a base class which in turn is inheriting different classes which handle things such as logging, exception handling, common errors (record does not exist) and handles them efficiently in the parent class.

in function based views, create and stack decorator for the same (wrap the function) http://stackoverflow.com/questions/739654/how-to-make-a-chain-of-function-decorators#1594484

stay away from database triggers

sql = triggers http://softwareengineering.stackexchange.com/questions/123074/sql-triggers-and-when-or-when-not-to-use-them

Django = signals http://lincolnloop.com/blog/django-anti-patterns-signals

Rails = callbacks http://medium.com/planet-arkency/the-biggest-rails-code-smell-you-should-avoid-to-keep-your-app-healthy-a61fd75ab2d3

http://realpython.com/asynchronous-tasks-with-django-and-celery http://docs.celeryproject.org/en/latest/userguide/periodic-tasks.html http://wiki.archlinux.org/index.php/Rabbitmq http://docs.celeryproject.org/en/latest/getting-started/brokers/rabbitmq.html

http://python.org/dev/peps/pep-0008

darth-dodo commented 6 years ago

doghi Pagination visarle -__-

http://flask.pocoo.org/snippets/44/ http://flask-sqlalchemy.pocoo.org/2.3/api/

darth-dodo commented 6 years ago

dada, mind blown https://mitchel.me/2017/django-service-objects/ https://github.com/mixxorz/django-service-objects

abhn commented 6 years ago

@darth-dodo pagination - (wrong) developer assumption: ek din mai kar kar ke kitna tasks karega. :P

darth-dodo commented 6 years ago

https://medium.com/@ayarshabeer/django-best-practice-settings-file-for-multiple-environments-6d71c6966ee2

adding a wrapper of config.json/config.yml over virtualenv.

Use case, every time I change env variables, i need to change

vi $VIRTUAL_ENV/bin/postactivate and vi $VIRTUAL_ENV/bin/predeactivate,

By using this, I just keep my config separate from my env yet, export in via my env just by adding this to the postactivate file export MYSITE_CONFIG="/Users/shabeer/.configs/mysite_config.json"

darth-dodo commented 6 years ago

http://charlesleifer.com/blog/structuring-flask-apps-a-how-to-for-those-coming-from-django/

darth-dodo commented 6 years ago

https://github.com/remind101/empire

https://www.elastic.co/videos/django-microservices-made-easy-by-paul-hallett

darth-dodo commented 6 years ago

An extremely novel way of using django models. I will try this out soon. Makes DRY go to the next level. Please do check this out. Pretty extreme for production however very insightful

https://github.com/PokeAPI/pokeapi/blob/master/pokemon_v2/models.py

darth-dodo commented 6 years ago

Backend for self hosting a google photos clone with facial recognition

https://github.com/hooram/ownphotos

darth-dodo commented 6 years ago

Amazing mini project. Can be over in 2 days dev, 1 day test cases, 1 day devops + logging (sentry/airbrake)

https://github.com/olist/work-at-olist

darth-dodo commented 6 years ago

https://blog.gofynd.com/introducing-developer-less-data-workbench-making-business-analysts-masters-of-the-data-9eee49601d52

the entire blog is pretty stellar for an India company

P. S. they recently got funded by Google

darth-dodo commented 6 years ago

https://chatbotsmagazine.com/delbot-nlp-python-bot-1a46d865e38b

darth-dodo commented 6 years ago

https://github.com/9jaswag/speechrec

darth-dodo commented 6 years ago

https://medium.com/@harwoeck/password-and-credential-management-in-2018-56f43669d588

darth-dodo commented 6 years ago

https://github.com/tedmiston/notes

darth-dodo commented 6 years ago

http://healthyprog.com/references.html