Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Wow. This project has probably the worst example of the telescoping constructor antipattern I've ever seen:

https://snakemake.readthedocs.io/en/stable/api_reference/sna...



It's Python, not Java, so it can't have the telescoping constructor anti-pattern.

Admittedly, there are a huge number of arguments to the snakefile constructor, but they are optional named arguments making the constructor safer and easier to use than Java's telescoping constructor and it alternatives (Java Bean pattern or builder patterns). This application apparently has many options or settings.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: