News for hackers. Stuff that matters.

dubbyconqueror

I wonder what I need all these tools like Pipenv poetry pyenv and whatever other abstraction there is when I can use Docker to perfectly isolate all dependencies including OS packages?
Re:Against Service Layers in Django on Wednesday March 18, 2020 @01:29PM (#22619080)
I'm currently working on a complex business-heavy application where we apply DDD and other "enterprise application patterns". Most of the negative aspects in the article I see proven during my daily work (like re-implementing parts of the ORM within a repository). Even then, as I understand this is the approach as its described in DDD books and "classics" like "Enterprise application architecture".

I have also worked with the opposite way as described in the article - mixing business logic and Django specific code and saw it becoming a hard-to maintain mess quickly, where it was hard to see the business logic between all the infrastructure code.

For me the hard thing about "Enterprise Python[Django]" is to find a way how we can apply these enterprisy architectures in a more Pythonic way. Hopefully there will be more books and articles about these topics now that Python gains more and more momentum and starts to become more respected to implement heavy business driven applications.

Re:Ask HN: Configuration Management for Personal Computer? on Monday August 12, 2019 @05:28AM (#20673813)
I'm in a similar situation (3 different workstations that should have the same config) and tried to solve it with all major config management solutions (Ansible, Puppet, Saltstack) and also tried using a Bash script. While config management works perfectly at my workplace (for real servers), I found all of them way to complicated and slow to maintain my workstations.

In the end I switched to use a plain Git-managed makefile which works perfectly for me, because:

- Plain and simple syntax, single file

- Shell autocompletion for Makefile targets, if I only want to install a small set

- No need to write cfg management "modules" as I can achieve the same with minimal Bash scripting

This is how my config looks currently: https://gist.github.com/ifischer/5fdd672aeed1099c1f6c6ea925c...