home.social

#monkeypatching — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #monkeypatching, aggregated by home.social.

fetched live
  1. #Admintrivia:

    Gestern Abend habe ich einen kleinen Bug in GlitchSoc auf fedifreu.de per #Monkeypatching (Bearbeiten von Quellcode auf dem Server) behoben. Der Bug hatte dafür gesorgt, dass ich Trends moderieren musste, obwohl ich eingestellt hatte, dass Trends sofort angezeigt werden sollen.

    Jetzt könnt ihr wieder ohne Verzögerung sehen, was in unserer Bubble gerade Thema ist: fedifreu.de/explore

    Ich will nicht klagen – wer #GlitchSoc einsetzt, will experimentelle Mastodon-Features nutzen und weiß, dass man bei der Behebung mithelfen soll, statt zu jammern. Was ich versuche durch Mitarbeit im Issue-Tracker. Aber es ist nicht einfach. Mir fehlt der Erfahrungsaustausch mit anderen GlitchSoc-Instanz-Admins. Gibt es dazu schon eine Matrixgruppe oder so? Die #Fedimins-Gruppe hat damit leider noch keine Erfahrungen. Wahrscheinlich muss ich es auf Englisch versuchen.

    #GlitchSocAdmin #GlitchAdmin #TrendModeration

  2. #Admintrivia:

    Gestern Abend habe ich einen kleinen Bug in GlitchSoc auf fedifreu.de per #Monkeypatching (Bearbeiten von Quellcode auf dem Server) behoben. Der Bug hatte dafür gesorgt, dass ich Trends moderieren musste, obwohl ich eingestellt hatte, dass Trends sofort angezeigt werden sollen.

    Jetzt könnt ihr wieder ohne Verzögerung sehen, was in unserer Bubble gerade Thema ist: fedifreu.de/explore

    Ich will nicht klagen – wer #GlitchSoc einsetzt, will experimentelle Mastodon-Features nutzen und weiß, dass man bei der Behebung mithelfen soll, statt zu jammern. Was ich versuche durch Mitarbeit im Issue-Tracker. Aber es ist nicht einfach. Mir fehlt der Erfahrungsaustausch mit anderen GlitchSoc-Instanz-Admins. Gibt es dazu schon eine Matrixgruppe oder so? Die #Fedimins-Gruppe hat damit leider noch keine Erfahrungen. Wahrscheinlich muss ich es auf Englisch versuchen.

    #GlitchSocAdmin #GlitchAdmin #TrendModeration

  3. #Admintrivia:

    Gestern Abend habe ich einen kleinen Bug in GlitchSoc auf fedifreu.de per #Monkeypatching (Bearbeiten von Quellcode auf dem Server) behoben. Der Bug hatte dafür gesorgt, dass ich Trends moderieren musste, obwohl ich eingestellt hatte, dass Trends sofort angezeigt werden sollen.

    Jetzt könnt ihr wieder ohne Verzögerung sehen, was in unserer Bubble gerade Thema ist: fedifreu.de/explore

    Ich will nicht klagen – wer #GlitchSoc einsetzt, will experimentelle Mastodon-Features nutzen und weiß, dass man bei der Behebung mithelfen soll, statt zu jammern. Was ich versuche durch Mitarbeit im Issue-Tracker. Aber es ist nicht einfach. Mir fehlt der Erfahrungsaustausch mit anderen GlitchSoc-Instanz-Admins. Gibt es dazu schon eine Matrixgruppe oder so? Die #Fedimins-Gruppe hat damit leider noch keine Erfahrungen. Wahrscheinlich muss ich es auf Englisch versuchen.

    #GlitchSocAdmin #GlitchAdmin #TrendModeration

  4. #Admintrivia:

    Gestern Abend habe ich einen kleinen Bug in GlitchSoc auf fedifreu.de per #Monkeypatching (Bearbeiten von Quellcode auf dem Server) behoben. Der Bug hatte dafür gesorgt, dass ich Trends moderieren musste, obwohl ich eingestellt hatte, dass Trends sofort angezeigt werden sollen.

    Jetzt könnt ihr wieder ohne Verzögerung sehen, was in unserer Bubble gerade Thema ist: fedifreu.de/explore

    Ich will nicht klagen – wer #GlitchSoc einsetzt, will experimentelle Mastodon-Features nutzen und weiß, dass man bei der Behebung mithelfen soll, statt zu jammern. Was ich versuche durch Mitarbeit im Issue-Tracker. Aber es ist nicht einfach. Mir fehlt der Erfahrungsaustausch mit anderen GlitchSoc-Instanz-Admins. Gibt es dazu schon eine Matrixgruppe oder so? Die #Fedimins-Gruppe hat damit leider noch keine Erfahrungen. Wahrscheinlich muss ich es auf Englisch versuchen.

    #GlitchSocAdmin #GlitchAdmin #TrendModeration

  5. #Admintrivia:

    Gestern Abend habe ich einen kleinen Bug in GlitchSoc auf fedifreu.de per #Monkeypatching (Bearbeiten von Quellcode auf dem Server) behoben. Der Bug hatte dafür gesorgt, dass ich Trends moderieren musste, obwohl ich eingestellt hatte, dass Trends sofort angezeigt werden sollen.

    Jetzt könnt ihr wieder ohne Verzögerung sehen, was in unserer Bubble gerade Thema ist: fedifreu.de/explore

    Ich will nicht klagen – wer #GlitchSoc einsetzt, will experimentelle Mastodon-Features nutzen und weiß, dass man bei der Behebung mithelfen soll, statt zu jammern. Was ich versuche durch Mitarbeit im Issue-Tracker. Aber es ist nicht einfach. Mir fehlt der Erfahrungsaustausch mit anderen GlitchSoc-Instanz-Admins. Gibt es dazu schon eine Matrixgruppe oder so? Die #Fedimins-Gruppe hat damit leider noch keine Erfahrungen. Wahrscheinlich muss ich es auf Englisch versuchen.

    #GlitchSocAdmin #GlitchAdmin #TrendModeration

  6. That said, as the workingwithruby site advises, you probably don't want to use Thread directly an instead use a higher level abstraction like @bascule's Celluloid gem.

    #Ruby #monkeypatching #composition #actors

  7. That said, as the workingwithruby site advises, you probably don't want to use Thread directly an instead use a higher level abstraction like @bascule's Celluloid gem.

    #Ruby #monkeypatching #composition #actors

  8. That said, as the workingwithruby site advises, you probably don't want to use Thread directly an instead use a higher level abstraction like @bascule's Celluloid gem.

    #Ruby #monkeypatching #composition #actors

  9. That said, as the workingwithruby site advises, you probably don't want to use Thread directly an instead use a higher level abstraction like @bascule's Celluloid gem.

    #Ruby #monkeypatching #composition #actors

  10. That said, as the workingwithruby site advises, you probably don't want to use Thread directly an instead use a higher level abstraction like @bascule's Celluloid gem.

    #Ruby #monkeypatching #composition #actors

  11. I *LOVE* this resource (workingwithruby.com/wwrt/) on threading in Ruby.

    However, I find the suggestion to monkey patch Enumerable here (workingwithruby.com/wwrt/low_l) evokes anxiety.

    It suggests something like this:

    module Enumerable
    def concurrent_each
    # impl
    end
    end

    We Rubyists *LOVE* implicit over explicit relationships. We tend to think of this as convention over configuration. Thanks, DHH.

    Yet this doesn't scale well.

    For apps/gems of any significant complication, the accumulation of implicitness results in cognitive overload.

    What if someone *else* gets the idea to add a concurrent_each to Enumerable. That is, Enumerable, as a built-in, is akin to a global namespace.

    Instead, I recommend something more like a vaguely Java-esque approach (bear with me!) of:

    class ConcurrentEach
    def self.using(enumerable, &block)
    # use the impl supplied in the example linked above
    end
    end

    Using this would look like:

    ConcurrentEach.using(files).each { ... }

    This way, we're composing instead of monkey patching or mixing in.

    Try to avoid modifying code you don't own.

    Or, as I've heard, second-hand, of Matz saying to a friend of mine, "Don't hurt Ruby!" 😂

    #Ruby #monkeypatching #composition

  12. I *LOVE* this resource (workingwithruby.com/wwrt/) on threading in Ruby.

    However, I find the suggestion to monkey patch Enumerable here (workingwithruby.com/wwrt/low_l) evokes anxiety.

    It suggests something like this:

    module Enumerable
    def concurrent_each
    # impl
    end
    end

    We Rubyists *LOVE* implicit over explicit relationships. We tend to think of this as convention over configuration. Thanks, DHH.

    Yet this doesn't scale well.

    For apps/gems of any significant complication, the accumulation of implicitness results in cognitive overload.

    What if someone *else* gets the idea to add a concurrent_each to Enumerable. That is, Enumerable, as a built-in, is akin to a global namespace.

    Instead, I recommend something more like a vaguely Java-esque approach (bear with me!) of:

    class ConcurrentEach
    def self.using(enumerable, &block)
    # use the impl supplied in the example linked above
    end
    end

    Using this would look like:

    ConcurrentEach.using(files).each { ... }

    This way, we're composing instead of monkey patching or mixing in.

    Try to avoid modifying code you don't own.

    Or, as I've heard, second-hand, of Matz saying to a friend of mine, "Don't hurt Ruby!" 😂

    #Ruby #monkeypatching #composition

  13. I *LOVE* this resource (workingwithruby.com/wwrt/) on threading in Ruby.

    However, I find the suggestion to monkey patch Enumerable here (workingwithruby.com/wwrt/low_l) evokes anxiety.

    It suggests something like this:

    module Enumerable
    def concurrent_each
    # impl
    end
    end

    We Rubyists *LOVE* implicit over explicit relationships. We tend to think of this as convention over configuration. Thanks, DHH.

    Yet this doesn't scale well.

    For apps/gems of any significant complication, the accumulation of implicitness results in cognitive overload.

    What if someone *else* gets the idea to add a concurrent_each to Enumerable. That is, Enumerable, as a built-in, is akin to a global namespace.

    Instead, I recommend something more like a vaguely Java-esque approach (bear with me!) of:

    class ConcurrentEach
    def self.using(enumerable, &block)
    # use the impl supplied in the example linked above
    end
    end

    Using this would look like:

    ConcurrentEach.using(files).each { ... }

    This way, we're composing instead of monkey patching or mixing in.

    Try to avoid modifying code you don't own.

    Or, as I've heard, second-hand, of Matz saying to a friend of mine, "Don't hurt Ruby!" 😂

    #Ruby #monkeypatching #composition

  14. I *LOVE* this resource (workingwithruby.com/wwrt/) on threading in Ruby.

    However, I find the suggestion to monkey patch Enumerable here (workingwithruby.com/wwrt/low_l) evokes anxiety.

    It suggests something like this:

    module Enumerable
    def concurrent_each
    # impl
    end
    end

    We Rubyists *LOVE* implicit over explicit relationships. We tend to think of this as convention over configuration. Thanks, DHH.

    Yet this doesn't scale well.

    For apps/gems of any significant complication, the accumulation of implicitness results in cognitive overload.

    What if someone *else* gets the idea to add a concurrent_each to Enumerable. That is, Enumerable, as a built-in, is akin to a global namespace.

    Instead, I recommend something more like a vaguely Java-esque approach (bear with me!) of:

    class ConcurrentEach
    def self.using(enumerable, &block)
    # use the impl supplied in the example linked above
    end
    end

    Using this would look like:

    ConcurrentEach.using(files).each { ... }

    This way, we're composing instead of monkey patching or mixing in.

    Try to avoid modifying code you don't own.

    Or, as I've heard, second-hand, of Matz saying to a friend of mine, "Don't hurt Ruby!" 😂

    #Ruby #monkeypatching #composition

  15. I *LOVE* this resource (workingwithruby.com/wwrt/) on threading in Ruby.

    However, I find the suggestion to monkey patch Enumerable here (workingwithruby.com/wwrt/low_l) evokes anxiety.

    It suggests something like this:

    module Enumerable
    def concurrent_each
    # impl
    end
    end

    We Rubyists *LOVE* implicit over explicit relationships. We tend to think of this as convention over configuration. Thanks, DHH.

    Yet this doesn't scale well.

    For apps/gems of any significant complication, the accumulation of implicitness results in cognitive overload.

    What if someone *else* gets the idea to add a concurrent_each to Enumerable. That is, Enumerable, as a built-in, is akin to a global namespace.

    Instead, I recommend something more like a vaguely Java-esque approach (bear with me!) of:

    class ConcurrentEach
    def self.using(enumerable, &block)
    # use the impl supplied in the example linked above
    end
    end

    Using this would look like:

    ConcurrentEach.using(files).each { ... }

    This way, we're composing instead of monkey patching or mixing in.

    Try to avoid modifying code you don't own.

    Or, as I've heard, second-hand, of Matz saying to a friend of mine, "Don't hurt Ruby!" 😂

    #Ruby #monkeypatching #composition

  16. …but in case any of you want to do something similar, here’s me mocking a WritableStream using a Proxy to provide mock stdout and stderr streams to Console instances to capture the output and save them in my database:

    codeberg.org/kitten/app/src/br

    And here’s the actual monkeypatching code:

    codeberg.org/kitten/app/src/br

    #monkeyPatching #JavaScript #console #NodeJS #web #dev #Proxy #Streams #mocking

  17. …but in case any of you want to do something similar, here’s me mocking a WritableStream using a Proxy to provide mock stdout and stderr streams to Console instances to capture the output and save them in my database:

    codeberg.org/kitten/app/src/br

    And here’s the actual monkeypatching code:

    codeberg.org/kitten/app/src/br

    #monkeyPatching #JavaScript #console #NodeJS #web #dev #Proxy #Streams #mocking

  18. …but in case any of you want to do something similar, here’s me mocking a WritableStream using a Proxy to provide mock stdout and stderr streams to Console instances to capture the output and save them in my database:

    codeberg.org/kitten/app/src/br

    And here’s the actual monkeypatching code:

    codeberg.org/kitten/app/src/br

    #monkeyPatching #JavaScript #console #NodeJS #web #dev #Proxy #Streams #mocking

  19. …but in case any of you want to do something similar, here’s me mocking a WritableStream using a Proxy to provide mock stdout and stderr streams to Console instances to capture the output and save them in my database:

    codeberg.org/kitten/app/src/br

    And here’s the actual monkeypatching code:

    codeberg.org/kitten/app/src/br

    #monkeyPatching #JavaScript #console #NodeJS #web #dev #Proxy #Streams #mocking

  20. …but in case any of you want to do something similar, here’s me mocking a WritableStream using a Proxy to provide mock stdout and stderr streams to Console instances to capture the output and save them in my database:

    codeberg.org/kitten/app/src/br

    And here’s the actual monkeypatching code:

    codeberg.org/kitten/app/src/br

    #monkeyPatching #JavaScript #console #NodeJS #web #dev #Proxy #Streams #mocking

  21. Monkey patching в Go, или грабли от Apple

    Все началось с того, что я в очередной раз немного поменял структуры БД, и в некоторых SQL-запросах добавилась новая колонка. Нормальная ситуация - взять и легким движением руки сломать половину unit test’ов, потому что БДшные моки ожидают определенный текст запроса.

    habr.com/ru/articles/801177/

    #monkeypatching #unittesting #go #грабли_повсюду

  22. Monkey patching в Go, или грабли от Apple

    Все началось с того, что я в очередной раз немного поменял структуры БД, и в некоторых SQL-запросах добавилась новая колонка. Нормальная ситуация - взять и легким движением руки сломать половину unit test’ов, потому что БДшные моки ожидают определенный текст запроса.

    habr.com/ru/articles/801177/

    #monkeypatching #unittesting #go #грабли_повсюду

  23. I’m not sure which I dislike more: the premise of a Python decorator that redirects functions to an LLM, or the fact that they are co-opting the term “monkey patch”, which already has a well-defined meaning in Python.

    mastodon.social/@python_discus

    #Python #monkeyPatching

  24. I’m not sure which I dislike more: the premise of a Python decorator that redirects functions to an LLM, or the fact that they are co-opting the term “monkey patch”, which already has a well-defined meaning in Python.

    mastodon.social/@python_discus

    #Python #monkeyPatching

  25. I’m not sure which I dislike more: the premise of a Python decorator that redirects functions to an LLM, or the fact that they are co-opting the term “monkey patch”, which already has a well-defined meaning in Python.

    mastodon.social/@python_discus

    #Python #monkeyPatching

  26. I’m not sure which I dislike more: the premise of a Python decorator that redirects functions to an LLM, or the fact that they are co-opting the term “monkey patch”, which already has a well-defined meaning in Python.

    mastodon.social/@python_discus

    #Python #monkeyPatching

  27. I’m not sure which I dislike more: the premise of a Python decorator that redirects functions to an LLM, or the fact that they are co-opting the term “monkey patch”, which already has a well-defined meaning in Python.

    mastodon.social/@python_discus

    #Python #monkeyPatching

  28. Sometimes #monkeyPatching gets a bad reputation, but I feel like adding draw methods for #pymunk shape-objects is such an elegant solution, it simplifies so many things... you don't need extra data structures to keep track of them, you don't need to check object types at the draw loop... #Python

  29. Sometimes #monkeyPatching gets a bad reputation, but I feel like adding draw methods for #pymunk shape-objects is such an elegant solution, it simplifies so many things... you don't need extra data structures to keep track of them, you don't need to check object types at the draw loop... #Python

  30. Sometimes #monkeyPatching gets a bad reputation, but I feel like adding draw methods for #pymunk shape-objects is such an elegant solution, it simplifies so many things... you don't need extra data structures to keep track of them, you don't need to check object types at the draw loop... #Python

  31. Sometimes #monkeyPatching gets a bad reputation, but I feel like adding draw methods for #pymunk shape-objects is such an elegant solution, it simplifies so many things... you don't need extra data structures to keep track of them, you don't need to check object types at the draw loop... #Python

  32. Sometimes #monkeyPatching gets a bad reputation, but I feel like adding draw methods for #pymunk shape-objects is such an elegant solution, it simplifies so many things... you don't need extra data structures to keep track of them, you don't need to check object types at the draw loop... #Python

  33. The #JVM is an excellent platform for #monkeypatching

    I want to demo several approaches for monkey-patching in Java in this post.

    As an example, I’ll use a sample for-loop. Imagine we have a class and a method. We want to call the method multiple times without doing it explicitly.

    blog.frankel.ch/monkeypatching

    #Java #AspectJ #ByteBuddy #instrumentation #JavaAgent

  34. The #JVM is an excellent platform for #monkeypatching

    I want to demo several approaches for monkey-patching in Java in this post.

    As an example, I’ll use a sample for-loop. Imagine we have a class and a method. We want to call the method multiple times without doing it explicitly.

    blog.frankel.ch/monkeypatching

    #Java #AspectJ #ByteBuddy #instrumentation #JavaAgent

  35. The #JVM is an excellent platform for #monkeypatching

    I want to demo several approaches for monkey-patching in Java in this post.

    As an example, I’ll use a sample for-loop. Imagine we have a class and a method. We want to call the method multiple times without doing it explicitly.

    blog.frankel.ch/monkeypatching

    #Java #AspectJ #ByteBuddy #instrumentation #JavaAgent

  36. The #JVM is an excellent platform for #monkeypatching

    I want to demo several approaches for monkey-patching in Java in this post.

    As an example, I’ll use a sample for-loop. Imagine we have a class and a method. We want to call the method multiple times without doing it explicitly.

    blog.frankel.ch/monkeypatching

    #Java #AspectJ #ByteBuddy #instrumentation #JavaAgent

  37. The #JVM is an excellent platform for #monkeypatching

    I want to demo several approaches for monkey-patching in Java in this post.

    As an example, I’ll use a sample for-loop. Imagine we have a class and a method. We want to call the method multiple times without doing it explicitly.

    blog.frankel.ch/monkeypatching

    #Java #AspectJ #ByteBuddy #instrumentation #JavaAgent