Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
lassejansen
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
lassejansen
8mo ago
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 variable contents. But it could still be a good idea to have a
2.
▲
by
lassejansen
8mo ago
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 problem. You certainly must get used to the stack based appr
3.
▲
by
lassejansen
8mo ago
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 lot of things without server calls and without resorting to ja
4.
▲
by
lassejansen
8mo ago
For most tags you can also put the event handlers as first children inside the element, but self-closing tags like <input> don't support that. I'm now putting the event handlers always outside (as next siblings) for consiste
5.
▲
by
lassejansen
8mo ago
Exactly, code is data ;)
6.
▲
by
lassejansen
8mo ago
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.
▲
by
lassejansen
8mo ago
Thanks dang!
8.
▲
by
lassejansen
8mo ago
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 projects, which enables autocompletion and partial type safet
9.
▲
by
lassejansen
8mo ago
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/item?id=46599403 Could you ad
10.
▲
Show HN: HyTags – HTML as a Programming Language
(hytags.org)
69 points
by
lassejansen
8mo ago
|
33 comments
11.
▲
by
lassejansen
1y ago
Or, phrased differently, if n has an upper limit, the algorithm is O(1).
12.
▲
by
lassejansen
3y ago
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 works pretty well for composable server si
13.
▲
HtmlScript, Also a Programming Language
(htmlscript.org)
1 points
by
lassejansen
3y ago
|
0 comments
14.
▲
by
lassejansen
8y ago
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.
▲
by
lassejansen
8y ago
Not sure if "recent" is the correct attribute for DSLs in Ruby. https://www.infoq.com/news/2007/06/dsl-or-not
16.
▲
by
lassejansen
9y ago
The Sapper version is cheating a little. It is preloading the pages on mouseOver events of the links.
17.
▲
by
lassejansen
11y ago
One great application of this would be to hide the unsubscribe link if the email is forwarded.
18.
▲
by
lassejansen
11y ago
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.
▲
by
lassejansen
11y ago
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 as a UserScript in WKWebView so I couldn't use DartEdito
20.
▲
by
lassejansen
11y ago
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 its own library while haxe sticks close to what Javascript off
21.
▲
by
lassejansen
11y ago
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.googleusercontent.com
22.
▲
by
lassejansen
11y ago
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 data. Sure, you could create functions like parseTit
23.
▲
Show HN: Emails organized by person – with Unibox for iPhone and iPad
(uniboxapp.com)
4 points
by
lassejansen
11y ago
|
1 comments
24.
▲
by
lassejansen
11y ago
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 person. It's different, but it really helps you stayin
25.
▲
by
lassejansen
11y ago
Interesting, the compiler seems to be implemented in C++.
26.
▲
by
lassejansen
11y ago
[Disclosure: I'm a co-founder] If you're open to new approaches to email you should try Unibox. It's an email client for Mac (and soon iOS) that lets you browse through your emails by person, so you always have all messages a
27.
▲
by
lassejansen
12y ago
Did anybody find information regarding namespaces?
28.
▲
by
lassejansen
13y ago
Hm, doesn't let me reduce the number to zero.
29.
▲
by
lassejansen
13y ago
Unibox has this: http://www.uniboxapp.com/faq/attachments/list
30.
▲
by
lassejansen
13y ago
Unibox works pretty well for newsletters and notifications. They get grouped into one contact by sender, so e.g. 4 Twitter notifications only take one slot in the contact list. It works also really well for notifications that contain attach
More ›