Todo or Die - Python Edition ↦
After seeing TODO or die in Rust here a few days ago, I wanted to have the same feature available in Python. No reason this should only be available in Ruby and Rust. Python deserved better TODOs too!
After seeing TODO or die in Rust here a few days ago, I wanted to have the same feature available in Python. No reason this should only be available in Ruby and Rust. Python deserved better TODOs too!
Discussion
Sign in or Join to comment or subscribe
Brian Underwood
2021-09-27T07:29:40Z ago
I was inspired by the Rust/Ruby libraries and I created one for
credo
in Elixir: https://hex.pm/packages/credo_todo_or_dieFeatures:
credo
feature)Klemen Sever
Paris, France
Dev from @42born2code, geeking for @BackMarket, Osteopath, Founder of @osteopathes_pro
2021-09-27T16:40:06Z ago
Excellent ! I was also thinking of creating one for elixir as a macro that would trigger at compile time and make if fail if necessary. I’ll definitely look into your credo based plugin 🤩
Brian Underwood
2021-09-28T07:18:14Z ago
👍 Let me know if you have any thoughts on what it could do!
I talked with a couple of other people on the Elixir Slack about it when I started and we all liked the idea of doing it as a check (like with
credo
) as opposed to at runtime because that could fail on production (not very with the “stability” Elixir ethos 😅). Compile time would be better, but if you wanted to implement something like the check of GitHub issues then you’re adding HTTP requests to your application’s compile, which maybe means that you’re app doesn’t compile if the HTTP request fails (like because GitHub is down, even if the issue isn’t closed yet).But it’s somewhat less flexible too because you can’t implement just any code. Though… the
credo_todo_or_die
library is implementing a customcredo
“check”.credo_todo_or_die
is implemented under the covers in a modular fashion to have the different checks, so I suppose it could be possible to allow somebody to implement their own customcredo_todo_or_die
alerts. 🤔Niek
2021-10-03T08:57:42Z ago
Just like cheerfulstoic we were inspired by this and created a TypeScript Language Server plugin!
It’s available here on npm:
https://www.npmjs.com/package/typescript-todo-or-die-plugin
For now, it has a minimal feature set, because this was created in a day during our company’s Innovation Day:
TODO
We have lot’s of ideas to extend the project, for example: