home.social

Search

14 results for “voidbot”

  1. 24. Shared code ownership is the goal; siloed knowledge is bad. At a minimum, this means discussing or documenting design decisions and important implementation decisions. Code review is the worst time to start discussing design decisions as the inertia to make sweeping changes after code has been written is hard to overcome. (Of course it’s still better to point out and change design mistakes at review time than never.)

  2. 22b. There’s no such thing as a slow unit test. With tightly scoped unit tests testing behavior, your tests act as a de facto specification for your code. Ideally if someone wants to understand your code, they should be able to turn to the test suite as "documentation" for the behavior. A great presentation on unit testing practices is Fast Test, Slow Test, by Gary Bernhardt: youtube.com/watch?v=RAxiiRPHS9k

  3. 28. Generally, particularly in tests, wait for a specific change rather than sleeping for an arbitrary amount of time. Voodoo sleeps are hard to understand and slow down your test suite.

  4. 1b. YAGNI: "You Aint Gonna Need It". Don't write code that you think you might need in future, but don't need yet.

    The same is true for commenting-out code; if a block of commented code is going into a release, it shouldn't exist. If it is code that may be restored, make a ticket and reference the commit hash for the code delete. YAGNI is a core element of agile programming. The best reference for this is Extreme Programming Explained, by Kent Beck.

  5. 4. When it comes to API design (external facing and object API): *Simple things should be simple; complex things should be possible.* Design for the simple case first, with preferably zero configuration or parameterization, if that's possible. Add *options* or additional API methods for more complex and flexible use cases (as they are needed).

  6. 1b. YAGNI: "You Aint Gonna Need It". Don't write code that you think you might need in future, but don't need yet.

    The same is true for commenting-out code; if a block of commented code is going into a release, it shouldn't exist. If it is code that may be restored, make a ticket and reference the commit hash for the code delete. YAGNI is a core element of agile programming. The best reference for this is Extreme Programming Explained, by Kent Beck.

  7. 11. Logic is easy to unit test if it is stateless and side-effect free. Break out logic into separate functions, rather than mixing logic into stateful and side-effect-filled code. Separating stateful code and code with side-effects into smaller functions makes them easier to mock out and unit test without side-effects. (Less overhead for tests means faster tests.) Side effects *do* need testing, but testing them once and mocking them out everywhere else is generally a good pattern.

  8. 18. Don’t do work in object constructors, which are hard to test and surprising. Don’t put code in `__init__.py` (except imports for namespacing). `__init__.py` is not where programmers generally *expect* to find code, so it’s "surprising".

  9. 14. Dependency injection is a useful coding pattern for being clear about what your dependencies are and where they come from. (Have objects, methods, and so on receive their dependencies as parameters rather than instantiating new objects themselves.) This does make API signatures more complex, so it is a trade-off. Ending up with a method that needs 10 parameters for all its dependencies is good sign your code is doing too much, anyway. See martinfowler.com/articles/inje by Martin Fowler.

  10. 23. "Not Invented Here" is not as bad as people say. If we write the code, then we know what it does, we know how to maintain it, and we’re free to extend and modify it as we see fit. This follows the YAGNI principle: We have specific code for the use cases we need rather than general purpose code that has complexity for things we don’t need. On the other hand, code is the enemy, and owning more code than necessary is bad. Consider the trade-off when introducing a new dependency.

  11. 4. When it comes to API design (external facing and object API): *Simple things should be simple; complex things should be possible.* Design for the simple case first, with preferably zero configuration or parameterization, if that's possible. Add *options* or additional API methods for more complex and flexible use cases (as they are needed).

  12. 1b. YAGNI: "You Aint Gonna Need It". Don't write code that you think you might need in future, but don't need yet.

    The same is true for commenting-out code; if a block of commented code is going into a release, it shouldn't exist. If it is code that may be restored, make a ticket and reference the commit hash for the code delete. YAGNI is a core element of agile programming. The best reference for this is Extreme Programming Explained, by Kent Beck.

  13. 23. "Not Invented Here" is not as bad as people say. If we write the code, then we know what it does, we know how to maintain it, and we’re free to extend and modify it as we see fit. This follows the YAGNI principle: We have specific code for the use cases we need rather than general purpose code that has complexity for things we don’t need. On the other hand, code is the enemy, and owning more code than necessary is bad. Consider the trade-off when introducing a new dependency.

  14. Peppermint OS csapata kiadta a Peppermint OS Void (Loaded) változatot: Void Linux alapok, ~4 GB ISO, alapértelmezett Xfce és XLibre display server, saját ISO-builder, frissített Peppermint Tools, új Peppermint Software Center és pfet‑ch frissítés. Jó választás, ha Voidot próbálnál Peppermint élménnyel. linuxmint.hu/hir/2026/12/meger #Linux #VoidLinux #Xfce #OpenSource

Share on Mastodon

Enter the server where you have an account.