Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    jn
    @jn:ccc.ac
    [m]
    hm, i don't know about the Swift constraints
    js
    @js:nil.im
    [m]
    I'm leaning towards just changing the style and not giving anything about how Cocoa names stuff, given how inconsistent they are
    jn
    @jn:ccc.ac
    [m]
    maybe you could make a little overview page of the different constraints and influences?
    js
    @js:nil.im
    [m]
    but then again: OFStringEncodingISO885915?
    Cocoa would call it NSISOLatin9StringEncoding, if it had it at all.
    (GNUstep does call it that way)
    /**
     * @brief The encoding of a string.
     */
    typedef enum OFStringEncoding {
        /*
         * UTF-8 *has* to be 0, so that if the current @ref OFLocale is `nil`,
         * `[OFLocale encoding]` returns UTF-8.
         */
        /** UTF-8 */
        OFStringEncodingUTF8 = 0,
        /** ASCII */
        OFStringEncodingASCII,
        /** ISO 8859-1 */
        OFStringEncodingISO8859_1,
        /** ISO 8859-2 */
        OFStringEncodingISO8859_2,
        /** ISO 8859-3 */
        OFStringEncodingISO8859_3,
        /** ISO 8859-15 */
        OFStringEncodingISO8859_15,
        /** Windows-1251 */
        OFStringEncodingWindows1251,
        /** Windows-1252 */
        OFStringEncodingWindows1252,
        /** Codepage 437 */
        OFStringEncodingCodepage437,
        /** Codepage 850 */
        OFStringEncodingCodepage850,
        /** Codepage 858 */
        OFStringEncodingCodepage858,
        /** Mac OS Roman */
        OFStringEncodingMacRoman,
        /** KOI8-R */
        OFStringEncodingKOI8R,
        /** KOI8-U */
        OFStringEncodingKOI8U,
        /** Try to automatically detect the encoding */
        OFStringEncodingAutodetect = 0xFF
    } OFStringEncoding;
    Maybe this isn't all terrible?
    jn
    @jn:ccc.ac
    [m]
    it has the main points that i like to see in enums
    js
    @js:nil.im
    [m]
    values have the enum as prefix?
    jn
    @jn:ccc.ac
    [m]
    yes
    js
    @js:nil.im
    [m]
    you prefer that over enum Foo { FOO_BAR, FOO_BAZ }?
    jn
    @jn:ccc.ac
    [m]
    no, that fulfills my criteria too
    js
    @js:nil.im
    [m]
    ugh, API design is hard
    or, rather, naming consistency is hard
    maybe I should just say "public functions use a different convention to align with C style, deal with it"?
    jn
    @jn:ccc.ac
    [m]
    FOO_BAR style gives visual separation between enum variants and classes; but i don't know if that's good or bad
    js
    @js:nil.im
    [m]
    yes, that's why I initially used foo_t for types, and Foo for classes
    jn
    @jn:ccc.ac
    [m]
    and OFStringEncodingUTF8 (an enum variant) would look like a class
    js
    @js:nil.im
    [m]
    indeed
    maybe indeed best to keep everything as is. Letterus WDYT?
    hmm, would of_thisIsAnExportedFunction be so bad?
    maybe that is what I should use
    to solve the entire inconsistency between local and public
    Letterus
    @letterus:synod.im
    [m]
    I‘d be fine with both
    just don‘t make anything uppercase and underscore that is going to be part of a class instance (methods and properties)
    2 replies
    oh, and write down the rules somewhere so libs can comply to it as well 😉
    js
    @js:nil.im
    [m]
    ah I see
    Letterus
    @letterus:synod.im
    [m]
    private ivars _ivarName of course…
    RSS
    @rss:maunium.net
    [m]
    [ObjFW] New ticket [32a54a363f4903ec|32a54a363f] Support for hardware SHA on x86. (link (https://objfw.nil.im/info/680e0607fa1399940d92023892bd94d57a0955555f9431155f5fb081285e7276))
    Letterus
    @letterus:synod.im
    [m]
    yesterday I tried about 2h to get any UI done using Glade and I‘m beginning to understand why elementary recommends doing UI by code. While Gorm of GNUstep really represents the intuitive simplicity of Cocoa/IB, you can‘t say the same about Glade. If gobject was influenced by objc they missed the crucial parts about UI it seems 😅
    I take into account I may not yet have been able to understand how it works correctly by now. So digging deeper now...
    1 reply
    tar
    @sengun:phys.ethz.ch
    [m]
    something is happening in here...
    Letterus
    @letterus:synod.im
    [m]
    js: Gnome Builder creates projects utilizing Meson build system. Will I be able to integrate ObjFW with Meson or should I use your build system and link against glib et al?
    js
    @js:nil.im
    [m]
    Nobody has built meson support for ObjFW yet ;). Feel free to create it!

    https://blog.gtk.org/2021/03/30/gtk-4-2-0/ Portability

    Seems it’s going the way of go and Rust, and hating packagers. Sad to see.

    1 reply
    RSS
    @rss:maunium.net
    [m]
    RSS
    @rss:maunium.net
    [m]
    [ObjFW] of_comparator_t -> OFComparator (tags: new-naming-convention) (link (https://objfw.nil.im/info/aade14a6e20cee75168633b38c010c29e8f094da19555001050cf837bfc9a796))
    [ObjFW] of_comparison_result_t -> OFComparisonResult (tags: new-naming-convention) (link (https://objfw.nil.im/info/61fc389aee73b0563f7fec5518cca75d2e960d0c3a5a786436f346620b399945))
    RSS
    @rss:maunium.net
    [m]
    [ObjFW] of_byte_order_t -> OFByteOrder (tags: new-naming-convention) (link (https://objfw.nil.im/info/1046d10a20043c4b70d0c74c5734717d70550c074d9f6b59b2f0ea5cfb28d9eb))
    RSS
    @rss:maunium.net
    [m]
    [ObjFW] of_point_t -> OFPoint (tags: new-naming-convention) (link (https://objfw.nil.im/info/3524409dd07ef663358a20321a0ac19b20327dfeb3d889ab732a63ff6f655d19))
    [ObjFW] of_time_interval_t -> OFTimeInterval (tags: new-naming-convention) (link (https://objfw.nil.im/info/8c0d76f7824d4357563c8ddc3a13fb8c7fc8f0705eb3a7cf0255528ccaa60ff1))
    [ObjFW] New ticket [15bcaa7d13c70fa5|15bcaa7d13] Add helper functions for time intervals. (link (https://objfw.nil.im/info/ffbf0127af1c4da141af54e54d17a000849557c9fc211b7548fec4d9a522675f))
    [ObjFW] of_range_t -> OFRange (tags: new-naming-convention) (link (https://objfw.nil.im/info/d975c53a4317a15c73a67a51a79853cc4341c8a898ec96e9dfef8ebdbbf8b1c6))
    RSS
    @rss:maunium.net
    [m]
    [ObjFW] of_dimension_t -> OFSize (tags: new-naming-convention) (link (https://objfw.nil.im/info/8a7353b21983e6f9b2fa52f60c5c9fe430a0575e460de92219c94e8bafaaf125))
    [ObjFW] MERGE Merge trunk into branch "new-naming-convention" (tags: new-naming-convention) (link (https://objfw.nil.im/info/b57126a21ef7197935fb90bac51148d049954758acd8e31ad2de4eac0c63ea5b))

    [ObjFW] OFNumber: Remove useless OF_UNAVAILABLE

    These methods no longer exist. (tags: trunk) (link (https://objfw.nil.im/info/27002f2efef50246c81796fa02d43f1e94c1d7bb2ffa686d1082de54b17538fb))

    RSS
    @rss:maunium.net
    [m]
    [ObjFW] OF_NOT_FOUND -> OFNotFound (tags: new-naming-convention) (link (https://objfw.nil.im/info/83dc0fe6e58db14c1c1fadf4905213551f0cd3c8fbc3241434009654528bd702))
    [ObjFW] of_rectangle_t -> OFRect (tags: new-naming-convention) (link (https://objfw.nil.im/info/dec9721b359528ea7e6689a2bafc3c59654767f3b3c8e74b3c26849400de46cc))
    RSS
    @rss:maunium.net
    [m]
    [ObjFW] of_char{16,32}_t -> OFChar{16,32} (tags: new-naming-convention) (link (https://objfw.nil.im/info/6d9d790a248741b3d4f246d1f5d71ac06b7a034200810235860ffc88463d3a60))