https://htmx.org logo
Join Discord
Powered by
# htmx-general
  • m

    mysterious-toddler-20573

    02/22/2023, 2:01 PM
    here's a good example of a really crazy situation in htmx: https://github.com/bigskysoftware/htmx/blob/master/src/htmx.js#L581
  • g

    gorgeous-airport-54386

    02/22/2023, 2:01 PM
    converting a codebase is still a pain though, there are a lot of things that are really easy to express in both JS and TS, but the JS way doesn't work in TS
  • m

    mysterious-toddler-20573

    02/22/2023, 2:02 PM
    basically the idea is I want an overloaded function (something, btw, I have explicitly argued against in the past) that takes either: addEventListener(eventName, callback) addEventListener(element, eventName, callback)
  • m

    mysterious-toddler-20573

    02/22/2023, 2:02 PM
    so the typing is bonkers there
  • m

    mysterious-toddler-20573

    02/22/2023, 2:02 PM
    not necessarily happy w/ that
  • t

    tall-dinner-62086

    02/22/2023, 2:03 PM
    While we're on the topic of build steps, merging this one PR would fix mine. Sorry to be pushy on this, I just need to know if I can expect this to be merged at some point in the near future or if I'm gonna have to monkey-patch hyperscript for a while.
    m
    • 2
    • 2
  • m

    mysterious-toddler-20573

    02/22/2023, 2:03 PM
    https://guidewiredevelopment.wordpress.com/2009/05/22/i-am-hate-method-overloading-and-so-can-you/
  • m

    mysterious-toddler-20573

    02/22/2023, 2:03 PM
    everybody be nice please
  • m

    mysterious-car-3675

    02/22/2023, 2:03 PM
    If you think its just whitespace and types annotation then you really don't get it. If the help isn't wanted cool. If you don't want js/ts devs to help expand on the work done, cool. but your attitude is appalling.
  • m

    mysterious-toddler-20573

    02/22/2023, 2:03 PM
    if there is one thing I don't like about typescript, it's that it makes people I like and respect argue
  • g

    gorgeous-airport-54386

    02/22/2023, 2:03 PM
    Copy code
    ts
    function processEventArgs(event: string, listener: EventListener);
    function processEventArgs(target: string | Element, event: string, listener: EventListener);
    function processEventArgs(arg1, arg2, arg3) { ... do mostly the same thing ... }
  • m

    mysterious-toddler-20573

    02/22/2023, 2:04 PM
    yes, just hard to see what's going on on inspection unless you are crazy like me
  • m

    mysterious-car-3675

    02/22/2023, 2:04 PM
    @mysterious-toddler-20573 i was literaly working on breaking that out to not be overloaded right now. But the attitude here is Sisyphean
  • g

    gorgeous-airport-54386

    02/22/2023, 2:04 PM
    i am very normal how dare you
  • m

    mysterious-toddler-20573

    02/22/2023, 2:04 PM
    a good example of me arguing with myself across decades
  • m

    mysterious-toddler-20573

    02/22/2023, 2:05 PM
    it may be, we definitely have some idiosyncratic developers here.
  • m

    mysterious-toddler-20573

    02/22/2023, 2:05 PM
    the arc of htmx is long, but it bends towards laughter
  • r

    refined-waiter-90422

    02/22/2023, 2:07 PM
    it would be nice to see more /feature/ contributions rather than co-opting the architecture of the project.
  • m

    mysterious-toddler-20573

    02/22/2023, 2:08 PM
    easy, easy folks
  • m

    mysterious-toddler-20573

    02/22/2023, 2:08 PM
    it's just programming ๐Ÿ™‚
  • t

    tall-dinner-62086

    02/22/2023, 2:08 PM
    them's fighting words
  • m

    mysterious-toddler-20573

    02/22/2023, 2:09 PM
    the year is 2023, carson finds himself inexplicably defending a dynamically typed programming language he swore to destroy exactly a decade ago
  • m

    mysterious-toddler-20573

    02/22/2023, 2:09 PM
    life is funny, folks
  • l

    limited-teacher-83117

    02/22/2023, 2:11 PM
    This is actually something I wanted to ask aboutโ€”is there any kind of list where you keep track of issues you're looking for contributors on?
  • m

    mysterious-toddler-20573

    02/22/2023, 2:13 PM
    boy, I'd love help on github issues, but it's often hard to tell if they are: a feature request, a misunderstanding, against the grain of what htmx is supposed to do, etc.
  • l

    limited-teacher-83117

    02/22/2023, 2:14 PM
    ^ this was my experience looking at the issues list as well, especially from the perspective of someone who's been using it in production for only ~ 2 months
  • l

    late-king-98305

    02/22/2023, 2:14 PM
    The community, back when I was making a decision. You can have a perfectly consistent, syntactically valid application, well-documented and everything, that is completely and utterly wrong. No one was making that warning, at least that I saw, back when I was making the decision. I get its utility, and if the browser isn't following the HTML spec, that's not a TS issue - so I see the benefit in this context. I have to really have a need to reach for TS, though...
  • m

    mysterious-car-3675

    02/22/2023, 2:20 PM
    I 100% get it. TS for me is about documenting your assumption in code instead of in comments. That helps more when using outside libraries, your own code is self consistent. I find projects that start out TS are way easier to not get into code !== runtime than JS ports that have assumptions prebaked in.
  • l

    late-king-98305

    02/22/2023, 2:23 PM
    And, remember, I'm the guy who brought the discussion yesterday back to what the PR was trying to accomplish. I'm not anti-change. ๐Ÿ™‚ FWIW, there has been a good bit of discussion about 2.0 being TS-based; as it's a bit away, there is time to hash out those discussions.
  • l

    late-king-98305

    02/22/2023, 2:25 PM
    And now, for the next non-controversial topic: SEMI-COLONS! (ducks)
1...103710381039...1146Latest