Live data from Hacker News

Viewing profile — lassejansen

lassejansen

HN member
Joined
Wed, Aug 29, 2012, 1:20 PM UTC
HN karma
135
Public activity
37 items

About lassejansen

No profile information was provided.

Recent public activity

  1. comment
    Comment #46622186

    The main reason for using a stack was reducing verbosity because for short scripts using variables felt unnecessary when the type-prefix of the command already communicates the var…

  2. comment
    Comment #46620711

    DOM bloat can certainly become a problem when adding lots of code in e.g. table rows. I added functions mainly to be able to move common code into a central place to minimize that …

  3. comment
    Comment #46620523

    I think the approach of HTMX is that UI state is primarily managed by delegating DOM updates to the server and then modifying the DOM with the response. With hyTags one can do a lo…

  4. comment
    Comment #46620405

    For most tags you can also put the event handlers as first children inside the element, but self-closing tags like don't support that. I'm now putting the event handlers always out…

  5. comment
    Comment #46620156

    Exactly, code is data ;)

  6. comment
    Comment #46620017

    It's only frontend logic. There is a small runtime that is implemented in Javascript interprets html tags. Backend logic needs to be implemented on the server.

  7. comment
    Comment #46619726

    Thanks dang!

  8. comment
    Comment #46619710

    The main reason for using tags was for me that they can be generated from a host language and stay readable, even for longer scripts. I'm using Swifts result builders for my projec…

  9. comment
    Comment #46614088

    I did a Show HN for the language "hyTags" yesterday, too. It's a language embedded in HTML, using tags as syntax. It quickly dropped of the new page: https://news.ycombinator.com/i…

  10. story
    Show HN: HyTags – HTML as a Programming Language

    This is hyTags, a programming language embedded in HTML for building interactive web UIs. It started as a way to write full-stack web apps in Swift without a separate frontend, but…

  11. comment
    Comment #44204296

    Or, phrased differently, if n has an upper limit, the algorithm is O(1).

  12. comment
    Comment #38527521

    I'm using Swift Result Builders as a statically typed language to generate HtmlScript code (which a similar approach as html, the programming language): https://htmlscript.org This…

  13. story
  14. comment
    Comment #19309783

    So how does it work if a library owner changes something in his library—do they have to update all projects that depend on it and then push this as a single commit?

  15. comment
    Comment #18120469

    Not sure if "recent" is the correct attribute for DSLs in Ruby. https://www.infoq.com/news/2007/06/dsl-or-not

  16. comment
    Comment #16055405

    The Sapper version is cheating a little. It is preloading the pages on mouseOver events of the links.

  17. comment
    Comment #10946523

    One great application of this would be to hide the unsubscribe link if the email is forwarded.

  18. comment
    Comment #10886118

    I don't understand. Would't each of your 8 million followers get one push notification instead of you getting 8M when you post something?

  19. comment
    Comment #10872818

    About half a year ago. It turned 1500 lines of Dart into ~10000 lines of Javascript. That might not be that much to handle for a webview but it was quite hard to debug. I used it a…

  20. comment
    Comment #10871305

    I tried Dart when looking for a typed language that compiles to Javascript. It was nice but in the end I used haxe because it had a much smaller footprint. Dart seems to include it…

  21. comment
    Comment #10825893

    Related discussion by John Carmack: http://number-none.com/blow/john_carmack_on_inlined_code.htm... https://news.ycombinator.com/item?id=8374345 Cached: http://webcache.googleuserc…

  22. comment
    Comment #10825878

    I don't think it's useful to extract every guard statement into a separate function. Consider importing a json file where each field could potentially contain invalid or missing da…

  23. story
  24. comment
    Comment #10693298

    As the article mentions Unibox: If somebody is interested in giving the beta version of Unibox for iOS a try, send me an email: lasse.jansen@eightloops.com. Unibox groups emails by…

  25. comment
    Comment #10670591

    Interesting, the compiler seems to be implemented in C++.