👨🏻‍💻 How to Design Better REST APIs in Python

preview_player
Показать описание
In this short, I’ll share a few tips and tricks to write a well-designed RESTful API in Python.

#arjancodes #softwaredesign #python
Рекомендации по теме
Комментарии
Автор

Check out my channel links for a free code diagnosis workshop or my free design guide! 🔥

ArjanCodes
Автор

TDD in python allways buggs me. The unit under test should be a module or better its public interface, but python makes it really hard to have non public stuff in a module, which is a problem in teams. Any ideas how to make clear what the actual unit is in python?

MstFink
Автор

If you're mocking your controllers, then you're doing something wrong. There shouldn't be any real business logic there to mock. DI is overused and has performance overhead.

NathanHedglin
Автор

What point is there in having QA then?
I think TDD is overhyped and too time intensive for most projects.
Requirements will change constantly which means all the tests you've painstakingly written will have to be changed as well ensuring the developers work twice as much as they should.

Tests are good for making sure security measures are in place, for example you don't want your code to allow SQL injections. And that's pretty much it. Everything else the QA department should be in charge of testing.

XfStef
visit shbcf.ru