Better HN
topnewbestaskshowjobs
Log inSign up

gk_brown

123 karma · joined Oct 2, 2015 (11y ago) · 57 submissions

Submissions

1.

Show HN: Kilo – Lightweight REST for Java(github.com ↗)

3 points · by gk_brown · 2y ago · discuss

comment 3y ago · link · parent

Sierra 1.0 and 1.1 actually took a similar approach - trying to create a DSL based on the standard layout managers.

However, I ultimately found that approach too limiting and went with custom layout managers for version 1.2.

comment 3y ago · link · parent

I generally prefer links since otherwise the code and examples can easily get out of sync.

comment 3y ago · link · parent

Have you looked into Flutter at all? I admit that I have not, but I know it supports web development in addition to mobile and desktop:

https://flutter.dev/multi-platform/web

comment 3y ago · link · parent

Added an example demonstrating how to add an action listener to a button:

https://github.com/HTTP-RPC/Sierra/blob/master/sierra-test/s...

I'm not sure it's exactly what you were looking for, but hopefully it is similar enough.

comment 3y ago · link · parent

Sierra is actually inspired by Lima, a UIKit DSL I created in Swift before SwiftUI was announced:

https://github.com/HTTP-RPC/Lima

comment 3y ago · link · parent

Thanks for the feedback. I did consider using Kotlin but wanted to make sure it worked at least minimally in Java first.

comment 3y ago · link · parent

Take a look at FlatLAF:

https://github.com/JFormDesigner/FlatLaf

They have done a great job bringing a modern appearance to the Swing components.

comment 3y ago · link · parent

Agreed. I said as much in my response to this issue that was opened the other day:

https://github.com/HTTP-RPC/Sierra/issues/12

comment 3y ago · link · parent

Great question. You can do this with a cell consumer (i.e. the with() method). See OrientationTest for an example (e.g. leftToRightButton, rightToLeftButton):

https://github.com/HTTP-RPC/Sierra/blob/master/sierra-test/s...

I should probably add a better example.

11.

Show HN: Sierra, a DSL for building Java Swing applications(github.com ↗)

100 points · by gk_brown · 3y ago · 33 comments

comment 8y ago · link · parent

UIStackView is a step in the right direction, but it doesn't go far enough. It's still not truly declarative; it requires you to think in terms of content priorities; and it doesn't support z-ordering.

comment 8y ago · link · parent

Actually, Lima is partly a move away from using XML:

https://gkbrown.org/2018/11/04/introducing-lima/

comment 8y ago · link · parent

For one, you can't create a hierarchy of UIStackViews and their contents declaratively. But UIStackView also forces you to think in terms of content hugging and compression resistance priorities, which (to me) isn't as natural as widths, heights, or weights.

15.

Show HN: Lima, a Swift-based DSL for responsive iOS development(github.com ↗)

37 points · by gk_brown · 8y ago · 20 comments

comment 8y ago · link · parent

I understand the GraphQL pitch - I just don't buy it. From my experience, you don't generally need that level of flexibility. Most callers probably want the full set of data returned by your API. Those that don't can easily ignore it or filter it out client-side. So GraphQL is basically a big, unnecessary hammer.

comment 8y ago · link · parent

Demonstration of how to create a GraphQL-like API using REST.

18.

Show HN: You Don’t Need GraphQL(gkbrown.org ↗)

1 points · by gk_brown · 8y ago · 3 comments

19.

Show HN: Kilo – a lightweight REST client library for iOS and tvOS(github.com ↗)

1 points · by gk_brown · 8y ago · discuss

20.

Show HN: Simplify auto layout in iOS with MarkupKit(gkbrown.org ↗)

1 points · by gk_brown · 8y ago · discuss

21.

Show HN: MarkupKit 4.2 adds binding expression formatters(gkbrown.org ↗)

1 points · by gk_brown · 8y ago · discuss

22.

Show HN: Live preview of markup documents in MarkupKit 4.1(gkbrown.org ↗)

1 points · by gk_brown · 8y ago · discuss

23.

Show HN: A Lightweight Alternative to JAX-RS(gkbrown.org ↗)

1 points · by gk_brown · 9y ago · discuss

24.

Show HN: MVVM in iOS(gkbrown.org ↗)

2 points · by gk_brown · 9y ago · discuss

25.

Show HN: Simplifying Auto Layout in iOS(gkbrown.org ↗)

3 points · by gk_brown · 9y ago · discuss

26.

Show HN: JTemplate – Template-Driven REST Services for Java(gkbrown.org ↗)

1 points · by gk_brown · 10y ago · discuss

27.

Show HN: HTTP-RPC – A Lightweight Multi-Platform REST Client Framework(gkbrown.org ↗)

2 points · by gk_brown · 10y ago · discuss

28.

Show HN: MarkupKit – Declarative UI for iOS(gkbrown.org ↗)

6 points · by gk_brown · 10y ago · discuss

29.

Show HN: Lightweight cross-platform web services(github.com ↗)

1 points · by gk_brown · 10y ago · discuss

12