Kimmo Lehto

Results 287 comments of Kimmo Lehto

I think the dry-dropping part was complete. The general api / initialization changes were not, and that was holding back the 1.0 release.

> I don't think I can contribute much to this. But, I would be interested to review the changes if you need help in this department. See #3 and the...

@zemzale Thanks, but that only solves it for the example in the question, not the intention of it, which was custom validations just by implementing some function on the type...

I don't see any situation where `extend self` would actually be the correct choice. 1. You have a module that provides a utility method such as `Math.pi` 2. You want...

@ifokeev you shouldn't need instance methods in the module. Private module methods can probably be achieved with ~~private and module_function~~ and your code will still work if included. Edit: nope,...

@ifokeev You need to use private_class_method in addition. ```ruby module Bedtime def now? after_midnight? end module_function :now? def after_midnight? Time.now.hour < 12 end module_function :after_midnight? private_class_method :after_midnight? def work_in_the_morning? (0..4).cover?(Time.now.wday)...

And your code doesn't work correctly :) You can write it a bit shorter: ```ruby module Foo private_class_method def bar(foo) puts "yo #{foo}" end module_function :bar end ``` Maybe: ```ruby...

A CLI tool I'm developing manages a catalog of k8s clusters. Having the option to `k9s` into them would be nice. The app is go+cobra too. I could just reuse...

https://comp.sys.cbm.narkive.com/aBgNh4QT/why-all-c64-cartridged-dont-work-at-sx64 > The SX64 cart port is a bit on the edge. It's connected to the main board with a flat cable which is too long for its own good....

My opinion is that `pkg/` is fine in a project that's primarily something that works on its own, let's say a web browser written in go and they publish reusable...