home.social

#initialization — Public Fediverse posts

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

fetched live
  1. When developing your own Ruby gem, at some point you might need to make some of the parameters configurable.
    The most idiomatic and elegant way to achieve this in Ruby is global configuration using a block.
    In my opinion, this approach is so simple that you likely won't need any third-party gems for it.
    However, there are a few important caveats to keep in mind.

    #Ruby #Config #Setting #Initialization #Gem #Library

  2. 🚀 Oh, rejoice! Another riveting tale about #C++ #static #initialization that absolutely no one asked for. 🤓 Let's all pretend we're fascinated by the groundbreaking revelation that statics aren't on the stack. Truly, a revelation for the ages! 🙄
    cofault.com/zero-cost-static.h #C++ #programming #software #development #tech #news #coding #humor #HackerNews #ngated

  3. 🚀 Oh, rejoice! Another riveting tale about #C++ #static #initialization that absolutely no one asked for. 🤓 Let's all pretend we're fascinated by the groundbreaking revelation that statics aren't on the stack. Truly, a revelation for the ages! 🙄
    cofault.com/zero-cost-static.h #C++ #programming #software #development #tech #news #coding #humor #HackerNews #ngated

  4. Blogged: A Dynamic Initialization Deep-Dive: Abusing Initialization Side Effects

    In #C++, you may want to run code (with side effects) before your `main()`. This article explores how that's possible and tries to sketch some aspects of how #initialization of a C++ program works.

    lukas-barth.net/blog/dynamic_i

    #cpp #cplusplus

    Note: Replies to this post will be visible as comments on the blog.

  5. [Перевод] Глубокое погружение в процедуру запуска JVM

    Новый перевод от команды Spring АйО расскажет вам, что происходит при запуске самого простого приложения на Java, какие шаги выполняет JVM, сколько классов ей необходимо загрузить, чтобы просто написать “Hello World!” и как все это выглядит на уровне byte code.

    habr.com/ru/companies/spring_a

    #java #startup #jvm #byte_code #garbage_collector #method_area #cds #loading #linking #initialization

  6. Конструкторы-самозванцы в Kotlin

    Сегодня я хочу поговорить про интересные моменты в Kotlin, связанные с вызовами конструкторов классов. Или не совсем конструкторов? Или же совсем не конструкторов? Давайте разбираться. Это техническая статья для любителей языковых интересностей, не лишённая практического смысла.

    habr.com/ru/articles/805767/

    #kotlin #constructor #initialization #function